1. Packages
  2. Konnect Provider
  3. API Docs
  4. EventGatewayProducePolicySchemaValidation
Viewing docs for konnect 3.11.0
published on Thursday, Mar 12, 2026 by kong
konnect logo
Viewing docs for konnect 3.11.0
published on Thursday, Mar 12, 2026 by kong

    EventGatewayProducePolicySchemaValidation Resource

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as konnect from "@pulumi/konnect";
    
    const myEventgatewayproducepolicyschemavalidation = new konnect.EventGatewayProducePolicySchemaValidation("my_eventgatewayproducepolicyschemavalidation", {
        condition: "context.topic.name.endsWith(\"my_suffix\") && record.headers[\"x-flag\"] == \"a-value\"",
        config: {
            json: {
                keyValidationAction: "mark",
                schemaRegistry: {
                    id: "74577697-03b2-4d40-bfe2-929c891c4254",
                },
                valueValidationAction: "reject",
            },
        },
        description: "...my_description...",
        enabled: true,
        gatewayId: "9524ec7d-36d9-465d-a8c5-83a3c9390458",
        labels: {
            key: "value",
        },
        name: "...my_name...",
        virtualClusterId: "a3f4c612-4025-4392-861f-faa39b63e12d",
    });
    
    import pulumi
    import pulumi_konnect as konnect
    
    my_eventgatewayproducepolicyschemavalidation = konnect.EventGatewayProducePolicySchemaValidation("my_eventgatewayproducepolicyschemavalidation",
        condition="context.topic.name.endsWith(\"my_suffix\") && record.headers[\"x-flag\"] == \"a-value\"",
        config={
            "json": {
                "key_validation_action": "mark",
                "schema_registry": {
                    "id": "74577697-03b2-4d40-bfe2-929c891c4254",
                },
                "value_validation_action": "reject",
            },
        },
        description="...my_description...",
        enabled=True,
        gateway_id="9524ec7d-36d9-465d-a8c5-83a3c9390458",
        labels={
            "key": "value",
        },
        name="...my_name...",
        virtual_cluster_id="a3f4c612-4025-4392-861f-faa39b63e12d")
    
    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.NewEventGatewayProducePolicySchemaValidation(ctx, "my_eventgatewayproducepolicyschemavalidation", &konnect.EventGatewayProducePolicySchemaValidationArgs{
    			Condition: pulumi.String("context.topic.name.endsWith(\"my_suffix\") && record.headers[\"x-flag\"] == \"a-value\""),
    			Config: &konnect.EventGatewayProducePolicySchemaValidationConfigArgs{
    				Json: &konnect.EventGatewayProducePolicySchemaValidationConfigJsonArgs{
    					KeyValidationAction: pulumi.String("mark"),
    					SchemaRegistry: &konnect.EventGatewayProducePolicySchemaValidationConfigJsonSchemaRegistryArgs{
    						Id: pulumi.String("74577697-03b2-4d40-bfe2-929c891c4254"),
    					},
    					ValueValidationAction: pulumi.String("reject"),
    				},
    			},
    			Description: pulumi.String("...my_description..."),
    			Enabled:     pulumi.Bool(true),
    			GatewayId:   pulumi.String("9524ec7d-36d9-465d-a8c5-83a3c9390458"),
    			Labels: pulumi.StringMap{
    				"key": pulumi.String("value"),
    			},
    			Name:             pulumi.String("...my_name..."),
    			VirtualClusterId: pulumi.String("a3f4c612-4025-4392-861f-faa39b63e12d"),
    		})
    		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 myEventgatewayproducepolicyschemavalidation = new Konnect.EventGatewayProducePolicySchemaValidation("my_eventgatewayproducepolicyschemavalidation", new()
        {
            Condition = "context.topic.name.endsWith(\"my_suffix\") && record.headers[\"x-flag\"] == \"a-value\"",
            Config = new Konnect.Inputs.EventGatewayProducePolicySchemaValidationConfigArgs
            {
                Json = new Konnect.Inputs.EventGatewayProducePolicySchemaValidationConfigJsonArgs
                {
                    KeyValidationAction = "mark",
                    SchemaRegistry = new Konnect.Inputs.EventGatewayProducePolicySchemaValidationConfigJsonSchemaRegistryArgs
                    {
                        Id = "74577697-03b2-4d40-bfe2-929c891c4254",
                    },
                    ValueValidationAction = "reject",
                },
            },
            Description = "...my_description...",
            Enabled = true,
            GatewayId = "9524ec7d-36d9-465d-a8c5-83a3c9390458",
            Labels = 
            {
                { "key", "value" },
            },
            Name = "...my_name...",
            VirtualClusterId = "a3f4c612-4025-4392-861f-faa39b63e12d",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.konnect.EventGatewayProducePolicySchemaValidation;
    import com.pulumi.konnect.EventGatewayProducePolicySchemaValidationArgs;
    import com.pulumi.konnect.inputs.EventGatewayProducePolicySchemaValidationConfigArgs;
    import com.pulumi.konnect.inputs.EventGatewayProducePolicySchemaValidationConfigJsonArgs;
    import com.pulumi.konnect.inputs.EventGatewayProducePolicySchemaValidationConfigJsonSchemaRegistryArgs;
    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 myEventgatewayproducepolicyschemavalidation = new EventGatewayProducePolicySchemaValidation("myEventgatewayproducepolicyschemavalidation", EventGatewayProducePolicySchemaValidationArgs.builder()
                .condition("context.topic.name.endsWith(\"my_suffix\") && record.headers[\"x-flag\"] == \"a-value\"")
                .config(EventGatewayProducePolicySchemaValidationConfigArgs.builder()
                    .json(EventGatewayProducePolicySchemaValidationConfigJsonArgs.builder()
                        .keyValidationAction("mark")
                        .schemaRegistry(EventGatewayProducePolicySchemaValidationConfigJsonSchemaRegistryArgs.builder()
                            .id("74577697-03b2-4d40-bfe2-929c891c4254")
                            .build())
                        .valueValidationAction("reject")
                        .build())
                    .build())
                .description("...my_description...")
                .enabled(true)
                .gatewayId("9524ec7d-36d9-465d-a8c5-83a3c9390458")
                .labels(Map.of("key", "value"))
                .name("...my_name...")
                .virtualClusterId("a3f4c612-4025-4392-861f-faa39b63e12d")
                .build());
    
        }
    }
    
    resources:
      myEventgatewayproducepolicyschemavalidation:
        type: konnect:EventGatewayProducePolicySchemaValidation
        name: my_eventgatewayproducepolicyschemavalidation
        properties:
          condition: context.topic.name.endsWith("my_suffix") && record.headers["x-flag"] == "a-value"
          config:
            json:
              keyValidationAction: mark
              schemaRegistry:
                id: 74577697-03b2-4d40-bfe2-929c891c4254
              valueValidationAction: reject
          description: '...my_description...'
          enabled: true
          gatewayId: 9524ec7d-36d9-465d-a8c5-83a3c9390458
          labels:
            key: value
          name: '...my_name...'
          virtualClusterId: a3f4c612-4025-4392-861f-faa39b63e12d
    

    Create EventGatewayProducePolicySchemaValidation Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new EventGatewayProducePolicySchemaValidation(name: string, args: EventGatewayProducePolicySchemaValidationArgs, opts?: CustomResourceOptions);
    @overload
    def EventGatewayProducePolicySchemaValidation(resource_name: str,
                                                  args: EventGatewayProducePolicySchemaValidationArgs,
                                                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def EventGatewayProducePolicySchemaValidation(resource_name: str,
                                                  opts: Optional[ResourceOptions] = None,
                                                  config: Optional[EventGatewayProducePolicySchemaValidationConfigArgs] = None,
                                                  gateway_id: Optional[str] = None,
                                                  virtual_cluster_id: Optional[str] = None,
                                                  condition: Optional[str] = None,
                                                  description: Optional[str] = None,
                                                  enabled: Optional[bool] = None,
                                                  labels: Optional[Mapping[str, str]] = None,
                                                  name: Optional[str] = None)
    func NewEventGatewayProducePolicySchemaValidation(ctx *Context, name string, args EventGatewayProducePolicySchemaValidationArgs, opts ...ResourceOption) (*EventGatewayProducePolicySchemaValidation, error)
    public EventGatewayProducePolicySchemaValidation(string name, EventGatewayProducePolicySchemaValidationArgs args, CustomResourceOptions? opts = null)
    public EventGatewayProducePolicySchemaValidation(String name, EventGatewayProducePolicySchemaValidationArgs args)
    public EventGatewayProducePolicySchemaValidation(String name, EventGatewayProducePolicySchemaValidationArgs args, CustomResourceOptions options)
    
    type: konnect:EventGatewayProducePolicySchemaValidation
    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 EventGatewayProducePolicySchemaValidationArgs
    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 EventGatewayProducePolicySchemaValidationArgs
    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 EventGatewayProducePolicySchemaValidationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args EventGatewayProducePolicySchemaValidationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args EventGatewayProducePolicySchemaValidationArgs
    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 eventGatewayProducePolicySchemaValidationResource = new Konnect.EventGatewayProducePolicySchemaValidation("eventGatewayProducePolicySchemaValidationResource", new()
    {
        Config = new Konnect.Inputs.EventGatewayProducePolicySchemaValidationConfigArgs
        {
            ConfluentSchemaRegistry = new Konnect.Inputs.EventGatewayProducePolicySchemaValidationConfigConfluentSchemaRegistryArgs
            {
                KeyValidationAction = "string",
                SchemaRegistry = new Konnect.Inputs.EventGatewayProducePolicySchemaValidationConfigConfluentSchemaRegistrySchemaRegistryArgs
                {
                    Id = "string",
                },
                ValueValidationAction = "string",
            },
            Json = new Konnect.Inputs.EventGatewayProducePolicySchemaValidationConfigJsonArgs
            {
                KeyValidationAction = "string",
                SchemaRegistry = new Konnect.Inputs.EventGatewayProducePolicySchemaValidationConfigJsonSchemaRegistryArgs
                {
                    Id = "string",
                },
                ValueValidationAction = "string",
            },
        },
        GatewayId = "string",
        VirtualClusterId = "string",
        Condition = "string",
        Description = "string",
        Enabled = false,
        Labels = 
        {
            { "string", "string" },
        },
        Name = "string",
    });
    
    example, err := konnect.NewEventGatewayProducePolicySchemaValidation(ctx, "eventGatewayProducePolicySchemaValidationResource", &konnect.EventGatewayProducePolicySchemaValidationArgs{
    	Config: &konnect.EventGatewayProducePolicySchemaValidationConfigArgs{
    		ConfluentSchemaRegistry: &konnect.EventGatewayProducePolicySchemaValidationConfigConfluentSchemaRegistryArgs{
    			KeyValidationAction: pulumi.String("string"),
    			SchemaRegistry: &konnect.EventGatewayProducePolicySchemaValidationConfigConfluentSchemaRegistrySchemaRegistryArgs{
    				Id: pulumi.String("string"),
    			},
    			ValueValidationAction: pulumi.String("string"),
    		},
    		Json: &konnect.EventGatewayProducePolicySchemaValidationConfigJsonArgs{
    			KeyValidationAction: pulumi.String("string"),
    			SchemaRegistry: &konnect.EventGatewayProducePolicySchemaValidationConfigJsonSchemaRegistryArgs{
    				Id: pulumi.String("string"),
    			},
    			ValueValidationAction: pulumi.String("string"),
    		},
    	},
    	GatewayId:        pulumi.String("string"),
    	VirtualClusterId: pulumi.String("string"),
    	Condition:        pulumi.String("string"),
    	Description:      pulumi.String("string"),
    	Enabled:          pulumi.Bool(false),
    	Labels: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Name: pulumi.String("string"),
    })
    
    var eventGatewayProducePolicySchemaValidationResource = new EventGatewayProducePolicySchemaValidation("eventGatewayProducePolicySchemaValidationResource", EventGatewayProducePolicySchemaValidationArgs.builder()
        .config(EventGatewayProducePolicySchemaValidationConfigArgs.builder()
            .confluentSchemaRegistry(EventGatewayProducePolicySchemaValidationConfigConfluentSchemaRegistryArgs.builder()
                .keyValidationAction("string")
                .schemaRegistry(EventGatewayProducePolicySchemaValidationConfigConfluentSchemaRegistrySchemaRegistryArgs.builder()
                    .id("string")
                    .build())
                .valueValidationAction("string")
                .build())
            .json(EventGatewayProducePolicySchemaValidationConfigJsonArgs.builder()
                .keyValidationAction("string")
                .schemaRegistry(EventGatewayProducePolicySchemaValidationConfigJsonSchemaRegistryArgs.builder()
                    .id("string")
                    .build())
                .valueValidationAction("string")
                .build())
            .build())
        .gatewayId("string")
        .virtualClusterId("string")
        .condition("string")
        .description("string")
        .enabled(false)
        .labels(Map.of("string", "string"))
        .name("string")
        .build());
    
    event_gateway_produce_policy_schema_validation_resource = konnect.EventGatewayProducePolicySchemaValidation("eventGatewayProducePolicySchemaValidationResource",
        config={
            "confluent_schema_registry": {
                "key_validation_action": "string",
                "schema_registry": {
                    "id": "string",
                },
                "value_validation_action": "string",
            },
            "json": {
                "key_validation_action": "string",
                "schema_registry": {
                    "id": "string",
                },
                "value_validation_action": "string",
            },
        },
        gateway_id="string",
        virtual_cluster_id="string",
        condition="string",
        description="string",
        enabled=False,
        labels={
            "string": "string",
        },
        name="string")
    
    const eventGatewayProducePolicySchemaValidationResource = new konnect.EventGatewayProducePolicySchemaValidation("eventGatewayProducePolicySchemaValidationResource", {
        config: {
            confluentSchemaRegistry: {
                keyValidationAction: "string",
                schemaRegistry: {
                    id: "string",
                },
                valueValidationAction: "string",
            },
            json: {
                keyValidationAction: "string",
                schemaRegistry: {
                    id: "string",
                },
                valueValidationAction: "string",
            },
        },
        gatewayId: "string",
        virtualClusterId: "string",
        condition: "string",
        description: "string",
        enabled: false,
        labels: {
            string: "string",
        },
        name: "string",
    });
    
    type: konnect:EventGatewayProducePolicySchemaValidation
    properties:
        condition: string
        config:
            confluentSchemaRegistry:
                keyValidationAction: string
                schemaRegistry:
                    id: string
                valueValidationAction: string
            json:
                keyValidationAction: string
                schemaRegistry:
                    id: string
                valueValidationAction: string
        description: string
        enabled: false
        gatewayId: string
        labels:
            string: string
        name: string
        virtualClusterId: string
    

    EventGatewayProducePolicySchemaValidation 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 EventGatewayProducePolicySchemaValidation resource accepts the following input properties:

    Config EventGatewayProducePolicySchemaValidationConfig
    The configuration of the produce schema validation policy.
    GatewayId string
    The UUID of your Gateway.
    VirtualClusterId string
    The ID of the Virtual Cluster.
    Condition string
    A string containing the boolean expression that determines whether the policy is applied. Default: ""
    Description string
    A human-readable description of the policy. Default: ""
    Enabled bool
    Whether the policy is enabled. Default: true
    Labels Dictionary<string, string>

    Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types.

    Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_".

    Name string
    A unique user-defined name of the policy.
    Config EventGatewayProducePolicySchemaValidationConfigArgs
    The configuration of the produce schema validation policy.
    GatewayId string
    The UUID of your Gateway.
    VirtualClusterId string
    The ID of the Virtual Cluster.
    Condition string
    A string containing the boolean expression that determines whether the policy is applied. Default: ""
    Description string
    A human-readable description of the policy. Default: ""
    Enabled bool
    Whether the policy is enabled. Default: true
    Labels map[string]string

    Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types.

    Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_".

    Name string
    A unique user-defined name of the policy.
    config EventGatewayProducePolicySchemaValidationConfig
    The configuration of the produce schema validation policy.
    gatewayId String
    The UUID of your Gateway.
    virtualClusterId String
    The ID of the Virtual Cluster.
    condition String
    A string containing the boolean expression that determines whether the policy is applied. Default: ""
    description String
    A human-readable description of the policy. Default: ""
    enabled Boolean
    Whether the policy is enabled. Default: true
    labels Map<String,String>

    Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types.

    Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_".

    name String
    A unique user-defined name of the policy.
    config EventGatewayProducePolicySchemaValidationConfig
    The configuration of the produce schema validation policy.
    gatewayId string
    The UUID of your Gateway.
    virtualClusterId string
    The ID of the Virtual Cluster.
    condition string
    A string containing the boolean expression that determines whether the policy is applied. Default: ""
    description string
    A human-readable description of the policy. Default: ""
    enabled boolean
    Whether the policy is enabled. Default: true
    labels {[key: string]: string}

    Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types.

    Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_".

    name string
    A unique user-defined name of the policy.
    config EventGatewayProducePolicySchemaValidationConfigArgs
    The configuration of the produce schema validation policy.
    gateway_id str
    The UUID of your Gateway.
    virtual_cluster_id str
    The ID of the Virtual Cluster.
    condition str
    A string containing the boolean expression that determines whether the policy is applied. Default: ""
    description str
    A human-readable description of the policy. Default: ""
    enabled bool
    Whether the policy is enabled. Default: true
    labels Mapping[str, str]

    Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types.

    Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_".

    name str
    A unique user-defined name of the policy.
    config Property Map
    The configuration of the produce schema validation policy.
    gatewayId String
    The UUID of your Gateway.
    virtualClusterId String
    The ID of the Virtual Cluster.
    condition String
    A string containing the boolean expression that determines whether the policy is applied. Default: ""
    description String
    A human-readable description of the policy. Default: ""
    enabled Boolean
    Whether the policy is enabled. Default: true
    labels Map<String>

    Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types.

    Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_".

    name String
    A unique user-defined name of the policy.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the EventGatewayProducePolicySchemaValidation resource produces the following output properties:

    CreatedAt string
    An ISO-8601 timestamp representation of entity creation date.
    Id string
    The provider-assigned unique ID for this managed resource.
    ParentPolicyId string
    The unique identifier of the parent policy, if any.
    UpdatedAt string
    An ISO-8601 timestamp representation of entity update date.
    CreatedAt string
    An ISO-8601 timestamp representation of entity creation date.
    Id string
    The provider-assigned unique ID for this managed resource.
    ParentPolicyId string
    The unique identifier of the parent policy, if any.
    UpdatedAt string
    An ISO-8601 timestamp representation of entity update date.
    createdAt String
    An ISO-8601 timestamp representation of entity creation date.
    id String
    The provider-assigned unique ID for this managed resource.
    parentPolicyId String
    The unique identifier of the parent policy, if any.
    updatedAt String
    An ISO-8601 timestamp representation of entity update date.
    createdAt string
    An ISO-8601 timestamp representation of entity creation date.
    id string
    The provider-assigned unique ID for this managed resource.
    parentPolicyId string
    The unique identifier of the parent policy, if any.
    updatedAt string
    An ISO-8601 timestamp representation of entity update date.
    created_at str
    An ISO-8601 timestamp representation of entity creation date.
    id str
    The provider-assigned unique ID for this managed resource.
    parent_policy_id str
    The unique identifier of the parent policy, if any.
    updated_at str
    An ISO-8601 timestamp representation of entity update date.
    createdAt String
    An ISO-8601 timestamp representation of entity creation date.
    id String
    The provider-assigned unique ID for this managed resource.
    parentPolicyId String
    The unique identifier of the parent policy, if any.
    updatedAt String
    An ISO-8601 timestamp representation of entity update date.

    Look up Existing EventGatewayProducePolicySchemaValidation Resource

    Get an existing EventGatewayProducePolicySchemaValidation 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?: EventGatewayProducePolicySchemaValidationState, opts?: CustomResourceOptions): EventGatewayProducePolicySchemaValidation
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            condition: Optional[str] = None,
            config: Optional[EventGatewayProducePolicySchemaValidationConfigArgs] = None,
            created_at: Optional[str] = None,
            description: Optional[str] = None,
            enabled: Optional[bool] = None,
            gateway_id: Optional[str] = None,
            labels: Optional[Mapping[str, str]] = None,
            name: Optional[str] = None,
            parent_policy_id: Optional[str] = None,
            updated_at: Optional[str] = None,
            virtual_cluster_id: Optional[str] = None) -> EventGatewayProducePolicySchemaValidation
    func GetEventGatewayProducePolicySchemaValidation(ctx *Context, name string, id IDInput, state *EventGatewayProducePolicySchemaValidationState, opts ...ResourceOption) (*EventGatewayProducePolicySchemaValidation, error)
    public static EventGatewayProducePolicySchemaValidation Get(string name, Input<string> id, EventGatewayProducePolicySchemaValidationState? state, CustomResourceOptions? opts = null)
    public static EventGatewayProducePolicySchemaValidation get(String name, Output<String> id, EventGatewayProducePolicySchemaValidationState state, CustomResourceOptions options)
    resources:  _:    type: konnect:EventGatewayProducePolicySchemaValidation    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
    A string containing the boolean expression that determines whether the policy is applied. Default: ""
    Config EventGatewayProducePolicySchemaValidationConfig
    The configuration of the produce schema validation policy.
    CreatedAt string
    An ISO-8601 timestamp representation of entity creation date.
    Description string
    A human-readable description of the policy. Default: ""
    Enabled bool
    Whether the policy is enabled. Default: true
    GatewayId string
    The UUID of your Gateway.
    Labels Dictionary<string, string>

    Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types.

    Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_".

    Name string
    A unique user-defined name of the policy.
    ParentPolicyId string
    The unique identifier of the parent policy, if any.
    UpdatedAt string
    An ISO-8601 timestamp representation of entity update date.
    VirtualClusterId string
    The ID of the Virtual Cluster.
    Condition string
    A string containing the boolean expression that determines whether the policy is applied. Default: ""
    Config EventGatewayProducePolicySchemaValidationConfigArgs
    The configuration of the produce schema validation policy.
    CreatedAt string
    An ISO-8601 timestamp representation of entity creation date.
    Description string
    A human-readable description of the policy. Default: ""
    Enabled bool
    Whether the policy is enabled. Default: true
    GatewayId string
    The UUID of your Gateway.
    Labels map[string]string

    Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types.

    Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_".

    Name string
    A unique user-defined name of the policy.
    ParentPolicyId string
    The unique identifier of the parent policy, if any.
    UpdatedAt string
    An ISO-8601 timestamp representation of entity update date.
    VirtualClusterId string
    The ID of the Virtual Cluster.
    condition String
    A string containing the boolean expression that determines whether the policy is applied. Default: ""
    config EventGatewayProducePolicySchemaValidationConfig
    The configuration of the produce schema validation policy.
    createdAt String
    An ISO-8601 timestamp representation of entity creation date.
    description String
    A human-readable description of the policy. Default: ""
    enabled Boolean
    Whether the policy is enabled. Default: true
    gatewayId String
    The UUID of your Gateway.
    labels Map<String,String>

    Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types.

    Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_".

    name String
    A unique user-defined name of the policy.
    parentPolicyId String
    The unique identifier of the parent policy, if any.
    updatedAt String
    An ISO-8601 timestamp representation of entity update date.
    virtualClusterId String
    The ID of the Virtual Cluster.
    condition string
    A string containing the boolean expression that determines whether the policy is applied. Default: ""
    config EventGatewayProducePolicySchemaValidationConfig
    The configuration of the produce schema validation policy.
    createdAt string
    An ISO-8601 timestamp representation of entity creation date.
    description string
    A human-readable description of the policy. Default: ""
    enabled boolean
    Whether the policy is enabled. Default: true
    gatewayId string
    The UUID of your Gateway.
    labels {[key: string]: string}

    Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types.

    Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_".

    name string
    A unique user-defined name of the policy.
    parentPolicyId string
    The unique identifier of the parent policy, if any.
    updatedAt string
    An ISO-8601 timestamp representation of entity update date.
    virtualClusterId string
    The ID of the Virtual Cluster.
    condition str
    A string containing the boolean expression that determines whether the policy is applied. Default: ""
    config EventGatewayProducePolicySchemaValidationConfigArgs
    The configuration of the produce schema validation policy.
    created_at str
    An ISO-8601 timestamp representation of entity creation date.
    description str
    A human-readable description of the policy. Default: ""
    enabled bool
    Whether the policy is enabled. Default: true
    gateway_id str
    The UUID of your Gateway.
    labels Mapping[str, str]

    Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types.

    Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_".

    name str
    A unique user-defined name of the policy.
    parent_policy_id str
    The unique identifier of the parent policy, if any.
    updated_at str
    An ISO-8601 timestamp representation of entity update date.
    virtual_cluster_id str
    The ID of the Virtual Cluster.
    condition String
    A string containing the boolean expression that determines whether the policy is applied. Default: ""
    config Property Map
    The configuration of the produce schema validation policy.
    createdAt String
    An ISO-8601 timestamp representation of entity creation date.
    description String
    A human-readable description of the policy. Default: ""
    enabled Boolean
    Whether the policy is enabled. Default: true
    gatewayId String
    The UUID of your Gateway.
    labels Map<String>

    Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types.

    Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_".

    name String
    A unique user-defined name of the policy.
    parentPolicyId String
    The unique identifier of the parent policy, if any.
    updatedAt String
    An ISO-8601 timestamp representation of entity update date.
    virtualClusterId String
    The ID of the Virtual Cluster.

    Supporting Types

    EventGatewayProducePolicySchemaValidationConfig, EventGatewayProducePolicySchemaValidationConfigArgs

    ConfluentSchemaRegistry EventGatewayProducePolicySchemaValidationConfigConfluentSchemaRegistry
    The configuration of the produce schema validation policy when using a schema registry.
    Json EventGatewayProducePolicySchemaValidationConfigJson
    The configuration of the produce schema validation policy when using JSON parsing without schema.
    ConfluentSchemaRegistry EventGatewayProducePolicySchemaValidationConfigConfluentSchemaRegistry
    The configuration of the produce schema validation policy when using a schema registry.
    Json EventGatewayProducePolicySchemaValidationConfigJson
    The configuration of the produce schema validation policy when using JSON parsing without schema.
    confluentSchemaRegistry EventGatewayProducePolicySchemaValidationConfigConfluentSchemaRegistry
    The configuration of the produce schema validation policy when using a schema registry.
    json EventGatewayProducePolicySchemaValidationConfigJson
    The configuration of the produce schema validation policy when using JSON parsing without schema.
    confluentSchemaRegistry EventGatewayProducePolicySchemaValidationConfigConfluentSchemaRegistry
    The configuration of the produce schema validation policy when using a schema registry.
    json EventGatewayProducePolicySchemaValidationConfigJson
    The configuration of the produce schema validation policy when using JSON parsing without schema.
    confluent_schema_registry EventGatewayProducePolicySchemaValidationConfigConfluentSchemaRegistry
    The configuration of the produce schema validation policy when using a schema registry.
    json EventGatewayProducePolicySchemaValidationConfigJson
    The configuration of the produce schema validation policy when using JSON parsing without schema.
    confluentSchemaRegistry Property Map
    The configuration of the produce schema validation policy when using a schema registry.
    json Property Map
    The configuration of the produce schema validation policy when using JSON parsing without schema.

    EventGatewayProducePolicySchemaValidationConfigConfluentSchemaRegistry, EventGatewayProducePolicySchemaValidationConfigConfluentSchemaRegistryArgs

    KeyValidationAction string
    Defines a behavior when record key is not valid.

    • reject - rejects a batch for topic partition. Only available for produce.
    • mark - marks a record with kong/server header and client ID value to help to identify the clients violating schema. must be one of ["reject", "mark"]
    SchemaRegistry EventGatewayProducePolicySchemaValidationConfigConfluentSchemaRegistrySchemaRegistry
    ValueValidationAction string
    Defines a behavior when record value is not valid.

    • reject - rejects a batch for topic partition. Only available for produce.
    • mark - marks a record with kong/server header and client ID value to help to identify the clients violating schema. must be one of ["reject", "mark"]
    KeyValidationAction string
    Defines a behavior when record key is not valid.

    • reject - rejects a batch for topic partition. Only available for produce.
    • mark - marks a record with kong/server header and client ID value to help to identify the clients violating schema. must be one of ["reject", "mark"]
    SchemaRegistry EventGatewayProducePolicySchemaValidationConfigConfluentSchemaRegistrySchemaRegistry
    ValueValidationAction string
    Defines a behavior when record value is not valid.

    • reject - rejects a batch for topic partition. Only available for produce.
    • mark - marks a record with kong/server header and client ID value to help to identify the clients violating schema. must be one of ["reject", "mark"]
    keyValidationAction String
    Defines a behavior when record key is not valid.

    • reject - rejects a batch for topic partition. Only available for produce.
    • mark - marks a record with kong/server header and client ID value to help to identify the clients violating schema. must be one of ["reject", "mark"]
    schemaRegistry EventGatewayProducePolicySchemaValidationConfigConfluentSchemaRegistrySchemaRegistry
    valueValidationAction String
    Defines a behavior when record value is not valid.

    • reject - rejects a batch for topic partition. Only available for produce.
    • mark - marks a record with kong/server header and client ID value to help to identify the clients violating schema. must be one of ["reject", "mark"]
    keyValidationAction string
    Defines a behavior when record key is not valid.

    • reject - rejects a batch for topic partition. Only available for produce.
    • mark - marks a record with kong/server header and client ID value to help to identify the clients violating schema. must be one of ["reject", "mark"]
    schemaRegistry EventGatewayProducePolicySchemaValidationConfigConfluentSchemaRegistrySchemaRegistry
    valueValidationAction string
    Defines a behavior when record value is not valid.

    • reject - rejects a batch for topic partition. Only available for produce.
    • mark - marks a record with kong/server header and client ID value to help to identify the clients violating schema. must be one of ["reject", "mark"]
    key_validation_action str
    Defines a behavior when record key is not valid.

    • reject - rejects a batch for topic partition. Only available for produce.
    • mark - marks a record with kong/server header and client ID value to help to identify the clients violating schema. must be one of ["reject", "mark"]
    schema_registry EventGatewayProducePolicySchemaValidationConfigConfluentSchemaRegistrySchemaRegistry
    value_validation_action str
    Defines a behavior when record value is not valid.

    • reject - rejects a batch for topic partition. Only available for produce.
    • mark - marks a record with kong/server header and client ID value to help to identify the clients violating schema. must be one of ["reject", "mark"]
    keyValidationAction String
    Defines a behavior when record key is not valid.

    • reject - rejects a batch for topic partition. Only available for produce.
    • mark - marks a record with kong/server header and client ID value to help to identify the clients violating schema. must be one of ["reject", "mark"]
    schemaRegistry Property Map
    valueValidationAction String
    Defines a behavior when record value is not valid.

    • reject - rejects a batch for topic partition. Only available for produce.
    • mark - marks a record with kong/server header and client ID value to help to identify the clients violating schema. must be one of ["reject", "mark"]

    EventGatewayProducePolicySchemaValidationConfigConfluentSchemaRegistrySchemaRegistry, EventGatewayProducePolicySchemaValidationConfigConfluentSchemaRegistrySchemaRegistryArgs

    Id string
    The unique identifier of the schema registry.
    Id string
    The unique identifier of the schema registry.
    id String
    The unique identifier of the schema registry.
    id string
    The unique identifier of the schema registry.
    id str
    The unique identifier of the schema registry.
    id String
    The unique identifier of the schema registry.

    EventGatewayProducePolicySchemaValidationConfigJson, EventGatewayProducePolicySchemaValidationConfigJsonArgs

    KeyValidationAction string
    Defines a behavior when record key is not valid.

    • reject - rejects a batch for topic partition. Only available for produce.
    • mark - marks a record with kong/server header and client ID value to help to identify the clients violating schema. must be one of ["reject", "mark"]
    SchemaRegistry EventGatewayProducePolicySchemaValidationConfigJsonSchemaRegistry
    ValueValidationAction string
    Defines a behavior when record value is not valid.

    • reject - rejects a batch for topic partition. Only available for produce.
    • mark - marks a record with kong/server header and client ID value to help to identify the clients violating schema. must be one of ["reject", "mark"]
    KeyValidationAction string
    Defines a behavior when record key is not valid.

    • reject - rejects a batch for topic partition. Only available for produce.
    • mark - marks a record with kong/server header and client ID value to help to identify the clients violating schema. must be one of ["reject", "mark"]
    SchemaRegistry EventGatewayProducePolicySchemaValidationConfigJsonSchemaRegistry
    ValueValidationAction string
    Defines a behavior when record value is not valid.

    • reject - rejects a batch for topic partition. Only available for produce.
    • mark - marks a record with kong/server header and client ID value to help to identify the clients violating schema. must be one of ["reject", "mark"]
    keyValidationAction String
    Defines a behavior when record key is not valid.

    • reject - rejects a batch for topic partition. Only available for produce.
    • mark - marks a record with kong/server header and client ID value to help to identify the clients violating schema. must be one of ["reject", "mark"]
    schemaRegistry EventGatewayProducePolicySchemaValidationConfigJsonSchemaRegistry
    valueValidationAction String
    Defines a behavior when record value is not valid.

    • reject - rejects a batch for topic partition. Only available for produce.
    • mark - marks a record with kong/server header and client ID value to help to identify the clients violating schema. must be one of ["reject", "mark"]
    keyValidationAction string
    Defines a behavior when record key is not valid.

    • reject - rejects a batch for topic partition. Only available for produce.
    • mark - marks a record with kong/server header and client ID value to help to identify the clients violating schema. must be one of ["reject", "mark"]
    schemaRegistry EventGatewayProducePolicySchemaValidationConfigJsonSchemaRegistry
    valueValidationAction string
    Defines a behavior when record value is not valid.

    • reject - rejects a batch for topic partition. Only available for produce.
    • mark - marks a record with kong/server header and client ID value to help to identify the clients violating schema. must be one of ["reject", "mark"]
    key_validation_action str
    Defines a behavior when record key is not valid.

    • reject - rejects a batch for topic partition. Only available for produce.
    • mark - marks a record with kong/server header and client ID value to help to identify the clients violating schema. must be one of ["reject", "mark"]
    schema_registry EventGatewayProducePolicySchemaValidationConfigJsonSchemaRegistry
    value_validation_action str
    Defines a behavior when record value is not valid.

    • reject - rejects a batch for topic partition. Only available for produce.
    • mark - marks a record with kong/server header and client ID value to help to identify the clients violating schema. must be one of ["reject", "mark"]
    keyValidationAction String
    Defines a behavior when record key is not valid.

    • reject - rejects a batch for topic partition. Only available for produce.
    • mark - marks a record with kong/server header and client ID value to help to identify the clients violating schema. must be one of ["reject", "mark"]
    schemaRegistry Property Map
    valueValidationAction String
    Defines a behavior when record value is not valid.

    • reject - rejects a batch for topic partition. Only available for produce.
    • mark - marks a record with kong/server header and client ID value to help to identify the clients violating schema. must be one of ["reject", "mark"]

    EventGatewayProducePolicySchemaValidationConfigJsonSchemaRegistry, EventGatewayProducePolicySchemaValidationConfigJsonSchemaRegistryArgs

    Id string
    The unique identifier of the schema registry.
    Id string
    The unique identifier of the schema registry.
    id String
    The unique identifier of the schema registry.
    id string
    The unique identifier of the schema registry.
    id str
    The unique identifier of the schema registry.
    id String
    The unique identifier of the schema registry.

    Import

    In Terraform v1.5.0 and later, the import block can be used with the id attribute, for example:

    terraform

    import {

    to = konnect_event_gateway_produce_policy_schema_validation.my_konnect_event_gateway_produce_policy_schema_validation

    id = jsonencode({

    gateway_id = "9524ec7d-36d9-465d-a8c5-83a3c9390458"
    
    id = "9524ec7d-36d9-465d-a8c5-83a3c9390458"
    
    virtual_cluster_id = "..."
    

    })

    }

    The pulumi import command can be used, for example:

    $ pulumi import konnect:index/eventGatewayProducePolicySchemaValidation:EventGatewayProducePolicySchemaValidation my_konnect_event_gateway_produce_policy_schema_validation '{"gateway_id": "9524ec7d-36d9-465d-a8c5-83a3c9390458", "id": "9524ec7d-36d9-465d-a8c5-83a3c9390458", "virtual_cluster_id": "..."}'
    

    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.
    konnect logo
    Viewing docs for konnect 3.11.0
    published on Thursday, Mar 12, 2026 by kong
      Try Pulumi Cloud free. Your team will thank you.