gcp.modelarmor.Template
Explore with Pulumi AI
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:
- Filter
Config TemplateFilter Config - 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. - Template
Id 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.
- Template
Metadata TemplateTemplate Metadata - Message describing TemplateMetadata Structure is documented below.
- Filter
Config TemplateFilter Config Args - 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. - Template
Id 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.
- Template
Metadata TemplateTemplate Metadata Args - Message describing TemplateMetadata Structure is documented below.
- filter
Config TemplateFilter Config - 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. - template
Id 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.
- template
Metadata TemplateTemplate Metadata - Message describing TemplateMetadata Structure is documented below.
- filter
Config TemplateFilter Config - 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. - template
Id 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.
- template
Metadata TemplateTemplate Metadata - Message describing TemplateMetadata Structure is documented below.
- filter_
config TemplateFilter Config Args - 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 TemplateTemplate Metadata Args - Message describing TemplateMetadata Structure is documented below.
- filter
Config 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. - template
Id 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.
- template
Metadata 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:
- Create
Time string - Create time stamp
- Effective
Labels 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
- Pulumi
Labels Dictionary<string, string> - The combination of labels configured directly on the resource and default labels configured on the provider.
- Update
Time string - Update time stamp
- Create
Time string - Create time stamp
- Effective
Labels 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
- Pulumi
Labels map[string]string - The combination of labels configured directly on the resource and default labels configured on the provider.
- Update
Time string - Update time stamp
- create
Time String - Create time stamp
- effective
Labels 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
- pulumi
Labels Map<String,String> - The combination of labels configured directly on the resource and default labels configured on the provider.
- update
Time String - Update time stamp
- create
Time string - Create time stamp
- effective
Labels {[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
- pulumi
Labels {[key: string]: string} - The combination of labels configured directly on the resource and default labels configured on the provider.
- update
Time 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
- create
Time String - Create time stamp
- effective
Labels 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
- pulumi
Labels Map<String> - The combination of labels configured directly on the resource and default labels configured on the provider.
- update
Time 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.
- Create
Time string - Create time stamp
- Effective
Labels 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.
- Filter
Config TemplateFilter Config - 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.
- Pulumi
Labels Dictionary<string, string> - The combination of labels configured directly on the resource and default labels configured on the provider.
- Template
Id 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
- Template
Metadata TemplateTemplate Metadata - Message describing TemplateMetadata Structure is documented below.
- Update
Time string - Update time stamp
- Create
Time string - Create time stamp
- Effective
Labels 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.
- Filter
Config TemplateFilter Config Args - 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.
- Pulumi
Labels map[string]string - The combination of labels configured directly on the resource and default labels configured on the provider.
- Template
Id 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
- Template
Metadata TemplateTemplate Metadata Args - Message describing TemplateMetadata Structure is documented below.
- Update
Time string - Update time stamp
- create
Time String - Create time stamp
- effective
Labels 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.
- filter
Config TemplateFilter Config - 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.
- pulumi
Labels Map<String,String> - The combination of labels configured directly on the resource and default labels configured on the provider.
- template
Id 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
- template
Metadata TemplateTemplate Metadata - Message describing TemplateMetadata Structure is documented below.
- update
Time String - Update time stamp
- create
Time string - Create time stamp
- effective
Labels {[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.
- filter
Config TemplateFilter Config - 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.
- pulumi
Labels {[key: string]: string} - The combination of labels configured directly on the resource and default labels configured on the provider.
- template
Id 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
- template
Metadata TemplateTemplate Metadata - Message describing TemplateMetadata Structure is documented below.
- update
Time 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 TemplateFilter Config Args - 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 TemplateTemplate Metadata Args - Message describing TemplateMetadata Structure is documented below.
- update_
time str - Update time stamp
- create
Time String - Create time stamp
- effective
Labels Map<String> - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- filter
Config 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.
- pulumi
Labels Map<String> - The combination of labels configured directly on the resource and default labels configured on the provider.
- template
Id 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
- template
Metadata Property Map - Message describing TemplateMetadata Structure is documented below.
- update
Time String - Update time stamp
Supporting Types
TemplateFilterConfig, TemplateFilterConfigArgs
- Malicious
Uri TemplateFilter Settings Filter Config Malicious Uri Filter Settings - Malicious URI filter settings. Structure is documented below.
- Pi
And TemplateJailbreak Filter Settings Filter Config Pi And Jailbreak Filter Settings - Prompt injection and Jailbreak Filter settings. Structure is documented below.
- Rai
Settings TemplateFilter Config Rai Settings - Responsible AI Filter settings. Structure is documented below.
- Sdp
Settings TemplateFilter Config Sdp Settings - Sensitive Data Protection settings. Structure is documented below.
- Malicious
Uri TemplateFilter Settings Filter Config Malicious Uri Filter Settings - Malicious URI filter settings. Structure is documented below.
- Pi
And TemplateJailbreak Filter Settings Filter Config Pi And Jailbreak Filter Settings - Prompt injection and Jailbreak Filter settings. Structure is documented below.
- Rai
Settings TemplateFilter Config Rai Settings - Responsible AI Filter settings. Structure is documented below.
- Sdp
Settings TemplateFilter Config Sdp Settings - Sensitive Data Protection settings. Structure is documented below.
- malicious
Uri TemplateFilter Settings Filter Config Malicious Uri Filter Settings - Malicious URI filter settings. Structure is documented below.
- pi
And TemplateJailbreak Filter Settings Filter Config Pi And Jailbreak Filter Settings - Prompt injection and Jailbreak Filter settings. Structure is documented below.
- rai
Settings TemplateFilter Config Rai Settings - Responsible AI Filter settings. Structure is documented below.
- sdp
Settings TemplateFilter Config Sdp Settings - Sensitive Data Protection settings. Structure is documented below.
- malicious
Uri TemplateFilter Settings Filter Config Malicious Uri Filter Settings - Malicious URI filter settings. Structure is documented below.
- pi
And TemplateJailbreak Filter Settings Filter Config Pi And Jailbreak Filter Settings - Prompt injection and Jailbreak Filter settings. Structure is documented below.
- rai
Settings TemplateFilter Config Rai Settings - Responsible AI Filter settings. Structure is documented below.
- sdp
Settings TemplateFilter Config Sdp Settings - Sensitive Data Protection settings. Structure is documented below.
- malicious_
uri_ Templatefilter_ settings Filter Config Malicious Uri Filter Settings - Malicious URI filter settings. Structure is documented below.
- pi_
and_ Templatejailbreak_ filter_ settings Filter Config Pi And Jailbreak Filter Settings - Prompt injection and Jailbreak Filter settings. Structure is documented below.
- rai_
settings TemplateFilter Config Rai Settings - Responsible AI Filter settings. Structure is documented below.
- sdp_
settings TemplateFilter Config Sdp Settings - Sensitive Data Protection settings. Structure is documented below.
- malicious
Uri Property MapFilter Settings - Malicious URI filter settings. Structure is documented below.
- pi
And Property MapJailbreak Filter Settings - Prompt injection and Jailbreak Filter settings. Structure is documented below.
- rai
Settings Property Map - Responsible AI Filter settings. Structure is documented below.
- sdp
Settings Property Map - Sensitive Data Protection settings. Structure is documented below.
TemplateFilterConfigMaliciousUriFilterSettings, TemplateFilterConfigMaliciousUriFilterSettingsArgs
- Filter
Enforcement string - Tells whether the Malicious URI filter is enabled or disabled. Possible values: ENABLED DISABLED
- Filter
Enforcement string - Tells whether the Malicious URI filter is enabled or disabled. Possible values: ENABLED DISABLED
- filter
Enforcement String - Tells whether the Malicious URI filter is enabled or disabled. Possible values: ENABLED DISABLED
- filter
Enforcement 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
- filter
Enforcement String - Tells whether the Malicious URI filter is enabled or disabled. Possible values: ENABLED DISABLED
TemplateFilterConfigPiAndJailbreakFilterSettings, TemplateFilterConfigPiAndJailbreakFilterSettingsArgs
- Confidence
Level string - Possible values: LOW_AND_ABOVE MEDIUM_AND_ABOVE HIGH
- Filter
Enforcement string - Tells whether Prompt injection and Jailbreak filter is enabled or disabled. Possible values: ENABLED DISABLED
- Confidence
Level string - Possible values: LOW_AND_ABOVE MEDIUM_AND_ABOVE HIGH
- Filter
Enforcement string - Tells whether Prompt injection and Jailbreak filter is enabled or disabled. Possible values: ENABLED DISABLED
- confidence
Level String - Possible values: LOW_AND_ABOVE MEDIUM_AND_ABOVE HIGH
- filter
Enforcement String - Tells whether Prompt injection and Jailbreak filter is enabled or disabled. Possible values: ENABLED DISABLED
- confidence
Level string - Possible values: LOW_AND_ABOVE MEDIUM_AND_ABOVE HIGH
- filter
Enforcement 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
- confidence
Level String - Possible values: LOW_AND_ABOVE MEDIUM_AND_ABOVE HIGH
- filter
Enforcement String - Tells whether Prompt injection and Jailbreak filter is enabled or disabled. Possible values: ENABLED DISABLED
TemplateFilterConfigRaiSettings, TemplateFilterConfigRaiSettingsArgs
- Rai
Filters List<TemplateFilter Config Rai Settings Rai Filter> - List of Responsible AI filters enabled for template. Structure is documented below.
- Rai
Filters []TemplateFilter Config Rai Settings Rai Filter - List of Responsible AI filters enabled for template. Structure is documented below.
- rai
Filters List<TemplateFilter Config Rai Settings Rai Filter> - List of Responsible AI filters enabled for template. Structure is documented below.
- rai
Filters TemplateFilter Config Rai Settings Rai Filter[] - List of Responsible AI filters enabled for template. Structure is documented below.
- rai_
filters Sequence[TemplateFilter Config Rai Settings Rai Filter] - List of Responsible AI filters enabled for template. Structure is documented below.
- rai
Filters List<Property Map> - List of Responsible AI filters enabled for template. Structure is documented below.
TemplateFilterConfigRaiSettingsRaiFilter, TemplateFilterConfigRaiSettingsRaiFilterArgs
- Filter
Type string - Possible values: SEXUALLY_EXPLICIT HATE_SPEECH HARASSMENT DANGEROUS
- Confidence
Level string - Possible values: LOW_AND_ABOVE MEDIUM_AND_ABOVE HIGH
- Filter
Type string - Possible values: SEXUALLY_EXPLICIT HATE_SPEECH HARASSMENT DANGEROUS
- Confidence
Level string - Possible values: LOW_AND_ABOVE MEDIUM_AND_ABOVE HIGH
- filter
Type String - Possible values: SEXUALLY_EXPLICIT HATE_SPEECH HARASSMENT DANGEROUS
- confidence
Level String - Possible values: LOW_AND_ABOVE MEDIUM_AND_ABOVE HIGH
- filter
Type string - Possible values: SEXUALLY_EXPLICIT HATE_SPEECH HARASSMENT DANGEROUS
- confidence
Level 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
- filter
Type String - Possible values: SEXUALLY_EXPLICIT HATE_SPEECH HARASSMENT DANGEROUS
- confidence
Level String - Possible values: LOW_AND_ABOVE MEDIUM_AND_ABOVE HIGH
TemplateFilterConfigSdpSettings, TemplateFilterConfigSdpSettingsArgs
- Advanced
Config TemplateFilter Config Sdp Settings Advanced Config - Sensitive Data Protection Advanced configuration. Structure is documented below.
- Basic
Config TemplateFilter Config Sdp Settings Basic Config - Sensitive Data Protection basic configuration. Structure is documented below.
- Advanced
Config TemplateFilter Config Sdp Settings Advanced Config - Sensitive Data Protection Advanced configuration. Structure is documented below.
- Basic
Config TemplateFilter Config Sdp Settings Basic Config - Sensitive Data Protection basic configuration. Structure is documented below.
- advanced
Config TemplateFilter Config Sdp Settings Advanced Config - Sensitive Data Protection Advanced configuration. Structure is documented below.
- basic
Config TemplateFilter Config Sdp Settings Basic Config - Sensitive Data Protection basic configuration. Structure is documented below.
- advanced
Config TemplateFilter Config Sdp Settings Advanced Config - Sensitive Data Protection Advanced configuration. Structure is documented below.
- basic
Config TemplateFilter Config Sdp Settings Basic Config - Sensitive Data Protection basic configuration. Structure is documented below.
- advanced_
config TemplateFilter Config Sdp Settings Advanced Config - Sensitive Data Protection Advanced configuration. Structure is documented below.
- basic_
config TemplateFilter Config Sdp Settings Basic Config - Sensitive Data Protection basic configuration. Structure is documented below.
- advanced
Config Property Map - Sensitive Data Protection Advanced configuration. Structure is documented below.
- basic
Config Property Map - Sensitive Data Protection basic configuration. Structure is documented below.
TemplateFilterConfigSdpSettingsAdvancedConfig, TemplateFilterConfigSdpSettingsAdvancedConfigArgs
- Deidentify
Template 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}
- Inspect
Template 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 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}
- Inspect
Template 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 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}
- inspect
Template 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 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}
- inspect
Template 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}
- deidentify
Template 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}
- inspect
Template 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
- Filter
Enforcement string - Tells whether the Sensitive Data Protection basic config is enabled or disabled. Possible values: ENABLED DISABLED
- Filter
Enforcement string - Tells whether the Sensitive Data Protection basic config is enabled or disabled. Possible values: ENABLED DISABLED
- filter
Enforcement String - Tells whether the Sensitive Data Protection basic config is enabled or disabled. Possible values: ENABLED DISABLED
- filter
Enforcement 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
- filter
Enforcement String - Tells whether the Sensitive Data Protection basic config is enabled or disabled. Possible values: ENABLED DISABLED
TemplateTemplateMetadata, TemplateTemplateMetadataArgs
- Custom
Llm intResponse Safety Error Code - 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 stringResponse Safety Error Message - 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 intSafety Error Code - 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 stringSafety Error Message - 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 string - Possible values: INSPECT_ONLY INSPECT_AND_BLOCK
- Ignore
Partial boolInvocation Failures - If true, partial detector failures should be ignored.
- Log
Sanitize boolOperations - If true, log sanitize operations.
- Log
Template boolOperations - If true, log template crud operations.
- Multi
Language TemplateDetection Template Metadata Multi Language Detection - Metadata to enable multi language detection via template. Structure is documented below.
- Custom
Llm intResponse Safety Error Code - 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 stringResponse Safety Error Message - 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 intSafety Error Code - 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 stringSafety Error Message - 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 string - Possible values: INSPECT_ONLY INSPECT_AND_BLOCK
- Ignore
Partial boolInvocation Failures - If true, partial detector failures should be ignored.
- Log
Sanitize boolOperations - If true, log sanitize operations.
- Log
Template boolOperations - If true, log template crud operations.
- Multi
Language TemplateDetection Template Metadata Multi Language Detection - Metadata to enable multi language detection via template. Structure is documented below.
- custom
Llm IntegerResponse Safety Error Code - 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 StringResponse Safety Error Message - 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 IntegerSafety Error Code - 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 StringSafety Error Message - 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 String - Possible values: INSPECT_ONLY INSPECT_AND_BLOCK
- ignore
Partial BooleanInvocation Failures - If true, partial detector failures should be ignored.
- log
Sanitize BooleanOperations - If true, log sanitize operations.
- log
Template BooleanOperations - If true, log template crud operations.
- multi
Language TemplateDetection Template Metadata Multi Language Detection - Metadata to enable multi language detection via template. Structure is documented below.
- custom
Llm numberResponse Safety Error Code - 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 stringResponse Safety Error Message - 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 numberSafety Error Code - 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 stringSafety Error Message - 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 string - Possible values: INSPECT_ONLY INSPECT_AND_BLOCK
- ignore
Partial booleanInvocation Failures - If true, partial detector failures should be ignored.
- log
Sanitize booleanOperations - If true, log sanitize operations.
- log
Template booleanOperations - If true, log template crud operations.
- multi
Language TemplateDetection Template Metadata Multi Language Detection - Metadata to enable multi language detection via template. Structure is documented below.
- custom_
llm_ intresponse_ safety_ error_ code - 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_ strresponse_ safety_ error_ message - 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_ intsafety_ error_ code - 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_ strsafety_ error_ message - 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_ boolinvocation_ failures - If true, partial detector failures should be ignored.
- log_
sanitize_ booloperations - If true, log sanitize operations.
- log_
template_ booloperations - If true, log template crud operations.
- multi_
language_ Templatedetection Template Metadata Multi Language Detection - Metadata to enable multi language detection via template. Structure is documented below.
- custom
Llm NumberResponse Safety Error Code - 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 StringResponse Safety Error Message - 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 NumberSafety Error Code - 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 StringSafety Error Message - 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 String - Possible values: INSPECT_ONLY INSPECT_AND_BLOCK
- ignore
Partial BooleanInvocation Failures - If true, partial detector failures should be ignored.
- log
Sanitize BooleanOperations - If true, log sanitize operations.
- log
Template BooleanOperations - If true, log template crud operations.
- multi
Language Property MapDetection - Metadata to enable multi language detection via template. Structure is documented below.
TemplateTemplateMetadataMultiLanguageDetection, TemplateTemplateMetadataMultiLanguageDetectionArgs
- Enable
Multi boolLanguage Detection - If true, multi language detection will be enabled.
- Enable
Multi boolLanguage Detection - If true, multi language detection will be enabled.
- enable
Multi BooleanLanguage Detection - If true, multi language detection will be enabled.
- enable
Multi booleanLanguage Detection - If true, multi language detection will be enabled.
- enable_
multi_ boollanguage_ detection - If true, multi language detection will be enabled.
- enable
Multi BooleanLanguage Detection - 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.