1. Packages
  2. Konnect Provider
  3. API Docs
  4. EventGatewayProducePolicyEncrypt
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

    EventGatewayProducePolicyEncrypt Resource

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as konnect from "@pulumi/konnect";
    
    const myEventgatewayproducepolicyencrypt = new konnect.EventGatewayProducePolicyEncrypt("my_eventgatewayproducepolicyencrypt", {
        condition: "context.topic.name.endsWith(\"my_suffix\") && record.headers[\"x-flag\"] == \"a-value\"",
        config: {
            encryptionKey: {
                static: {
                    key: {
                        id: "6e8740c2-fb76-4269-aeef-660d701c6ea1",
                    },
                },
            },
            failureMode: "error",
            partOfRecords: ["key"],
        },
        description: "...my_description...",
        enabled: true,
        gatewayId: "9524ec7d-36d9-465d-a8c5-83a3c9390458",
        labels: {
            key: "value",
        },
        name: "...my_name...",
        virtualClusterId: "6ea3798e-38ca-4c28-a68e-1a577e478f2c",
    });
    
    import pulumi
    import pulumi_konnect as konnect
    
    my_eventgatewayproducepolicyencrypt = konnect.EventGatewayProducePolicyEncrypt("my_eventgatewayproducepolicyencrypt",
        condition="context.topic.name.endsWith(\"my_suffix\") && record.headers[\"x-flag\"] == \"a-value\"",
        config={
            "encryption_key": {
                "static": {
                    "key": {
                        "id": "6e8740c2-fb76-4269-aeef-660d701c6ea1",
                    },
                },
            },
            "failure_mode": "error",
            "part_of_records": ["key"],
        },
        description="...my_description...",
        enabled=True,
        gateway_id="9524ec7d-36d9-465d-a8c5-83a3c9390458",
        labels={
            "key": "value",
        },
        name="...my_name...",
        virtual_cluster_id="6ea3798e-38ca-4c28-a68e-1a577e478f2c")
    
    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.NewEventGatewayProducePolicyEncrypt(ctx, "my_eventgatewayproducepolicyencrypt", &konnect.EventGatewayProducePolicyEncryptArgs{
    			Condition: pulumi.String("context.topic.name.endsWith(\"my_suffix\") && record.headers[\"x-flag\"] == \"a-value\""),
    			Config: &konnect.EventGatewayProducePolicyEncryptConfigArgs{
    				EncryptionKey: &konnect.EventGatewayProducePolicyEncryptConfigEncryptionKeyArgs{
    					Static: &konnect.EventGatewayProducePolicyEncryptConfigEncryptionKeyStaticArgs{
    						Key: &konnect.EventGatewayProducePolicyEncryptConfigEncryptionKeyStaticKeyArgs{
    							Id: pulumi.String("6e8740c2-fb76-4269-aeef-660d701c6ea1"),
    						},
    					},
    				},
    				FailureMode: pulumi.String("error"),
    				PartOfRecords: pulumi.StringArray{
    					pulumi.String("key"),
    				},
    			},
    			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("6ea3798e-38ca-4c28-a68e-1a577e478f2c"),
    		})
    		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 myEventgatewayproducepolicyencrypt = new Konnect.EventGatewayProducePolicyEncrypt("my_eventgatewayproducepolicyencrypt", new()
        {
            Condition = "context.topic.name.endsWith(\"my_suffix\") && record.headers[\"x-flag\"] == \"a-value\"",
            Config = new Konnect.Inputs.EventGatewayProducePolicyEncryptConfigArgs
            {
                EncryptionKey = new Konnect.Inputs.EventGatewayProducePolicyEncryptConfigEncryptionKeyArgs
                {
                    Static = new Konnect.Inputs.EventGatewayProducePolicyEncryptConfigEncryptionKeyStaticArgs
                    {
                        Key = new Konnect.Inputs.EventGatewayProducePolicyEncryptConfigEncryptionKeyStaticKeyArgs
                        {
                            Id = "6e8740c2-fb76-4269-aeef-660d701c6ea1",
                        },
                    },
                },
                FailureMode = "error",
                PartOfRecords = new[]
                {
                    "key",
                },
            },
            Description = "...my_description...",
            Enabled = true,
            GatewayId = "9524ec7d-36d9-465d-a8c5-83a3c9390458",
            Labels = 
            {
                { "key", "value" },
            },
            Name = "...my_name...",
            VirtualClusterId = "6ea3798e-38ca-4c28-a68e-1a577e478f2c",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.konnect.EventGatewayProducePolicyEncrypt;
    import com.pulumi.konnect.EventGatewayProducePolicyEncryptArgs;
    import com.pulumi.konnect.inputs.EventGatewayProducePolicyEncryptConfigArgs;
    import com.pulumi.konnect.inputs.EventGatewayProducePolicyEncryptConfigEncryptionKeyArgs;
    import com.pulumi.konnect.inputs.EventGatewayProducePolicyEncryptConfigEncryptionKeyStaticArgs;
    import com.pulumi.konnect.inputs.EventGatewayProducePolicyEncryptConfigEncryptionKeyStaticKeyArgs;
    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 myEventgatewayproducepolicyencrypt = new EventGatewayProducePolicyEncrypt("myEventgatewayproducepolicyencrypt", EventGatewayProducePolicyEncryptArgs.builder()
                .condition("context.topic.name.endsWith(\"my_suffix\") && record.headers[\"x-flag\"] == \"a-value\"")
                .config(EventGatewayProducePolicyEncryptConfigArgs.builder()
                    .encryptionKey(EventGatewayProducePolicyEncryptConfigEncryptionKeyArgs.builder()
                        .static_(EventGatewayProducePolicyEncryptConfigEncryptionKeyStaticArgs.builder()
                            .key(EventGatewayProducePolicyEncryptConfigEncryptionKeyStaticKeyArgs.builder()
                                .id("6e8740c2-fb76-4269-aeef-660d701c6ea1")
                                .build())
                            .build())
                        .build())
                    .failureMode("error")
                    .partOfRecords("key")
                    .build())
                .description("...my_description...")
                .enabled(true)
                .gatewayId("9524ec7d-36d9-465d-a8c5-83a3c9390458")
                .labels(Map.of("key", "value"))
                .name("...my_name...")
                .virtualClusterId("6ea3798e-38ca-4c28-a68e-1a577e478f2c")
                .build());
    
        }
    }
    
    resources:
      myEventgatewayproducepolicyencrypt:
        type: konnect:EventGatewayProducePolicyEncrypt
        name: my_eventgatewayproducepolicyencrypt
        properties:
          condition: context.topic.name.endsWith("my_suffix") && record.headers["x-flag"] == "a-value"
          config:
            encryptionKey:
              static:
                key:
                  id: 6e8740c2-fb76-4269-aeef-660d701c6ea1
            failureMode: error
            partOfRecords:
              - key
          description: '...my_description...'
          enabled: true
          gatewayId: 9524ec7d-36d9-465d-a8c5-83a3c9390458
          labels:
            key: value
          name: '...my_name...'
          virtualClusterId: 6ea3798e-38ca-4c28-a68e-1a577e478f2c
    

    Create EventGatewayProducePolicyEncrypt Resource

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

    Constructor syntax

    new EventGatewayProducePolicyEncrypt(name: string, args: EventGatewayProducePolicyEncryptArgs, opts?: CustomResourceOptions);
    @overload
    def EventGatewayProducePolicyEncrypt(resource_name: str,
                                         args: EventGatewayProducePolicyEncryptArgs,
                                         opts: Optional[ResourceOptions] = None)
    
    @overload
    def EventGatewayProducePolicyEncrypt(resource_name: str,
                                         opts: Optional[ResourceOptions] = None,
                                         config: Optional[EventGatewayProducePolicyEncryptConfigArgs] = 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 NewEventGatewayProducePolicyEncrypt(ctx *Context, name string, args EventGatewayProducePolicyEncryptArgs, opts ...ResourceOption) (*EventGatewayProducePolicyEncrypt, error)
    public EventGatewayProducePolicyEncrypt(string name, EventGatewayProducePolicyEncryptArgs args, CustomResourceOptions? opts = null)
    public EventGatewayProducePolicyEncrypt(String name, EventGatewayProducePolicyEncryptArgs args)
    public EventGatewayProducePolicyEncrypt(String name, EventGatewayProducePolicyEncryptArgs args, CustomResourceOptions options)
    
    type: konnect:EventGatewayProducePolicyEncrypt
    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 EventGatewayProducePolicyEncryptArgs
    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 EventGatewayProducePolicyEncryptArgs
    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 EventGatewayProducePolicyEncryptArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args EventGatewayProducePolicyEncryptArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args EventGatewayProducePolicyEncryptArgs
    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 eventGatewayProducePolicyEncryptResource = new Konnect.EventGatewayProducePolicyEncrypt("eventGatewayProducePolicyEncryptResource", new()
    {
        Config = new Konnect.Inputs.EventGatewayProducePolicyEncryptConfigArgs
        {
            EncryptionKey = new Konnect.Inputs.EventGatewayProducePolicyEncryptConfigEncryptionKeyArgs
            {
                Aws = new Konnect.Inputs.EventGatewayProducePolicyEncryptConfigEncryptionKeyAwsArgs
                {
                    Arn = "string",
                },
                Static = new Konnect.Inputs.EventGatewayProducePolicyEncryptConfigEncryptionKeyStaticArgs
                {
                    Key = new Konnect.Inputs.EventGatewayProducePolicyEncryptConfigEncryptionKeyStaticKeyArgs
                    {
                        Id = "string",
                    },
                },
            },
            FailureMode = "string",
            PartOfRecords = new[]
            {
                "string",
            },
        },
        GatewayId = "string",
        VirtualClusterId = "string",
        Condition = "string",
        Description = "string",
        Enabled = false,
        Labels = 
        {
            { "string", "string" },
        },
        Name = "string",
    });
    
    example, err := konnect.NewEventGatewayProducePolicyEncrypt(ctx, "eventGatewayProducePolicyEncryptResource", &konnect.EventGatewayProducePolicyEncryptArgs{
    	Config: &konnect.EventGatewayProducePolicyEncryptConfigArgs{
    		EncryptionKey: &konnect.EventGatewayProducePolicyEncryptConfigEncryptionKeyArgs{
    			Aws: &konnect.EventGatewayProducePolicyEncryptConfigEncryptionKeyAwsArgs{
    				Arn: pulumi.String("string"),
    			},
    			Static: &konnect.EventGatewayProducePolicyEncryptConfigEncryptionKeyStaticArgs{
    				Key: &konnect.EventGatewayProducePolicyEncryptConfigEncryptionKeyStaticKeyArgs{
    					Id: pulumi.String("string"),
    				},
    			},
    		},
    		FailureMode: pulumi.String("string"),
    		PartOfRecords: pulumi.StringArray{
    			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 eventGatewayProducePolicyEncryptResource = new EventGatewayProducePolicyEncrypt("eventGatewayProducePolicyEncryptResource", EventGatewayProducePolicyEncryptArgs.builder()
        .config(EventGatewayProducePolicyEncryptConfigArgs.builder()
            .encryptionKey(EventGatewayProducePolicyEncryptConfigEncryptionKeyArgs.builder()
                .aws(EventGatewayProducePolicyEncryptConfigEncryptionKeyAwsArgs.builder()
                    .arn("string")
                    .build())
                .static_(EventGatewayProducePolicyEncryptConfigEncryptionKeyStaticArgs.builder()
                    .key(EventGatewayProducePolicyEncryptConfigEncryptionKeyStaticKeyArgs.builder()
                        .id("string")
                        .build())
                    .build())
                .build())
            .failureMode("string")
            .partOfRecords("string")
            .build())
        .gatewayId("string")
        .virtualClusterId("string")
        .condition("string")
        .description("string")
        .enabled(false)
        .labels(Map.of("string", "string"))
        .name("string")
        .build());
    
    event_gateway_produce_policy_encrypt_resource = konnect.EventGatewayProducePolicyEncrypt("eventGatewayProducePolicyEncryptResource",
        config={
            "encryption_key": {
                "aws": {
                    "arn": "string",
                },
                "static": {
                    "key": {
                        "id": "string",
                    },
                },
            },
            "failure_mode": "string",
            "part_of_records": ["string"],
        },
        gateway_id="string",
        virtual_cluster_id="string",
        condition="string",
        description="string",
        enabled=False,
        labels={
            "string": "string",
        },
        name="string")
    
    const eventGatewayProducePolicyEncryptResource = new konnect.EventGatewayProducePolicyEncrypt("eventGatewayProducePolicyEncryptResource", {
        config: {
            encryptionKey: {
                aws: {
                    arn: "string",
                },
                static: {
                    key: {
                        id: "string",
                    },
                },
            },
            failureMode: "string",
            partOfRecords: ["string"],
        },
        gatewayId: "string",
        virtualClusterId: "string",
        condition: "string",
        description: "string",
        enabled: false,
        labels: {
            string: "string",
        },
        name: "string",
    });
    
    type: konnect:EventGatewayProducePolicyEncrypt
    properties:
        condition: string
        config:
            encryptionKey:
                aws:
                    arn: string
                static:
                    key:
                        id: string
            failureMode: string
            partOfRecords:
                - string
        description: string
        enabled: false
        gatewayId: string
        labels:
            string: string
        name: string
        virtualClusterId: string
    

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

    Config EventGatewayProducePolicyEncryptConfig
    The configuration of the encrypt 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.
    Name string
    A unique user-defined name of the policy.
    Config EventGatewayProducePolicyEncryptConfigArgs
    The configuration of the encrypt 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.
    Name string
    A unique user-defined name of the policy.
    config EventGatewayProducePolicyEncryptConfig
    The configuration of the encrypt 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.
    name String
    A unique user-defined name of the policy.
    config EventGatewayProducePolicyEncryptConfig
    The configuration of the encrypt 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.
    name string
    A unique user-defined name of the policy.
    config EventGatewayProducePolicyEncryptConfigArgs
    The configuration of the encrypt 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.
    name str
    A unique user-defined name of the policy.
    config Property Map
    The configuration of the encrypt 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.
    name String
    A unique user-defined name of the policy.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the EventGatewayProducePolicyEncrypt 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 EventGatewayProducePolicyEncrypt Resource

    Get an existing EventGatewayProducePolicyEncrypt 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?: EventGatewayProducePolicyEncryptState, opts?: CustomResourceOptions): EventGatewayProducePolicyEncrypt
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            condition: Optional[str] = None,
            config: Optional[EventGatewayProducePolicyEncryptConfigArgs] = 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) -> EventGatewayProducePolicyEncrypt
    func GetEventGatewayProducePolicyEncrypt(ctx *Context, name string, id IDInput, state *EventGatewayProducePolicyEncryptState, opts ...ResourceOption) (*EventGatewayProducePolicyEncrypt, error)
    public static EventGatewayProducePolicyEncrypt Get(string name, Input<string> id, EventGatewayProducePolicyEncryptState? state, CustomResourceOptions? opts = null)
    public static EventGatewayProducePolicyEncrypt get(String name, Output<String> id, EventGatewayProducePolicyEncryptState state, CustomResourceOptions options)
    resources:  _:    type: konnect:EventGatewayProducePolicyEncrypt    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 EventGatewayProducePolicyEncryptConfig
    The configuration of the encrypt 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.
    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 EventGatewayProducePolicyEncryptConfigArgs
    The configuration of the encrypt 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.
    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 EventGatewayProducePolicyEncryptConfig
    The configuration of the encrypt 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.
    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 EventGatewayProducePolicyEncryptConfig
    The configuration of the encrypt 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.
    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 EventGatewayProducePolicyEncryptConfigArgs
    The configuration of the encrypt 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.
    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 encrypt 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.
    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

    EventGatewayProducePolicyEncryptConfig, EventGatewayProducePolicyEncryptConfigArgs

    EncryptionKey EventGatewayProducePolicyEncryptConfigEncryptionKey
    The key to use for encryption.
    FailureMode string
    Describes how to handle failing encryption or decryption. Use error if the record should be rejected if encryption or decryption fails. Use passthrough to ignore encryption or decryption failure and continue proxying the record. must be one of ["error", "passthrough"]
    PartOfRecords List<string>
    Describes the parts of a record to encrypt.
    EncryptionKey EventGatewayProducePolicyEncryptConfigEncryptionKey
    The key to use for encryption.
    FailureMode string
    Describes how to handle failing encryption or decryption. Use error if the record should be rejected if encryption or decryption fails. Use passthrough to ignore encryption or decryption failure and continue proxying the record. must be one of ["error", "passthrough"]
    PartOfRecords []string
    Describes the parts of a record to encrypt.
    encryptionKey EventGatewayProducePolicyEncryptConfigEncryptionKey
    The key to use for encryption.
    failureMode String
    Describes how to handle failing encryption or decryption. Use error if the record should be rejected if encryption or decryption fails. Use passthrough to ignore encryption or decryption failure and continue proxying the record. must be one of ["error", "passthrough"]
    partOfRecords List<String>
    Describes the parts of a record to encrypt.
    encryptionKey EventGatewayProducePolicyEncryptConfigEncryptionKey
    The key to use for encryption.
    failureMode string
    Describes how to handle failing encryption or decryption. Use error if the record should be rejected if encryption or decryption fails. Use passthrough to ignore encryption or decryption failure and continue proxying the record. must be one of ["error", "passthrough"]
    partOfRecords string[]
    Describes the parts of a record to encrypt.
    encryption_key EventGatewayProducePolicyEncryptConfigEncryptionKey
    The key to use for encryption.
    failure_mode str
    Describes how to handle failing encryption or decryption. Use error if the record should be rejected if encryption or decryption fails. Use passthrough to ignore encryption or decryption failure and continue proxying the record. must be one of ["error", "passthrough"]
    part_of_records Sequence[str]
    Describes the parts of a record to encrypt.
    encryptionKey Property Map
    The key to use for encryption.
    failureMode String
    Describes how to handle failing encryption or decryption. Use error if the record should be rejected if encryption or decryption fails. Use passthrough to ignore encryption or decryption failure and continue proxying the record. must be one of ["error", "passthrough"]
    partOfRecords List<String>
    Describes the parts of a record to encrypt.

    EventGatewayProducePolicyEncryptConfigEncryptionKey, EventGatewayProducePolicyEncryptConfigEncryptionKeyArgs

    aws Property Map
    The AWS KMS key to use for encryption.
    static Property Map
    A static encryption key.

    EventGatewayProducePolicyEncryptConfigEncryptionKeyAws, EventGatewayProducePolicyEncryptConfigEncryptionKeyAwsArgs

    Arn string
    The AWS KMS key ARN.
    Arn string
    The AWS KMS key ARN.
    arn String
    The AWS KMS key ARN.
    arn string
    The AWS KMS key ARN.
    arn str
    The AWS KMS key ARN.
    arn String
    The AWS KMS key ARN.

    EventGatewayProducePolicyEncryptConfigEncryptionKeyStatic, EventGatewayProducePolicyEncryptConfigEncryptionKeyStaticArgs

    key Property Map
    A static encryption key reference by ID.

    EventGatewayProducePolicyEncryptConfigEncryptionKeyStaticKey, EventGatewayProducePolicyEncryptConfigEncryptionKeyStaticKeyArgs

    Id string
    The ID of the static key defined in the key source.
    Id string
    The ID of the static key defined in the key source.
    id String
    The ID of the static key defined in the key source.
    id string
    The ID of the static key defined in the key source.
    id str
    The ID of the static key defined in the key source.
    id String
    The ID of the static key defined in the key source.

    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_encrypt.my_konnect_event_gateway_produce_policy_encrypt

    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/eventGatewayProducePolicyEncrypt:EventGatewayProducePolicyEncrypt my_konnect_event_gateway_produce_policy_encrypt '{"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.