1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. modelarmor
  5. Template
Google Cloud v8.39.0 published on Tuesday, Jul 22, 2025 by Pulumi

gcp.modelarmor.Template

Explore with Pulumi AI

gcp logo
Google Cloud v8.39.0 published on Tuesday, Jul 22, 2025 by Pulumi

    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

    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    const template_basic = new gcp.modelarmor.Template("template-basic", {
        location: "<no value>",
        templateId: "<no value>",
        filterConfig: {},
        templateMetadata: {},
    });
    
    import pulumi
    import pulumi_gcp as gcp
    
    template_basic = gcp.modelarmor.Template("template-basic",
        location="<no value>",
        template_id="<no value>",
        filter_config={},
        template_metadata={})
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/modelarmor"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := modelarmor.NewTemplate(ctx, "template-basic", &modelarmor.TemplateArgs{
    			Location:         pulumi.String("<no value>"),
    			TemplateId:       pulumi.String("<no value>"),
    			FilterConfig:     &modelarmor.TemplateFilterConfigArgs{},
    			TemplateMetadata: &modelarmor.TemplateTemplateMetadataArgs{},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Gcp = Pulumi.Gcp;
    
    return await Deployment.RunAsync(() => 
    {
        var template_basic = new Gcp.ModelArmor.Template("template-basic", new()
        {
            Location = "<no value>",
            TemplateId = "<no value>",
            FilterConfig = null,
            TemplateMetadata = null,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcp.modelarmor.Template;
    import com.pulumi.gcp.modelarmor.TemplateArgs;
    import com.pulumi.gcp.modelarmor.inputs.TemplateFilterConfigArgs;
    import com.pulumi.gcp.modelarmor.inputs.TemplateTemplateMetadataArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var template_basic = new Template("template-basic", TemplateArgs.builder()
                .location("<no value>")
                .templateId("<no value>")
                .filterConfig(TemplateFilterConfigArgs.builder()
                    .build())
                .templateMetadata(TemplateTemplateMetadataArgs.builder()
                    .build())
                .build());
    
        }
    }
    
    resources:
      template-basic:
        type: gcp:modelarmor:Template
        properties:
          location: <no value>
          templateId: <no value>
          filterConfig: {}
          templateMetadata: {}
    

    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:

    $ 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}}
    

    Create Template Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Template(name: string, args: TemplateArgs, opts?: CustomResourceOptions);
    @overload
    def Template(resource_name: str,
                 args: TemplateArgs,
                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def Template(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 filter_config: Optional[TemplateFilterConfigArgs] = None,
                 location: Optional[str] = None,
                 template_id: Optional[str] = None,
                 labels: Optional[Mapping[str, str]] = None,
                 project: Optional[str] = None,
                 template_metadata: Optional[TemplateTemplateMetadataArgs] = None)
    func NewTemplate(ctx *Context, name string, args TemplateArgs, opts ...ResourceOption) (*Template, error)
    public Template(string name, TemplateArgs args, CustomResourceOptions? opts = null)
    public Template(String name, TemplateArgs args)
    public Template(String name, TemplateArgs args, CustomResourceOptions options)
    
    type: gcp:modelarmor:Template
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args TemplateArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args TemplateArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args TemplateArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TemplateArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TemplateArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var templateResource = new Gcp.ModelArmor.Template("templateResource", new()
    {
        FilterConfig = new Gcp.ModelArmor.Inputs.TemplateFilterConfigArgs
        {
            MaliciousUriFilterSettings = new Gcp.ModelArmor.Inputs.TemplateFilterConfigMaliciousUriFilterSettingsArgs
            {
                FilterEnforcement = "string",
            },
            PiAndJailbreakFilterSettings = new Gcp.ModelArmor.Inputs.TemplateFilterConfigPiAndJailbreakFilterSettingsArgs
            {
                ConfidenceLevel = "string",
                FilterEnforcement = "string",
            },
            RaiSettings = new Gcp.ModelArmor.Inputs.TemplateFilterConfigRaiSettingsArgs
            {
                RaiFilters = new[]
                {
                    new Gcp.ModelArmor.Inputs.TemplateFilterConfigRaiSettingsRaiFilterArgs
                    {
                        FilterType = "string",
                        ConfidenceLevel = "string",
                    },
                },
            },
            SdpSettings = new Gcp.ModelArmor.Inputs.TemplateFilterConfigSdpSettingsArgs
            {
                AdvancedConfig = new Gcp.ModelArmor.Inputs.TemplateFilterConfigSdpSettingsAdvancedConfigArgs
                {
                    DeidentifyTemplate = "string",
                    InspectTemplate = "string",
                },
                BasicConfig = new Gcp.ModelArmor.Inputs.TemplateFilterConfigSdpSettingsBasicConfigArgs
                {
                    FilterEnforcement = "string",
                },
            },
        },
        Location = "string",
        TemplateId = "string",
        Labels = 
        {
            { "string", "string" },
        },
        Project = "string",
        TemplateMetadata = new Gcp.ModelArmor.Inputs.TemplateTemplateMetadataArgs
        {
            CustomLlmResponseSafetyErrorCode = 0,
            CustomLlmResponseSafetyErrorMessage = "string",
            CustomPromptSafetyErrorCode = 0,
            CustomPromptSafetyErrorMessage = "string",
            EnforcementType = "string",
            IgnorePartialInvocationFailures = false,
            LogSanitizeOperations = false,
            LogTemplateOperations = false,
            MultiLanguageDetection = new Gcp.ModelArmor.Inputs.TemplateTemplateMetadataMultiLanguageDetectionArgs
            {
                EnableMultiLanguageDetection = false,
            },
        },
    });
    
    example, err := modelarmor.NewTemplate(ctx, "templateResource", &modelarmor.TemplateArgs{
    	FilterConfig: &modelarmor.TemplateFilterConfigArgs{
    		MaliciousUriFilterSettings: &modelarmor.TemplateFilterConfigMaliciousUriFilterSettingsArgs{
    			FilterEnforcement: pulumi.String("string"),
    		},
    		PiAndJailbreakFilterSettings: &modelarmor.TemplateFilterConfigPiAndJailbreakFilterSettingsArgs{
    			ConfidenceLevel:   pulumi.String("string"),
    			FilterEnforcement: pulumi.String("string"),
    		},
    		RaiSettings: &modelarmor.TemplateFilterConfigRaiSettingsArgs{
    			RaiFilters: modelarmor.TemplateFilterConfigRaiSettingsRaiFilterArray{
    				&modelarmor.TemplateFilterConfigRaiSettingsRaiFilterArgs{
    					FilterType:      pulumi.String("string"),
    					ConfidenceLevel: pulumi.String("string"),
    				},
    			},
    		},
    		SdpSettings: &modelarmor.TemplateFilterConfigSdpSettingsArgs{
    			AdvancedConfig: &modelarmor.TemplateFilterConfigSdpSettingsAdvancedConfigArgs{
    				DeidentifyTemplate: pulumi.String("string"),
    				InspectTemplate:    pulumi.String("string"),
    			},
    			BasicConfig: &modelarmor.TemplateFilterConfigSdpSettingsBasicConfigArgs{
    				FilterEnforcement: pulumi.String("string"),
    			},
    		},
    	},
    	Location:   pulumi.String("string"),
    	TemplateId: pulumi.String("string"),
    	Labels: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Project: pulumi.String("string"),
    	TemplateMetadata: &modelarmor.TemplateTemplateMetadataArgs{
    		CustomLlmResponseSafetyErrorCode:    pulumi.Int(0),
    		CustomLlmResponseSafetyErrorMessage: pulumi.String("string"),
    		CustomPromptSafetyErrorCode:         pulumi.Int(0),
    		CustomPromptSafetyErrorMessage:      pulumi.String("string"),
    		EnforcementType:                     pulumi.String("string"),
    		IgnorePartialInvocationFailures:     pulumi.Bool(false),
    		LogSanitizeOperations:               pulumi.Bool(false),
    		LogTemplateOperations:               pulumi.Bool(false),
    		MultiLanguageDetection: &modelarmor.TemplateTemplateMetadataMultiLanguageDetectionArgs{
    			EnableMultiLanguageDetection: pulumi.Bool(false),
    		},
    	},
    })
    
    var templateResource = new Template("templateResource", TemplateArgs.builder()
        .filterConfig(TemplateFilterConfigArgs.builder()
            .maliciousUriFilterSettings(TemplateFilterConfigMaliciousUriFilterSettingsArgs.builder()
                .filterEnforcement("string")
                .build())
            .piAndJailbreakFilterSettings(TemplateFilterConfigPiAndJailbreakFilterSettingsArgs.builder()
                .confidenceLevel("string")
                .filterEnforcement("string")
                .build())
            .raiSettings(TemplateFilterConfigRaiSettingsArgs.builder()
                .raiFilters(TemplateFilterConfigRaiSettingsRaiFilterArgs.builder()
                    .filterType("string")
                    .confidenceLevel("string")
                    .build())
                .build())
            .sdpSettings(TemplateFilterConfigSdpSettingsArgs.builder()
                .advancedConfig(TemplateFilterConfigSdpSettingsAdvancedConfigArgs.builder()
                    .deidentifyTemplate("string")
                    .inspectTemplate("string")
                    .build())
                .basicConfig(TemplateFilterConfigSdpSettingsBasicConfigArgs.builder()
                    .filterEnforcement("string")
                    .build())
                .build())
            .build())
        .location("string")
        .templateId("string")
        .labels(Map.of("string", "string"))
        .project("string")
        .templateMetadata(TemplateTemplateMetadataArgs.builder()
            .customLlmResponseSafetyErrorCode(0)
            .customLlmResponseSafetyErrorMessage("string")
            .customPromptSafetyErrorCode(0)
            .customPromptSafetyErrorMessage("string")
            .enforcementType("string")
            .ignorePartialInvocationFailures(false)
            .logSanitizeOperations(false)
            .logTemplateOperations(false)
            .multiLanguageDetection(TemplateTemplateMetadataMultiLanguageDetectionArgs.builder()
                .enableMultiLanguageDetection(false)
                .build())
            .build())
        .build());
    
    template_resource = gcp.modelarmor.Template("templateResource",
        filter_config={
            "malicious_uri_filter_settings": {
                "filter_enforcement": "string",
            },
            "pi_and_jailbreak_filter_settings": {
                "confidence_level": "string",
                "filter_enforcement": "string",
            },
            "rai_settings": {
                "rai_filters": [{
                    "filter_type": "string",
                    "confidence_level": "string",
                }],
            },
            "sdp_settings": {
                "advanced_config": {
                    "deidentify_template": "string",
                    "inspect_template": "string",
                },
                "basic_config": {
                    "filter_enforcement": "string",
                },
            },
        },
        location="string",
        template_id="string",
        labels={
            "string": "string",
        },
        project="string",
        template_metadata={
            "custom_llm_response_safety_error_code": 0,
            "custom_llm_response_safety_error_message": "string",
            "custom_prompt_safety_error_code": 0,
            "custom_prompt_safety_error_message": "string",
            "enforcement_type": "string",
            "ignore_partial_invocation_failures": False,
            "log_sanitize_operations": False,
            "log_template_operations": False,
            "multi_language_detection": {
                "enable_multi_language_detection": False,
            },
        })
    
    const templateResource = new gcp.modelarmor.Template("templateResource", {
        filterConfig: {
            maliciousUriFilterSettings: {
                filterEnforcement: "string",
            },
            piAndJailbreakFilterSettings: {
                confidenceLevel: "string",
                filterEnforcement: "string",
            },
            raiSettings: {
                raiFilters: [{
                    filterType: "string",
                    confidenceLevel: "string",
                }],
            },
            sdpSettings: {
                advancedConfig: {
                    deidentifyTemplate: "string",
                    inspectTemplate: "string",
                },
                basicConfig: {
                    filterEnforcement: "string",
                },
            },
        },
        location: "string",
        templateId: "string",
        labels: {
            string: "string",
        },
        project: "string",
        templateMetadata: {
            customLlmResponseSafetyErrorCode: 0,
            customLlmResponseSafetyErrorMessage: "string",
            customPromptSafetyErrorCode: 0,
            customPromptSafetyErrorMessage: "string",
            enforcementType: "string",
            ignorePartialInvocationFailures: false,
            logSanitizeOperations: false,
            logTemplateOperations: false,
            multiLanguageDetection: {
                enableMultiLanguageDetection: false,
            },
        },
    });
    
    type: gcp:modelarmor:Template
    properties:
        filterConfig:
            maliciousUriFilterSettings:
                filterEnforcement: string
            piAndJailbreakFilterSettings:
                confidenceLevel: string
                filterEnforcement: string
            raiSettings:
                raiFilters:
                    - confidenceLevel: string
                      filterType: string
            sdpSettings:
                advancedConfig:
                    deidentifyTemplate: string
                    inspectTemplate: string
                basicConfig:
                    filterEnforcement: string
        labels:
            string: string
        location: string
        project: string
        templateId: string
        templateMetadata:
            customLlmResponseSafetyErrorCode: 0
            customLlmResponseSafetyErrorMessage: string
            customPromptSafetyErrorCode: 0
            customPromptSafetyErrorMessage: string
            enforcementType: string
            ignorePartialInvocationFailures: false
            logSanitizeOperations: false
            logTemplateOperations: false
            multiLanguageDetection:
                enableMultiLanguageDetection: false
    

    Template Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The Template resource accepts the following input properties:

    FilterConfig TemplateFilterConfig
    Filters configuration. Structure is documented below.
    Location string
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    TemplateId string
    Id of the requesting object If auto-generating Id server-side, remove this field and template_id from the method_signature of Create RPC
    Labels Dictionary<string, string>
    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 effective_labels for all of the labels present on the resource.
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    TemplateMetadata TemplateTemplateMetadata
    Message describing TemplateMetadata Structure is documented below.
    FilterConfig TemplateFilterConfigArgs
    Filters configuration. Structure is documented below.
    Location string
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    TemplateId string
    Id of the requesting object If auto-generating Id server-side, remove this field and template_id from the method_signature of Create RPC
    Labels map[string]string
    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 effective_labels for all of the labels present on the resource.
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    TemplateMetadata TemplateTemplateMetadataArgs
    Message describing TemplateMetadata Structure is documented below.
    filterConfig TemplateFilterConfig
    Filters configuration. Structure is documented below.
    location String
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    templateId String
    Id of the requesting object If auto-generating Id server-side, remove this field and template_id from the method_signature of Create RPC
    labels Map<String,String>
    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 effective_labels for all of the labels present on the resource.
    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    templateMetadata TemplateTemplateMetadata
    Message describing TemplateMetadata Structure is documented below.
    filterConfig TemplateFilterConfig
    Filters configuration. Structure is documented below.
    location string
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    templateId string
    Id of the requesting object If auto-generating Id server-side, remove this field and template_id from the method_signature of Create RPC
    labels {[key: string]: string}
    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 effective_labels for all of the labels present on the resource.
    project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    templateMetadata TemplateTemplateMetadata
    Message describing TemplateMetadata Structure is documented below.
    filter_config TemplateFilterConfigArgs
    Filters configuration. Structure is documented below.
    location str
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    template_id str
    Id of the requesting object If auto-generating Id server-side, remove this field and template_id from the method_signature of Create RPC
    labels Mapping[str, str]
    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 effective_labels for all of the labels present on the resource.
    project str
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    template_metadata TemplateTemplateMetadataArgs
    Message describing TemplateMetadata Structure is documented below.
    filterConfig Property Map
    Filters configuration. Structure is documented below.
    location String
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    templateId String
    Id of the requesting object If auto-generating Id server-side, remove this field and template_id from the method_signature of Create RPC
    labels Map<String>
    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 effective_labels for all of the labels present on the resource.
    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    templateMetadata Property Map
    Message describing TemplateMetadata Structure is documented below.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Template resource produces the following output properties:

    CreateTime string
    Create time stamp
    EffectiveLabels Dictionary<string, string>
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Identifier. name of resource
    PulumiLabels Dictionary<string, string>
    The combination of labels configured directly on the resource and default labels configured on the provider.
    UpdateTime string
    Update time stamp
    CreateTime string
    Create time stamp
    EffectiveLabels map[string]string
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Identifier. name of resource
    PulumiLabels map[string]string
    The combination of labels configured directly on the resource and default labels configured on the provider.
    UpdateTime string
    Update time stamp
    createTime String
    Create time stamp
    effectiveLabels Map<String,String>
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Identifier. name of resource
    pulumiLabels Map<String,String>
    The combination of labels configured directly on the resource and default labels configured on the provider.
    updateTime String
    Update time stamp
    createTime string
    Create time stamp
    effectiveLabels {[key: string]: string}
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    Identifier. name of resource
    pulumiLabels {[key: string]: string}
    The combination of labels configured directly on the resource and default labels configured on the provider.
    updateTime string
    Update time stamp
    create_time str
    Create time stamp
    effective_labels Mapping[str, str]
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    Identifier. name of resource
    pulumi_labels Mapping[str, str]
    The combination of labels configured directly on the resource and default labels configured on the provider.
    update_time str
    Update time stamp
    createTime String
    Create time stamp
    effectiveLabels Map<String>
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Identifier. name of resource
    pulumiLabels Map<String>
    The combination of labels configured directly on the resource and default labels configured on the provider.
    updateTime String
    Update time stamp

    Look up Existing Template Resource

    Get an existing Template resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: TemplateState, opts?: CustomResourceOptions): Template
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            create_time: Optional[str] = None,
            effective_labels: Optional[Mapping[str, str]] = None,
            filter_config: Optional[TemplateFilterConfigArgs] = None,
            labels: Optional[Mapping[str, str]] = None,
            location: Optional[str] = None,
            name: Optional[str] = None,
            project: Optional[str] = None,
            pulumi_labels: Optional[Mapping[str, str]] = None,
            template_id: Optional[str] = None,
            template_metadata: Optional[TemplateTemplateMetadataArgs] = None,
            update_time: Optional[str] = None) -> Template
    func GetTemplate(ctx *Context, name string, id IDInput, state *TemplateState, opts ...ResourceOption) (*Template, error)
    public static Template Get(string name, Input<string> id, TemplateState? state, CustomResourceOptions? opts = null)
    public static Template get(String name, Output<String> id, TemplateState state, CustomResourceOptions options)
    resources:  _:    type: gcp:modelarmor:Template    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    CreateTime string
    Create time stamp
    EffectiveLabels Dictionary<string, string>
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    FilterConfig TemplateFilterConfig
    Filters configuration. Structure is documented below.
    Labels Dictionary<string, string>
    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 effective_labels for all of the labels present on the resource.
    Location string
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    Name string
    Identifier. name of resource
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    PulumiLabels Dictionary<string, string>
    The combination of labels configured directly on the resource and default labels configured on the provider.
    TemplateId string
    Id of the requesting object If auto-generating Id server-side, remove this field and template_id from the method_signature of Create RPC
    TemplateMetadata TemplateTemplateMetadata
    Message describing TemplateMetadata Structure is documented below.
    UpdateTime string
    Update time stamp
    CreateTime string
    Create time stamp
    EffectiveLabels map[string]string
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    FilterConfig TemplateFilterConfigArgs
    Filters configuration. Structure is documented below.
    Labels map[string]string
    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 effective_labels for all of the labels present on the resource.
    Location string
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    Name string
    Identifier. name of resource
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    PulumiLabels map[string]string
    The combination of labels configured directly on the resource and default labels configured on the provider.
    TemplateId string
    Id of the requesting object If auto-generating Id server-side, remove this field and template_id from the method_signature of Create RPC
    TemplateMetadata TemplateTemplateMetadataArgs
    Message describing TemplateMetadata Structure is documented below.
    UpdateTime string
    Update time stamp
    createTime String
    Create time stamp
    effectiveLabels Map<String,String>
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    filterConfig TemplateFilterConfig
    Filters configuration. Structure is documented below.
    labels Map<String,String>
    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 effective_labels for all of the labels present on the resource.
    location String
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    name String
    Identifier. name of resource
    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    pulumiLabels Map<String,String>
    The combination of labels configured directly on the resource and default labels configured on the provider.
    templateId String
    Id of the requesting object If auto-generating Id server-side, remove this field and template_id from the method_signature of Create RPC
    templateMetadata TemplateTemplateMetadata
    Message describing TemplateMetadata Structure is documented below.
    updateTime String
    Update time stamp
    createTime string
    Create time stamp
    effectiveLabels {[key: string]: string}
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    filterConfig TemplateFilterConfig
    Filters configuration. Structure is documented below.
    labels {[key: string]: string}
    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 effective_labels for all of the labels present on the resource.
    location string
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    name string
    Identifier. name of resource
    project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    pulumiLabels {[key: string]: string}
    The combination of labels configured directly on the resource and default labels configured on the provider.
    templateId string
    Id of the requesting object If auto-generating Id server-side, remove this field and template_id from the method_signature of Create RPC
    templateMetadata TemplateTemplateMetadata
    Message describing TemplateMetadata Structure is documented below.
    updateTime string
    Update time stamp
    create_time str
    Create time stamp
    effective_labels Mapping[str, str]
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    filter_config TemplateFilterConfigArgs
    Filters configuration. Structure is documented below.
    labels Mapping[str, str]
    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 effective_labels for all of the labels present on the resource.
    location str
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    name str
    Identifier. name of resource
    project str
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    pulumi_labels Mapping[str, str]
    The combination of labels configured directly on the resource and default labels configured on the provider.
    template_id str
    Id of the requesting object If auto-generating Id server-side, remove this field and template_id from the method_signature of Create RPC
    template_metadata TemplateTemplateMetadataArgs
    Message describing TemplateMetadata Structure is documented below.
    update_time str
    Update time stamp
    createTime String
    Create time stamp
    effectiveLabels Map<String>
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    filterConfig Property Map
    Filters configuration. Structure is documented below.
    labels Map<String>
    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 effective_labels for all of the labels present on the resource.
    location String
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    name String
    Identifier. name of resource
    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    pulumiLabels Map<String>
    The combination of labels configured directly on the resource and default labels configured on the provider.
    templateId String
    Id of the requesting object If auto-generating Id server-side, remove this field and template_id from the method_signature of Create RPC
    templateMetadata Property Map
    Message describing TemplateMetadata Structure is documented below.
    updateTime String
    Update time stamp

    Supporting Types

    TemplateFilterConfig, TemplateFilterConfigArgs

    MaliciousUriFilterSettings TemplateFilterConfigMaliciousUriFilterSettings
    Malicious URI filter settings. Structure is documented below.
    PiAndJailbreakFilterSettings TemplateFilterConfigPiAndJailbreakFilterSettings
    Prompt injection and Jailbreak Filter settings. Structure is documented below.
    RaiSettings TemplateFilterConfigRaiSettings
    Responsible AI Filter settings. Structure is documented below.
    SdpSettings TemplateFilterConfigSdpSettings
    Sensitive Data Protection settings. Structure is documented below.
    MaliciousUriFilterSettings TemplateFilterConfigMaliciousUriFilterSettings
    Malicious URI filter settings. Structure is documented below.
    PiAndJailbreakFilterSettings TemplateFilterConfigPiAndJailbreakFilterSettings
    Prompt injection and Jailbreak Filter settings. Structure is documented below.
    RaiSettings TemplateFilterConfigRaiSettings
    Responsible AI Filter settings. Structure is documented below.
    SdpSettings TemplateFilterConfigSdpSettings
    Sensitive Data Protection settings. Structure is documented below.
    maliciousUriFilterSettings TemplateFilterConfigMaliciousUriFilterSettings
    Malicious URI filter settings. Structure is documented below.
    piAndJailbreakFilterSettings TemplateFilterConfigPiAndJailbreakFilterSettings
    Prompt injection and Jailbreak Filter settings. Structure is documented below.
    raiSettings TemplateFilterConfigRaiSettings
    Responsible AI Filter settings. Structure is documented below.
    sdpSettings TemplateFilterConfigSdpSettings
    Sensitive Data Protection settings. Structure is documented below.
    maliciousUriFilterSettings TemplateFilterConfigMaliciousUriFilterSettings
    Malicious URI filter settings. Structure is documented below.
    piAndJailbreakFilterSettings TemplateFilterConfigPiAndJailbreakFilterSettings
    Prompt injection and Jailbreak Filter settings. Structure is documented below.
    raiSettings TemplateFilterConfigRaiSettings
    Responsible AI Filter settings. Structure is documented below.
    sdpSettings TemplateFilterConfigSdpSettings
    Sensitive Data Protection settings. Structure is documented below.
    malicious_uri_filter_settings TemplateFilterConfigMaliciousUriFilterSettings
    Malicious URI filter settings. Structure is documented below.
    pi_and_jailbreak_filter_settings TemplateFilterConfigPiAndJailbreakFilterSettings
    Prompt injection and Jailbreak Filter settings. Structure is documented below.
    rai_settings TemplateFilterConfigRaiSettings
    Responsible AI Filter settings. Structure is documented below.
    sdp_settings TemplateFilterConfigSdpSettings
    Sensitive Data Protection settings. Structure is documented below.
    maliciousUriFilterSettings Property Map
    Malicious URI filter settings. Structure is documented below.
    piAndJailbreakFilterSettings Property Map
    Prompt injection and Jailbreak Filter settings. Structure is documented below.
    raiSettings Property Map
    Responsible AI Filter settings. Structure is documented below.
    sdpSettings Property Map
    Sensitive Data Protection settings. Structure is documented below.

    TemplateFilterConfigMaliciousUriFilterSettings, TemplateFilterConfigMaliciousUriFilterSettingsArgs

    FilterEnforcement string
    Tells whether the Malicious URI filter is enabled or disabled. Possible values: ENABLED DISABLED
    FilterEnforcement string
    Tells whether the Malicious URI filter is enabled or disabled. Possible values: ENABLED DISABLED
    filterEnforcement String
    Tells whether the Malicious URI filter is enabled or disabled. Possible values: ENABLED DISABLED
    filterEnforcement string
    Tells whether the Malicious URI filter is enabled or disabled. Possible values: ENABLED DISABLED
    filter_enforcement str
    Tells whether the Malicious URI filter is enabled or disabled. Possible values: ENABLED DISABLED
    filterEnforcement String
    Tells whether the Malicious URI filter is enabled or disabled. Possible values: ENABLED DISABLED

    TemplateFilterConfigPiAndJailbreakFilterSettings, TemplateFilterConfigPiAndJailbreakFilterSettingsArgs

    ConfidenceLevel string
    Possible values: LOW_AND_ABOVE MEDIUM_AND_ABOVE HIGH
    FilterEnforcement string
    Tells whether Prompt injection and Jailbreak filter is enabled or disabled. Possible values: ENABLED DISABLED
    ConfidenceLevel string
    Possible values: LOW_AND_ABOVE MEDIUM_AND_ABOVE HIGH
    FilterEnforcement string
    Tells whether Prompt injection and Jailbreak filter is enabled or disabled. Possible values: ENABLED DISABLED
    confidenceLevel String
    Possible values: LOW_AND_ABOVE MEDIUM_AND_ABOVE HIGH
    filterEnforcement String
    Tells whether Prompt injection and Jailbreak filter is enabled or disabled. Possible values: ENABLED DISABLED
    confidenceLevel string
    Possible values: LOW_AND_ABOVE MEDIUM_AND_ABOVE HIGH
    filterEnforcement string
    Tells whether Prompt injection and Jailbreak filter is enabled or disabled. Possible values: ENABLED DISABLED
    confidence_level str
    Possible values: LOW_AND_ABOVE MEDIUM_AND_ABOVE HIGH
    filter_enforcement str
    Tells whether Prompt injection and Jailbreak filter is enabled or disabled. Possible values: ENABLED DISABLED
    confidenceLevel String
    Possible values: LOW_AND_ABOVE MEDIUM_AND_ABOVE HIGH
    filterEnforcement String
    Tells whether Prompt injection and Jailbreak filter is enabled or disabled. Possible values: ENABLED DISABLED

    TemplateFilterConfigRaiSettings, TemplateFilterConfigRaiSettingsArgs

    RaiFilters List<TemplateFilterConfigRaiSettingsRaiFilter>
    List of Responsible AI filters enabled for template. Structure is documented below.
    RaiFilters []TemplateFilterConfigRaiSettingsRaiFilter
    List of Responsible AI filters enabled for template. Structure is documented below.
    raiFilters List<TemplateFilterConfigRaiSettingsRaiFilter>
    List of Responsible AI filters enabled for template. Structure is documented below.
    raiFilters TemplateFilterConfigRaiSettingsRaiFilter[]
    List of Responsible AI filters enabled for template. Structure is documented below.
    rai_filters Sequence[TemplateFilterConfigRaiSettingsRaiFilter]
    List of Responsible AI filters enabled for template. Structure is documented below.
    raiFilters List<Property Map>
    List of Responsible AI filters enabled for template. Structure is documented below.

    TemplateFilterConfigRaiSettingsRaiFilter, TemplateFilterConfigRaiSettingsRaiFilterArgs

    FilterType string
    Possible values: SEXUALLY_EXPLICIT HATE_SPEECH HARASSMENT DANGEROUS
    ConfidenceLevel string
    Possible values: LOW_AND_ABOVE MEDIUM_AND_ABOVE HIGH
    FilterType string
    Possible values: SEXUALLY_EXPLICIT HATE_SPEECH HARASSMENT DANGEROUS
    ConfidenceLevel string
    Possible values: LOW_AND_ABOVE MEDIUM_AND_ABOVE HIGH
    filterType String
    Possible values: SEXUALLY_EXPLICIT HATE_SPEECH HARASSMENT DANGEROUS
    confidenceLevel String
    Possible values: LOW_AND_ABOVE MEDIUM_AND_ABOVE HIGH
    filterType string
    Possible values: SEXUALLY_EXPLICIT HATE_SPEECH HARASSMENT DANGEROUS
    confidenceLevel string
    Possible values: LOW_AND_ABOVE MEDIUM_AND_ABOVE HIGH
    filter_type str
    Possible values: SEXUALLY_EXPLICIT HATE_SPEECH HARASSMENT DANGEROUS
    confidence_level str
    Possible values: LOW_AND_ABOVE MEDIUM_AND_ABOVE HIGH
    filterType String
    Possible values: SEXUALLY_EXPLICIT HATE_SPEECH HARASSMENT DANGEROUS
    confidenceLevel String
    Possible values: LOW_AND_ABOVE MEDIUM_AND_ABOVE HIGH

    TemplateFilterConfigSdpSettings, TemplateFilterConfigSdpSettingsArgs

    AdvancedConfig TemplateFilterConfigSdpSettingsAdvancedConfig
    Sensitive Data Protection Advanced configuration. Structure is documented below.
    BasicConfig TemplateFilterConfigSdpSettingsBasicConfig
    Sensitive Data Protection basic configuration. Structure is documented below.
    AdvancedConfig TemplateFilterConfigSdpSettingsAdvancedConfig
    Sensitive Data Protection Advanced configuration. Structure is documented below.
    BasicConfig TemplateFilterConfigSdpSettingsBasicConfig
    Sensitive Data Protection basic configuration. Structure is documented below.
    advancedConfig TemplateFilterConfigSdpSettingsAdvancedConfig
    Sensitive Data Protection Advanced configuration. Structure is documented below.
    basicConfig TemplateFilterConfigSdpSettingsBasicConfig
    Sensitive Data Protection basic configuration. Structure is documented below.
    advancedConfig TemplateFilterConfigSdpSettingsAdvancedConfig
    Sensitive Data Protection Advanced configuration. Structure is documented below.
    basicConfig TemplateFilterConfigSdpSettingsBasicConfig
    Sensitive Data Protection basic configuration. Structure is documented below.
    advanced_config TemplateFilterConfigSdpSettingsAdvancedConfig
    Sensitive Data Protection Advanced configuration. Structure is documented below.
    basic_config TemplateFilterConfigSdpSettingsBasicConfig
    Sensitive Data Protection basic configuration. Structure is documented below.
    advancedConfig Property Map
    Sensitive Data Protection Advanced configuration. Structure is documented below.
    basicConfig Property Map
    Sensitive Data Protection basic configuration. Structure is documented below.

    TemplateFilterConfigSdpSettingsAdvancedConfig, TemplateFilterConfigSdpSettingsAdvancedConfigArgs

    DeidentifyTemplate string
    Optional Sensitive Data Protection Deidentify template resource name. If provided then DeidentifyContent action is performed during Sanitization using this template and inspect template. The De-identified data will be returned in SdpDeidentifyResult. Note that all info-types present in the deidentify template must be present in inspect template. e.g. projects/{project}/locations/{location}/deidentifyTemplates/{deidentify_template}
    InspectTemplate string
    Sensitive Data Protection inspect template resource name If only inspect template is provided (de-identify template not provided), then Sensitive Data Protection InspectContent action is performed during Sanitization. All Sensitive Data Protection findings identified during inspection will be returned as SdpFinding in SdpInsepctionResult. e.g:- projects/{project}/locations/{location}/inspectTemplates/{inspect_template}
    DeidentifyTemplate string
    Optional Sensitive Data Protection Deidentify template resource name. If provided then DeidentifyContent action is performed during Sanitization using this template and inspect template. The De-identified data will be returned in SdpDeidentifyResult. Note that all info-types present in the deidentify template must be present in inspect template. e.g. projects/{project}/locations/{location}/deidentifyTemplates/{deidentify_template}
    InspectTemplate string
    Sensitive Data Protection inspect template resource name If only inspect template is provided (de-identify template not provided), then Sensitive Data Protection InspectContent action is performed during Sanitization. All Sensitive Data Protection findings identified during inspection will be returned as SdpFinding in SdpInsepctionResult. e.g:- projects/{project}/locations/{location}/inspectTemplates/{inspect_template}
    deidentifyTemplate String
    Optional Sensitive Data Protection Deidentify template resource name. If provided then DeidentifyContent action is performed during Sanitization using this template and inspect template. The De-identified data will be returned in SdpDeidentifyResult. Note that all info-types present in the deidentify template must be present in inspect template. e.g. projects/{project}/locations/{location}/deidentifyTemplates/{deidentify_template}
    inspectTemplate String
    Sensitive Data Protection inspect template resource name If only inspect template is provided (de-identify template not provided), then Sensitive Data Protection InspectContent action is performed during Sanitization. All Sensitive Data Protection findings identified during inspection will be returned as SdpFinding in SdpInsepctionResult. e.g:- projects/{project}/locations/{location}/inspectTemplates/{inspect_template}
    deidentifyTemplate string
    Optional Sensitive Data Protection Deidentify template resource name. If provided then DeidentifyContent action is performed during Sanitization using this template and inspect template. The De-identified data will be returned in SdpDeidentifyResult. Note that all info-types present in the deidentify template must be present in inspect template. e.g. projects/{project}/locations/{location}/deidentifyTemplates/{deidentify_template}
    inspectTemplate string
    Sensitive Data Protection inspect template resource name If only inspect template is provided (de-identify template not provided), then Sensitive Data Protection InspectContent action is performed during Sanitization. All Sensitive Data Protection findings identified during inspection will be returned as SdpFinding in SdpInsepctionResult. e.g:- projects/{project}/locations/{location}/inspectTemplates/{inspect_template}
    deidentify_template str
    Optional Sensitive Data Protection Deidentify template resource name. If provided then DeidentifyContent action is performed during Sanitization using this template and inspect template. The De-identified data will be returned in SdpDeidentifyResult. Note that all info-types present in the deidentify template must be present in inspect template. e.g. projects/{project}/locations/{location}/deidentifyTemplates/{deidentify_template}
    inspect_template str
    Sensitive Data Protection inspect template resource name If only inspect template is provided (de-identify template not provided), then Sensitive Data Protection InspectContent action is performed during Sanitization. All Sensitive Data Protection findings identified during inspection will be returned as SdpFinding in SdpInsepctionResult. e.g:- projects/{project}/locations/{location}/inspectTemplates/{inspect_template}
    deidentifyTemplate String
    Optional Sensitive Data Protection Deidentify template resource name. If provided then DeidentifyContent action is performed during Sanitization using this template and inspect template. The De-identified data will be returned in SdpDeidentifyResult. Note that all info-types present in the deidentify template must be present in inspect template. e.g. projects/{project}/locations/{location}/deidentifyTemplates/{deidentify_template}
    inspectTemplate String
    Sensitive Data Protection inspect template resource name If only inspect template is provided (de-identify template not provided), then Sensitive Data Protection InspectContent action is performed during Sanitization. All Sensitive Data Protection findings identified during inspection will be returned as SdpFinding in SdpInsepctionResult. e.g:- projects/{project}/locations/{location}/inspectTemplates/{inspect_template}

    TemplateFilterConfigSdpSettingsBasicConfig, TemplateFilterConfigSdpSettingsBasicConfigArgs

    FilterEnforcement string
    Tells whether the Sensitive Data Protection basic config is enabled or disabled. Possible values: ENABLED DISABLED
    FilterEnforcement string
    Tells whether the Sensitive Data Protection basic config is enabled or disabled. Possible values: ENABLED DISABLED
    filterEnforcement String
    Tells whether the Sensitive Data Protection basic config is enabled or disabled. Possible values: ENABLED DISABLED
    filterEnforcement string
    Tells whether the Sensitive Data Protection basic config is enabled or disabled. Possible values: ENABLED DISABLED
    filter_enforcement str
    Tells whether the Sensitive Data Protection basic config is enabled or disabled. Possible values: ENABLED DISABLED
    filterEnforcement String
    Tells whether the Sensitive Data Protection basic config is enabled or disabled. Possible values: ENABLED DISABLED

    TemplateTemplateMetadata, TemplateTemplateMetadataArgs

    CustomLlmResponseSafetyErrorCode int
    Indicates the custom error code set by the user to be returned to the end user if the LLM response trips Model Armor filters.
    CustomLlmResponseSafetyErrorMessage string
    Indicates the custom error message set by the user to be returned to the end user if the LLM response trips Model Armor filters.
    CustomPromptSafetyErrorCode int
    Indicates the custom error code set by the user to be returned to the end user by the service extension if the prompt trips Model Armor filters.
    CustomPromptSafetyErrorMessage string
    Indicates the custom error message set by the user to be returned to the end user if the prompt trips Model Armor filters.
    EnforcementType string
    Possible values: INSPECT_ONLY INSPECT_AND_BLOCK
    IgnorePartialInvocationFailures bool
    If true, partial detector failures should be ignored.
    LogSanitizeOperations bool
    If true, log sanitize operations.
    LogTemplateOperations bool
    If true, log template crud operations.
    MultiLanguageDetection TemplateTemplateMetadataMultiLanguageDetection
    Metadata to enable multi language detection via template. Structure is documented below.
    CustomLlmResponseSafetyErrorCode int
    Indicates the custom error code set by the user to be returned to the end user if the LLM response trips Model Armor filters.
    CustomLlmResponseSafetyErrorMessage string
    Indicates the custom error message set by the user to be returned to the end user if the LLM response trips Model Armor filters.
    CustomPromptSafetyErrorCode int
    Indicates the custom error code set by the user to be returned to the end user by the service extension if the prompt trips Model Armor filters.
    CustomPromptSafetyErrorMessage string
    Indicates the custom error message set by the user to be returned to the end user if the prompt trips Model Armor filters.
    EnforcementType string
    Possible values: INSPECT_ONLY INSPECT_AND_BLOCK
    IgnorePartialInvocationFailures bool
    If true, partial detector failures should be ignored.
    LogSanitizeOperations bool
    If true, log sanitize operations.
    LogTemplateOperations bool
    If true, log template crud operations.
    MultiLanguageDetection TemplateTemplateMetadataMultiLanguageDetection
    Metadata to enable multi language detection via template. Structure is documented below.
    customLlmResponseSafetyErrorCode Integer
    Indicates the custom error code set by the user to be returned to the end user if the LLM response trips Model Armor filters.
    customLlmResponseSafetyErrorMessage String
    Indicates the custom error message set by the user to be returned to the end user if the LLM response trips Model Armor filters.
    customPromptSafetyErrorCode Integer
    Indicates the custom error code set by the user to be returned to the end user by the service extension if the prompt trips Model Armor filters.
    customPromptSafetyErrorMessage String
    Indicates the custom error message set by the user to be returned to the end user if the prompt trips Model Armor filters.
    enforcementType String
    Possible values: INSPECT_ONLY INSPECT_AND_BLOCK
    ignorePartialInvocationFailures Boolean
    If true, partial detector failures should be ignored.
    logSanitizeOperations Boolean
    If true, log sanitize operations.
    logTemplateOperations Boolean
    If true, log template crud operations.
    multiLanguageDetection TemplateTemplateMetadataMultiLanguageDetection
    Metadata to enable multi language detection via template. Structure is documented below.
    customLlmResponseSafetyErrorCode number
    Indicates the custom error code set by the user to be returned to the end user if the LLM response trips Model Armor filters.
    customLlmResponseSafetyErrorMessage string
    Indicates the custom error message set by the user to be returned to the end user if the LLM response trips Model Armor filters.
    customPromptSafetyErrorCode number
    Indicates the custom error code set by the user to be returned to the end user by the service extension if the prompt trips Model Armor filters.
    customPromptSafetyErrorMessage string
    Indicates the custom error message set by the user to be returned to the end user if the prompt trips Model Armor filters.
    enforcementType string
    Possible values: INSPECT_ONLY INSPECT_AND_BLOCK
    ignorePartialInvocationFailures boolean
    If true, partial detector failures should be ignored.
    logSanitizeOperations boolean
    If true, log sanitize operations.
    logTemplateOperations boolean
    If true, log template crud operations.
    multiLanguageDetection TemplateTemplateMetadataMultiLanguageDetection
    Metadata to enable multi language detection via template. Structure is documented below.
    custom_llm_response_safety_error_code int
    Indicates the custom error code set by the user to be returned to the end user if the LLM response trips Model Armor filters.
    custom_llm_response_safety_error_message str
    Indicates the custom error message set by the user to be returned to the end user if the LLM response trips Model Armor filters.
    custom_prompt_safety_error_code int
    Indicates the custom error code set by the user to be returned to the end user by the service extension if the prompt trips Model Armor filters.
    custom_prompt_safety_error_message str
    Indicates the custom error message set by the user to be returned to the end user if the prompt trips Model Armor filters.
    enforcement_type str
    Possible values: INSPECT_ONLY INSPECT_AND_BLOCK
    ignore_partial_invocation_failures bool
    If true, partial detector failures should be ignored.
    log_sanitize_operations bool
    If true, log sanitize operations.
    log_template_operations bool
    If true, log template crud operations.
    multi_language_detection TemplateTemplateMetadataMultiLanguageDetection
    Metadata to enable multi language detection via template. Structure is documented below.
    customLlmResponseSafetyErrorCode Number
    Indicates the custom error code set by the user to be returned to the end user if the LLM response trips Model Armor filters.
    customLlmResponseSafetyErrorMessage String
    Indicates the custom error message set by the user to be returned to the end user if the LLM response trips Model Armor filters.
    customPromptSafetyErrorCode Number
    Indicates the custom error code set by the user to be returned to the end user by the service extension if the prompt trips Model Armor filters.
    customPromptSafetyErrorMessage String
    Indicates the custom error message set by the user to be returned to the end user if the prompt trips Model Armor filters.
    enforcementType String
    Possible values: INSPECT_ONLY INSPECT_AND_BLOCK
    ignorePartialInvocationFailures Boolean
    If true, partial detector failures should be ignored.
    logSanitizeOperations Boolean
    If true, log sanitize operations.
    logTemplateOperations Boolean
    If true, log template crud operations.
    multiLanguageDetection Property Map
    Metadata to enable multi language detection via template. Structure is documented below.

    TemplateTemplateMetadataMultiLanguageDetection, TemplateTemplateMetadataMultiLanguageDetectionArgs

    EnableMultiLanguageDetection bool
    If true, multi language detection will be enabled.
    EnableMultiLanguageDetection bool
    If true, multi language detection will be enabled.
    enableMultiLanguageDetection Boolean
    If true, multi language detection will be enabled.
    enableMultiLanguageDetection boolean
    If true, multi language detection will be enabled.
    enable_multi_language_detection bool
    If true, multi language detection will be enabled.
    enableMultiLanguageDetection Boolean
    If true, multi language detection will be enabled.

    Package Details

    Repository
    Google Cloud (GCP) Classic pulumi/pulumi-gcp
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the google-beta Terraform Provider.
    gcp logo
    Google Cloud v8.39.0 published on Tuesday, Jul 22, 2025 by Pulumi