1. Packages
  2. Packages
  3. Konnect Provider
  4. API Docs
  5. GatewayPluginAiCustomGuardrail
Viewing docs for konnect 3.14.0
published on Friday, Apr 24, 2026 by kong
Viewing docs for konnect 3.14.0
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 GatewayPluginAiCustomGuardrailConfig
    ControlPlaneId string
    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 true during the request flow, the plugin is executed; otherwise, it is skipped.
    Consumer GatewayPluginAiCustomGuardrailConsumer
    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.
    ConsumerGroup GatewayPluginAiCustomGuardrailConsumerGroup
    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
    CreatedAt double
    Unix epoch when the resource was created.
    Enabled bool
    Whether the plugin is applied. Default: true
    GatewayPluginAiCustomGuardrailId string
    A string representing a UUID (universally unique identifier).
    InstanceName string
    A unique string representing a UTF-8 encoded name.
    Ordering GatewayPluginAiCustomGuardrailOrdering
    Partials List<GatewayPluginAiCustomGuardrailPartial>
    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 GatewayPluginAiCustomGuardrailRoute
    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 GatewayPluginAiCustomGuardrailService
    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.
    Tags List<string>
    An optional set of strings associated with the Plugin for grouping and filtering.
    UpdatedAt double
    Unix epoch when the resource was last updated.
    Config GatewayPluginAiCustomGuardrailConfigArgs
    ControlPlaneId string
    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 true during the request flow, the plugin is executed; otherwise, it is skipped.
    Consumer GatewayPluginAiCustomGuardrailConsumerArgs
    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.
    ConsumerGroup GatewayPluginAiCustomGuardrailConsumerGroupArgs
    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
    CreatedAt float64
    Unix epoch when the resource was created.
    Enabled bool
    Whether the plugin is applied. Default: true
    GatewayPluginAiCustomGuardrailId string
    A string representing a UUID (universally unique identifier).
    InstanceName string
    A unique string representing a UTF-8 encoded name.
    Ordering GatewayPluginAiCustomGuardrailOrderingArgs
    Partials []GatewayPluginAiCustomGuardrailPartialArgs
    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 GatewayPluginAiCustomGuardrailRouteArgs
    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 GatewayPluginAiCustomGuardrailServiceArgs
    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.
    Tags []string
    An optional set of strings associated with the Plugin for grouping and filtering.
    UpdatedAt float64
    Unix epoch when the resource was last updated.
    config GatewayPluginAiCustomGuardrailConfig
    controlPlaneId String
    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 true during the request flow, the plugin is executed; otherwise, it is skipped.
    consumer GatewayPluginAiCustomGuardrailConsumer
    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.
    consumerGroup GatewayPluginAiCustomGuardrailConsumerGroup
    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
    createdAt Double
    Unix epoch when the resource was created.
    enabled Boolean
    Whether the plugin is applied. Default: true
    gatewayPluginAiCustomGuardrailId String
    A string representing a UUID (universally unique identifier).
    instanceName String
    A unique string representing a UTF-8 encoded name.
    ordering GatewayPluginAiCustomGuardrailOrdering
    partials List<GatewayPluginAiCustomGuardrailPartial>
    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 GatewayPluginAiCustomGuardrailRoute
    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 GatewayPluginAiCustomGuardrailService
    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.
    tags List<String>
    An optional set of strings associated with the Plugin for grouping and filtering.
    updatedAt Double
    Unix epoch when the resource was last updated.
    config GatewayPluginAiCustomGuardrailConfig
    controlPlaneId string
    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 true during the request flow, the plugin is executed; otherwise, it is skipped.
    consumer GatewayPluginAiCustomGuardrailConsumer
    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.
    consumerGroup GatewayPluginAiCustomGuardrailConsumerGroup
    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
    createdAt number
    Unix epoch when the resource was created.
    enabled boolean
    Whether the plugin is applied. Default: true
    gatewayPluginAiCustomGuardrailId string
    A string representing a UUID (universally unique identifier).
    instanceName string
    A unique string representing a UTF-8 encoded name.
    ordering GatewayPluginAiCustomGuardrailOrdering
    partials GatewayPluginAiCustomGuardrailPartial[]
    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 GatewayPluginAiCustomGuardrailRoute
    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 GatewayPluginAiCustomGuardrailService
    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.
    tags string[]
    An optional set of strings associated with the Plugin for grouping and filtering.
    updatedAt number
    Unix epoch when the resource was last updated.
    config GatewayPluginAiCustomGuardrailConfigArgs
    control_plane_id str
    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 true during the request flow, the plugin is executed; otherwise, it is skipped.
    consumer GatewayPluginAiCustomGuardrailConsumerArgs
    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 GatewayPluginAiCustomGuardrailConsumerGroupArgs
    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_ai_custom_guardrail_id str
    A string representing a UUID (universally unique identifier).
    instance_name str
    A unique string representing a UTF-8 encoded name.
    ordering GatewayPluginAiCustomGuardrailOrderingArgs
    partials Sequence[GatewayPluginAiCustomGuardrailPartialArgs]
    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 GatewayPluginAiCustomGuardrailRouteArgs
    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 GatewayPluginAiCustomGuardrailServiceArgs
    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.
    tags 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
    controlPlaneId String
    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 true during 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.
    consumerGroup 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
    createdAt Number
    Unix epoch when the resource was created.
    enabled Boolean
    Whether the plugin is applied. Default: true
    gatewayPluginAiCustomGuardrailId String
    A string representing a UUID (universally unique identifier).
    instanceName 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.
    tags List<String>
    An optional set of strings associated with the Plugin for grouping and filtering.
    updatedAt 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) -> GatewayPluginAiCustomGuardrail
    func 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.
    The following state arguments are supported:
    Condition string
    An expression used for conditional control over plugin execution. If the expression evaluates to true during the request flow, the plugin is executed; otherwise, it is skipped.
    Config GatewayPluginAiCustomGuardrailConfig
    Consumer GatewayPluginAiCustomGuardrailConsumer
    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.
    ConsumerGroup GatewayPluginAiCustomGuardrailConsumerGroup
    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
    ControlPlaneId string
    The UUID of your control plane. This variable is available in the Konnect manager. Requires replacement if changed.
    CreatedAt double
    Unix epoch when the resource was created.
    Enabled bool
    Whether the plugin is applied. Default: true
    GatewayPluginAiCustomGuardrailId string
    A string representing a UUID (universally unique identifier).
    InstanceName string
    A unique string representing a UTF-8 encoded name.
    Ordering GatewayPluginAiCustomGuardrailOrdering
    Partials List<GatewayPluginAiCustomGuardrailPartial>
    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 GatewayPluginAiCustomGuardrailRoute
    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 GatewayPluginAiCustomGuardrailService
    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.
    Tags List<string>
    An optional set of strings associated with the Plugin for grouping and filtering.
    UpdatedAt 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 true during the request flow, the plugin is executed; otherwise, it is skipped.
    Config GatewayPluginAiCustomGuardrailConfigArgs
    Consumer GatewayPluginAiCustomGuardrailConsumerArgs
    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.
    ConsumerGroup GatewayPluginAiCustomGuardrailConsumerGroupArgs
    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
    ControlPlaneId string
    The UUID of your control plane. This variable is available in the Konnect manager. Requires replacement if changed.
    CreatedAt float64
    Unix epoch when the resource was created.
    Enabled bool
    Whether the plugin is applied. Default: true
    GatewayPluginAiCustomGuardrailId string
    A string representing a UUID (universally unique identifier).
    InstanceName string
    A unique string representing a UTF-8 encoded name.
    Ordering GatewayPluginAiCustomGuardrailOrderingArgs
    Partials []GatewayPluginAiCustomGuardrailPartialArgs
    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 GatewayPluginAiCustomGuardrailRouteArgs
    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 GatewayPluginAiCustomGuardrailServiceArgs
    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.
    Tags []string
    An optional set of strings associated with the Plugin for grouping and filtering.
    UpdatedAt 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 true during the request flow, the plugin is executed; otherwise, it is skipped.
    config GatewayPluginAiCustomGuardrailConfig
    consumer GatewayPluginAiCustomGuardrailConsumer
    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.
    consumerGroup GatewayPluginAiCustomGuardrailConsumerGroup
    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
    controlPlaneId String
    The UUID of your control plane. This variable is available in the Konnect manager. Requires replacement if changed.
    createdAt Double
    Unix epoch when the resource was created.
    enabled Boolean
    Whether the plugin is applied. Default: true
    gatewayPluginAiCustomGuardrailId String
    A string representing a UUID (universally unique identifier).
    instanceName String
    A unique string representing a UTF-8 encoded name.
    ordering GatewayPluginAiCustomGuardrailOrdering
    partials List<GatewayPluginAiCustomGuardrailPartial>
    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 GatewayPluginAiCustomGuardrailRoute
    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 GatewayPluginAiCustomGuardrailService
    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.
    tags List<String>
    An optional set of strings associated with the Plugin for grouping and filtering.
    updatedAt 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 true during the request flow, the plugin is executed; otherwise, it is skipped.
    config GatewayPluginAiCustomGuardrailConfig
    consumer GatewayPluginAiCustomGuardrailConsumer
    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.
    consumerGroup GatewayPluginAiCustomGuardrailConsumerGroup
    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
    controlPlaneId string
    The UUID of your control plane. This variable is available in the Konnect manager. Requires replacement if changed.
    createdAt number
    Unix epoch when the resource was created.
    enabled boolean
    Whether the plugin is applied. Default: true
    gatewayPluginAiCustomGuardrailId string
    A string representing a UUID (universally unique identifier).
    instanceName string
    A unique string representing a UTF-8 encoded name.
    ordering GatewayPluginAiCustomGuardrailOrdering
    partials GatewayPluginAiCustomGuardrailPartial[]
    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 GatewayPluginAiCustomGuardrailRoute
    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 GatewayPluginAiCustomGuardrailService
    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.
    tags string[]
    An optional set of strings associated with the Plugin for grouping and filtering.
    updatedAt 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 true during the request flow, the plugin is executed; otherwise, it is skipped.
    config GatewayPluginAiCustomGuardrailConfigArgs
    consumer GatewayPluginAiCustomGuardrailConsumerArgs
    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 GatewayPluginAiCustomGuardrailConsumerGroupArgs
    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_id str
    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_ai_custom_guardrail_id str
    A string representing a UUID (universally unique identifier).
    instance_name str
    A unique string representing a UTF-8 encoded name.
    ordering GatewayPluginAiCustomGuardrailOrderingArgs
    partials Sequence[GatewayPluginAiCustomGuardrailPartialArgs]
    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 GatewayPluginAiCustomGuardrailRouteArgs
    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 GatewayPluginAiCustomGuardrailServiceArgs
    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.
    tags 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 true during 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.
    consumerGroup 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
    controlPlaneId String
    The UUID of your control plane. This variable is available in the Konnect manager. Requires replacement if changed.
    createdAt Number
    Unix epoch when the resource was created.
    enabled Boolean
    Whether the plugin is applied. Default: true
    gatewayPluginAiCustomGuardrailId String
    A string representing a UUID (universally unique identifier).
    instanceName 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.
    tags List<String>
    An optional set of strings associated with the Plugin for grouping and filtering.
    updatedAt Number
    Unix epoch when the resource was last updated.

    Supporting Types

    GatewayPluginAiCustomGuardrailConfig, GatewayPluginAiCustomGuardrailConfigArgs

    Request GatewayPluginAiCustomGuardrailConfigRequest
    Configuration specific to guardrail request.
    Response GatewayPluginAiCustomGuardrailConfigResponse
    Configuration specific to parse guardrail response.
    AllowMasking bool
    Allow to masking the request/response instead of blocking it. Streaming will be disabled if this is enabled. Default: false
    CustomMetrics Dictionary<string, string>
    A list of custom metrics to be recorded.
    Functions Dictionary<string, string>
    Custom functions to be used in expression templates.
    GuardingMode string
    The guardrail mode to use for the request. possible known values include one of ["BOTH", "INPUT", "OUTPUT"]; Default: "INPUT"
    Metrics GatewayPluginAiCustomGuardrailConfigMetrics
    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.
    ResponseBufferSize double
    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
    SslVerify bool
    Whether to verify SSL certificate when Kong makes request to guardrail service. Default: false
    StopOnError bool
    Stop processing if an error occurs. Default: true
    TextSource 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 GatewayPluginAiCustomGuardrailConfigRequest
    Configuration specific to guardrail request.
    Response GatewayPluginAiCustomGuardrailConfigResponse
    Configuration specific to parse guardrail response.
    AllowMasking bool
    Allow to masking the request/response instead of blocking it. Streaming will be disabled if this is enabled. Default: false
    CustomMetrics map[string]string
    A list of custom metrics to be recorded.
    Functions map[string]string
    Custom functions to be used in expression templates.
    GuardingMode string
    The guardrail mode to use for the request. possible known values include one of ["BOTH", "INPUT", "OUTPUT"]; Default: "INPUT"
    Metrics GatewayPluginAiCustomGuardrailConfigMetrics
    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.
    ResponseBufferSize float64
    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
    SslVerify bool
    Whether to verify SSL certificate when Kong makes request to guardrail service. Default: false
    StopOnError bool
    Stop processing if an error occurs. Default: true
    TextSource 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 GatewayPluginAiCustomGuardrailConfigRequest
    Configuration specific to guardrail request.
    response GatewayPluginAiCustomGuardrailConfigResponse
    Configuration specific to parse guardrail response.
    allowMasking Boolean
    Allow to masking the request/response instead of blocking it. Streaming will be disabled if this is enabled. Default: false
    customMetrics Map<String,String>
    A list of custom metrics to be recorded.
    functions Map<String,String>
    Custom functions to be used in expression templates.
    guardingMode String
    The guardrail mode to use for the request. possible known values include one of ["BOTH", "INPUT", "OUTPUT"]; Default: "INPUT"
    metrics GatewayPluginAiCustomGuardrailConfigMetrics
    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.
    responseBufferSize Double
    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
    sslVerify Boolean
    Whether to verify SSL certificate when Kong makes request to guardrail service. Default: false
    stopOnError Boolean
    Stop processing if an error occurs. Default: true
    textSource 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 GatewayPluginAiCustomGuardrailConfigRequest
    Configuration specific to guardrail request.
    response GatewayPluginAiCustomGuardrailConfigResponse
    Configuration specific to parse guardrail response.
    allowMasking boolean
    Allow to masking the request/response instead of blocking it. Streaming will be disabled if this is enabled. Default: false
    customMetrics {[key: string]: string}
    A list of custom metrics to be recorded.
    functions {[key: string]: string}
    Custom functions to be used in expression templates.
    guardingMode string
    The guardrail mode to use for the request. possible known values include one of ["BOTH", "INPUT", "OUTPUT"]; Default: "INPUT"
    metrics GatewayPluginAiCustomGuardrailConfigMetrics
    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.
    responseBufferSize number
    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
    sslVerify boolean
    Whether to verify SSL certificate when Kong makes request to guardrail service. Default: false
    stopOnError boolean
    Stop processing if an error occurs. Default: true
    textSource 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 GatewayPluginAiCustomGuardrailConfigRequest
    Configuration specific to guardrail request.
    response GatewayPluginAiCustomGuardrailConfigResponse
    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 GatewayPluginAiCustomGuardrailConfigMetrics
    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_size float
    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_error bool
    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.
    allowMasking Boolean
    Allow to masking the request/response instead of blocking it. Streaming will be disabled if this is enabled. Default: false
    customMetrics Map<String>
    A list of custom metrics to be recorded.
    functions Map<String>
    Custom functions to be used in expression templates.
    guardingMode 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.
    responseBufferSize Number
    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
    sslVerify Boolean
    Whether to verify SSL certificate when Kong makes request to guardrail service. Default: false
    stopOnError Boolean
    Stop processing if an error occurs. Default: true
    textSource 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

    BlockDetail string
    Metric to indicate the detail for blocking the input.
    BlockReason string
    Metric to indicate the reason for blocking the input.
    Masked string
    Metric to indicate whether the input was masked.
    BlockDetail string
    Metric to indicate the detail for blocking the input.
    BlockReason string
    Metric to indicate the reason for blocking the input.
    Masked string
    Metric to indicate whether the input was masked.
    blockDetail String
    Metric to indicate the detail for blocking the input.
    blockReason String
    Metric to indicate the reason for blocking the input.
    masked String
    Metric to indicate whether the input was masked.
    blockDetail string
    Metric to indicate the detail for blocking the input.
    blockReason 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.
    blockDetail String
    Metric to indicate the detail for blocking the input.
    blockReason 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 GatewayPluginAiCustomGuardrailConfigRequestAuth
    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 GatewayPluginAiCustomGuardrailConfigRequestAuth
    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 GatewayPluginAiCustomGuardrailConfigRequestAuth
    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 GatewayPluginAiCustomGuardrailConfigRequestAuth
    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 GatewayPluginAiCustomGuardrailConfigRequestAuth
    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

    Location string
    Specify whether the 'paramname' and 'paramvalue' options go in a query string, or the POST form/JSON body. possible known values include one of ["body", "header", "query"]; Default: "header"
    Name string
    Specify name here.
    Value string
    Specify the full token value for 'name'.
    Location string
    Specify whether the 'paramname' and 'paramvalue' options go in a query string, or the POST form/JSON body. possible known values include one of ["body", "header", "query"]; Default: "header"
    Name string
    Specify name here.
    Value string
    Specify the full token value for 'name'.
    location String
    Specify whether the 'paramname' and 'paramvalue' options go in a query string, or the POST form/JSON body. possible known values include one of ["body", "header", "query"]; Default: "header"
    name String
    Specify name here.
    value String
    Specify the full token value for 'name'.
    location string
    Specify whether the 'paramname' and 'paramvalue' options go in a query string, or the POST form/JSON body. possible known values include one of ["body", "header", "query"]; Default: "header"
    name string
    Specify name here.
    value string
    Specify the full token value for 'name'.
    location str
    Specify whether the 'paramname' and 'paramvalue' options go in a query string, or the POST form/JSON body. possible known values include one of ["body", "header", "query"]; Default: "header"
    name str
    Specify name here.
    value str
    Specify the full token value for 'name'.
    location String
    Specify whether the 'paramname' and 'paramvalue' options go in a query string, or the POST form/JSON body. possible known values include one of ["body", "header", "query"]; Default: "header"
    name String
    Specify name here.
    value String
    Specify the full token value for 'name'.

    GatewayPluginAiCustomGuardrailConfigResponse, GatewayPluginAiCustomGuardrailConfigResponseArgs

    Block string
    template or string to evaluate block field
    BlockMessage string
    template or string to evaluate block_message field
    Block string
    template or string to evaluate block field
    BlockMessage string
    template or string to evaluate block_message field
    block String
    template or string to evaluate block field
    blockMessage String
    template or string to evaluate block_message field
    block string
    template or string to evaluate block field
    blockMessage 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
    blockMessage 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

    Id string
    A string representing a UUID (universally unique identifier).
    Name string
    A unique string representing a UTF-8 encoded name.
    Path string
    Id string
    A string representing a UUID (universally unique identifier).
    Name string
    A unique string representing a UTF-8 encoded name.
    Path string
    id String
    A string representing a UUID (universally unique identifier).
    name String
    A unique string representing a UTF-8 encoded name.
    path String
    id string
    A string representing a UUID (universally unique identifier).
    name string
    A unique string representing a UTF-8 encoded name.
    path string
    id str
    A string representing a UUID (universally unique identifier).
    name str
    A unique string representing a UTF-8 encoded name.
    path str
    id String
    A string representing a UUID (universally unique identifier).
    name String
    A unique string representing a UTF-8 encoded name.
    path String

    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 konnect Terraform Provider.
    Viewing docs for konnect 3.14.0
    published on Friday, Apr 24, 2026 by kong
      Try Pulumi Cloud free. Your team will thank you.