published on Friday, Oct 9, 2026 by kong
published on Friday, Oct 9, 2026 by kong
AIGatewayCustomPolicy Resource
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as konnect from "@pulumi/konnect";
const myAigatewaycustompolicy = new konnect.AiGatewayCustomPolicy("my_aigatewaycustompolicy", {
gatewayId: "5f9fd312-a987-4628-b4c5-bb4f4fddd5f7",
installed: {
displayName: "Custom Policy - Installed plugin",
labels: {
key: "value",
},
managedBy: {
key: "value",
},
name: "my-installed-custom-policy",
schema: "<lua_schema>",
},
streaming: {
displayName: "Custom Policy Streaming Plugin",
handler: "<lua_handler>",
labels: {
key: "value",
},
managedBy: {
key: "value",
},
name: "my-streaming-custom-policy",
schema: "<lua_schema>",
},
});
import pulumi
import pulumi_konnect as konnect
my_aigatewaycustompolicy = konnect.AiGatewayCustomPolicy("my_aigatewaycustompolicy",
gateway_id="5f9fd312-a987-4628-b4c5-bb4f4fddd5f7",
installed={
"display_name": "Custom Policy - Installed plugin",
"labels": {
"key": "value",
},
"managed_by": {
"key": "value",
},
"name": "my-installed-custom-policy",
"schema": "<lua_schema>",
},
streaming={
"display_name": "Custom Policy Streaming Plugin",
"handler": "<lua_handler>",
"labels": {
"key": "value",
},
"managed_by": {
"key": "value",
},
"name": "my-streaming-custom-policy",
"schema": "<lua_schema>",
})
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.NewAiGatewayCustomPolicy(ctx, "my_aigatewaycustompolicy", &konnect.AiGatewayCustomPolicyArgs{
GatewayId: pulumi.String("5f9fd312-a987-4628-b4c5-bb4f4fddd5f7"),
Installed: &konnect.AiGatewayCustomPolicyInstalledArgs{
DisplayName: pulumi.String("Custom Policy - Installed plugin"),
Labels: pulumi.StringMap{
"key": pulumi.String("value"),
},
ManagedBy: pulumi.StringMap{
"key": pulumi.String("value"),
},
Name: pulumi.String("my-installed-custom-policy"),
Schema: pulumi.String("<lua_schema>"),
},
Streaming: &konnect.AiGatewayCustomPolicyStreamingArgs{
DisplayName: pulumi.String("Custom Policy Streaming Plugin"),
Handler: pulumi.String("<lua_handler>"),
Labels: pulumi.StringMap{
"key": pulumi.String("value"),
},
ManagedBy: pulumi.StringMap{
"key": pulumi.String("value"),
},
Name: pulumi.String("my-streaming-custom-policy"),
Schema: pulumi.String("<lua_schema>"),
},
})
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 myAigatewaycustompolicy = new Konnect.AiGatewayCustomPolicy("my_aigatewaycustompolicy", new()
{
GatewayId = "5f9fd312-a987-4628-b4c5-bb4f4fddd5f7",
Installed = new Konnect.Inputs.AiGatewayCustomPolicyInstalledArgs
{
DisplayName = "Custom Policy - Installed plugin",
Labels =
{
{ "key", "value" },
},
ManagedBy =
{
{ "key", "value" },
},
Name = "my-installed-custom-policy",
Schema = "<lua_schema>",
},
Streaming = new Konnect.Inputs.AiGatewayCustomPolicyStreamingArgs
{
DisplayName = "Custom Policy Streaming Plugin",
Handler = "<lua_handler>",
Labels =
{
{ "key", "value" },
},
ManagedBy =
{
{ "key", "value" },
},
Name = "my-streaming-custom-policy",
Schema = "<lua_schema>",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.konnect.AiGatewayCustomPolicy;
import com.pulumi.konnect.AiGatewayCustomPolicyArgs;
import com.pulumi.konnect.inputs.AiGatewayCustomPolicyInstalledArgs;
import com.pulumi.konnect.inputs.AiGatewayCustomPolicyStreamingArgs;
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 myAigatewaycustompolicy = new AiGatewayCustomPolicy("myAigatewaycustompolicy", AiGatewayCustomPolicyArgs.builder()
.gatewayId("5f9fd312-a987-4628-b4c5-bb4f4fddd5f7")
.installed(AiGatewayCustomPolicyInstalledArgs.builder()
.displayName("Custom Policy - Installed plugin")
.labels(Map.of("key", "value"))
.managedBy(Map.of("key", "value"))
.name("my-installed-custom-policy")
.schema("<lua_schema>")
.build())
.streaming(AiGatewayCustomPolicyStreamingArgs.builder()
.displayName("Custom Policy Streaming Plugin")
.handler("<lua_handler>")
.labels(Map.of("key", "value"))
.managedBy(Map.of("key", "value"))
.name("my-streaming-custom-policy")
.schema("<lua_schema>")
.build())
.build());
}
}
resources:
myAigatewaycustompolicy:
type: konnect:AiGatewayCustomPolicy
name: my_aigatewaycustompolicy
properties:
gatewayId: 5f9fd312-a987-4628-b4c5-bb4f4fddd5f7
installed:
displayName: Custom Policy - Installed plugin
labels:
key: value
managedBy:
key: value
name: my-installed-custom-policy
schema: <lua_schema>
streaming:
displayName: Custom Policy Streaming Plugin
handler: <lua_handler>
labels:
key: value
managedBy:
key: value
name: my-streaming-custom-policy
schema: <lua_schema>
Example coming soon!
Create AiGatewayCustomPolicy Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AiGatewayCustomPolicy(name: string, args: AiGatewayCustomPolicyArgs, opts?: CustomResourceOptions);@overload
def AiGatewayCustomPolicy(resource_name: str,
args: AiGatewayCustomPolicyArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AiGatewayCustomPolicy(resource_name: str,
opts: Optional[ResourceOptions] = None,
gateway_id: Optional[str] = None,
installed: Optional[AiGatewayCustomPolicyInstalledArgs] = None,
streaming: Optional[AiGatewayCustomPolicyStreamingArgs] = None)func NewAiGatewayCustomPolicy(ctx *Context, name string, args AiGatewayCustomPolicyArgs, opts ...ResourceOption) (*AiGatewayCustomPolicy, error)public AiGatewayCustomPolicy(string name, AiGatewayCustomPolicyArgs args, CustomResourceOptions? opts = null)
public AiGatewayCustomPolicy(String name, AiGatewayCustomPolicyArgs args)
public AiGatewayCustomPolicy(String name, AiGatewayCustomPolicyArgs args, CustomResourceOptions options)
type: konnect:AiGatewayCustomPolicy
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "konnect_ai_gateway_custom_policy" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args AiGatewayCustomPolicyArgs
- 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 AiGatewayCustomPolicyArgs
- 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 AiGatewayCustomPolicyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AiGatewayCustomPolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AiGatewayCustomPolicyArgs
- 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 aiGatewayCustomPolicyResource = new Konnect.AiGatewayCustomPolicy("aiGatewayCustomPolicyResource", new()
{
GatewayId = "string",
Installed = new Konnect.Inputs.AiGatewayCustomPolicyInstalledArgs
{
CreatedAt = "string",
DisplayName = "string",
Id = "string",
Labels =
{
{ "string", "string" },
},
ManagedBy =
{
{ "string", "string" },
},
Name = "string",
Schema = "string",
UpdatedAt = "string",
},
Streaming = new Konnect.Inputs.AiGatewayCustomPolicyStreamingArgs
{
CreatedAt = "string",
DisplayName = "string",
Handler = "string",
Id = "string",
Labels =
{
{ "string", "string" },
},
ManagedBy =
{
{ "string", "string" },
},
Name = "string",
Schema = "string",
UpdatedAt = "string",
},
});
example, err := konnect.NewAiGatewayCustomPolicy(ctx, "aiGatewayCustomPolicyResource", &konnect.AiGatewayCustomPolicyArgs{
GatewayId: pulumi.String("string"),
Installed: &konnect.AiGatewayCustomPolicyInstalledArgs{
CreatedAt: pulumi.String("string"),
DisplayName: pulumi.String("string"),
Id: pulumi.String("string"),
Labels: pulumi.StringMap{
"string": pulumi.String("string"),
},
ManagedBy: pulumi.StringMap{
"string": pulumi.String("string"),
},
Name: pulumi.String("string"),
Schema: pulumi.String("string"),
UpdatedAt: pulumi.String("string"),
},
Streaming: &konnect.AiGatewayCustomPolicyStreamingArgs{
CreatedAt: pulumi.String("string"),
DisplayName: pulumi.String("string"),
Handler: pulumi.String("string"),
Id: pulumi.String("string"),
Labels: pulumi.StringMap{
"string": pulumi.String("string"),
},
ManagedBy: pulumi.StringMap{
"string": pulumi.String("string"),
},
Name: pulumi.String("string"),
Schema: pulumi.String("string"),
UpdatedAt: pulumi.String("string"),
},
})
resource "konnect_ai_gateway_custom_policy" "aiGatewayCustomPolicyResource" {
lifecycle {
create_before_destroy = true
}
gateway_id = "string"
installed = {
created_at = "string"
display_name = "string"
id = "string"
labels = {
"string" = "string"
}
managed_by = {
"string" = "string"
}
name = "string"
schema = "string"
updated_at = "string"
}
streaming = {
created_at = "string"
display_name = "string"
handler = "string"
id = "string"
labels = {
"string" = "string"
}
managed_by = {
"string" = "string"
}
name = "string"
schema = "string"
updated_at = "string"
}
}
var aiGatewayCustomPolicyResource = new AiGatewayCustomPolicy("aiGatewayCustomPolicyResource", AiGatewayCustomPolicyArgs.builder()
.gatewayId("string")
.installed(AiGatewayCustomPolicyInstalledArgs.builder()
.createdAt("string")
.displayName("string")
.id("string")
.labels(Map.of("string", "string"))
.managedBy(Map.of("string", "string"))
.name("string")
.schema("string")
.updatedAt("string")
.build())
.streaming(AiGatewayCustomPolicyStreamingArgs.builder()
.createdAt("string")
.displayName("string")
.handler("string")
.id("string")
.labels(Map.of("string", "string"))
.managedBy(Map.of("string", "string"))
.name("string")
.schema("string")
.updatedAt("string")
.build())
.build());
ai_gateway_custom_policy_resource = konnect.AiGatewayCustomPolicy("aiGatewayCustomPolicyResource",
gateway_id="string",
installed={
"created_at": "string",
"display_name": "string",
"id": "string",
"labels": {
"string": "string",
},
"managed_by": {
"string": "string",
},
"name": "string",
"schema": "string",
"updated_at": "string",
},
streaming={
"created_at": "string",
"display_name": "string",
"handler": "string",
"id": "string",
"labels": {
"string": "string",
},
"managed_by": {
"string": "string",
},
"name": "string",
"schema": "string",
"updated_at": "string",
})
const aiGatewayCustomPolicyResource = new konnect.AiGatewayCustomPolicy("aiGatewayCustomPolicyResource", {
gatewayId: "string",
installed: {
createdAt: "string",
displayName: "string",
id: "string",
labels: {
string: "string",
},
managedBy: {
string: "string",
},
name: "string",
schema: "string",
updatedAt: "string",
},
streaming: {
createdAt: "string",
displayName: "string",
handler: "string",
id: "string",
labels: {
string: "string",
},
managedBy: {
string: "string",
},
name: "string",
schema: "string",
updatedAt: "string",
},
});
type: konnect:AiGatewayCustomPolicy
properties:
gatewayId: string
installed:
createdAt: string
displayName: string
id: string
labels:
string: string
managedBy:
string: string
name: string
schema: string
updatedAt: string
streaming:
createdAt: string
displayName: string
handler: string
id: string
labels:
string: string
managedBy:
string: string
name: string
schema: string
updatedAt: string
AiGatewayCustomPolicy 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 AiGatewayCustomPolicy resource accepts the following input properties:
- Gateway
Id string - The unique ID of the AI Gateway.
- Installed
Ai
Gateway Custom Policy Installed - Streaming
Ai
Gateway Custom Policy Streaming
- Gateway
Id string - The unique ID of the AI Gateway.
- Installed
Ai
Gateway Custom Policy Installed Args - Streaming
Ai
Gateway Custom Policy Streaming Args
- gateway_
id string - The unique ID of the AI Gateway.
- installed object
- streaming object
- gateway
Id String - The unique ID of the AI Gateway.
- installed
Ai
Gateway Custom Policy Installed - streaming
Ai
Gateway Custom Policy Streaming
- gateway
Id string - The unique ID of the AI Gateway.
- installed
Ai
Gateway Custom Policy Installed - streaming
Ai
Gateway Custom Policy Streaming
- gateway_
id str - The unique ID of the AI Gateway.
- installed
Ai
Gateway Custom Policy Installed Args - streaming
Ai
Gateway Custom Policy Streaming Args
- gateway
Id String - The unique ID of the AI Gateway.
- installed Property Map
- streaming Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the AiGatewayCustomPolicy resource produces the following output properties:
- Created
At string - An ISO-8601 timestamp representation of entity creation date.
- Display
Name string - The display name for this custom policy.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- A user-defined unique identifier for this custom policy, used as a stable human-readable reference. This value is immutable after creation.
- Schema string
- The Lua schema definition for the custom policy, equivalent to a Kong plugin's
schema.lua. - Updated
At string - An ISO-8601 timestamp representation of entity update date.
- Created
At string - An ISO-8601 timestamp representation of entity creation date.
- Display
Name string - The display name for this custom policy.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- A user-defined unique identifier for this custom policy, used as a stable human-readable reference. This value is immutable after creation.
- Schema string
- The Lua schema definition for the custom policy, equivalent to a Kong plugin's
schema.lua. - Updated
At string - An ISO-8601 timestamp representation of entity update date.
- created_
at string - An ISO-8601 timestamp representation of entity creation date.
- display_
name string - The display name for this custom policy.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- A user-defined unique identifier for this custom policy, used as a stable human-readable reference. This value is immutable after creation.
- schema string
- The Lua schema definition for the custom policy, equivalent to a Kong plugin's
schema.lua. - updated_
at string - An ISO-8601 timestamp representation of entity update date.
- created
At String - An ISO-8601 timestamp representation of entity creation date.
- display
Name String - The display name for this custom policy.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- A user-defined unique identifier for this custom policy, used as a stable human-readable reference. This value is immutable after creation.
- schema String
- The Lua schema definition for the custom policy, equivalent to a Kong plugin's
schema.lua. - updated
At String - An ISO-8601 timestamp representation of entity update date.
- created
At string - An ISO-8601 timestamp representation of entity creation date.
- display
Name string - The display name for this custom policy.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- A user-defined unique identifier for this custom policy, used as a stable human-readable reference. This value is immutable after creation.
- schema string
- The Lua schema definition for the custom policy, equivalent to a Kong plugin's
schema.lua. - updated
At string - An ISO-8601 timestamp representation of entity update date.
- created_
at str - An ISO-8601 timestamp representation of entity creation date.
- display_
name str - The display name for this custom policy.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- A user-defined unique identifier for this custom policy, used as a stable human-readable reference. This value is immutable after creation.
- schema str
- The Lua schema definition for the custom policy, equivalent to a Kong plugin's
schema.lua. - updated_
at str - An ISO-8601 timestamp representation of entity update date.
- created
At String - An ISO-8601 timestamp representation of entity creation date.
- display
Name String - The display name for this custom policy.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- A user-defined unique identifier for this custom policy, used as a stable human-readable reference. This value is immutable after creation.
- schema String
- The Lua schema definition for the custom policy, equivalent to a Kong plugin's
schema.lua. - updated
At String - An ISO-8601 timestamp representation of entity update date.
Look up Existing AiGatewayCustomPolicy Resource
Get an existing AiGatewayCustomPolicy 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?: AiGatewayCustomPolicyState, opts?: CustomResourceOptions): AiGatewayCustomPolicy@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
created_at: Optional[str] = None,
display_name: Optional[str] = None,
gateway_id: Optional[str] = None,
installed: Optional[AiGatewayCustomPolicyInstalledArgs] = None,
name: Optional[str] = None,
schema: Optional[str] = None,
streaming: Optional[AiGatewayCustomPolicyStreamingArgs] = None,
updated_at: Optional[str] = None) -> AiGatewayCustomPolicyfunc GetAiGatewayCustomPolicy(ctx *Context, name string, id IDInput, state *AiGatewayCustomPolicyState, opts ...ResourceOption) (*AiGatewayCustomPolicy, error)public static AiGatewayCustomPolicy Get(string name, Input<string> id, AiGatewayCustomPolicyState? state, CustomResourceOptions? opts = null)public static AiGatewayCustomPolicy get(String name, Output<String> id, AiGatewayCustomPolicyState state, CustomResourceOptions options)resources: _: type: konnect:AiGatewayCustomPolicy get: id: ${id}import {
to = konnect_ai_gateway_custom_policy.example
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.
- Created
At string - An ISO-8601 timestamp representation of entity creation date.
- Display
Name string - The display name for this custom policy.
- Gateway
Id string - The unique ID of the AI Gateway.
- Installed
Ai
Gateway Custom Policy Installed - Name string
- A user-defined unique identifier for this custom policy, used as a stable human-readable reference. This value is immutable after creation.
- Schema string
- The Lua schema definition for the custom policy, equivalent to a Kong plugin's
schema.lua. - Streaming
Ai
Gateway Custom Policy Streaming - Updated
At string - An ISO-8601 timestamp representation of entity update date.
- Created
At string - An ISO-8601 timestamp representation of entity creation date.
- Display
Name string - The display name for this custom policy.
- Gateway
Id string - The unique ID of the AI Gateway.
- Installed
Ai
Gateway Custom Policy Installed Args - Name string
- A user-defined unique identifier for this custom policy, used as a stable human-readable reference. This value is immutable after creation.
- Schema string
- The Lua schema definition for the custom policy, equivalent to a Kong plugin's
schema.lua. - Streaming
Ai
Gateway Custom Policy Streaming Args - Updated
At string - An ISO-8601 timestamp representation of entity update date.
- created_
at string - An ISO-8601 timestamp representation of entity creation date.
- display_
name string - The display name for this custom policy.
- gateway_
id string - The unique ID of the AI Gateway.
- installed object
- name string
- A user-defined unique identifier for this custom policy, used as a stable human-readable reference. This value is immutable after creation.
- schema string
- The Lua schema definition for the custom policy, equivalent to a Kong plugin's
schema.lua. - streaming object
- updated_
at string - An ISO-8601 timestamp representation of entity update date.
- created
At String - An ISO-8601 timestamp representation of entity creation date.
- display
Name String - The display name for this custom policy.
- gateway
Id String - The unique ID of the AI Gateway.
- installed
Ai
Gateway Custom Policy Installed - name String
- A user-defined unique identifier for this custom policy, used as a stable human-readable reference. This value is immutable after creation.
- schema String
- The Lua schema definition for the custom policy, equivalent to a Kong plugin's
schema.lua. - streaming
Ai
Gateway Custom Policy Streaming - updated
At String - An ISO-8601 timestamp representation of entity update date.
- created
At string - An ISO-8601 timestamp representation of entity creation date.
- display
Name string - The display name for this custom policy.
- gateway
Id string - The unique ID of the AI Gateway.
- installed
Ai
Gateway Custom Policy Installed - name string
- A user-defined unique identifier for this custom policy, used as a stable human-readable reference. This value is immutable after creation.
- schema string
- The Lua schema definition for the custom policy, equivalent to a Kong plugin's
schema.lua. - streaming
Ai
Gateway Custom Policy Streaming - updated
At string - An ISO-8601 timestamp representation of entity update date.
- created_
at str - An ISO-8601 timestamp representation of entity creation date.
- display_
name str - The display name for this custom policy.
- gateway_
id str - The unique ID of the AI Gateway.
- installed
Ai
Gateway Custom Policy Installed Args - name str
- A user-defined unique identifier for this custom policy, used as a stable human-readable reference. This value is immutable after creation.
- schema str
- The Lua schema definition for the custom policy, equivalent to a Kong plugin's
schema.lua. - streaming
Ai
Gateway Custom Policy Streaming Args - updated_
at str - An ISO-8601 timestamp representation of entity update date.
- created
At String - An ISO-8601 timestamp representation of entity creation date.
- display
Name String - The display name for this custom policy.
- gateway
Id String - The unique ID of the AI Gateway.
- installed Property Map
- name String
- A user-defined unique identifier for this custom policy, used as a stable human-readable reference. This value is immutable after creation.
- schema String
- The Lua schema definition for the custom policy, equivalent to a Kong plugin's
schema.lua. - streaming Property Map
- updated
At String - An ISO-8601 timestamp representation of entity update date.
Supporting Types
AiGatewayCustomPolicyInstalled, AiGatewayCustomPolicyInstalledArgs
- Created
At string - An ISO-8601 timestamp representation of entity creation date.
- Display
Name string - The display name for this custom policy. Not Null
- Id string
- Contains a unique identifier used for this resource.
- Labels Dictionary<string, string>
- Public labels store information about an entity that can be used for filtering a list of objects.
- Managed
By Dictionary<string, string> - Name string
- A user-defined unique identifier for this custom policy, used as a stable human-readable reference. This value is immutable after creation.
- Schema string
- The Lua schema definition for the custom policy, equivalent to a Kong plugin's
schema.lua. - Updated
At string - An ISO-8601 timestamp representation of entity update date.
- Created
At string - An ISO-8601 timestamp representation of entity creation date.
- Display
Name string - The display name for this custom policy. Not Null
- Id string
- Contains a unique identifier used for this resource.
- Labels map[string]string
- Public labels store information about an entity that can be used for filtering a list of objects.
- Managed
By map[string]string - Name string
- A user-defined unique identifier for this custom policy, used as a stable human-readable reference. This value is immutable after creation.
- Schema string
- The Lua schema definition for the custom policy, equivalent to a Kong plugin's
schema.lua. - Updated
At string - An ISO-8601 timestamp representation of entity update date.
- created_
at string - An ISO-8601 timestamp representation of entity creation date.
- display_
name string - The display name for this custom policy. Not Null
- id string
- Contains a unique identifier used for this resource.
- labels map(string)
- Public labels store information about an entity that can be used for filtering a list of objects.
- managed_
by map(string) - name string
- A user-defined unique identifier for this custom policy, used as a stable human-readable reference. This value is immutable after creation.
- schema string
- The Lua schema definition for the custom policy, equivalent to a Kong plugin's
schema.lua. - updated_
at string - An ISO-8601 timestamp representation of entity update date.
- created
At String - An ISO-8601 timestamp representation of entity creation date.
- display
Name String - The display name for this custom policy. Not Null
- id String
- Contains a unique identifier used for this resource.
- labels Map<String,String>
- Public labels store information about an entity that can be used for filtering a list of objects.
- managed
By Map<String,String> - name String
- A user-defined unique identifier for this custom policy, used as a stable human-readable reference. This value is immutable after creation.
- schema String
- The Lua schema definition for the custom policy, equivalent to a Kong plugin's
schema.lua. - updated
At String - An ISO-8601 timestamp representation of entity update date.
- created
At string - An ISO-8601 timestamp representation of entity creation date.
- display
Name string - The display name for this custom policy. Not Null
- id string
- Contains a unique identifier used for this resource.
- labels {[key: string]: string}
- Public labels store information about an entity that can be used for filtering a list of objects.
- managed
By {[key: string]: string} - name string
- A user-defined unique identifier for this custom policy, used as a stable human-readable reference. This value is immutable after creation.
- schema string
- The Lua schema definition for the custom policy, equivalent to a Kong plugin's
schema.lua. - updated
At string - An ISO-8601 timestamp representation of entity update date.
- created_
at str - An ISO-8601 timestamp representation of entity creation date.
- display_
name str - The display name for this custom policy. Not Null
- id str
- Contains a unique identifier used for this resource.
- labels Mapping[str, str]
- Public labels store information about an entity that can be used for filtering a list of objects.
- managed_
by Mapping[str, str] - name str
- A user-defined unique identifier for this custom policy, used as a stable human-readable reference. This value is immutable after creation.
- schema str
- The Lua schema definition for the custom policy, equivalent to a Kong plugin's
schema.lua. - updated_
at str - An ISO-8601 timestamp representation of entity update date.
- created
At String - An ISO-8601 timestamp representation of entity creation date.
- display
Name String - The display name for this custom policy. Not Null
- id String
- Contains a unique identifier used for this resource.
- labels Map<String>
- Public labels store information about an entity that can be used for filtering a list of objects.
- managed
By Map<String> - name String
- A user-defined unique identifier for this custom policy, used as a stable human-readable reference. This value is immutable after creation.
- schema String
- The Lua schema definition for the custom policy, equivalent to a Kong plugin's
schema.lua. - updated
At String - An ISO-8601 timestamp representation of entity update date.
AiGatewayCustomPolicyStreaming, AiGatewayCustomPolicyStreamingArgs
- Created
At string - An ISO-8601 timestamp representation of entity creation date.
- Display
Name string - The display name for this custom policy. Not Null
- Handler string
- The Lua handler implementation for the custom policy, equivalent to a Kong plugin's
handler.lua. Not Null - Id string
- Contains a unique identifier used for this resource.
- Labels Dictionary<string, string>
- Public labels store information about an entity that can be used for filtering a list of objects.
- Managed
By Dictionary<string, string> - Name string
- A user-defined unique identifier for this custom policy, used as a stable human-readable reference. This value is immutable after creation.
- Schema string
- The Lua schema definition for the custom policy, equivalent to a Kong plugin's
schema.lua. - Updated
At string - An ISO-8601 timestamp representation of entity update date.
- Created
At string - An ISO-8601 timestamp representation of entity creation date.
- Display
Name string - The display name for this custom policy. Not Null
- Handler string
- The Lua handler implementation for the custom policy, equivalent to a Kong plugin's
handler.lua. Not Null - Id string
- Contains a unique identifier used for this resource.
- Labels map[string]string
- Public labels store information about an entity that can be used for filtering a list of objects.
- Managed
By map[string]string - Name string
- A user-defined unique identifier for this custom policy, used as a stable human-readable reference. This value is immutable after creation.
- Schema string
- The Lua schema definition for the custom policy, equivalent to a Kong plugin's
schema.lua. - Updated
At string - An ISO-8601 timestamp representation of entity update date.
- created_
at string - An ISO-8601 timestamp representation of entity creation date.
- display_
name string - The display name for this custom policy. Not Null
- handler string
- The Lua handler implementation for the custom policy, equivalent to a Kong plugin's
handler.lua. Not Null - id string
- Contains a unique identifier used for this resource.
- labels map(string)
- Public labels store information about an entity that can be used for filtering a list of objects.
- managed_
by map(string) - name string
- A user-defined unique identifier for this custom policy, used as a stable human-readable reference. This value is immutable after creation.
- schema string
- The Lua schema definition for the custom policy, equivalent to a Kong plugin's
schema.lua. - updated_
at string - An ISO-8601 timestamp representation of entity update date.
- created
At String - An ISO-8601 timestamp representation of entity creation date.
- display
Name String - The display name for this custom policy. Not Null
- handler String
- The Lua handler implementation for the custom policy, equivalent to a Kong plugin's
handler.lua. Not Null - id String
- Contains a unique identifier used for this resource.
- labels Map<String,String>
- Public labels store information about an entity that can be used for filtering a list of objects.
- managed
By Map<String,String> - name String
- A user-defined unique identifier for this custom policy, used as a stable human-readable reference. This value is immutable after creation.
- schema String
- The Lua schema definition for the custom policy, equivalent to a Kong plugin's
schema.lua. - updated
At String - An ISO-8601 timestamp representation of entity update date.
- created
At string - An ISO-8601 timestamp representation of entity creation date.
- display
Name string - The display name for this custom policy. Not Null
- handler string
- The Lua handler implementation for the custom policy, equivalent to a Kong plugin's
handler.lua. Not Null - id string
- Contains a unique identifier used for this resource.
- labels {[key: string]: string}
- Public labels store information about an entity that can be used for filtering a list of objects.
- managed
By {[key: string]: string} - name string
- A user-defined unique identifier for this custom policy, used as a stable human-readable reference. This value is immutable after creation.
- schema string
- The Lua schema definition for the custom policy, equivalent to a Kong plugin's
schema.lua. - updated
At string - An ISO-8601 timestamp representation of entity update date.
- created_
at str - An ISO-8601 timestamp representation of entity creation date.
- display_
name str - The display name for this custom policy. Not Null
- handler str
- The Lua handler implementation for the custom policy, equivalent to a Kong plugin's
handler.lua. Not Null - id str
- Contains a unique identifier used for this resource.
- labels Mapping[str, str]
- Public labels store information about an entity that can be used for filtering a list of objects.
- managed_
by Mapping[str, str] - name str
- A user-defined unique identifier for this custom policy, used as a stable human-readable reference. This value is immutable after creation.
- schema str
- The Lua schema definition for the custom policy, equivalent to a Kong plugin's
schema.lua. - updated_
at str - An ISO-8601 timestamp representation of entity update date.
- created
At String - An ISO-8601 timestamp representation of entity creation date.
- display
Name String - The display name for this custom policy. Not Null
- handler String
- The Lua handler implementation for the custom policy, equivalent to a Kong plugin's
handler.lua. Not Null - id String
- Contains a unique identifier used for this resource.
- labels Map<String>
- Public labels store information about an entity that can be used for filtering a list of objects.
- managed
By Map<String> - name String
- A user-defined unique identifier for this custom policy, used as a stable human-readable reference. This value is immutable after creation.
- schema String
- The Lua schema definition for the custom policy, equivalent to a Kong plugin's
schema.lua. - updated
At String - An ISO-8601 timestamp representation of entity update date.
Import
In Terraform v1.5.0 and later, the import block can be used with the id attribute, for example:
terraform
import {
to = konnect_ai_gateway_custom_policy.my_konnect_ai_gateway_custom_policy
id = jsonencode({
gateway_id = "5f9fd312-a987-4628-b4c5-bb4f4fddd5f7"
id = "5f9fd312-a987-4628-b4c5-bb4f4fddd5f7"
})
}
The pulumi import command can be used, for example:
$ pulumi import konnect:index/aiGatewayCustomPolicy:AiGatewayCustomPolicy my_konnect_ai_gateway_custom_policy '{"gateway_id": "5f9fd312-a987-4628-b4c5-bb4f4fddd5f7", "id": "5f9fd312-a987-4628-b4c5-bb4f4fddd5f7"}'
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- konnect kong/terraform-provider-konnect
- License
- Notes
- This Pulumi package is based on the
konnectTerraform Provider.
published on Friday, Oct 9, 2026 by kong