published on Friday, Apr 24, 2026 by kong
published on Friday, Apr 24, 2026 by kong
GatewayPluginAiCustomGuardrail Resource
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as konnect from "@pulumi/konnect";
const myGatewaypluginaicustomguardrail = new konnect.GatewayPluginAiCustomGuardrail("my_gatewaypluginaicustomguardrail", {
condition: "...my_condition...",
config: {
allowMasking: false,
customMetrics: {
key: "value",
},
functions: {
key: "value",
},
guardingMode: "INPUT",
metrics: {
blockDetail: "...my_block_detail...",
blockReason: "...my_block_reason...",
masked: "...my_masked...",
},
params: {
key: "value",
},
request: {
auth: {
location: "header",
name: "...my_name...",
value: "...my_value...",
},
body: {
key: "value",
},
headers: {
key: "value",
},
queries: {
key: "value",
},
url: "...my_url...",
},
response: {
block: "...my_block...",
blockMessage: "...my_block_message...",
},
responseBufferSize: 100,
sslVerify: false,
stopOnError: true,
textSource: "last_message",
timeout: 10000,
},
consumer: {
id: "...my_id...",
},
consumerGroup: {
id: "...my_id...",
},
controlPlaneId: "9524ec7d-36d9-465d-a8c5-83a3c9390458",
createdAt: 6,
enabled: true,
gatewayPluginAiCustomGuardrailId: "...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_gatewaypluginaicustomguardrail = konnect.GatewayPluginAiCustomGuardrail("my_gatewaypluginaicustomguardrail",
condition="...my_condition...",
config={
"allow_masking": False,
"custom_metrics": {
"key": "value",
},
"functions": {
"key": "value",
},
"guarding_mode": "INPUT",
"metrics": {
"block_detail": "...my_block_detail...",
"block_reason": "...my_block_reason...",
"masked": "...my_masked...",
},
"params": {
"key": "value",
},
"request": {
"auth": {
"location": "header",
"name": "...my_name...",
"value": "...my_value...",
},
"body": {
"key": "value",
},
"headers": {
"key": "value",
},
"queries": {
"key": "value",
},
"url": "...my_url...",
},
"response": {
"block": "...my_block...",
"block_message": "...my_block_message...",
},
"response_buffer_size": 100,
"ssl_verify": False,
"stop_on_error": True,
"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=6,
enabled=True,
gateway_plugin_ai_custom_guardrail_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.NewGatewayPluginAiCustomGuardrail(ctx, "my_gatewaypluginaicustomguardrail", &konnect.GatewayPluginAiCustomGuardrailArgs{
Condition: pulumi.String("...my_condition..."),
Config: &konnect.GatewayPluginAiCustomGuardrailConfigArgs{
AllowMasking: pulumi.Bool(false),
CustomMetrics: pulumi.StringMap{
"key": pulumi.String("value"),
},
Functions: pulumi.StringMap{
"key": pulumi.String("value"),
},
GuardingMode: pulumi.String("INPUT"),
Metrics: &konnect.GatewayPluginAiCustomGuardrailConfigMetricsArgs{
BlockDetail: pulumi.String("...my_block_detail..."),
BlockReason: pulumi.String("...my_block_reason..."),
Masked: pulumi.String("...my_masked..."),
},
Params: pulumi.StringMap{
"key": pulumi.String("value"),
},
Request: &konnect.GatewayPluginAiCustomGuardrailConfigRequestArgs{
Auth: &konnect.GatewayPluginAiCustomGuardrailConfigRequestAuthArgs{
Location: pulumi.String("header"),
Name: pulumi.String("...my_name..."),
Value: pulumi.String("...my_value..."),
},
Body: pulumi.StringMap{
"key": pulumi.String("value"),
},
Headers: pulumi.StringMap{
"key": pulumi.String("value"),
},
Queries: pulumi.StringMap{
"key": pulumi.String("value"),
},
Url: pulumi.String("...my_url..."),
},
Response: &konnect.GatewayPluginAiCustomGuardrailConfigResponseArgs{
Block: pulumi.String("...my_block..."),
BlockMessage: pulumi.String("...my_block_message..."),
},
ResponseBufferSize: pulumi.Float64(100),
SslVerify: pulumi.Bool(false),
StopOnError: pulumi.Bool(true),
TextSource: pulumi.String("last_message"),
Timeout: pulumi.Float64(10000),
},
Consumer: &konnect.GatewayPluginAiCustomGuardrailConsumerArgs{
Id: pulumi.String("...my_id..."),
},
ConsumerGroup: &konnect.GatewayPluginAiCustomGuardrailConsumerGroupArgs{
Id: pulumi.String("...my_id..."),
},
ControlPlaneId: pulumi.String("9524ec7d-36d9-465d-a8c5-83a3c9390458"),
CreatedAt: pulumi.Float64(6),
Enabled: pulumi.Bool(true),
GatewayPluginAiCustomGuardrailId: pulumi.String("...my_id..."),
InstanceName: pulumi.String("...my_instance_name..."),
Ordering: &konnect.GatewayPluginAiCustomGuardrailOrderingArgs{
After: &konnect.GatewayPluginAiCustomGuardrailOrderingAfterArgs{
Accesses: pulumi.StringArray{
pulumi.String("..."),
},
},
Before: &konnect.GatewayPluginAiCustomGuardrailOrderingBeforeArgs{
Accesses: pulumi.StringArray{
pulumi.String("..."),
},
},
},
Partials: konnect.GatewayPluginAiCustomGuardrailPartialArray{
&konnect.GatewayPluginAiCustomGuardrailPartialArgs{
Id: pulumi.String("...my_id..."),
Name: pulumi.String("...my_name..."),
Path: pulumi.String("...my_path..."),
},
},
Protocols: pulumi.StringArray{
pulumi.String("grpcs"),
},
Route: &konnect.GatewayPluginAiCustomGuardrailRouteArgs{
Id: pulumi.String("...my_id..."),
},
Service: &konnect.GatewayPluginAiCustomGuardrailServiceArgs{
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 myGatewaypluginaicustomguardrail = new Konnect.GatewayPluginAiCustomGuardrail("my_gatewaypluginaicustomguardrail", new()
{
Condition = "...my_condition...",
Config = new Konnect.Inputs.GatewayPluginAiCustomGuardrailConfigArgs
{
AllowMasking = false,
CustomMetrics =
{
{ "key", "value" },
},
Functions =
{
{ "key", "value" },
},
GuardingMode = "INPUT",
Metrics = new Konnect.Inputs.GatewayPluginAiCustomGuardrailConfigMetricsArgs
{
BlockDetail = "...my_block_detail...",
BlockReason = "...my_block_reason...",
Masked = "...my_masked...",
},
Params =
{
{ "key", "value" },
},
Request = new Konnect.Inputs.GatewayPluginAiCustomGuardrailConfigRequestArgs
{
Auth = new Konnect.Inputs.GatewayPluginAiCustomGuardrailConfigRequestAuthArgs
{
Location = "header",
Name = "...my_name...",
Value = "...my_value...",
},
Body =
{
{ "key", "value" },
},
Headers =
{
{ "key", "value" },
},
Queries =
{
{ "key", "value" },
},
Url = "...my_url...",
},
Response = new Konnect.Inputs.GatewayPluginAiCustomGuardrailConfigResponseArgs
{
Block = "...my_block...",
BlockMessage = "...my_block_message...",
},
ResponseBufferSize = 100,
SslVerify = false,
StopOnError = true,
TextSource = "last_message",
Timeout = 10000,
},
Consumer = new Konnect.Inputs.GatewayPluginAiCustomGuardrailConsumerArgs
{
Id = "...my_id...",
},
ConsumerGroup = new Konnect.Inputs.GatewayPluginAiCustomGuardrailConsumerGroupArgs
{
Id = "...my_id...",
},
ControlPlaneId = "9524ec7d-36d9-465d-a8c5-83a3c9390458",
CreatedAt = 6,
Enabled = true,
GatewayPluginAiCustomGuardrailId = "...my_id...",
InstanceName = "...my_instance_name...",
Ordering = new Konnect.Inputs.GatewayPluginAiCustomGuardrailOrderingArgs
{
After = new Konnect.Inputs.GatewayPluginAiCustomGuardrailOrderingAfterArgs
{
Accesses = new[]
{
"...",
},
},
Before = new Konnect.Inputs.GatewayPluginAiCustomGuardrailOrderingBeforeArgs
{
Accesses = new[]
{
"...",
},
},
},
Partials = new[]
{
new Konnect.Inputs.GatewayPluginAiCustomGuardrailPartialArgs
{
Id = "...my_id...",
Name = "...my_name...",
Path = "...my_path...",
},
},
Protocols = new[]
{
"grpcs",
},
Route = new Konnect.Inputs.GatewayPluginAiCustomGuardrailRouteArgs
{
Id = "...my_id...",
},
Service = new Konnect.Inputs.GatewayPluginAiCustomGuardrailServiceArgs
{
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.GatewayPluginAiCustomGuardrail;
import com.pulumi.konnect.GatewayPluginAiCustomGuardrailArgs;
import com.pulumi.konnect.inputs.GatewayPluginAiCustomGuardrailConfigArgs;
import com.pulumi.konnect.inputs.GatewayPluginAiCustomGuardrailConfigMetricsArgs;
import com.pulumi.konnect.inputs.GatewayPluginAiCustomGuardrailConfigRequestArgs;
import com.pulumi.konnect.inputs.GatewayPluginAiCustomGuardrailConfigRequestAuthArgs;
import com.pulumi.konnect.inputs.GatewayPluginAiCustomGuardrailConfigResponseArgs;
import com.pulumi.konnect.inputs.GatewayPluginAiCustomGuardrailConsumerArgs;
import com.pulumi.konnect.inputs.GatewayPluginAiCustomGuardrailConsumerGroupArgs;
import com.pulumi.konnect.inputs.GatewayPluginAiCustomGuardrailOrderingArgs;
import com.pulumi.konnect.inputs.GatewayPluginAiCustomGuardrailOrderingAfterArgs;
import com.pulumi.konnect.inputs.GatewayPluginAiCustomGuardrailOrderingBeforeArgs;
import com.pulumi.konnect.inputs.GatewayPluginAiCustomGuardrailPartialArgs;
import com.pulumi.konnect.inputs.GatewayPluginAiCustomGuardrailRouteArgs;
import com.pulumi.konnect.inputs.GatewayPluginAiCustomGuardrailServiceArgs;
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 myGatewaypluginaicustomguardrail = new GatewayPluginAiCustomGuardrail("myGatewaypluginaicustomguardrail", GatewayPluginAiCustomGuardrailArgs.builder()
.condition("...my_condition...")
.config(GatewayPluginAiCustomGuardrailConfigArgs.builder()
.allowMasking(false)
.customMetrics(Map.of("key", "value"))
.functions(Map.of("key", "value"))
.guardingMode("INPUT")
.metrics(GatewayPluginAiCustomGuardrailConfigMetricsArgs.builder()
.blockDetail("...my_block_detail...")
.blockReason("...my_block_reason...")
.masked("...my_masked...")
.build())
.params(Map.of("key", "value"))
.request(GatewayPluginAiCustomGuardrailConfigRequestArgs.builder()
.auth(GatewayPluginAiCustomGuardrailConfigRequestAuthArgs.builder()
.location("header")
.name("...my_name...")
.value("...my_value...")
.build())
.body(Map.of("key", "value"))
.headers(Map.of("key", "value"))
.queries(Map.of("key", "value"))
.url("...my_url...")
.build())
.response(GatewayPluginAiCustomGuardrailConfigResponseArgs.builder()
.block("...my_block...")
.blockMessage("...my_block_message...")
.build())
.responseBufferSize(100.0)
.sslVerify(false)
.stopOnError(true)
.textSource("last_message")
.timeout(10000.0)
.build())
.consumer(GatewayPluginAiCustomGuardrailConsumerArgs.builder()
.id("...my_id...")
.build())
.consumerGroup(GatewayPluginAiCustomGuardrailConsumerGroupArgs.builder()
.id("...my_id...")
.build())
.controlPlaneId("9524ec7d-36d9-465d-a8c5-83a3c9390458")
.createdAt(6.0)
.enabled(true)
.gatewayPluginAiCustomGuardrailId("...my_id...")
.instanceName("...my_instance_name...")
.ordering(GatewayPluginAiCustomGuardrailOrderingArgs.builder()
.after(GatewayPluginAiCustomGuardrailOrderingAfterArgs.builder()
.accesses("...")
.build())
.before(GatewayPluginAiCustomGuardrailOrderingBeforeArgs.builder()
.accesses("...")
.build())
.build())
.partials(GatewayPluginAiCustomGuardrailPartialArgs.builder()
.id("...my_id...")
.name("...my_name...")
.path("...my_path...")
.build())
.protocols("grpcs")
.route(GatewayPluginAiCustomGuardrailRouteArgs.builder()
.id("...my_id...")
.build())
.service(GatewayPluginAiCustomGuardrailServiceArgs.builder()
.id("...my_id...")
.build())
.tags("...")
.updatedAt(4.0)
.build());
}
}
resources:
myGatewaypluginaicustomguardrail:
type: konnect:GatewayPluginAiCustomGuardrail
name: my_gatewaypluginaicustomguardrail
properties:
condition: '...my_condition...'
config:
allowMasking: false
customMetrics:
key: value
functions:
key: value
guardingMode: INPUT
metrics:
blockDetail: '...my_block_detail...'
blockReason: '...my_block_reason...'
masked: '...my_masked...'
params:
key: value
request:
auth:
location: header
name: '...my_name...'
value: '...my_value...'
body:
key: value
headers:
key: value
queries:
key: value
url: '...my_url...'
response:
block: '...my_block...'
blockMessage: '...my_block_message...'
responseBufferSize: 100
sslVerify: false
stopOnError: true
textSource: last_message
timeout: 10000
consumer:
id: '...my_id...'
consumerGroup:
id: '...my_id...'
controlPlaneId: 9524ec7d-36d9-465d-a8c5-83a3c9390458
createdAt: 6
enabled: true
gatewayPluginAiCustomGuardrailId: '...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 GatewayPluginAiCustomGuardrail Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new GatewayPluginAiCustomGuardrail(name: string, args: GatewayPluginAiCustomGuardrailArgs, opts?: CustomResourceOptions);@overload
def GatewayPluginAiCustomGuardrail(resource_name: str,
args: GatewayPluginAiCustomGuardrailArgs,
opts: Optional[ResourceOptions] = None)
@overload
def GatewayPluginAiCustomGuardrail(resource_name: str,
opts: Optional[ResourceOptions] = None,
control_plane_id: Optional[str] = None,
config: Optional[GatewayPluginAiCustomGuardrailConfigArgs] = None,
instance_name: Optional[str] = None,
ordering: Optional[GatewayPluginAiCustomGuardrailOrderingArgs] = None,
consumer: Optional[GatewayPluginAiCustomGuardrailConsumerArgs] = None,
created_at: Optional[float] = None,
enabled: Optional[bool] = None,
gateway_plugin_ai_custom_guardrail_id: Optional[str] = None,
condition: Optional[str] = None,
consumer_group: Optional[GatewayPluginAiCustomGuardrailConsumerGroupArgs] = None,
partials: Optional[Sequence[GatewayPluginAiCustomGuardrailPartialArgs]] = None,
protocols: Optional[Sequence[str]] = None,
route: Optional[GatewayPluginAiCustomGuardrailRouteArgs] = None,
service: Optional[GatewayPluginAiCustomGuardrailServiceArgs] = None,
tags: Optional[Sequence[str]] = None,
updated_at: Optional[float] = None)func NewGatewayPluginAiCustomGuardrail(ctx *Context, name string, args GatewayPluginAiCustomGuardrailArgs, opts ...ResourceOption) (*GatewayPluginAiCustomGuardrail, error)public GatewayPluginAiCustomGuardrail(string name, GatewayPluginAiCustomGuardrailArgs args, CustomResourceOptions? opts = null)
public GatewayPluginAiCustomGuardrail(String name, GatewayPluginAiCustomGuardrailArgs args)
public GatewayPluginAiCustomGuardrail(String name, GatewayPluginAiCustomGuardrailArgs args, CustomResourceOptions options)
type: konnect:GatewayPluginAiCustomGuardrail
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 GatewayPluginAiCustomGuardrailArgs
- 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 GatewayPluginAiCustomGuardrailArgs
- 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 GatewayPluginAiCustomGuardrailArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args GatewayPluginAiCustomGuardrailArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args GatewayPluginAiCustomGuardrailArgs
- 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 gatewayPluginAiCustomGuardrailResource = new Konnect.GatewayPluginAiCustomGuardrail("gatewayPluginAiCustomGuardrailResource", new()
{
ControlPlaneId = "string",
Config = new Konnect.Inputs.GatewayPluginAiCustomGuardrailConfigArgs
{
Request = new Konnect.Inputs.GatewayPluginAiCustomGuardrailConfigRequestArgs
{
Url = "string",
Auth = new Konnect.Inputs.GatewayPluginAiCustomGuardrailConfigRequestAuthArgs
{
Location = "string",
Name = "string",
Value = "string",
},
Body =
{
{ "string", "string" },
},
Headers =
{
{ "string", "string" },
},
Queries =
{
{ "string", "string" },
},
},
Response = new Konnect.Inputs.GatewayPluginAiCustomGuardrailConfigResponseArgs
{
Block = "string",
BlockMessage = "string",
},
GuardingMode = "string",
AllowMasking = false,
Metrics = new Konnect.Inputs.GatewayPluginAiCustomGuardrailConfigMetricsArgs
{
BlockDetail = "string",
BlockReason = "string",
Masked = "string",
},
Params =
{
{ "string", "string" },
},
Functions =
{
{ "string", "string" },
},
CustomMetrics =
{
{ "string", "string" },
},
ResponseBufferSize = 0,
SslVerify = false,
StopOnError = false,
TextSource = "string",
Timeout = 0,
},
InstanceName = "string",
Ordering = new Konnect.Inputs.GatewayPluginAiCustomGuardrailOrderingArgs
{
After = new Konnect.Inputs.GatewayPluginAiCustomGuardrailOrderingAfterArgs
{
Accesses = new[]
{
"string",
},
},
Before = new Konnect.Inputs.GatewayPluginAiCustomGuardrailOrderingBeforeArgs
{
Accesses = new[]
{
"string",
},
},
},
Consumer = new Konnect.Inputs.GatewayPluginAiCustomGuardrailConsumerArgs
{
Id = "string",
},
CreatedAt = 0,
Enabled = false,
GatewayPluginAiCustomGuardrailId = "string",
Condition = "string",
ConsumerGroup = new Konnect.Inputs.GatewayPluginAiCustomGuardrailConsumerGroupArgs
{
Id = "string",
},
Partials = new[]
{
new Konnect.Inputs.GatewayPluginAiCustomGuardrailPartialArgs
{
Id = "string",
Name = "string",
Path = "string",
},
},
Protocols = new[]
{
"string",
},
Route = new Konnect.Inputs.GatewayPluginAiCustomGuardrailRouteArgs
{
Id = "string",
},
Service = new Konnect.Inputs.GatewayPluginAiCustomGuardrailServiceArgs
{
Id = "string",
},
Tags = new[]
{
"string",
},
UpdatedAt = 0,
});
example, err := konnect.NewGatewayPluginAiCustomGuardrail(ctx, "gatewayPluginAiCustomGuardrailResource", &konnect.GatewayPluginAiCustomGuardrailArgs{
ControlPlaneId: pulumi.String("string"),
Config: &konnect.GatewayPluginAiCustomGuardrailConfigArgs{
Request: &konnect.GatewayPluginAiCustomGuardrailConfigRequestArgs{
Url: pulumi.String("string"),
Auth: &konnect.GatewayPluginAiCustomGuardrailConfigRequestAuthArgs{
Location: pulumi.String("string"),
Name: pulumi.String("string"),
Value: pulumi.String("string"),
},
Body: pulumi.StringMap{
"string": pulumi.String("string"),
},
Headers: pulumi.StringMap{
"string": pulumi.String("string"),
},
Queries: pulumi.StringMap{
"string": pulumi.String("string"),
},
},
Response: &konnect.GatewayPluginAiCustomGuardrailConfigResponseArgs{
Block: pulumi.String("string"),
BlockMessage: pulumi.String("string"),
},
GuardingMode: pulumi.String("string"),
AllowMasking: pulumi.Bool(false),
Metrics: &konnect.GatewayPluginAiCustomGuardrailConfigMetricsArgs{
BlockDetail: pulumi.String("string"),
BlockReason: pulumi.String("string"),
Masked: pulumi.String("string"),
},
Params: pulumi.StringMap{
"string": pulumi.String("string"),
},
Functions: pulumi.StringMap{
"string": pulumi.String("string"),
},
CustomMetrics: pulumi.StringMap{
"string": pulumi.String("string"),
},
ResponseBufferSize: pulumi.Float64(0),
SslVerify: pulumi.Bool(false),
StopOnError: pulumi.Bool(false),
TextSource: pulumi.String("string"),
Timeout: pulumi.Float64(0),
},
InstanceName: pulumi.String("string"),
Ordering: &konnect.GatewayPluginAiCustomGuardrailOrderingArgs{
After: &konnect.GatewayPluginAiCustomGuardrailOrderingAfterArgs{
Accesses: pulumi.StringArray{
pulumi.String("string"),
},
},
Before: &konnect.GatewayPluginAiCustomGuardrailOrderingBeforeArgs{
Accesses: pulumi.StringArray{
pulumi.String("string"),
},
},
},
Consumer: &konnect.GatewayPluginAiCustomGuardrailConsumerArgs{
Id: pulumi.String("string"),
},
CreatedAt: pulumi.Float64(0),
Enabled: pulumi.Bool(false),
GatewayPluginAiCustomGuardrailId: pulumi.String("string"),
Condition: pulumi.String("string"),
ConsumerGroup: &konnect.GatewayPluginAiCustomGuardrailConsumerGroupArgs{
Id: pulumi.String("string"),
},
Partials: konnect.GatewayPluginAiCustomGuardrailPartialArray{
&konnect.GatewayPluginAiCustomGuardrailPartialArgs{
Id: pulumi.String("string"),
Name: pulumi.String("string"),
Path: pulumi.String("string"),
},
},
Protocols: pulumi.StringArray{
pulumi.String("string"),
},
Route: &konnect.GatewayPluginAiCustomGuardrailRouteArgs{
Id: pulumi.String("string"),
},
Service: &konnect.GatewayPluginAiCustomGuardrailServiceArgs{
Id: pulumi.String("string"),
},
Tags: pulumi.StringArray{
pulumi.String("string"),
},
UpdatedAt: pulumi.Float64(0),
})
var gatewayPluginAiCustomGuardrailResource = new GatewayPluginAiCustomGuardrail("gatewayPluginAiCustomGuardrailResource", GatewayPluginAiCustomGuardrailArgs.builder()
.controlPlaneId("string")
.config(GatewayPluginAiCustomGuardrailConfigArgs.builder()
.request(GatewayPluginAiCustomGuardrailConfigRequestArgs.builder()
.url("string")
.auth(GatewayPluginAiCustomGuardrailConfigRequestAuthArgs.builder()
.location("string")
.name("string")
.value("string")
.build())
.body(Map.of("string", "string"))
.headers(Map.of("string", "string"))
.queries(Map.of("string", "string"))
.build())
.response(GatewayPluginAiCustomGuardrailConfigResponseArgs.builder()
.block("string")
.blockMessage("string")
.build())
.guardingMode("string")
.allowMasking(false)
.metrics(GatewayPluginAiCustomGuardrailConfigMetricsArgs.builder()
.blockDetail("string")
.blockReason("string")
.masked("string")
.build())
.params(Map.of("string", "string"))
.functions(Map.of("string", "string"))
.customMetrics(Map.of("string", "string"))
.responseBufferSize(0.0)
.sslVerify(false)
.stopOnError(false)
.textSource("string")
.timeout(0.0)
.build())
.instanceName("string")
.ordering(GatewayPluginAiCustomGuardrailOrderingArgs.builder()
.after(GatewayPluginAiCustomGuardrailOrderingAfterArgs.builder()
.accesses("string")
.build())
.before(GatewayPluginAiCustomGuardrailOrderingBeforeArgs.builder()
.accesses("string")
.build())
.build())
.consumer(GatewayPluginAiCustomGuardrailConsumerArgs.builder()
.id("string")
.build())
.createdAt(0.0)
.enabled(false)
.gatewayPluginAiCustomGuardrailId("string")
.condition("string")
.consumerGroup(GatewayPluginAiCustomGuardrailConsumerGroupArgs.builder()
.id("string")
.build())
.partials(GatewayPluginAiCustomGuardrailPartialArgs.builder()
.id("string")
.name("string")
.path("string")
.build())
.protocols("string")
.route(GatewayPluginAiCustomGuardrailRouteArgs.builder()
.id("string")
.build())
.service(GatewayPluginAiCustomGuardrailServiceArgs.builder()
.id("string")
.build())
.tags("string")
.updatedAt(0.0)
.build());
gateway_plugin_ai_custom_guardrail_resource = konnect.GatewayPluginAiCustomGuardrail("gatewayPluginAiCustomGuardrailResource",
control_plane_id="string",
config={
"request": {
"url": "string",
"auth": {
"location": "string",
"name": "string",
"value": "string",
},
"body": {
"string": "string",
},
"headers": {
"string": "string",
},
"queries": {
"string": "string",
},
},
"response": {
"block": "string",
"block_message": "string",
},
"guarding_mode": "string",
"allow_masking": False,
"metrics": {
"block_detail": "string",
"block_reason": "string",
"masked": "string",
},
"params": {
"string": "string",
},
"functions": {
"string": "string",
},
"custom_metrics": {
"string": "string",
},
"response_buffer_size": float(0),
"ssl_verify": False,
"stop_on_error": False,
"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_custom_guardrail_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 gatewayPluginAiCustomGuardrailResource = new konnect.GatewayPluginAiCustomGuardrail("gatewayPluginAiCustomGuardrailResource", {
controlPlaneId: "string",
config: {
request: {
url: "string",
auth: {
location: "string",
name: "string",
value: "string",
},
body: {
string: "string",
},
headers: {
string: "string",
},
queries: {
string: "string",
},
},
response: {
block: "string",
blockMessage: "string",
},
guardingMode: "string",
allowMasking: false,
metrics: {
blockDetail: "string",
blockReason: "string",
masked: "string",
},
params: {
string: "string",
},
functions: {
string: "string",
},
customMetrics: {
string: "string",
},
responseBufferSize: 0,
sslVerify: false,
stopOnError: false,
textSource: "string",
timeout: 0,
},
instanceName: "string",
ordering: {
after: {
accesses: ["string"],
},
before: {
accesses: ["string"],
},
},
consumer: {
id: "string",
},
createdAt: 0,
enabled: false,
gatewayPluginAiCustomGuardrailId: "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:GatewayPluginAiCustomGuardrail
properties:
condition: string
config:
allowMasking: false
customMetrics:
string: string
functions:
string: string
guardingMode: string
metrics:
blockDetail: string
blockReason: string
masked: string
params:
string: string
request:
auth:
location: string
name: string
value: string
body:
string: string
headers:
string: string
queries:
string: string
url: string
response:
block: string
blockMessage: string
responseBufferSize: 0
sslVerify: false
stopOnError: false
textSource: string
timeout: 0
consumer:
id: string
consumerGroup:
id: string
controlPlaneId: string
createdAt: 0
enabled: false
gatewayPluginAiCustomGuardrailId: 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
GatewayPluginAiCustomGuardrail 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 GatewayPluginAiCustomGuardrail resource accepts the following input properties:
- Config
Gateway
Plugin Ai Custom Guardrail 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 Custom Guardrail 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 Custom Guardrail 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 Custom Guardrail 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 Custom Guardrail Ordering - Partials
List<Gateway
Plugin Ai Custom Guardrail 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 Custom Guardrail 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 Custom Guardrail 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 Custom Guardrail 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 Custom Guardrail 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 Custom Guardrail 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 Custom Guardrail 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 Custom Guardrail Ordering Args - Partials
[]Gateway
Plugin Ai Custom Guardrail 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 Custom Guardrail 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 Custom Guardrail 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 Custom Guardrail 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 Custom Guardrail 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 Custom Guardrail 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 Custom Guardrail 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 Custom Guardrail Ordering - partials
List<Gateway
Plugin Ai Custom Guardrail 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 Custom Guardrail 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 Custom Guardrail 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 Custom Guardrail 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 Custom Guardrail 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 Custom Guardrail 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 Custom Guardrail 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 Custom Guardrail Ordering - partials
Gateway
Plugin Ai Custom Guardrail 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 Custom Guardrail 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 Custom Guardrail 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 Custom Guardrail 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 Custom Guardrail 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 Custom Guardrail 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_ custom_ guardrail_ 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 Custom Guardrail Ordering Args - partials
Sequence[Gateway
Plugin Ai Custom Guardrail 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 Custom Guardrail 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 Custom Guardrail 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 Custom Guardrail 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 GatewayPluginAiCustomGuardrail 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 GatewayPluginAiCustomGuardrail Resource
Get an existing GatewayPluginAiCustomGuardrail 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?: GatewayPluginAiCustomGuardrailState, opts?: CustomResourceOptions): GatewayPluginAiCustomGuardrail@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
condition: Optional[str] = None,
config: Optional[GatewayPluginAiCustomGuardrailConfigArgs] = None,
consumer: Optional[GatewayPluginAiCustomGuardrailConsumerArgs] = None,
consumer_group: Optional[GatewayPluginAiCustomGuardrailConsumerGroupArgs] = None,
control_plane_id: Optional[str] = None,
created_at: Optional[float] = None,
enabled: Optional[bool] = None,
gateway_plugin_ai_custom_guardrail_id: Optional[str] = None,
instance_name: Optional[str] = None,
ordering: Optional[GatewayPluginAiCustomGuardrailOrderingArgs] = None,
partials: Optional[Sequence[GatewayPluginAiCustomGuardrailPartialArgs]] = None,
protocols: Optional[Sequence[str]] = None,
route: Optional[GatewayPluginAiCustomGuardrailRouteArgs] = None,
service: Optional[GatewayPluginAiCustomGuardrailServiceArgs] = None,
tags: Optional[Sequence[str]] = None,
updated_at: Optional[float] = None) -> GatewayPluginAiCustomGuardrailfunc GetGatewayPluginAiCustomGuardrail(ctx *Context, name string, id IDInput, state *GatewayPluginAiCustomGuardrailState, opts ...ResourceOption) (*GatewayPluginAiCustomGuardrail, error)public static GatewayPluginAiCustomGuardrail Get(string name, Input<string> id, GatewayPluginAiCustomGuardrailState? state, CustomResourceOptions? opts = null)public static GatewayPluginAiCustomGuardrail get(String name, Output<String> id, GatewayPluginAiCustomGuardrailState state, CustomResourceOptions options)resources: _: type: konnect:GatewayPluginAiCustomGuardrail 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 Custom Guardrail Config - Consumer
Gateway
Plugin Ai Custom Guardrail 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 Custom Guardrail 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 Custom Guardrail 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 Custom Guardrail Ordering - Partials
List<Gateway
Plugin Ai Custom Guardrail 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 Custom Guardrail 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 Custom Guardrail 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 Custom Guardrail Config Args - Consumer
Gateway
Plugin Ai Custom Guardrail 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 Custom Guardrail 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 Custom Guardrail 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 Custom Guardrail Ordering Args - Partials
[]Gateway
Plugin Ai Custom Guardrail 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 Custom Guardrail 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 Custom Guardrail 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 Custom Guardrail Config - consumer
Gateway
Plugin Ai Custom Guardrail 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 Custom Guardrail 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 Custom Guardrail 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 Custom Guardrail Ordering - partials
List<Gateway
Plugin Ai Custom Guardrail 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 Custom Guardrail 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 Custom Guardrail 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 Custom Guardrail Config - consumer
Gateway
Plugin Ai Custom Guardrail 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 Custom Guardrail 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 Custom Guardrail 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 Custom Guardrail Ordering - partials
Gateway
Plugin Ai Custom Guardrail 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 Custom Guardrail 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 Custom Guardrail 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 Custom Guardrail Config Args - consumer
Gateway
Plugin Ai Custom Guardrail 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 Custom Guardrail 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_ custom_ guardrail_ 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 Custom Guardrail Ordering Args - partials
Sequence[Gateway
Plugin Ai Custom Guardrail 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 Custom Guardrail 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 Custom Guardrail 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 Custom Guardrail 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
GatewayPluginAiCustomGuardrailConfig, GatewayPluginAiCustomGuardrailConfigArgs
- Request
Gateway
Plugin Ai Custom Guardrail Config Request - Configuration specific to guardrail request.
- Response
Gateway
Plugin Ai Custom Guardrail Config Response - Configuration specific to parse guardrail response.
- Allow
Masking bool - Allow to masking the request/response instead of blocking it. Streaming will be disabled if this is enabled. Default: false
- Custom
Metrics Dictionary<string, string> - A list of custom metrics to be recorded.
- Functions Dictionary<string, string>
- Custom functions to be used in expression templates.
- Guarding
Mode string - The guardrail mode to use for the request. possible known values include one of ["BOTH", "INPUT", "OUTPUT"]; Default: "INPUT"
- Metrics
Gateway
Plugin Ai Custom Guardrail Config Metrics - Params Dictionary<string, string>
- Parameters to be used in the guardrail service request. Keys are the parameter name and values can be either Lua expressions in the form
$(some_lua_expression)or string. For expression, it will be evaluated as the value for the corresponding key. For string, it will be attempted to be parsed as string in JSON format, otherwise it will be used as is. - Response
Buffer doubleSize - The amount of bytes receiving from upstream to be buffered before sending to the guardrail service. This only applies to the response content guard. Default: 100
- Ssl
Verify bool - Whether to verify SSL certificate when Kong makes request to guardrail service. Default: false
- Stop
On boolError - Stop processing if an error occurs. Default: true
- Text
Source string - Select where to pick the 'text' for the guardrail service request. possible known values include one of ["concatenateallcontent", "concatenateusercontent", "lastmessage"]; Default: "lastmessage"
- Timeout double
- Connection timeout with the guardrail service. Default: 10000
- Request
Gateway
Plugin Ai Custom Guardrail Config Request - Configuration specific to guardrail request.
- Response
Gateway
Plugin Ai Custom Guardrail Config Response - Configuration specific to parse guardrail response.
- Allow
Masking bool - Allow to masking the request/response instead of blocking it. Streaming will be disabled if this is enabled. Default: false
- Custom
Metrics map[string]string - A list of custom metrics to be recorded.
- Functions map[string]string
- Custom functions to be used in expression templates.
- Guarding
Mode string - The guardrail mode to use for the request. possible known values include one of ["BOTH", "INPUT", "OUTPUT"]; Default: "INPUT"
- Metrics
Gateway
Plugin Ai Custom Guardrail Config Metrics - Params map[string]string
- Parameters to be used in the guardrail service request. Keys are the parameter name and values can be either Lua expressions in the form
$(some_lua_expression)or string. For expression, it will be evaluated as the value for the corresponding key. For string, it will be attempted to be parsed as string in JSON format, otherwise it will be used as is. - Response
Buffer float64Size - The amount of bytes receiving from upstream to be buffered before sending to the guardrail service. This only applies to the response content guard. Default: 100
- Ssl
Verify bool - Whether to verify SSL certificate when Kong makes request to guardrail service. Default: false
- Stop
On boolError - Stop processing if an error occurs. Default: true
- Text
Source string - Select where to pick the 'text' for the guardrail service request. possible known values include one of ["concatenateallcontent", "concatenateusercontent", "lastmessage"]; Default: "lastmessage"
- Timeout float64
- Connection timeout with the guardrail service. Default: 10000
- request
Gateway
Plugin Ai Custom Guardrail Config Request - Configuration specific to guardrail request.
- response
Gateway
Plugin Ai Custom Guardrail Config Response - Configuration specific to parse guardrail response.
- allow
Masking Boolean - Allow to masking the request/response instead of blocking it. Streaming will be disabled if this is enabled. Default: false
- custom
Metrics Map<String,String> - A list of custom metrics to be recorded.
- functions Map<String,String>
- Custom functions to be used in expression templates.
- guarding
Mode String - The guardrail mode to use for the request. possible known values include one of ["BOTH", "INPUT", "OUTPUT"]; Default: "INPUT"
- metrics
Gateway
Plugin Ai Custom Guardrail Config Metrics - params Map<String,String>
- Parameters to be used in the guardrail service request. Keys are the parameter name and values can be either Lua expressions in the form
$(some_lua_expression)or string. For expression, it will be evaluated as the value for the corresponding key. For string, it will be attempted to be parsed as string in JSON format, otherwise it will be used as is. - response
Buffer DoubleSize - The amount of bytes receiving from upstream to be buffered before sending to the guardrail service. This only applies to the response content guard. Default: 100
- ssl
Verify Boolean - Whether to verify SSL certificate when Kong makes request to guardrail service. Default: false
- stop
On BooleanError - Stop processing if an error occurs. Default: true
- text
Source String - Select where to pick the 'text' for the guardrail service request. possible known values include one of ["concatenateallcontent", "concatenateusercontent", "lastmessage"]; Default: "lastmessage"
- timeout Double
- Connection timeout with the guardrail service. Default: 10000
- request
Gateway
Plugin Ai Custom Guardrail Config Request - Configuration specific to guardrail request.
- response
Gateway
Plugin Ai Custom Guardrail Config Response - Configuration specific to parse guardrail response.
- allow
Masking boolean - Allow to masking the request/response instead of blocking it. Streaming will be disabled if this is enabled. Default: false
- custom
Metrics {[key: string]: string} - A list of custom metrics to be recorded.
- functions {[key: string]: string}
- Custom functions to be used in expression templates.
- guarding
Mode string - The guardrail mode to use for the request. possible known values include one of ["BOTH", "INPUT", "OUTPUT"]; Default: "INPUT"
- metrics
Gateway
Plugin Ai Custom Guardrail Config Metrics - params {[key: string]: string}
- Parameters to be used in the guardrail service request. Keys are the parameter name and values can be either Lua expressions in the form
$(some_lua_expression)or string. For expression, it will be evaluated as the value for the corresponding key. For string, it will be attempted to be parsed as string in JSON format, otherwise it will be used as is. - response
Buffer numberSize - The amount of bytes receiving from upstream to be buffered before sending to the guardrail service. This only applies to the response content guard. Default: 100
- ssl
Verify boolean - Whether to verify SSL certificate when Kong makes request to guardrail service. Default: false
- stop
On booleanError - Stop processing if an error occurs. Default: true
- text
Source string - Select where to pick the 'text' for the guardrail service request. possible known values include one of ["concatenateallcontent", "concatenateusercontent", "lastmessage"]; Default: "lastmessage"
- timeout number
- Connection timeout with the guardrail service. Default: 10000
- request
Gateway
Plugin Ai Custom Guardrail Config Request - Configuration specific to guardrail request.
- response
Gateway
Plugin Ai Custom Guardrail Config Response - Configuration specific to parse guardrail response.
- allow_
masking bool - Allow to masking the request/response instead of blocking it. Streaming will be disabled if this is enabled. Default: false
- custom_
metrics Mapping[str, str] - A list of custom metrics to be recorded.
- functions Mapping[str, str]
- Custom functions to be used in expression templates.
- guarding_
mode str - The guardrail mode to use for the request. possible known values include one of ["BOTH", "INPUT", "OUTPUT"]; Default: "INPUT"
- metrics
Gateway
Plugin Ai Custom Guardrail Config Metrics - params Mapping[str, str]
- Parameters to be used in the guardrail service request. Keys are the parameter name and values can be either Lua expressions in the form
$(some_lua_expression)or string. For expression, it will be evaluated as the value for the corresponding key. For string, it will be attempted to be parsed as string in JSON format, otherwise it will be used as is. - response_
buffer_ floatsize - The amount of bytes receiving from upstream to be buffered before sending to the guardrail service. This only applies to the response content guard. Default: 100
- ssl_
verify bool - Whether to verify SSL certificate when Kong makes request to guardrail service. Default: false
- stop_
on_ boolerror - Stop processing if an error occurs. Default: true
- text_
source str - Select where to pick the 'text' for the guardrail service request. possible known values include one of ["concatenateallcontent", "concatenateusercontent", "lastmessage"]; Default: "lastmessage"
- timeout float
- Connection timeout with the guardrail service. Default: 10000
- request Property Map
- Configuration specific to guardrail request.
- response Property Map
- Configuration specific to parse guardrail response.
- allow
Masking Boolean - Allow to masking the request/response instead of blocking it. Streaming will be disabled if this is enabled. Default: false
- custom
Metrics Map<String> - A list of custom metrics to be recorded.
- functions Map<String>
- Custom functions to be used in expression templates.
- guarding
Mode String - The guardrail mode to use for the request. possible known values include one of ["BOTH", "INPUT", "OUTPUT"]; Default: "INPUT"
- metrics Property Map
- params Map<String>
- Parameters to be used in the guardrail service request. Keys are the parameter name and values can be either Lua expressions in the form
$(some_lua_expression)or string. For expression, it will be evaluated as the value for the corresponding key. For string, it will be attempted to be parsed as string in JSON format, otherwise it will be used as is. - response
Buffer NumberSize - The amount of bytes receiving from upstream to be buffered before sending to the guardrail service. This only applies to the response content guard. Default: 100
- ssl
Verify Boolean - Whether to verify SSL certificate when Kong makes request to guardrail service. Default: false
- stop
On BooleanError - Stop processing if an error occurs. Default: true
- text
Source String - Select where to pick the 'text' for the guardrail service request. possible known values include one of ["concatenateallcontent", "concatenateusercontent", "lastmessage"]; Default: "lastmessage"
- timeout Number
- Connection timeout with the guardrail service. Default: 10000
GatewayPluginAiCustomGuardrailConfigMetrics, GatewayPluginAiCustomGuardrailConfigMetricsArgs
- Block
Detail string - Metric to indicate the detail for blocking the input.
- Block
Reason string - Metric to indicate the reason for blocking the input.
- Masked string
- Metric to indicate whether the input was masked.
- Block
Detail string - Metric to indicate the detail for blocking the input.
- Block
Reason string - Metric to indicate the reason for blocking the input.
- Masked string
- Metric to indicate whether the input was masked.
- block
Detail String - Metric to indicate the detail for blocking the input.
- block
Reason String - Metric to indicate the reason for blocking the input.
- masked String
- Metric to indicate whether the input was masked.
- block
Detail string - Metric to indicate the detail for blocking the input.
- block
Reason string - Metric to indicate the reason for blocking the input.
- masked string
- Metric to indicate whether the input was masked.
- block_
detail str - Metric to indicate the detail for blocking the input.
- block_
reason str - Metric to indicate the reason for blocking the input.
- masked str
- Metric to indicate whether the input was masked.
- block
Detail String - Metric to indicate the detail for blocking the input.
- block
Reason String - Metric to indicate the reason for blocking the input.
- masked String
- Metric to indicate whether the input was masked.
GatewayPluginAiCustomGuardrailConfigRequest, GatewayPluginAiCustomGuardrailConfigRequestArgs
- Url string
- the url string or a template to generate one
- Auth
Gateway
Plugin Ai Custom Guardrail Config Request Auth - Authentication configuration for HTTP request.
- Body Dictionary<string, string>
- A map used to evaluate a JSON object. Keys are the field names in the new object, and values can be either Lua expressions in the form
$(some_lua_expression)or string. For expression, it will be evaluated as the value for the corresponding key. For string, it will be decoded as string in JSON format or be used as is. - Headers Dictionary<string, string>
- A map used to evaluate a JSON object. Keys are the field names in the new object, and values can be either Lua expressions in the form
$(some_lua_expression)or string. For expression, it will be evaluated as the value for the corresponding key. For string, it will be decoded as string in JSON format or be used as is. - Queries Dictionary<string, string>
- A map used to evaluate a JSON object. Keys are the field names in the new object, and values can be either Lua expressions in the form
$(some_lua_expression)or string. For expression, it will be evaluated as the value for the corresponding key. For string, it will be decoded as string in JSON format or be used as is.
- Url string
- the url string or a template to generate one
- Auth
Gateway
Plugin Ai Custom Guardrail Config Request Auth - Authentication configuration for HTTP request.
- Body map[string]string
- A map used to evaluate a JSON object. Keys are the field names in the new object, and values can be either Lua expressions in the form
$(some_lua_expression)or string. For expression, it will be evaluated as the value for the corresponding key. For string, it will be decoded as string in JSON format or be used as is. - Headers map[string]string
- A map used to evaluate a JSON object. Keys are the field names in the new object, and values can be either Lua expressions in the form
$(some_lua_expression)or string. For expression, it will be evaluated as the value for the corresponding key. For string, it will be decoded as string in JSON format or be used as is. - Queries map[string]string
- A map used to evaluate a JSON object. Keys are the field names in the new object, and values can be either Lua expressions in the form
$(some_lua_expression)or string. For expression, it will be evaluated as the value for the corresponding key. For string, it will be decoded as string in JSON format or be used as is.
- url String
- the url string or a template to generate one
- auth
Gateway
Plugin Ai Custom Guardrail Config Request Auth - Authentication configuration for HTTP request.
- body Map<String,String>
- A map used to evaluate a JSON object. Keys are the field names in the new object, and values can be either Lua expressions in the form
$(some_lua_expression)or string. For expression, it will be evaluated as the value for the corresponding key. For string, it will be decoded as string in JSON format or be used as is. - headers Map<String,String>
- A map used to evaluate a JSON object. Keys are the field names in the new object, and values can be either Lua expressions in the form
$(some_lua_expression)or string. For expression, it will be evaluated as the value for the corresponding key. For string, it will be decoded as string in JSON format or be used as is. - queries Map<String,String>
- A map used to evaluate a JSON object. Keys are the field names in the new object, and values can be either Lua expressions in the form
$(some_lua_expression)or string. For expression, it will be evaluated as the value for the corresponding key. For string, it will be decoded as string in JSON format or be used as is.
- url string
- the url string or a template to generate one
- auth
Gateway
Plugin Ai Custom Guardrail Config Request Auth - Authentication configuration for HTTP request.
- body {[key: string]: string}
- A map used to evaluate a JSON object. Keys are the field names in the new object, and values can be either Lua expressions in the form
$(some_lua_expression)or string. For expression, it will be evaluated as the value for the corresponding key. For string, it will be decoded as string in JSON format or be used as is. - headers {[key: string]: string}
- A map used to evaluate a JSON object. Keys are the field names in the new object, and values can be either Lua expressions in the form
$(some_lua_expression)or string. For expression, it will be evaluated as the value for the corresponding key. For string, it will be decoded as string in JSON format or be used as is. - queries {[key: string]: string}
- A map used to evaluate a JSON object. Keys are the field names in the new object, and values can be either Lua expressions in the form
$(some_lua_expression)or string. For expression, it will be evaluated as the value for the corresponding key. For string, it will be decoded as string in JSON format or be used as is.
- url str
- the url string or a template to generate one
- auth
Gateway
Plugin Ai Custom Guardrail Config Request Auth - Authentication configuration for HTTP request.
- body Mapping[str, str]
- A map used to evaluate a JSON object. Keys are the field names in the new object, and values can be either Lua expressions in the form
$(some_lua_expression)or string. For expression, it will be evaluated as the value for the corresponding key. For string, it will be decoded as string in JSON format or be used as is. - headers Mapping[str, str]
- A map used to evaluate a JSON object. Keys are the field names in the new object, and values can be either Lua expressions in the form
$(some_lua_expression)or string. For expression, it will be evaluated as the value for the corresponding key. For string, it will be decoded as string in JSON format or be used as is. - queries Mapping[str, str]
- A map used to evaluate a JSON object. Keys are the field names in the new object, and values can be either Lua expressions in the form
$(some_lua_expression)or string. For expression, it will be evaluated as the value for the corresponding key. For string, it will be decoded as string in JSON format or be used as is.
- url String
- the url string or a template to generate one
- auth Property Map
- Authentication configuration for HTTP request.
- body Map<String>
- A map used to evaluate a JSON object. Keys are the field names in the new object, and values can be either Lua expressions in the form
$(some_lua_expression)or string. For expression, it will be evaluated as the value for the corresponding key. For string, it will be decoded as string in JSON format or be used as is. - headers Map<String>
- A map used to evaluate a JSON object. Keys are the field names in the new object, and values can be either Lua expressions in the form
$(some_lua_expression)or string. For expression, it will be evaluated as the value for the corresponding key. For string, it will be decoded as string in JSON format or be used as is. - queries Map<String>
- A map used to evaluate a JSON object. Keys are the field names in the new object, and values can be either Lua expressions in the form
$(some_lua_expression)or string. For expression, it will be evaluated as the value for the corresponding key. For string, it will be decoded as string in JSON format or be used as is.
GatewayPluginAiCustomGuardrailConfigRequestAuth, GatewayPluginAiCustomGuardrailConfigRequestAuthArgs
GatewayPluginAiCustomGuardrailConfigResponse, GatewayPluginAiCustomGuardrailConfigResponseArgs
- Block string
- template or string to evaluate block field
- Block
Message string - template or string to evaluate block_message field
- Block string
- template or string to evaluate block field
- Block
Message string - template or string to evaluate block_message field
- block String
- template or string to evaluate block field
- block
Message String - template or string to evaluate block_message field
- block string
- template or string to evaluate block field
- block
Message string - template or string to evaluate block_message field
- block str
- template or string to evaluate block field
- block_
message str - template or string to evaluate block_message field
- block String
- template or string to evaluate block field
- block
Message String - template or string to evaluate block_message field
GatewayPluginAiCustomGuardrailConsumer, GatewayPluginAiCustomGuardrailConsumerArgs
- Id string
- Id string
- id String
- id string
- id str
- id String
GatewayPluginAiCustomGuardrailConsumerGroup, GatewayPluginAiCustomGuardrailConsumerGroupArgs
- Id string
- Id string
- id String
- id string
- id str
- id String
GatewayPluginAiCustomGuardrailOrdering, GatewayPluginAiCustomGuardrailOrderingArgs
GatewayPluginAiCustomGuardrailOrderingAfter, GatewayPluginAiCustomGuardrailOrderingAfterArgs
- Accesses List<string>
- Accesses []string
- accesses List<String>
- accesses string[]
- accesses Sequence[str]
- accesses List<String>
GatewayPluginAiCustomGuardrailOrderingBefore, GatewayPluginAiCustomGuardrailOrderingBeforeArgs
- Accesses List<string>
- Accesses []string
- accesses List<String>
- accesses string[]
- accesses Sequence[str]
- accesses List<String>
GatewayPluginAiCustomGuardrailPartial, GatewayPluginAiCustomGuardrailPartialArgs
GatewayPluginAiCustomGuardrailRoute, GatewayPluginAiCustomGuardrailRouteArgs
- Id string
- Id string
- id String
- id string
- id str
- id String
GatewayPluginAiCustomGuardrailService, GatewayPluginAiCustomGuardrailServiceArgs
- 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_custom_guardrail.my_konnect_gateway_plugin_ai_custom_guardrail
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/gatewayPluginAiCustomGuardrail:GatewayPluginAiCustomGuardrail my_konnect_gateway_plugin_ai_custom_guardrail '{"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
