published on Friday, Apr 24, 2026 by kong
published on Friday, Apr 24, 2026 by kong
GatewayPluginAiGcpModelArmor Resource
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as konnect from "@pulumi/konnect";
const myGatewaypluginaigcpmodelarmor = new konnect.GatewayPluginAiGcpModelArmor("my_gatewaypluginaigcpmodelarmor", {
condition: "...my_condition...",
config: {
enableMultiLanguageDetection: false,
gcpMetadataUrl: "...my_gcp_metadata_url...",
gcpOauthTokenUrl: "...my_gcp_oauth_token_url...",
gcpServiceAccountJson: "...my_gcp_service_account_json...",
gcpUseServiceAccount: false,
guardingMode: "INPUT",
locationId: "...my_location_id...",
logBlockedContent: false,
projectId: "...my_project_id...",
requestFailureMessage: "Request was filtered by GCP Model Armor",
responseBufferSize: 100,
responseFailureMessage: "Response was filtered by GCP Model Armor",
revealFailureCategories: false,
sourceLanguage: "...my_source_language...",
stopOnError: true,
templateId: "...my_template_id...",
textSource: "last_message",
timeout: 10000,
},
consumer: {
id: "...my_id...",
},
consumerGroup: {
id: "...my_id...",
},
controlPlaneId: "9524ec7d-36d9-465d-a8c5-83a3c9390458",
createdAt: 3,
enabled: true,
gatewayPluginAiGcpModelArmorId: "...my_id...",
instanceName: "...my_instance_name...",
ordering: {
after: {
accesses: ["..."],
},
before: {
accesses: ["..."],
},
},
partials: [{
id: "...my_id...",
name: "...my_name...",
path: "...my_path...",
}],
protocols: ["grpcs"],
route: {
id: "...my_id...",
},
service: {
id: "...my_id...",
},
tags: ["..."],
updatedAt: 4,
});
import pulumi
import pulumi_konnect as konnect
my_gatewaypluginaigcpmodelarmor = konnect.GatewayPluginAiGcpModelArmor("my_gatewaypluginaigcpmodelarmor",
condition="...my_condition...",
config={
"enable_multi_language_detection": False,
"gcp_metadata_url": "...my_gcp_metadata_url...",
"gcp_oauth_token_url": "...my_gcp_oauth_token_url...",
"gcp_service_account_json": "...my_gcp_service_account_json...",
"gcp_use_service_account": False,
"guarding_mode": "INPUT",
"location_id": "...my_location_id...",
"log_blocked_content": False,
"project_id": "...my_project_id...",
"request_failure_message": "Request was filtered by GCP Model Armor",
"response_buffer_size": 100,
"response_failure_message": "Response was filtered by GCP Model Armor",
"reveal_failure_categories": False,
"source_language": "...my_source_language...",
"stop_on_error": True,
"template_id": "...my_template_id...",
"text_source": "last_message",
"timeout": 10000,
},
consumer={
"id": "...my_id...",
},
consumer_group={
"id": "...my_id...",
},
control_plane_id="9524ec7d-36d9-465d-a8c5-83a3c9390458",
created_at=3,
enabled=True,
gateway_plugin_ai_gcp_model_armor_id="...my_id...",
instance_name="...my_instance_name...",
ordering={
"after": {
"accesses": ["..."],
},
"before": {
"accesses": ["..."],
},
},
partials=[{
"id": "...my_id...",
"name": "...my_name...",
"path": "...my_path...",
}],
protocols=["grpcs"],
route={
"id": "...my_id...",
},
service={
"id": "...my_id...",
},
tags=["..."],
updated_at=4)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/konnect/v3/konnect"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := konnect.NewGatewayPluginAiGcpModelArmor(ctx, "my_gatewaypluginaigcpmodelarmor", &konnect.GatewayPluginAiGcpModelArmorArgs{
Condition: pulumi.String("...my_condition..."),
Config: &konnect.GatewayPluginAiGcpModelArmorConfigArgs{
EnableMultiLanguageDetection: pulumi.Bool(false),
GcpMetadataUrl: pulumi.String("...my_gcp_metadata_url..."),
GcpOauthTokenUrl: pulumi.String("...my_gcp_oauth_token_url..."),
GcpServiceAccountJson: pulumi.String("...my_gcp_service_account_json..."),
GcpUseServiceAccount: pulumi.Bool(false),
GuardingMode: pulumi.String("INPUT"),
LocationId: pulumi.String("...my_location_id..."),
LogBlockedContent: pulumi.Bool(false),
ProjectId: pulumi.String("...my_project_id..."),
RequestFailureMessage: pulumi.String("Request was filtered by GCP Model Armor"),
ResponseBufferSize: pulumi.Float64(100),
ResponseFailureMessage: pulumi.String("Response was filtered by GCP Model Armor"),
RevealFailureCategories: pulumi.Bool(false),
SourceLanguage: pulumi.String("...my_source_language..."),
StopOnError: pulumi.Bool(true),
TemplateId: pulumi.String("...my_template_id..."),
TextSource: pulumi.String("last_message"),
Timeout: pulumi.Float64(10000),
},
Consumer: &konnect.GatewayPluginAiGcpModelArmorConsumerArgs{
Id: pulumi.String("...my_id..."),
},
ConsumerGroup: &konnect.GatewayPluginAiGcpModelArmorConsumerGroupArgs{
Id: pulumi.String("...my_id..."),
},
ControlPlaneId: pulumi.String("9524ec7d-36d9-465d-a8c5-83a3c9390458"),
CreatedAt: pulumi.Float64(3),
Enabled: pulumi.Bool(true),
GatewayPluginAiGcpModelArmorId: pulumi.String("...my_id..."),
InstanceName: pulumi.String("...my_instance_name..."),
Ordering: &konnect.GatewayPluginAiGcpModelArmorOrderingArgs{
After: &konnect.GatewayPluginAiGcpModelArmorOrderingAfterArgs{
Accesses: pulumi.StringArray{
pulumi.String("..."),
},
},
Before: &konnect.GatewayPluginAiGcpModelArmorOrderingBeforeArgs{
Accesses: pulumi.StringArray{
pulumi.String("..."),
},
},
},
Partials: konnect.GatewayPluginAiGcpModelArmorPartialArray{
&konnect.GatewayPluginAiGcpModelArmorPartialArgs{
Id: pulumi.String("...my_id..."),
Name: pulumi.String("...my_name..."),
Path: pulumi.String("...my_path..."),
},
},
Protocols: pulumi.StringArray{
pulumi.String("grpcs"),
},
Route: &konnect.GatewayPluginAiGcpModelArmorRouteArgs{
Id: pulumi.String("...my_id..."),
},
Service: &konnect.GatewayPluginAiGcpModelArmorServiceArgs{
Id: pulumi.String("...my_id..."),
},
Tags: pulumi.StringArray{
pulumi.String("..."),
},
UpdatedAt: pulumi.Float64(4),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Konnect = Pulumi.Konnect;
return await Deployment.RunAsync(() =>
{
var myGatewaypluginaigcpmodelarmor = new Konnect.GatewayPluginAiGcpModelArmor("my_gatewaypluginaigcpmodelarmor", new()
{
Condition = "...my_condition...",
Config = new Konnect.Inputs.GatewayPluginAiGcpModelArmorConfigArgs
{
EnableMultiLanguageDetection = false,
GcpMetadataUrl = "...my_gcp_metadata_url...",
GcpOauthTokenUrl = "...my_gcp_oauth_token_url...",
GcpServiceAccountJson = "...my_gcp_service_account_json...",
GcpUseServiceAccount = false,
GuardingMode = "INPUT",
LocationId = "...my_location_id...",
LogBlockedContent = false,
ProjectId = "...my_project_id...",
RequestFailureMessage = "Request was filtered by GCP Model Armor",
ResponseBufferSize = 100,
ResponseFailureMessage = "Response was filtered by GCP Model Armor",
RevealFailureCategories = false,
SourceLanguage = "...my_source_language...",
StopOnError = true,
TemplateId = "...my_template_id...",
TextSource = "last_message",
Timeout = 10000,
},
Consumer = new Konnect.Inputs.GatewayPluginAiGcpModelArmorConsumerArgs
{
Id = "...my_id...",
},
ConsumerGroup = new Konnect.Inputs.GatewayPluginAiGcpModelArmorConsumerGroupArgs
{
Id = "...my_id...",
},
ControlPlaneId = "9524ec7d-36d9-465d-a8c5-83a3c9390458",
CreatedAt = 3,
Enabled = true,
GatewayPluginAiGcpModelArmorId = "...my_id...",
InstanceName = "...my_instance_name...",
Ordering = new Konnect.Inputs.GatewayPluginAiGcpModelArmorOrderingArgs
{
After = new Konnect.Inputs.GatewayPluginAiGcpModelArmorOrderingAfterArgs
{
Accesses = new[]
{
"...",
},
},
Before = new Konnect.Inputs.GatewayPluginAiGcpModelArmorOrderingBeforeArgs
{
Accesses = new[]
{
"...",
},
},
},
Partials = new[]
{
new Konnect.Inputs.GatewayPluginAiGcpModelArmorPartialArgs
{
Id = "...my_id...",
Name = "...my_name...",
Path = "...my_path...",
},
},
Protocols = new[]
{
"grpcs",
},
Route = new Konnect.Inputs.GatewayPluginAiGcpModelArmorRouteArgs
{
Id = "...my_id...",
},
Service = new Konnect.Inputs.GatewayPluginAiGcpModelArmorServiceArgs
{
Id = "...my_id...",
},
Tags = new[]
{
"...",
},
UpdatedAt = 4,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.konnect.GatewayPluginAiGcpModelArmor;
import com.pulumi.konnect.GatewayPluginAiGcpModelArmorArgs;
import com.pulumi.konnect.inputs.GatewayPluginAiGcpModelArmorConfigArgs;
import com.pulumi.konnect.inputs.GatewayPluginAiGcpModelArmorConsumerArgs;
import com.pulumi.konnect.inputs.GatewayPluginAiGcpModelArmorConsumerGroupArgs;
import com.pulumi.konnect.inputs.GatewayPluginAiGcpModelArmorOrderingArgs;
import com.pulumi.konnect.inputs.GatewayPluginAiGcpModelArmorOrderingAfterArgs;
import com.pulumi.konnect.inputs.GatewayPluginAiGcpModelArmorOrderingBeforeArgs;
import com.pulumi.konnect.inputs.GatewayPluginAiGcpModelArmorPartialArgs;
import com.pulumi.konnect.inputs.GatewayPluginAiGcpModelArmorRouteArgs;
import com.pulumi.konnect.inputs.GatewayPluginAiGcpModelArmorServiceArgs;
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 myGatewaypluginaigcpmodelarmor = new GatewayPluginAiGcpModelArmor("myGatewaypluginaigcpmodelarmor", GatewayPluginAiGcpModelArmorArgs.builder()
.condition("...my_condition...")
.config(GatewayPluginAiGcpModelArmorConfigArgs.builder()
.enableMultiLanguageDetection(false)
.gcpMetadataUrl("...my_gcp_metadata_url...")
.gcpOauthTokenUrl("...my_gcp_oauth_token_url...")
.gcpServiceAccountJson("...my_gcp_service_account_json...")
.gcpUseServiceAccount(false)
.guardingMode("INPUT")
.locationId("...my_location_id...")
.logBlockedContent(false)
.projectId("...my_project_id...")
.requestFailureMessage("Request was filtered by GCP Model Armor")
.responseBufferSize(100.0)
.responseFailureMessage("Response was filtered by GCP Model Armor")
.revealFailureCategories(false)
.sourceLanguage("...my_source_language...")
.stopOnError(true)
.templateId("...my_template_id...")
.textSource("last_message")
.timeout(10000.0)
.build())
.consumer(GatewayPluginAiGcpModelArmorConsumerArgs.builder()
.id("...my_id...")
.build())
.consumerGroup(GatewayPluginAiGcpModelArmorConsumerGroupArgs.builder()
.id("...my_id...")
.build())
.controlPlaneId("9524ec7d-36d9-465d-a8c5-83a3c9390458")
.createdAt(3.0)
.enabled(true)
.gatewayPluginAiGcpModelArmorId("...my_id...")
.instanceName("...my_instance_name...")
.ordering(GatewayPluginAiGcpModelArmorOrderingArgs.builder()
.after(GatewayPluginAiGcpModelArmorOrderingAfterArgs.builder()
.accesses("...")
.build())
.before(GatewayPluginAiGcpModelArmorOrderingBeforeArgs.builder()
.accesses("...")
.build())
.build())
.partials(GatewayPluginAiGcpModelArmorPartialArgs.builder()
.id("...my_id...")
.name("...my_name...")
.path("...my_path...")
.build())
.protocols("grpcs")
.route(GatewayPluginAiGcpModelArmorRouteArgs.builder()
.id("...my_id...")
.build())
.service(GatewayPluginAiGcpModelArmorServiceArgs.builder()
.id("...my_id...")
.build())
.tags("...")
.updatedAt(4.0)
.build());
}
}
resources:
myGatewaypluginaigcpmodelarmor:
type: konnect:GatewayPluginAiGcpModelArmor
name: my_gatewaypluginaigcpmodelarmor
properties:
condition: '...my_condition...'
config:
enableMultiLanguageDetection: false
gcpMetadataUrl: '...my_gcp_metadata_url...'
gcpOauthTokenUrl: '...my_gcp_oauth_token_url...'
gcpServiceAccountJson: '...my_gcp_service_account_json...'
gcpUseServiceAccount: false
guardingMode: INPUT
locationId: '...my_location_id...'
logBlockedContent: false
projectId: '...my_project_id...'
requestFailureMessage: Request was filtered by GCP Model Armor
responseBufferSize: 100
responseFailureMessage: Response was filtered by GCP Model Armor
revealFailureCategories: false
sourceLanguage: '...my_source_language...'
stopOnError: true
templateId: '...my_template_id...'
textSource: last_message
timeout: 10000
consumer:
id: '...my_id...'
consumerGroup:
id: '...my_id...'
controlPlaneId: 9524ec7d-36d9-465d-a8c5-83a3c9390458
createdAt: 3
enabled: true
gatewayPluginAiGcpModelArmorId: '...my_id...'
instanceName: '...my_instance_name...'
ordering:
after:
accesses:
- '...'
before:
accesses:
- '...'
partials:
- id: '...my_id...'
name: '...my_name...'
path: '...my_path...'
protocols:
- grpcs
route:
id: '...my_id...'
service:
id: '...my_id...'
tags:
- '...'
updatedAt: 4
Create GatewayPluginAiGcpModelArmor Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new GatewayPluginAiGcpModelArmor(name: string, args: GatewayPluginAiGcpModelArmorArgs, opts?: CustomResourceOptions);@overload
def GatewayPluginAiGcpModelArmor(resource_name: str,
args: GatewayPluginAiGcpModelArmorArgs,
opts: Optional[ResourceOptions] = None)
@overload
def GatewayPluginAiGcpModelArmor(resource_name: str,
opts: Optional[ResourceOptions] = None,
control_plane_id: Optional[str] = None,
config: Optional[GatewayPluginAiGcpModelArmorConfigArgs] = None,
instance_name: Optional[str] = None,
ordering: Optional[GatewayPluginAiGcpModelArmorOrderingArgs] = None,
consumer: Optional[GatewayPluginAiGcpModelArmorConsumerArgs] = None,
created_at: Optional[float] = None,
enabled: Optional[bool] = None,
gateway_plugin_ai_gcp_model_armor_id: Optional[str] = None,
condition: Optional[str] = None,
consumer_group: Optional[GatewayPluginAiGcpModelArmorConsumerGroupArgs] = None,
partials: Optional[Sequence[GatewayPluginAiGcpModelArmorPartialArgs]] = None,
protocols: Optional[Sequence[str]] = None,
route: Optional[GatewayPluginAiGcpModelArmorRouteArgs] = None,
service: Optional[GatewayPluginAiGcpModelArmorServiceArgs] = None,
tags: Optional[Sequence[str]] = None,
updated_at: Optional[float] = None)func NewGatewayPluginAiGcpModelArmor(ctx *Context, name string, args GatewayPluginAiGcpModelArmorArgs, opts ...ResourceOption) (*GatewayPluginAiGcpModelArmor, error)public GatewayPluginAiGcpModelArmor(string name, GatewayPluginAiGcpModelArmorArgs args, CustomResourceOptions? opts = null)
public GatewayPluginAiGcpModelArmor(String name, GatewayPluginAiGcpModelArmorArgs args)
public GatewayPluginAiGcpModelArmor(String name, GatewayPluginAiGcpModelArmorArgs args, CustomResourceOptions options)
type: konnect:GatewayPluginAiGcpModelArmor
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 GatewayPluginAiGcpModelArmorArgs
- 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 GatewayPluginAiGcpModelArmorArgs
- 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 GatewayPluginAiGcpModelArmorArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args GatewayPluginAiGcpModelArmorArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args GatewayPluginAiGcpModelArmorArgs
- 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 gatewayPluginAiGcpModelArmorResource = new Konnect.GatewayPluginAiGcpModelArmor("gatewayPluginAiGcpModelArmorResource", new()
{
ControlPlaneId = "string",
Config = new Konnect.Inputs.GatewayPluginAiGcpModelArmorConfigArgs
{
LocationId = "string",
TemplateId = "string",
ProjectId = "string",
GcpUseServiceAccount = false,
ResponseBufferSize = 0,
GuardingMode = "string",
GcpServiceAccountJson = "string",
LogBlockedContent = false,
GcpOauthTokenUrl = "string",
RequestFailureMessage = "string",
EnableMultiLanguageDetection = false,
ResponseFailureMessage = "string",
RevealFailureCategories = false,
SourceLanguage = "string",
StopOnError = false,
GcpMetadataUrl = "string",
TextSource = "string",
Timeout = 0,
},
InstanceName = "string",
Ordering = new Konnect.Inputs.GatewayPluginAiGcpModelArmorOrderingArgs
{
After = new Konnect.Inputs.GatewayPluginAiGcpModelArmorOrderingAfterArgs
{
Accesses = new[]
{
"string",
},
},
Before = new Konnect.Inputs.GatewayPluginAiGcpModelArmorOrderingBeforeArgs
{
Accesses = new[]
{
"string",
},
},
},
Consumer = new Konnect.Inputs.GatewayPluginAiGcpModelArmorConsumerArgs
{
Id = "string",
},
CreatedAt = 0,
Enabled = false,
GatewayPluginAiGcpModelArmorId = "string",
Condition = "string",
ConsumerGroup = new Konnect.Inputs.GatewayPluginAiGcpModelArmorConsumerGroupArgs
{
Id = "string",
},
Partials = new[]
{
new Konnect.Inputs.GatewayPluginAiGcpModelArmorPartialArgs
{
Id = "string",
Name = "string",
Path = "string",
},
},
Protocols = new[]
{
"string",
},
Route = new Konnect.Inputs.GatewayPluginAiGcpModelArmorRouteArgs
{
Id = "string",
},
Service = new Konnect.Inputs.GatewayPluginAiGcpModelArmorServiceArgs
{
Id = "string",
},
Tags = new[]
{
"string",
},
UpdatedAt = 0,
});
example, err := konnect.NewGatewayPluginAiGcpModelArmor(ctx, "gatewayPluginAiGcpModelArmorResource", &konnect.GatewayPluginAiGcpModelArmorArgs{
ControlPlaneId: pulumi.String("string"),
Config: &konnect.GatewayPluginAiGcpModelArmorConfigArgs{
LocationId: pulumi.String("string"),
TemplateId: pulumi.String("string"),
ProjectId: pulumi.String("string"),
GcpUseServiceAccount: pulumi.Bool(false),
ResponseBufferSize: pulumi.Float64(0),
GuardingMode: pulumi.String("string"),
GcpServiceAccountJson: pulumi.String("string"),
LogBlockedContent: pulumi.Bool(false),
GcpOauthTokenUrl: pulumi.String("string"),
RequestFailureMessage: pulumi.String("string"),
EnableMultiLanguageDetection: pulumi.Bool(false),
ResponseFailureMessage: pulumi.String("string"),
RevealFailureCategories: pulumi.Bool(false),
SourceLanguage: pulumi.String("string"),
StopOnError: pulumi.Bool(false),
GcpMetadataUrl: pulumi.String("string"),
TextSource: pulumi.String("string"),
Timeout: pulumi.Float64(0),
},
InstanceName: pulumi.String("string"),
Ordering: &konnect.GatewayPluginAiGcpModelArmorOrderingArgs{
After: &konnect.GatewayPluginAiGcpModelArmorOrderingAfterArgs{
Accesses: pulumi.StringArray{
pulumi.String("string"),
},
},
Before: &konnect.GatewayPluginAiGcpModelArmorOrderingBeforeArgs{
Accesses: pulumi.StringArray{
pulumi.String("string"),
},
},
},
Consumer: &konnect.GatewayPluginAiGcpModelArmorConsumerArgs{
Id: pulumi.String("string"),
},
CreatedAt: pulumi.Float64(0),
Enabled: pulumi.Bool(false),
GatewayPluginAiGcpModelArmorId: pulumi.String("string"),
Condition: pulumi.String("string"),
ConsumerGroup: &konnect.GatewayPluginAiGcpModelArmorConsumerGroupArgs{
Id: pulumi.String("string"),
},
Partials: konnect.GatewayPluginAiGcpModelArmorPartialArray{
&konnect.GatewayPluginAiGcpModelArmorPartialArgs{
Id: pulumi.String("string"),
Name: pulumi.String("string"),
Path: pulumi.String("string"),
},
},
Protocols: pulumi.StringArray{
pulumi.String("string"),
},
Route: &konnect.GatewayPluginAiGcpModelArmorRouteArgs{
Id: pulumi.String("string"),
},
Service: &konnect.GatewayPluginAiGcpModelArmorServiceArgs{
Id: pulumi.String("string"),
},
Tags: pulumi.StringArray{
pulumi.String("string"),
},
UpdatedAt: pulumi.Float64(0),
})
var gatewayPluginAiGcpModelArmorResource = new GatewayPluginAiGcpModelArmor("gatewayPluginAiGcpModelArmorResource", GatewayPluginAiGcpModelArmorArgs.builder()
.controlPlaneId("string")
.config(GatewayPluginAiGcpModelArmorConfigArgs.builder()
.locationId("string")
.templateId("string")
.projectId("string")
.gcpUseServiceAccount(false)
.responseBufferSize(0.0)
.guardingMode("string")
.gcpServiceAccountJson("string")
.logBlockedContent(false)
.gcpOauthTokenUrl("string")
.requestFailureMessage("string")
.enableMultiLanguageDetection(false)
.responseFailureMessage("string")
.revealFailureCategories(false)
.sourceLanguage("string")
.stopOnError(false)
.gcpMetadataUrl("string")
.textSource("string")
.timeout(0.0)
.build())
.instanceName("string")
.ordering(GatewayPluginAiGcpModelArmorOrderingArgs.builder()
.after(GatewayPluginAiGcpModelArmorOrderingAfterArgs.builder()
.accesses("string")
.build())
.before(GatewayPluginAiGcpModelArmorOrderingBeforeArgs.builder()
.accesses("string")
.build())
.build())
.consumer(GatewayPluginAiGcpModelArmorConsumerArgs.builder()
.id("string")
.build())
.createdAt(0.0)
.enabled(false)
.gatewayPluginAiGcpModelArmorId("string")
.condition("string")
.consumerGroup(GatewayPluginAiGcpModelArmorConsumerGroupArgs.builder()
.id("string")
.build())
.partials(GatewayPluginAiGcpModelArmorPartialArgs.builder()
.id("string")
.name("string")
.path("string")
.build())
.protocols("string")
.route(GatewayPluginAiGcpModelArmorRouteArgs.builder()
.id("string")
.build())
.service(GatewayPluginAiGcpModelArmorServiceArgs.builder()
.id("string")
.build())
.tags("string")
.updatedAt(0.0)
.build());
gateway_plugin_ai_gcp_model_armor_resource = konnect.GatewayPluginAiGcpModelArmor("gatewayPluginAiGcpModelArmorResource",
control_plane_id="string",
config={
"location_id": "string",
"template_id": "string",
"project_id": "string",
"gcp_use_service_account": False,
"response_buffer_size": float(0),
"guarding_mode": "string",
"gcp_service_account_json": "string",
"log_blocked_content": False,
"gcp_oauth_token_url": "string",
"request_failure_message": "string",
"enable_multi_language_detection": False,
"response_failure_message": "string",
"reveal_failure_categories": False,
"source_language": "string",
"stop_on_error": False,
"gcp_metadata_url": "string",
"text_source": "string",
"timeout": float(0),
},
instance_name="string",
ordering={
"after": {
"accesses": ["string"],
},
"before": {
"accesses": ["string"],
},
},
consumer={
"id": "string",
},
created_at=float(0),
enabled=False,
gateway_plugin_ai_gcp_model_armor_id="string",
condition="string",
consumer_group={
"id": "string",
},
partials=[{
"id": "string",
"name": "string",
"path": "string",
}],
protocols=["string"],
route={
"id": "string",
},
service={
"id": "string",
},
tags=["string"],
updated_at=float(0))
const gatewayPluginAiGcpModelArmorResource = new konnect.GatewayPluginAiGcpModelArmor("gatewayPluginAiGcpModelArmorResource", {
controlPlaneId: "string",
config: {
locationId: "string",
templateId: "string",
projectId: "string",
gcpUseServiceAccount: false,
responseBufferSize: 0,
guardingMode: "string",
gcpServiceAccountJson: "string",
logBlockedContent: false,
gcpOauthTokenUrl: "string",
requestFailureMessage: "string",
enableMultiLanguageDetection: false,
responseFailureMessage: "string",
revealFailureCategories: false,
sourceLanguage: "string",
stopOnError: false,
gcpMetadataUrl: "string",
textSource: "string",
timeout: 0,
},
instanceName: "string",
ordering: {
after: {
accesses: ["string"],
},
before: {
accesses: ["string"],
},
},
consumer: {
id: "string",
},
createdAt: 0,
enabled: false,
gatewayPluginAiGcpModelArmorId: "string",
condition: "string",
consumerGroup: {
id: "string",
},
partials: [{
id: "string",
name: "string",
path: "string",
}],
protocols: ["string"],
route: {
id: "string",
},
service: {
id: "string",
},
tags: ["string"],
updatedAt: 0,
});
type: konnect:GatewayPluginAiGcpModelArmor
properties:
condition: string
config:
enableMultiLanguageDetection: false
gcpMetadataUrl: string
gcpOauthTokenUrl: string
gcpServiceAccountJson: string
gcpUseServiceAccount: false
guardingMode: string
locationId: string
logBlockedContent: false
projectId: string
requestFailureMessage: string
responseBufferSize: 0
responseFailureMessage: string
revealFailureCategories: false
sourceLanguage: string
stopOnError: false
templateId: string
textSource: string
timeout: 0
consumer:
id: string
consumerGroup:
id: string
controlPlaneId: string
createdAt: 0
enabled: false
gatewayPluginAiGcpModelArmorId: string
instanceName: string
ordering:
after:
accesses:
- string
before:
accesses:
- string
partials:
- id: string
name: string
path: string
protocols:
- string
route:
id: string
service:
id: string
tags:
- string
updatedAt: 0
GatewayPluginAiGcpModelArmor 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 GatewayPluginAiGcpModelArmor resource accepts the following input properties:
- Config
Gateway
Plugin Ai Gcp Model Armor Config - Control
Plane stringId - The UUID of your control plane. This variable is available in the Konnect manager. Requires replacement if changed.
- Condition string
- An expression used for conditional control over plugin execution. If the expression evaluates to
trueduring the request flow, the plugin is executed; otherwise, it is skipped. - Consumer
Gateway
Plugin Ai Gcp Model Armor Consumer - If set, the plugin will activate only for requests where the specified has been authenticated. (Note that some plugins can not be restricted to consumers this way.). Leave unset for the plugin to activate regardless of the authenticated Consumer.
- Consumer
Group GatewayPlugin Ai Gcp Model Armor Consumer Group - If set, the plugin will activate only for requests where the specified consumer group has been authenticated. (Note that some plugins can not be restricted to consumers groups this way.). Leave unset for the plugin to activate regardless of the authenticated Consumer Groups
- Created
At double - Unix epoch when the resource was created.
- Enabled bool
- Whether the plugin is applied. Default: true
- Gateway
Plugin stringAi Gcp Model Armor Id - A string representing a UUID (universally unique identifier).
- Instance
Name string - A unique string representing a UTF-8 encoded name.
- Ordering
Gateway
Plugin Ai Gcp Model Armor Ordering - Partials
List<Gateway
Plugin Ai Gcp Model Armor Partial> - A list of partials to be used by the plugin.
- Protocols List<string>
- A set of strings representing HTTP protocols. Default: ["grpc","grpcs","http","https"]
- Route
Gateway
Plugin Ai Gcp Model Armor Route - If set, the plugin will only activate when receiving requests via the specified route. Leave unset for the plugin to activate regardless of the route being used.
- Service
Gateway
Plugin Ai Gcp Model Armor Service - If set, the plugin will only activate when receiving requests via one of the routes belonging to the specified Service. Leave unset for the plugin to activate regardless of the Service being matched.
- List<string>
- An optional set of strings associated with the Plugin for grouping and filtering.
- Updated
At double - Unix epoch when the resource was last updated.
- Config
Gateway
Plugin Ai Gcp Model Armor Config Args - Control
Plane stringId - The UUID of your control plane. This variable is available in the Konnect manager. Requires replacement if changed.
- Condition string
- An expression used for conditional control over plugin execution. If the expression evaluates to
trueduring the request flow, the plugin is executed; otherwise, it is skipped. - Consumer
Gateway
Plugin Ai Gcp Model Armor Consumer Args - If set, the plugin will activate only for requests where the specified has been authenticated. (Note that some plugins can not be restricted to consumers this way.). Leave unset for the plugin to activate regardless of the authenticated Consumer.
- Consumer
Group GatewayPlugin Ai Gcp Model Armor Consumer Group Args - If set, the plugin will activate only for requests where the specified consumer group has been authenticated. (Note that some plugins can not be restricted to consumers groups this way.). Leave unset for the plugin to activate regardless of the authenticated Consumer Groups
- Created
At float64 - Unix epoch when the resource was created.
- Enabled bool
- Whether the plugin is applied. Default: true
- Gateway
Plugin stringAi Gcp Model Armor Id - A string representing a UUID (universally unique identifier).
- Instance
Name string - A unique string representing a UTF-8 encoded name.
- Ordering
Gateway
Plugin Ai Gcp Model Armor Ordering Args - Partials
[]Gateway
Plugin Ai Gcp Model Armor Partial Args - A list of partials to be used by the plugin.
- Protocols []string
- A set of strings representing HTTP protocols. Default: ["grpc","grpcs","http","https"]
- Route
Gateway
Plugin Ai Gcp Model Armor Route Args - If set, the plugin will only activate when receiving requests via the specified route. Leave unset for the plugin to activate regardless of the route being used.
- Service
Gateway
Plugin Ai Gcp Model Armor Service Args - If set, the plugin will only activate when receiving requests via one of the routes belonging to the specified Service. Leave unset for the plugin to activate regardless of the Service being matched.
- []string
- An optional set of strings associated with the Plugin for grouping and filtering.
- Updated
At float64 - Unix epoch when the resource was last updated.
- config
Gateway
Plugin Ai Gcp Model Armor Config - control
Plane StringId - The UUID of your control plane. This variable is available in the Konnect manager. Requires replacement if changed.
- condition String
- An expression used for conditional control over plugin execution. If the expression evaluates to
trueduring the request flow, the plugin is executed; otherwise, it is skipped. - consumer
Gateway
Plugin Ai Gcp Model Armor Consumer - If set, the plugin will activate only for requests where the specified has been authenticated. (Note that some plugins can not be restricted to consumers this way.). Leave unset for the plugin to activate regardless of the authenticated Consumer.
- consumer
Group GatewayPlugin Ai Gcp Model Armor Consumer Group - If set, the plugin will activate only for requests where the specified consumer group has been authenticated. (Note that some plugins can not be restricted to consumers groups this way.). Leave unset for the plugin to activate regardless of the authenticated Consumer Groups
- created
At Double - Unix epoch when the resource was created.
- enabled Boolean
- Whether the plugin is applied. Default: true
- gateway
Plugin StringAi Gcp Model Armor Id - A string representing a UUID (universally unique identifier).
- instance
Name String - A unique string representing a UTF-8 encoded name.
- ordering
Gateway
Plugin Ai Gcp Model Armor Ordering - partials
List<Gateway
Plugin Ai Gcp Model Armor Partial> - A list of partials to be used by the plugin.
- protocols List<String>
- A set of strings representing HTTP protocols. Default: ["grpc","grpcs","http","https"]
- route
Gateway
Plugin Ai Gcp Model Armor Route - If set, the plugin will only activate when receiving requests via the specified route. Leave unset for the plugin to activate regardless of the route being used.
- service
Gateway
Plugin Ai Gcp Model Armor Service - If set, the plugin will only activate when receiving requests via one of the routes belonging to the specified Service. Leave unset for the plugin to activate regardless of the Service being matched.
- List<String>
- An optional set of strings associated with the Plugin for grouping and filtering.
- updated
At Double - Unix epoch when the resource was last updated.
- config
Gateway
Plugin Ai Gcp Model Armor Config - control
Plane stringId - The UUID of your control plane. This variable is available in the Konnect manager. Requires replacement if changed.
- condition string
- An expression used for conditional control over plugin execution. If the expression evaluates to
trueduring the request flow, the plugin is executed; otherwise, it is skipped. - consumer
Gateway
Plugin Ai Gcp Model Armor Consumer - If set, the plugin will activate only for requests where the specified has been authenticated. (Note that some plugins can not be restricted to consumers this way.). Leave unset for the plugin to activate regardless of the authenticated Consumer.
- consumer
Group GatewayPlugin Ai Gcp Model Armor Consumer Group - If set, the plugin will activate only for requests where the specified consumer group has been authenticated. (Note that some plugins can not be restricted to consumers groups this way.). Leave unset for the plugin to activate regardless of the authenticated Consumer Groups
- created
At number - Unix epoch when the resource was created.
- enabled boolean
- Whether the plugin is applied. Default: true
- gateway
Plugin stringAi Gcp Model Armor Id - A string representing a UUID (universally unique identifier).
- instance
Name string - A unique string representing a UTF-8 encoded name.
- ordering
Gateway
Plugin Ai Gcp Model Armor Ordering - partials
Gateway
Plugin Ai Gcp Model Armor Partial[] - A list of partials to be used by the plugin.
- protocols string[]
- A set of strings representing HTTP protocols. Default: ["grpc","grpcs","http","https"]
- route
Gateway
Plugin Ai Gcp Model Armor Route - If set, the plugin will only activate when receiving requests via the specified route. Leave unset for the plugin to activate regardless of the route being used.
- service
Gateway
Plugin Ai Gcp Model Armor Service - If set, the plugin will only activate when receiving requests via one of the routes belonging to the specified Service. Leave unset for the plugin to activate regardless of the Service being matched.
- string[]
- An optional set of strings associated with the Plugin for grouping and filtering.
- updated
At number - Unix epoch when the resource was last updated.
- config
Gateway
Plugin Ai Gcp Model Armor Config Args - control_
plane_ strid - The UUID of your control plane. This variable is available in the Konnect manager. Requires replacement if changed.
- condition str
- An expression used for conditional control over plugin execution. If the expression evaluates to
trueduring the request flow, the plugin is executed; otherwise, it is skipped. - consumer
Gateway
Plugin Ai Gcp Model Armor Consumer Args - If set, the plugin will activate only for requests where the specified has been authenticated. (Note that some plugins can not be restricted to consumers this way.). Leave unset for the plugin to activate regardless of the authenticated Consumer.
- consumer_
group GatewayPlugin Ai Gcp Model Armor Consumer Group Args - If set, the plugin will activate only for requests where the specified consumer group has been authenticated. (Note that some plugins can not be restricted to consumers groups this way.). Leave unset for the plugin to activate regardless of the authenticated Consumer Groups
- created_
at float - Unix epoch when the resource was created.
- enabled bool
- Whether the plugin is applied. Default: true
- gateway_
plugin_ strai_ gcp_ model_ armor_ id - A string representing a UUID (universally unique identifier).
- instance_
name str - A unique string representing a UTF-8 encoded name.
- ordering
Gateway
Plugin Ai Gcp Model Armor Ordering Args - partials
Sequence[Gateway
Plugin Ai Gcp Model Armor Partial Args] - A list of partials to be used by the plugin.
- protocols Sequence[str]
- A set of strings representing HTTP protocols. Default: ["grpc","grpcs","http","https"]
- route
Gateway
Plugin Ai Gcp Model Armor Route Args - If set, the plugin will only activate when receiving requests via the specified route. Leave unset for the plugin to activate regardless of the route being used.
- service
Gateway
Plugin Ai Gcp Model Armor Service Args - If set, the plugin will only activate when receiving requests via one of the routes belonging to the specified Service. Leave unset for the plugin to activate regardless of the Service being matched.
- Sequence[str]
- An optional set of strings associated with the Plugin for grouping and filtering.
- updated_
at float - Unix epoch when the resource was last updated.
- config Property Map
- control
Plane StringId - The UUID of your control plane. This variable is available in the Konnect manager. Requires replacement if changed.
- condition String
- An expression used for conditional control over plugin execution. If the expression evaluates to
trueduring the request flow, the plugin is executed; otherwise, it is skipped. - consumer Property Map
- If set, the plugin will activate only for requests where the specified has been authenticated. (Note that some plugins can not be restricted to consumers this way.). Leave unset for the plugin to activate regardless of the authenticated Consumer.
- consumer
Group Property Map - If set, the plugin will activate only for requests where the specified consumer group has been authenticated. (Note that some plugins can not be restricted to consumers groups this way.). Leave unset for the plugin to activate regardless of the authenticated Consumer Groups
- created
At Number - Unix epoch when the resource was created.
- enabled Boolean
- Whether the plugin is applied. Default: true
- gateway
Plugin StringAi Gcp Model Armor Id - A string representing a UUID (universally unique identifier).
- instance
Name String - A unique string representing a UTF-8 encoded name.
- ordering Property Map
- partials List<Property Map>
- A list of partials to be used by the plugin.
- protocols List<String>
- A set of strings representing HTTP protocols. Default: ["grpc","grpcs","http","https"]
- route Property Map
- If set, the plugin will only activate when receiving requests via the specified route. Leave unset for the plugin to activate regardless of the route being used.
- service Property Map
- If set, the plugin will only activate when receiving requests via one of the routes belonging to the specified Service. Leave unset for the plugin to activate regardless of the Service being matched.
- List<String>
- An optional set of strings associated with the Plugin for grouping and filtering.
- updated
At Number - Unix epoch when the resource was last updated.
Outputs
All input properties are implicitly available as output properties. Additionally, the GatewayPluginAiGcpModelArmor resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing GatewayPluginAiGcpModelArmor Resource
Get an existing GatewayPluginAiGcpModelArmor 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?: GatewayPluginAiGcpModelArmorState, opts?: CustomResourceOptions): GatewayPluginAiGcpModelArmor@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
condition: Optional[str] = None,
config: Optional[GatewayPluginAiGcpModelArmorConfigArgs] = None,
consumer: Optional[GatewayPluginAiGcpModelArmorConsumerArgs] = None,
consumer_group: Optional[GatewayPluginAiGcpModelArmorConsumerGroupArgs] = None,
control_plane_id: Optional[str] = None,
created_at: Optional[float] = None,
enabled: Optional[bool] = None,
gateway_plugin_ai_gcp_model_armor_id: Optional[str] = None,
instance_name: Optional[str] = None,
ordering: Optional[GatewayPluginAiGcpModelArmorOrderingArgs] = None,
partials: Optional[Sequence[GatewayPluginAiGcpModelArmorPartialArgs]] = None,
protocols: Optional[Sequence[str]] = None,
route: Optional[GatewayPluginAiGcpModelArmorRouteArgs] = None,
service: Optional[GatewayPluginAiGcpModelArmorServiceArgs] = None,
tags: Optional[Sequence[str]] = None,
updated_at: Optional[float] = None) -> GatewayPluginAiGcpModelArmorfunc GetGatewayPluginAiGcpModelArmor(ctx *Context, name string, id IDInput, state *GatewayPluginAiGcpModelArmorState, opts ...ResourceOption) (*GatewayPluginAiGcpModelArmor, error)public static GatewayPluginAiGcpModelArmor Get(string name, Input<string> id, GatewayPluginAiGcpModelArmorState? state, CustomResourceOptions? opts = null)public static GatewayPluginAiGcpModelArmor get(String name, Output<String> id, GatewayPluginAiGcpModelArmorState state, CustomResourceOptions options)resources: _: type: konnect:GatewayPluginAiGcpModelArmor 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.
- Condition string
- An expression used for conditional control over plugin execution. If the expression evaluates to
trueduring the request flow, the plugin is executed; otherwise, it is skipped. - Config
Gateway
Plugin Ai Gcp Model Armor Config - Consumer
Gateway
Plugin Ai Gcp Model Armor Consumer - If set, the plugin will activate only for requests where the specified has been authenticated. (Note that some plugins can not be restricted to consumers this way.). Leave unset for the plugin to activate regardless of the authenticated Consumer.
- Consumer
Group GatewayPlugin Ai Gcp Model Armor Consumer Group - If set, the plugin will activate only for requests where the specified consumer group has been authenticated. (Note that some plugins can not be restricted to consumers groups this way.). Leave unset for the plugin to activate regardless of the authenticated Consumer Groups
- Control
Plane stringId - The UUID of your control plane. This variable is available in the Konnect manager. Requires replacement if changed.
- Created
At double - Unix epoch when the resource was created.
- Enabled bool
- Whether the plugin is applied. Default: true
- Gateway
Plugin stringAi Gcp Model Armor Id - A string representing a UUID (universally unique identifier).
- Instance
Name string - A unique string representing a UTF-8 encoded name.
- Ordering
Gateway
Plugin Ai Gcp Model Armor Ordering - Partials
List<Gateway
Plugin Ai Gcp Model Armor Partial> - A list of partials to be used by the plugin.
- Protocols List<string>
- A set of strings representing HTTP protocols. Default: ["grpc","grpcs","http","https"]
- Route
Gateway
Plugin Ai Gcp Model Armor Route - If set, the plugin will only activate when receiving requests via the specified route. Leave unset for the plugin to activate regardless of the route being used.
- Service
Gateway
Plugin Ai Gcp Model Armor Service - If set, the plugin will only activate when receiving requests via one of the routes belonging to the specified Service. Leave unset for the plugin to activate regardless of the Service being matched.
- List<string>
- An optional set of strings associated with the Plugin for grouping and filtering.
- Updated
At double - Unix epoch when the resource was last updated.
- Condition string
- An expression used for conditional control over plugin execution. If the expression evaluates to
trueduring the request flow, the plugin is executed; otherwise, it is skipped. - Config
Gateway
Plugin Ai Gcp Model Armor Config Args - Consumer
Gateway
Plugin Ai Gcp Model Armor Consumer Args - If set, the plugin will activate only for requests where the specified has been authenticated. (Note that some plugins can not be restricted to consumers this way.). Leave unset for the plugin to activate regardless of the authenticated Consumer.
- Consumer
Group GatewayPlugin Ai Gcp Model Armor Consumer Group Args - If set, the plugin will activate only for requests where the specified consumer group has been authenticated. (Note that some plugins can not be restricted to consumers groups this way.). Leave unset for the plugin to activate regardless of the authenticated Consumer Groups
- Control
Plane stringId - The UUID of your control plane. This variable is available in the Konnect manager. Requires replacement if changed.
- Created
At float64 - Unix epoch when the resource was created.
- Enabled bool
- Whether the plugin is applied. Default: true
- Gateway
Plugin stringAi Gcp Model Armor Id - A string representing a UUID (universally unique identifier).
- Instance
Name string - A unique string representing a UTF-8 encoded name.
- Ordering
Gateway
Plugin Ai Gcp Model Armor Ordering Args - Partials
[]Gateway
Plugin Ai Gcp Model Armor Partial Args - A list of partials to be used by the plugin.
- Protocols []string
- A set of strings representing HTTP protocols. Default: ["grpc","grpcs","http","https"]
- Route
Gateway
Plugin Ai Gcp Model Armor Route Args - If set, the plugin will only activate when receiving requests via the specified route. Leave unset for the plugin to activate regardless of the route being used.
- Service
Gateway
Plugin Ai Gcp Model Armor Service Args - If set, the plugin will only activate when receiving requests via one of the routes belonging to the specified Service. Leave unset for the plugin to activate regardless of the Service being matched.
- []string
- An optional set of strings associated with the Plugin for grouping and filtering.
- Updated
At float64 - Unix epoch when the resource was last updated.
- condition String
- An expression used for conditional control over plugin execution. If the expression evaluates to
trueduring the request flow, the plugin is executed; otherwise, it is skipped. - config
Gateway
Plugin Ai Gcp Model Armor Config - consumer
Gateway
Plugin Ai Gcp Model Armor Consumer - If set, the plugin will activate only for requests where the specified has been authenticated. (Note that some plugins can not be restricted to consumers this way.). Leave unset for the plugin to activate regardless of the authenticated Consumer.
- consumer
Group GatewayPlugin Ai Gcp Model Armor Consumer Group - If set, the plugin will activate only for requests where the specified consumer group has been authenticated. (Note that some plugins can not be restricted to consumers groups this way.). Leave unset for the plugin to activate regardless of the authenticated Consumer Groups
- control
Plane StringId - The UUID of your control plane. This variable is available in the Konnect manager. Requires replacement if changed.
- created
At Double - Unix epoch when the resource was created.
- enabled Boolean
- Whether the plugin is applied. Default: true
- gateway
Plugin StringAi Gcp Model Armor Id - A string representing a UUID (universally unique identifier).
- instance
Name String - A unique string representing a UTF-8 encoded name.
- ordering
Gateway
Plugin Ai Gcp Model Armor Ordering - partials
List<Gateway
Plugin Ai Gcp Model Armor Partial> - A list of partials to be used by the plugin.
- protocols List<String>
- A set of strings representing HTTP protocols. Default: ["grpc","grpcs","http","https"]
- route
Gateway
Plugin Ai Gcp Model Armor Route - If set, the plugin will only activate when receiving requests via the specified route. Leave unset for the plugin to activate regardless of the route being used.
- service
Gateway
Plugin Ai Gcp Model Armor Service - If set, the plugin will only activate when receiving requests via one of the routes belonging to the specified Service. Leave unset for the plugin to activate regardless of the Service being matched.
- List<String>
- An optional set of strings associated with the Plugin for grouping and filtering.
- updated
At Double - Unix epoch when the resource was last updated.
- condition string
- An expression used for conditional control over plugin execution. If the expression evaluates to
trueduring the request flow, the plugin is executed; otherwise, it is skipped. - config
Gateway
Plugin Ai Gcp Model Armor Config - consumer
Gateway
Plugin Ai Gcp Model Armor Consumer - If set, the plugin will activate only for requests where the specified has been authenticated. (Note that some plugins can not be restricted to consumers this way.). Leave unset for the plugin to activate regardless of the authenticated Consumer.
- consumer
Group GatewayPlugin Ai Gcp Model Armor Consumer Group - If set, the plugin will activate only for requests where the specified consumer group has been authenticated. (Note that some plugins can not be restricted to consumers groups this way.). Leave unset for the plugin to activate regardless of the authenticated Consumer Groups
- control
Plane stringId - The UUID of your control plane. This variable is available in the Konnect manager. Requires replacement if changed.
- created
At number - Unix epoch when the resource was created.
- enabled boolean
- Whether the plugin is applied. Default: true
- gateway
Plugin stringAi Gcp Model Armor Id - A string representing a UUID (universally unique identifier).
- instance
Name string - A unique string representing a UTF-8 encoded name.
- ordering
Gateway
Plugin Ai Gcp Model Armor Ordering - partials
Gateway
Plugin Ai Gcp Model Armor Partial[] - A list of partials to be used by the plugin.
- protocols string[]
- A set of strings representing HTTP protocols. Default: ["grpc","grpcs","http","https"]
- route
Gateway
Plugin Ai Gcp Model Armor Route - If set, the plugin will only activate when receiving requests via the specified route. Leave unset for the plugin to activate regardless of the route being used.
- service
Gateway
Plugin Ai Gcp Model Armor Service - If set, the plugin will only activate when receiving requests via one of the routes belonging to the specified Service. Leave unset for the plugin to activate regardless of the Service being matched.
- string[]
- An optional set of strings associated with the Plugin for grouping and filtering.
- updated
At number - Unix epoch when the resource was last updated.
- condition str
- An expression used for conditional control over plugin execution. If the expression evaluates to
trueduring the request flow, the plugin is executed; otherwise, it is skipped. - config
Gateway
Plugin Ai Gcp Model Armor Config Args - consumer
Gateway
Plugin Ai Gcp Model Armor Consumer Args - If set, the plugin will activate only for requests where the specified has been authenticated. (Note that some plugins can not be restricted to consumers this way.). Leave unset for the plugin to activate regardless of the authenticated Consumer.
- consumer_
group GatewayPlugin Ai Gcp Model Armor Consumer Group Args - If set, the plugin will activate only for requests where the specified consumer group has been authenticated. (Note that some plugins can not be restricted to consumers groups this way.). Leave unset for the plugin to activate regardless of the authenticated Consumer Groups
- control_
plane_ strid - The UUID of your control plane. This variable is available in the Konnect manager. Requires replacement if changed.
- created_
at float - Unix epoch when the resource was created.
- enabled bool
- Whether the plugin is applied. Default: true
- gateway_
plugin_ strai_ gcp_ model_ armor_ id - A string representing a UUID (universally unique identifier).
- instance_
name str - A unique string representing a UTF-8 encoded name.
- ordering
Gateway
Plugin Ai Gcp Model Armor Ordering Args - partials
Sequence[Gateway
Plugin Ai Gcp Model Armor Partial Args] - A list of partials to be used by the plugin.
- protocols Sequence[str]
- A set of strings representing HTTP protocols. Default: ["grpc","grpcs","http","https"]
- route
Gateway
Plugin Ai Gcp Model Armor Route Args - If set, the plugin will only activate when receiving requests via the specified route. Leave unset for the plugin to activate regardless of the route being used.
- service
Gateway
Plugin Ai Gcp Model Armor Service Args - If set, the plugin will only activate when receiving requests via one of the routes belonging to the specified Service. Leave unset for the plugin to activate regardless of the Service being matched.
- Sequence[str]
- An optional set of strings associated with the Plugin for grouping and filtering.
- updated_
at float - Unix epoch when the resource was last updated.
- condition String
- An expression used for conditional control over plugin execution. If the expression evaluates to
trueduring the request flow, the plugin is executed; otherwise, it is skipped. - config Property Map
- consumer Property Map
- If set, the plugin will activate only for requests where the specified has been authenticated. (Note that some plugins can not be restricted to consumers this way.). Leave unset for the plugin to activate regardless of the authenticated Consumer.
- consumer
Group Property Map - If set, the plugin will activate only for requests where the specified consumer group has been authenticated. (Note that some plugins can not be restricted to consumers groups this way.). Leave unset for the plugin to activate regardless of the authenticated Consumer Groups
- control
Plane StringId - The UUID of your control plane. This variable is available in the Konnect manager. Requires replacement if changed.
- created
At Number - Unix epoch when the resource was created.
- enabled Boolean
- Whether the plugin is applied. Default: true
- gateway
Plugin StringAi Gcp Model Armor Id - A string representing a UUID (universally unique identifier).
- instance
Name String - A unique string representing a UTF-8 encoded name.
- ordering Property Map
- partials List<Property Map>
- A list of partials to be used by the plugin.
- protocols List<String>
- A set of strings representing HTTP protocols. Default: ["grpc","grpcs","http","https"]
- route Property Map
- If set, the plugin will only activate when receiving requests via the specified route. Leave unset for the plugin to activate regardless of the route being used.
- service Property Map
- If set, the plugin will only activate when receiving requests via one of the routes belonging to the specified Service. Leave unset for the plugin to activate regardless of the Service being matched.
- List<String>
- An optional set of strings associated with the Plugin for grouping and filtering.
- updated
At Number - Unix epoch when the resource was last updated.
Supporting Types
GatewayPluginAiGcpModelArmorConfig, GatewayPluginAiGcpModelArmorConfigArgs
- Location
Id string - GCP Location ID for the GCP Model Armor subscription.
- Project
Id string - GCP Project ID for the GCP Model Armor subscription.
- Template
Id string - GCP Model Armor Template ID to enforce.
- Enable
Multi boolLanguage Detection - Enables multi-language detection mode. Must be used with 'source_language'. Default: false
- Gcp
Metadata stringUrl - Custom metadata URL for GCP authentication. Useful for restricted network environments or custom GCP endpoints. If null, Kong will use the default Google metadata endpoint.
- Gcp
Oauth stringToken Url - Custom OAuth token URL for GCP authentication. Useful for restricted network environments or custom GCP endpoints. If null, Kong will use the default Google OAuth token endpoint.
- Gcp
Service stringAccount Json - Set this field to the full JSON of the GCP service account to authenticate, if required. If null (and gcpuseservice_account is true), Kong will attempt to read from environment variable
GCP_SERVICE_ACCOUNTor from the instance/container metadata service. - Gcp
Use boolService Account - Use service account auth for GCP-based providers and models. Default: false
- Guarding
Mode string - The guardrail mode to use for the request. possible known values include one of ["BOTH", "INPUT", "OUTPUT"]; Default: "INPUT"
- Log
Blocked boolContent - Whether to log prompts and responses that are blocked by the guardrail. Default: false
- Request
Failure stringMessage - The message to return when a failure occurs on the request phase. Default: "Request was filtered by GCP Model Armor"
- Response
Buffer doubleSize - The amount of bytes receiving from upstream to be buffered before sending to the model armor service. This only applies to the response content guard. Default: 100
- Response
Failure stringMessage - The message to return when a failure occurs on the response phase. Default: "Response was filtered by GCP Model Armor"
- Reveal
Failure boolCategories - Whether to reveal failure categories in the response to the caller. Default: false
- Source
Language string - Source language (ISO code) to use when 'enablemultilanguage_detection' is enabled.
- Stop
On boolError - Stop processing if an error occurs. Default: true
- Text
Source string - Select where to pick the 'text' for the GCP Model Armor Services request. possible known values include one of ["concatenateallcontent", "concatenateusercontent", "lastmessage"]; Default: "lastmessage"
- Timeout double
- Connection timeout with the GCP Model Armor service. Default: 10000
- Location
Id string - GCP Location ID for the GCP Model Armor subscription.
- Project
Id string - GCP Project ID for the GCP Model Armor subscription.
- Template
Id string - GCP Model Armor Template ID to enforce.
- Enable
Multi boolLanguage Detection - Enables multi-language detection mode. Must be used with 'source_language'. Default: false
- Gcp
Metadata stringUrl - Custom metadata URL for GCP authentication. Useful for restricted network environments or custom GCP endpoints. If null, Kong will use the default Google metadata endpoint.
- Gcp
Oauth stringToken Url - Custom OAuth token URL for GCP authentication. Useful for restricted network environments or custom GCP endpoints. If null, Kong will use the default Google OAuth token endpoint.
- Gcp
Service stringAccount Json - Set this field to the full JSON of the GCP service account to authenticate, if required. If null (and gcpuseservice_account is true), Kong will attempt to read from environment variable
GCP_SERVICE_ACCOUNTor from the instance/container metadata service. - Gcp
Use boolService Account - Use service account auth for GCP-based providers and models. Default: false
- Guarding
Mode string - The guardrail mode to use for the request. possible known values include one of ["BOTH", "INPUT", "OUTPUT"]; Default: "INPUT"
- Log
Blocked boolContent - Whether to log prompts and responses that are blocked by the guardrail. Default: false
- Request
Failure stringMessage - The message to return when a failure occurs on the request phase. Default: "Request was filtered by GCP Model Armor"
- Response
Buffer float64Size - The amount of bytes receiving from upstream to be buffered before sending to the model armor service. This only applies to the response content guard. Default: 100
- Response
Failure stringMessage - The message to return when a failure occurs on the response phase. Default: "Response was filtered by GCP Model Armor"
- Reveal
Failure boolCategories - Whether to reveal failure categories in the response to the caller. Default: false
- Source
Language string - Source language (ISO code) to use when 'enablemultilanguage_detection' is enabled.
- Stop
On boolError - Stop processing if an error occurs. Default: true
- Text
Source string - Select where to pick the 'text' for the GCP Model Armor Services request. possible known values include one of ["concatenateallcontent", "concatenateusercontent", "lastmessage"]; Default: "lastmessage"
- Timeout float64
- Connection timeout with the GCP Model Armor service. Default: 10000
- location
Id String - GCP Location ID for the GCP Model Armor subscription.
- project
Id String - GCP Project ID for the GCP Model Armor subscription.
- template
Id String - GCP Model Armor Template ID to enforce.
- enable
Multi BooleanLanguage Detection - Enables multi-language detection mode. Must be used with 'source_language'. Default: false
- gcp
Metadata StringUrl - Custom metadata URL for GCP authentication. Useful for restricted network environments or custom GCP endpoints. If null, Kong will use the default Google metadata endpoint.
- gcp
Oauth StringToken Url - Custom OAuth token URL for GCP authentication. Useful for restricted network environments or custom GCP endpoints. If null, Kong will use the default Google OAuth token endpoint.
- gcp
Service StringAccount Json - Set this field to the full JSON of the GCP service account to authenticate, if required. If null (and gcpuseservice_account is true), Kong will attempt to read from environment variable
GCP_SERVICE_ACCOUNTor from the instance/container metadata service. - gcp
Use BooleanService Account - Use service account auth for GCP-based providers and models. Default: false
- guarding
Mode String - The guardrail mode to use for the request. possible known values include one of ["BOTH", "INPUT", "OUTPUT"]; Default: "INPUT"
- log
Blocked BooleanContent - Whether to log prompts and responses that are blocked by the guardrail. Default: false
- request
Failure StringMessage - The message to return when a failure occurs on the request phase. Default: "Request was filtered by GCP Model Armor"
- response
Buffer DoubleSize - The amount of bytes receiving from upstream to be buffered before sending to the model armor service. This only applies to the response content guard. Default: 100
- response
Failure StringMessage - The message to return when a failure occurs on the response phase. Default: "Response was filtered by GCP Model Armor"
- reveal
Failure BooleanCategories - Whether to reveal failure categories in the response to the caller. Default: false
- source
Language String - Source language (ISO code) to use when 'enablemultilanguage_detection' is enabled.
- stop
On BooleanError - Stop processing if an error occurs. Default: true
- text
Source String - Select where to pick the 'text' for the GCP Model Armor Services request. possible known values include one of ["concatenateallcontent", "concatenateusercontent", "lastmessage"]; Default: "lastmessage"
- timeout Double
- Connection timeout with the GCP Model Armor service. Default: 10000
- location
Id string - GCP Location ID for the GCP Model Armor subscription.
- project
Id string - GCP Project ID for the GCP Model Armor subscription.
- template
Id string - GCP Model Armor Template ID to enforce.
- enable
Multi booleanLanguage Detection - Enables multi-language detection mode. Must be used with 'source_language'. Default: false
- gcp
Metadata stringUrl - Custom metadata URL for GCP authentication. Useful for restricted network environments or custom GCP endpoints. If null, Kong will use the default Google metadata endpoint.
- gcp
Oauth stringToken Url - Custom OAuth token URL for GCP authentication. Useful for restricted network environments or custom GCP endpoints. If null, Kong will use the default Google OAuth token endpoint.
- gcp
Service stringAccount Json - Set this field to the full JSON of the GCP service account to authenticate, if required. If null (and gcpuseservice_account is true), Kong will attempt to read from environment variable
GCP_SERVICE_ACCOUNTor from the instance/container metadata service. - gcp
Use booleanService Account - Use service account auth for GCP-based providers and models. Default: false
- guarding
Mode string - The guardrail mode to use for the request. possible known values include one of ["BOTH", "INPUT", "OUTPUT"]; Default: "INPUT"
- log
Blocked booleanContent - Whether to log prompts and responses that are blocked by the guardrail. Default: false
- request
Failure stringMessage - The message to return when a failure occurs on the request phase. Default: "Request was filtered by GCP Model Armor"
- response
Buffer numberSize - The amount of bytes receiving from upstream to be buffered before sending to the model armor service. This only applies to the response content guard. Default: 100
- response
Failure stringMessage - The message to return when a failure occurs on the response phase. Default: "Response was filtered by GCP Model Armor"
- reveal
Failure booleanCategories - Whether to reveal failure categories in the response to the caller. Default: false
- source
Language string - Source language (ISO code) to use when 'enablemultilanguage_detection' is enabled.
- stop
On booleanError - Stop processing if an error occurs. Default: true
- text
Source string - Select where to pick the 'text' for the GCP Model Armor Services request. possible known values include one of ["concatenateallcontent", "concatenateusercontent", "lastmessage"]; Default: "lastmessage"
- timeout number
- Connection timeout with the GCP Model Armor service. Default: 10000
- location_
id str - GCP Location ID for the GCP Model Armor subscription.
- project_
id str - GCP Project ID for the GCP Model Armor subscription.
- template_
id str - GCP Model Armor Template ID to enforce.
- enable_
multi_ boollanguage_ detection - Enables multi-language detection mode. Must be used with 'source_language'. Default: false
- gcp_
metadata_ strurl - Custom metadata URL for GCP authentication. Useful for restricted network environments or custom GCP endpoints. If null, Kong will use the default Google metadata endpoint.
- gcp_
oauth_ strtoken_ url - Custom OAuth token URL for GCP authentication. Useful for restricted network environments or custom GCP endpoints. If null, Kong will use the default Google OAuth token endpoint.
- gcp_
service_ straccount_ json - Set this field to the full JSON of the GCP service account to authenticate, if required. If null (and gcpuseservice_account is true), Kong will attempt to read from environment variable
GCP_SERVICE_ACCOUNTor from the instance/container metadata service. - gcp_
use_ boolservice_ account - Use service account auth for GCP-based providers and models. Default: false
- guarding_
mode str - The guardrail mode to use for the request. possible known values include one of ["BOTH", "INPUT", "OUTPUT"]; Default: "INPUT"
- log_
blocked_ boolcontent - Whether to log prompts and responses that are blocked by the guardrail. Default: false
- request_
failure_ strmessage - The message to return when a failure occurs on the request phase. Default: "Request was filtered by GCP Model Armor"
- response_
buffer_ floatsize - The amount of bytes receiving from upstream to be buffered before sending to the model armor service. This only applies to the response content guard. Default: 100
- response_
failure_ strmessage - The message to return when a failure occurs on the response phase. Default: "Response was filtered by GCP Model Armor"
- reveal_
failure_ boolcategories - Whether to reveal failure categories in the response to the caller. Default: false
- source_
language str - Source language (ISO code) to use when 'enablemultilanguage_detection' is enabled.
- stop_
on_ boolerror - Stop processing if an error occurs. Default: true
- text_
source str - Select where to pick the 'text' for the GCP Model Armor Services request. possible known values include one of ["concatenateallcontent", "concatenateusercontent", "lastmessage"]; Default: "lastmessage"
- timeout float
- Connection timeout with the GCP Model Armor service. Default: 10000
- location
Id String - GCP Location ID for the GCP Model Armor subscription.
- project
Id String - GCP Project ID for the GCP Model Armor subscription.
- template
Id String - GCP Model Armor Template ID to enforce.
- enable
Multi BooleanLanguage Detection - Enables multi-language detection mode. Must be used with 'source_language'. Default: false
- gcp
Metadata StringUrl - Custom metadata URL for GCP authentication. Useful for restricted network environments or custom GCP endpoints. If null, Kong will use the default Google metadata endpoint.
- gcp
Oauth StringToken Url - Custom OAuth token URL for GCP authentication. Useful for restricted network environments or custom GCP endpoints. If null, Kong will use the default Google OAuth token endpoint.
- gcp
Service StringAccount Json - Set this field to the full JSON of the GCP service account to authenticate, if required. If null (and gcpuseservice_account is true), Kong will attempt to read from environment variable
GCP_SERVICE_ACCOUNTor from the instance/container metadata service. - gcp
Use BooleanService Account - Use service account auth for GCP-based providers and models. Default: false
- guarding
Mode String - The guardrail mode to use for the request. possible known values include one of ["BOTH", "INPUT", "OUTPUT"]; Default: "INPUT"
- log
Blocked BooleanContent - Whether to log prompts and responses that are blocked by the guardrail. Default: false
- request
Failure StringMessage - The message to return when a failure occurs on the request phase. Default: "Request was filtered by GCP Model Armor"
- response
Buffer NumberSize - The amount of bytes receiving from upstream to be buffered before sending to the model armor service. This only applies to the response content guard. Default: 100
- response
Failure StringMessage - The message to return when a failure occurs on the response phase. Default: "Response was filtered by GCP Model Armor"
- reveal
Failure BooleanCategories - Whether to reveal failure categories in the response to the caller. Default: false
- source
Language String - Source language (ISO code) to use when 'enablemultilanguage_detection' is enabled.
- stop
On BooleanError - Stop processing if an error occurs. Default: true
- text
Source String - Select where to pick the 'text' for the GCP Model Armor Services request. possible known values include one of ["concatenateallcontent", "concatenateusercontent", "lastmessage"]; Default: "lastmessage"
- timeout Number
- Connection timeout with the GCP Model Armor service. Default: 10000
GatewayPluginAiGcpModelArmorConsumer, GatewayPluginAiGcpModelArmorConsumerArgs
- Id string
- Id string
- id String
- id string
- id str
- id String
GatewayPluginAiGcpModelArmorConsumerGroup, GatewayPluginAiGcpModelArmorConsumerGroupArgs
- Id string
- Id string
- id String
- id string
- id str
- id String
GatewayPluginAiGcpModelArmorOrdering, GatewayPluginAiGcpModelArmorOrderingArgs
GatewayPluginAiGcpModelArmorOrderingAfter, GatewayPluginAiGcpModelArmorOrderingAfterArgs
- Accesses List<string>
- Accesses []string
- accesses List<String>
- accesses string[]
- accesses Sequence[str]
- accesses List<String>
GatewayPluginAiGcpModelArmorOrderingBefore, GatewayPluginAiGcpModelArmorOrderingBeforeArgs
- Accesses List<string>
- Accesses []string
- accesses List<String>
- accesses string[]
- accesses Sequence[str]
- accesses List<String>
GatewayPluginAiGcpModelArmorPartial, GatewayPluginAiGcpModelArmorPartialArgs
GatewayPluginAiGcpModelArmorRoute, GatewayPluginAiGcpModelArmorRouteArgs
- Id string
- Id string
- id String
- id string
- id str
- id String
GatewayPluginAiGcpModelArmorService, GatewayPluginAiGcpModelArmorServiceArgs
- Id string
- Id string
- id String
- id string
- id str
- id String
Import
In Terraform v1.5.0 and later, the import block can be used with the id attribute, for example:
terraform
import {
to = konnect_gateway_plugin_ai_gcp_model_armor.my_konnect_gateway_plugin_ai_gcp_model_armor
id = jsonencode({
control_plane_id = "9524ec7d-36d9-465d-a8c5-83a3c9390458"
id = "3473c251-5b6c-4f45-b1ff-7ede735a366d"
})
}
The pulumi import command can be used, for example:
$ pulumi import konnect:index/gatewayPluginAiGcpModelArmor:GatewayPluginAiGcpModelArmor my_konnect_gateway_plugin_ai_gcp_model_armor '{"control_plane_id": "9524ec7d-36d9-465d-a8c5-83a3c9390458", "id": "3473c251-5b6c-4f45-b1ff-7ede735a366d"}'
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- konnect kong/terraform-provider-konnect
- License
- Notes
- This Pulumi package is based on the
konnectTerraform Provider.
published on Friday, Apr 24, 2026 by kong
