1. Packages
  2. Konnect Provider
  3. API Docs
  4. GatewayPluginAiPromptCompressor
konnect 2.12.0 published on Tuesday, Jul 22, 2025 by kong

konnect.GatewayPluginAiPromptCompressor

Explore with Pulumi AI

konnect logo
konnect 2.12.0 published on Tuesday, Jul 22, 2025 by kong

    GatewayPluginAiPromptCompressor Resource

    Example Usage

    Example coming soon!
    
    Example coming soon!
    
    Example coming soon!
    
    Example coming soon!
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.konnect.GatewayPluginAiPromptCompressor;
    import com.pulumi.konnect.GatewayPluginAiPromptCompressorArgs;
    import com.pulumi.konnect.inputs.GatewayPluginAiPromptCompressorConfigArgs;
    import com.pulumi.konnect.inputs.GatewayPluginAiPromptCompressorConsumerArgs;
    import com.pulumi.konnect.inputs.GatewayPluginAiPromptCompressorConsumerGroupArgs;
    import com.pulumi.konnect.inputs.GatewayPluginAiPromptCompressorOrderingArgs;
    import com.pulumi.konnect.inputs.GatewayPluginAiPromptCompressorOrderingAfterArgs;
    import com.pulumi.konnect.inputs.GatewayPluginAiPromptCompressorOrderingBeforeArgs;
    import com.pulumi.konnect.inputs.GatewayPluginAiPromptCompressorPartialArgs;
    import com.pulumi.konnect.inputs.GatewayPluginAiPromptCompressorRouteArgs;
    import com.pulumi.konnect.inputs.GatewayPluginAiPromptCompressorServiceArgs;
    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 myGatewaypluginaipromptcompressor = new GatewayPluginAiPromptCompressor("myGatewaypluginaipromptcompressor", GatewayPluginAiPromptCompressorArgs.builder()
                .config(GatewayPluginAiPromptCompressorConfigArgs.builder()
                    .compression_ranges(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
                    .compressor_type("target_token")
                    .compressor_url("...my_compressor_url...")
                    .keepalive_timeout(6.37)
                    .log_text_data(true)
                    .message_type("user")
                    .stop_on_error(true)
                    .timeout(1.73)
                    .build())
                .consumer(GatewayPluginAiPromptCompressorConsumerArgs.builder()
                    .id("...my_id...")
                    .build())
                .consumerGroup(GatewayPluginAiPromptCompressorConsumerGroupArgs.builder()
                    .id("...my_id...")
                    .build())
                .controlPlaneId("9524ec7d-36d9-465d-a8c5-83a3c9390458")
                .createdAt(2)
                .enabled(false)
                .gatewayPluginAiPromptCompressorId("...my_id...")
                .instanceName("...my_instance_name...")
                .ordering(GatewayPluginAiPromptCompressorOrderingArgs.builder()
                    .after(GatewayPluginAiPromptCompressorOrderingAfterArgs.builder()
                        .access("...")
                        .build())
                    .before(GatewayPluginAiPromptCompressorOrderingBeforeArgs.builder()
                        .access("...")
                        .build())
                    .build())
                .partials(GatewayPluginAiPromptCompressorPartialArgs.builder()
                    .id("...my_id...")
                    .name("...my_name...")
                    .path("...my_path...")
                    .build())
                .protocols("grpc")
                .route(GatewayPluginAiPromptCompressorRouteArgs.builder()
                    .id("...my_id...")
                    .build())
                .service(GatewayPluginAiPromptCompressorServiceArgs.builder()
                    .id("...my_id...")
                    .build())
                .tags("...")
                .updatedAt(7)
                .build());
    
        }
    }
    
    resources:
      myGatewaypluginaipromptcompressor:
        type: konnect:GatewayPluginAiPromptCompressor
        properties:
          config:
            compression_ranges:
              - maxTokens: 8
                minTokens: 8
                value: 5.24
            compressor_type: target_token
            compressor_url: '...my_compressor_url...'
            keepalive_timeout: 6.37
            log_text_data: true
            message_type:
              - user
            stop_on_error: true
            timeout: 1.73
          consumer:
            id: '...my_id...'
          consumerGroup:
            id: '...my_id...'
          controlPlaneId: 9524ec7d-36d9-465d-a8c5-83a3c9390458
          createdAt: 2
          enabled: false
          gatewayPluginAiPromptCompressorId: '...my_id...'
          instanceName: '...my_instance_name...'
          ordering:
            after:
              access:
                - '...'
            before:
              access:
                - '...'
          partials:
            - id: '...my_id...'
              name: '...my_name...'
              path: '...my_path...'
          protocols:
            - grpc
          route:
            id: '...my_id...'
          service:
            id: '...my_id...'
          tags:
            - '...'
          updatedAt: 7
    

    Create GatewayPluginAiPromptCompressor Resource

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

    Constructor syntax

    new GatewayPluginAiPromptCompressor(name: string, args: GatewayPluginAiPromptCompressorArgs, opts?: CustomResourceOptions);
    @overload
    def GatewayPluginAiPromptCompressor(resource_name: str,
                                        args: GatewayPluginAiPromptCompressorArgs,
                                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def GatewayPluginAiPromptCompressor(resource_name: str,
                                        opts: Optional[ResourceOptions] = None,
                                        control_plane_id: Optional[str] = None,
                                        config: Optional[GatewayPluginAiPromptCompressorConfigArgs] = None,
                                        gateway_plugin_ai_prompt_compressor_id: Optional[str] = None,
                                        consumer_group: Optional[GatewayPluginAiPromptCompressorConsumerGroupArgs] = None,
                                        created_at: Optional[float] = None,
                                        enabled: Optional[bool] = None,
                                        consumer: Optional[GatewayPluginAiPromptCompressorConsumerArgs] = None,
                                        instance_name: Optional[str] = None,
                                        ordering: Optional[GatewayPluginAiPromptCompressorOrderingArgs] = None,
                                        partials: Optional[Sequence[GatewayPluginAiPromptCompressorPartialArgs]] = None,
                                        protocols: Optional[Sequence[str]] = None,
                                        route: Optional[GatewayPluginAiPromptCompressorRouteArgs] = None,
                                        service: Optional[GatewayPluginAiPromptCompressorServiceArgs] = None,
                                        tags: Optional[Sequence[str]] = None,
                                        updated_at: Optional[float] = None)
    func NewGatewayPluginAiPromptCompressor(ctx *Context, name string, args GatewayPluginAiPromptCompressorArgs, opts ...ResourceOption) (*GatewayPluginAiPromptCompressor, error)
    public GatewayPluginAiPromptCompressor(string name, GatewayPluginAiPromptCompressorArgs args, CustomResourceOptions? opts = null)
    public GatewayPluginAiPromptCompressor(String name, GatewayPluginAiPromptCompressorArgs args)
    public GatewayPluginAiPromptCompressor(String name, GatewayPluginAiPromptCompressorArgs args, CustomResourceOptions options)
    
    type: konnect:GatewayPluginAiPromptCompressor
    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 GatewayPluginAiPromptCompressorArgs
    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 GatewayPluginAiPromptCompressorArgs
    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 GatewayPluginAiPromptCompressorArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args GatewayPluginAiPromptCompressorArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args GatewayPluginAiPromptCompressorArgs
    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 gatewayPluginAiPromptCompressorResource = new Konnect.GatewayPluginAiPromptCompressor("gatewayPluginAiPromptCompressorResource", new()
    {
        ControlPlaneId = "string",
        Config = new Konnect.Inputs.GatewayPluginAiPromptCompressorConfigArgs
        {
            CompressionRanges = new[]
            {
                new Konnect.Inputs.GatewayPluginAiPromptCompressorConfigCompressionRangeArgs
                {
                    MaxTokens = 0,
                    MinTokens = 0,
                    Value = 0,
                },
            },
            CompressorType = "string",
            CompressorUrl = "string",
            KeepaliveTimeout = 0,
            LogTextData = false,
            MessageTypes = new[]
            {
                "string",
            },
            StopOnError = false,
            Timeout = 0,
        },
        GatewayPluginAiPromptCompressorId = "string",
        ConsumerGroup = new Konnect.Inputs.GatewayPluginAiPromptCompressorConsumerGroupArgs
        {
            Id = "string",
        },
        CreatedAt = 0,
        Enabled = false,
        Consumer = new Konnect.Inputs.GatewayPluginAiPromptCompressorConsumerArgs
        {
            Id = "string",
        },
        InstanceName = "string",
        Ordering = new Konnect.Inputs.GatewayPluginAiPromptCompressorOrderingArgs
        {
            After = new Konnect.Inputs.GatewayPluginAiPromptCompressorOrderingAfterArgs
            {
                Accesses = new[]
                {
                    "string",
                },
            },
            Before = new Konnect.Inputs.GatewayPluginAiPromptCompressorOrderingBeforeArgs
            {
                Accesses = new[]
                {
                    "string",
                },
            },
        },
        Partials = new[]
        {
            new Konnect.Inputs.GatewayPluginAiPromptCompressorPartialArgs
            {
                Id = "string",
                Name = "string",
                Path = "string",
            },
        },
        Protocols = new[]
        {
            "string",
        },
        Route = new Konnect.Inputs.GatewayPluginAiPromptCompressorRouteArgs
        {
            Id = "string",
        },
        Service = new Konnect.Inputs.GatewayPluginAiPromptCompressorServiceArgs
        {
            Id = "string",
        },
        Tags = new[]
        {
            "string",
        },
        UpdatedAt = 0,
    });
    
    example, err := konnect.NewGatewayPluginAiPromptCompressor(ctx, "gatewayPluginAiPromptCompressorResource", &konnect.GatewayPluginAiPromptCompressorArgs{
    	ControlPlaneId: pulumi.String("string"),
    	Config: &konnect.GatewayPluginAiPromptCompressorConfigArgs{
    		CompressionRanges: konnect.GatewayPluginAiPromptCompressorConfigCompressionRangeArray{
    			&konnect.GatewayPluginAiPromptCompressorConfigCompressionRangeArgs{
    				MaxTokens: pulumi.Float64(0),
    				MinTokens: pulumi.Float64(0),
    				Value:     pulumi.Float64(0),
    			},
    		},
    		CompressorType:   pulumi.String("string"),
    		CompressorUrl:    pulumi.String("string"),
    		KeepaliveTimeout: pulumi.Float64(0),
    		LogTextData:      pulumi.Bool(false),
    		MessageTypes: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		StopOnError: pulumi.Bool(false),
    		Timeout:     pulumi.Float64(0),
    	},
    	GatewayPluginAiPromptCompressorId: pulumi.String("string"),
    	ConsumerGroup: &konnect.GatewayPluginAiPromptCompressorConsumerGroupArgs{
    		Id: pulumi.String("string"),
    	},
    	CreatedAt: pulumi.Float64(0),
    	Enabled:   pulumi.Bool(false),
    	Consumer: &konnect.GatewayPluginAiPromptCompressorConsumerArgs{
    		Id: pulumi.String("string"),
    	},
    	InstanceName: pulumi.String("string"),
    	Ordering: &konnect.GatewayPluginAiPromptCompressorOrderingArgs{
    		After: &konnect.GatewayPluginAiPromptCompressorOrderingAfterArgs{
    			Accesses: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    		},
    		Before: &konnect.GatewayPluginAiPromptCompressorOrderingBeforeArgs{
    			Accesses: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    		},
    	},
    	Partials: konnect.GatewayPluginAiPromptCompressorPartialArray{
    		&konnect.GatewayPluginAiPromptCompressorPartialArgs{
    			Id:   pulumi.String("string"),
    			Name: pulumi.String("string"),
    			Path: pulumi.String("string"),
    		},
    	},
    	Protocols: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Route: &konnect.GatewayPluginAiPromptCompressorRouteArgs{
    		Id: pulumi.String("string"),
    	},
    	Service: &konnect.GatewayPluginAiPromptCompressorServiceArgs{
    		Id: pulumi.String("string"),
    	},
    	Tags: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	UpdatedAt: pulumi.Float64(0),
    })
    
    var gatewayPluginAiPromptCompressorResource = new GatewayPluginAiPromptCompressor("gatewayPluginAiPromptCompressorResource", GatewayPluginAiPromptCompressorArgs.builder()
        .controlPlaneId("string")
        .config(GatewayPluginAiPromptCompressorConfigArgs.builder()
            .compressionRanges(GatewayPluginAiPromptCompressorConfigCompressionRangeArgs.builder()
                .maxTokens(0.0)
                .minTokens(0.0)
                .value(0.0)
                .build())
            .compressorType("string")
            .compressorUrl("string")
            .keepaliveTimeout(0.0)
            .logTextData(false)
            .messageTypes("string")
            .stopOnError(false)
            .timeout(0.0)
            .build())
        .gatewayPluginAiPromptCompressorId("string")
        .consumerGroup(GatewayPluginAiPromptCompressorConsumerGroupArgs.builder()
            .id("string")
            .build())
        .createdAt(0.0)
        .enabled(false)
        .consumer(GatewayPluginAiPromptCompressorConsumerArgs.builder()
            .id("string")
            .build())
        .instanceName("string")
        .ordering(GatewayPluginAiPromptCompressorOrderingArgs.builder()
            .after(GatewayPluginAiPromptCompressorOrderingAfterArgs.builder()
                .accesses("string")
                .build())
            .before(GatewayPluginAiPromptCompressorOrderingBeforeArgs.builder()
                .accesses("string")
                .build())
            .build())
        .partials(GatewayPluginAiPromptCompressorPartialArgs.builder()
            .id("string")
            .name("string")
            .path("string")
            .build())
        .protocols("string")
        .route(GatewayPluginAiPromptCompressorRouteArgs.builder()
            .id("string")
            .build())
        .service(GatewayPluginAiPromptCompressorServiceArgs.builder()
            .id("string")
            .build())
        .tags("string")
        .updatedAt(0.0)
        .build());
    
    gateway_plugin_ai_prompt_compressor_resource = konnect.GatewayPluginAiPromptCompressor("gatewayPluginAiPromptCompressorResource",
        control_plane_id="string",
        config={
            "compression_ranges": [{
                "max_tokens": 0,
                "min_tokens": 0,
                "value": 0,
            }],
            "compressor_type": "string",
            "compressor_url": "string",
            "keepalive_timeout": 0,
            "log_text_data": False,
            "message_types": ["string"],
            "stop_on_error": False,
            "timeout": 0,
        },
        gateway_plugin_ai_prompt_compressor_id="string",
        consumer_group={
            "id": "string",
        },
        created_at=0,
        enabled=False,
        consumer={
            "id": "string",
        },
        instance_name="string",
        ordering={
            "after": {
                "accesses": ["string"],
            },
            "before": {
                "accesses": ["string"],
            },
        },
        partials=[{
            "id": "string",
            "name": "string",
            "path": "string",
        }],
        protocols=["string"],
        route={
            "id": "string",
        },
        service={
            "id": "string",
        },
        tags=["string"],
        updated_at=0)
    
    const gatewayPluginAiPromptCompressorResource = new konnect.GatewayPluginAiPromptCompressor("gatewayPluginAiPromptCompressorResource", {
        controlPlaneId: "string",
        config: {
            compressionRanges: [{
                maxTokens: 0,
                minTokens: 0,
                value: 0,
            }],
            compressorType: "string",
            compressorUrl: "string",
            keepaliveTimeout: 0,
            logTextData: false,
            messageTypes: ["string"],
            stopOnError: false,
            timeout: 0,
        },
        gatewayPluginAiPromptCompressorId: "string",
        consumerGroup: {
            id: "string",
        },
        createdAt: 0,
        enabled: false,
        consumer: {
            id: "string",
        },
        instanceName: "string",
        ordering: {
            after: {
                accesses: ["string"],
            },
            before: {
                accesses: ["string"],
            },
        },
        partials: [{
            id: "string",
            name: "string",
            path: "string",
        }],
        protocols: ["string"],
        route: {
            id: "string",
        },
        service: {
            id: "string",
        },
        tags: ["string"],
        updatedAt: 0,
    });
    
    type: konnect:GatewayPluginAiPromptCompressor
    properties:
        config:
            compressionRanges:
                - maxTokens: 0
                  minTokens: 0
                  value: 0
            compressorType: string
            compressorUrl: string
            keepaliveTimeout: 0
            logTextData: false
            messageTypes:
                - string
            stopOnError: false
            timeout: 0
        consumer:
            id: string
        consumerGroup:
            id: string
        controlPlaneId: string
        createdAt: 0
        enabled: false
        gatewayPluginAiPromptCompressorId: string
        instanceName: string
        ordering:
            after:
                accesses:
                    - string
            before:
                accesses:
                    - string
        partials:
            - id: string
              name: string
              path: string
        protocols:
            - string
        route:
            id: string
        service:
            id: string
        tags:
            - string
        updatedAt: 0
    

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

    Config GatewayPluginAiPromptCompressorConfig
    ControlPlaneId string
    The UUID of your control plane. This variable is available in the Konnect manager. Requires replacement if changed.
    Consumer GatewayPluginAiPromptCompressorConsumer
    If set, the plugin will activate only for requests where the specified has been authenticated. (Note that some plugins can not be restricted to consumers this way.). Leave unset for the plugin to activate regardless of the authenticated Consumer.
    ConsumerGroup GatewayPluginAiPromptCompressorConsumerGroup
    If set, the plugin will activate only for requests where the specified consumer group has been authenticated. (Note that some plugins can not be restricted to consumers groups this way.). Leave unset for the plugin to activate regardless of the authenticated Consumer Groups
    CreatedAt double
    Unix epoch when the resource was created.
    Enabled bool
    Whether the plugin is applied.
    GatewayPluginAiPromptCompressorId string
    The ID of this resource.
    InstanceName string
    Ordering GatewayPluginAiPromptCompressorOrdering
    Partials List<GatewayPluginAiPromptCompressorPartial>
    Protocols List<string>
    A set of strings representing HTTP protocols.
    Route GatewayPluginAiPromptCompressorRoute
    If set, the plugin will only activate when receiving requests via the specified route. Leave unset for the plugin to activate regardless of the route being used.
    Service GatewayPluginAiPromptCompressorService
    If set, the plugin will only activate when receiving requests via one of the routes belonging to the specified Service. Leave unset for the plugin to activate regardless of the Service being matched.
    Tags List<string>
    An optional set of strings associated with the Plugin for grouping and filtering.
    UpdatedAt double
    Unix epoch when the resource was last updated.
    Config GatewayPluginAiPromptCompressorConfigArgs
    ControlPlaneId string
    The UUID of your control plane. This variable is available in the Konnect manager. Requires replacement if changed.
    Consumer GatewayPluginAiPromptCompressorConsumerArgs
    If set, the plugin will activate only for requests where the specified has been authenticated. (Note that some plugins can not be restricted to consumers this way.). Leave unset for the plugin to activate regardless of the authenticated Consumer.
    ConsumerGroup GatewayPluginAiPromptCompressorConsumerGroupArgs
    If set, the plugin will activate only for requests where the specified consumer group has been authenticated. (Note that some plugins can not be restricted to consumers groups this way.). Leave unset for the plugin to activate regardless of the authenticated Consumer Groups
    CreatedAt float64
    Unix epoch when the resource was created.
    Enabled bool
    Whether the plugin is applied.
    GatewayPluginAiPromptCompressorId string
    The ID of this resource.
    InstanceName string
    Ordering GatewayPluginAiPromptCompressorOrderingArgs
    Partials []GatewayPluginAiPromptCompressorPartialArgs
    Protocols []string
    A set of strings representing HTTP protocols.
    Route GatewayPluginAiPromptCompressorRouteArgs
    If set, the plugin will only activate when receiving requests via the specified route. Leave unset for the plugin to activate regardless of the route being used.
    Service GatewayPluginAiPromptCompressorServiceArgs
    If set, the plugin will only activate when receiving requests via one of the routes belonging to the specified Service. Leave unset for the plugin to activate regardless of the Service being matched.
    Tags []string
    An optional set of strings associated with the Plugin for grouping and filtering.
    UpdatedAt float64
    Unix epoch when the resource was last updated.
    config GatewayPluginAiPromptCompressorConfig
    controlPlaneId String
    The UUID of your control plane. This variable is available in the Konnect manager. Requires replacement if changed.
    consumer GatewayPluginAiPromptCompressorConsumer
    If set, the plugin will activate only for requests where the specified has been authenticated. (Note that some plugins can not be restricted to consumers this way.). Leave unset for the plugin to activate regardless of the authenticated Consumer.
    consumerGroup GatewayPluginAiPromptCompressorConsumerGroup
    If set, the plugin will activate only for requests where the specified consumer group has been authenticated. (Note that some plugins can not be restricted to consumers groups this way.). Leave unset for the plugin to activate regardless of the authenticated Consumer Groups
    createdAt Double
    Unix epoch when the resource was created.
    enabled Boolean
    Whether the plugin is applied.
    gatewayPluginAiPromptCompressorId String
    The ID of this resource.
    instanceName String
    ordering GatewayPluginAiPromptCompressorOrdering
    partials List<GatewayPluginAiPromptCompressorPartial>
    protocols List<String>
    A set of strings representing HTTP protocols.
    route GatewayPluginAiPromptCompressorRoute
    If set, the plugin will only activate when receiving requests via the specified route. Leave unset for the plugin to activate regardless of the route being used.
    service GatewayPluginAiPromptCompressorService
    If set, the plugin will only activate when receiving requests via one of the routes belonging to the specified Service. Leave unset for the plugin to activate regardless of the Service being matched.
    tags List<String>
    An optional set of strings associated with the Plugin for grouping and filtering.
    updatedAt Double
    Unix epoch when the resource was last updated.
    config GatewayPluginAiPromptCompressorConfig
    controlPlaneId string
    The UUID of your control plane. This variable is available in the Konnect manager. Requires replacement if changed.
    consumer GatewayPluginAiPromptCompressorConsumer
    If set, the plugin will activate only for requests where the specified has been authenticated. (Note that some plugins can not be restricted to consumers this way.). Leave unset for the plugin to activate regardless of the authenticated Consumer.
    consumerGroup GatewayPluginAiPromptCompressorConsumerGroup
    If set, the plugin will activate only for requests where the specified consumer group has been authenticated. (Note that some plugins can not be restricted to consumers groups this way.). Leave unset for the plugin to activate regardless of the authenticated Consumer Groups
    createdAt number
    Unix epoch when the resource was created.
    enabled boolean
    Whether the plugin is applied.
    gatewayPluginAiPromptCompressorId string
    The ID of this resource.
    instanceName string
    ordering GatewayPluginAiPromptCompressorOrdering
    partials GatewayPluginAiPromptCompressorPartial[]
    protocols string[]
    A set of strings representing HTTP protocols.
    route GatewayPluginAiPromptCompressorRoute
    If set, the plugin will only activate when receiving requests via the specified route. Leave unset for the plugin to activate regardless of the route being used.
    service GatewayPluginAiPromptCompressorService
    If set, the plugin will only activate when receiving requests via one of the routes belonging to the specified Service. Leave unset for the plugin to activate regardless of the Service being matched.
    tags string[]
    An optional set of strings associated with the Plugin for grouping and filtering.
    updatedAt number
    Unix epoch when the resource was last updated.
    config GatewayPluginAiPromptCompressorConfigArgs
    control_plane_id str
    The UUID of your control plane. This variable is available in the Konnect manager. Requires replacement if changed.
    consumer GatewayPluginAiPromptCompressorConsumerArgs
    If set, the plugin will activate only for requests where the specified has been authenticated. (Note that some plugins can not be restricted to consumers this way.). Leave unset for the plugin to activate regardless of the authenticated Consumer.
    consumer_group GatewayPluginAiPromptCompressorConsumerGroupArgs
    If set, the plugin will activate only for requests where the specified consumer group has been authenticated. (Note that some plugins can not be restricted to consumers groups this way.). Leave unset for the plugin to activate regardless of the authenticated Consumer Groups
    created_at float
    Unix epoch when the resource was created.
    enabled bool
    Whether the plugin is applied.
    gateway_plugin_ai_prompt_compressor_id str
    The ID of this resource.
    instance_name str
    ordering GatewayPluginAiPromptCompressorOrderingArgs
    partials Sequence[GatewayPluginAiPromptCompressorPartialArgs]
    protocols Sequence[str]
    A set of strings representing HTTP protocols.
    route GatewayPluginAiPromptCompressorRouteArgs
    If set, the plugin will only activate when receiving requests via the specified route. Leave unset for the plugin to activate regardless of the route being used.
    service GatewayPluginAiPromptCompressorServiceArgs
    If set, the plugin will only activate when receiving requests via one of the routes belonging to the specified Service. Leave unset for the plugin to activate regardless of the Service being matched.
    tags Sequence[str]
    An optional set of strings associated with the Plugin for grouping and filtering.
    updated_at float
    Unix epoch when the resource was last updated.
    config Property Map
    controlPlaneId String
    The UUID of your control plane. This variable is available in the Konnect manager. Requires replacement if changed.
    consumer Property Map
    If set, the plugin will activate only for requests where the specified has been authenticated. (Note that some plugins can not be restricted to consumers this way.). Leave unset for the plugin to activate regardless of the authenticated Consumer.
    consumerGroup Property Map
    If set, the plugin will activate only for requests where the specified consumer group has been authenticated. (Note that some plugins can not be restricted to consumers groups this way.). Leave unset for the plugin to activate regardless of the authenticated Consumer Groups
    createdAt Number
    Unix epoch when the resource was created.
    enabled Boolean
    Whether the plugin is applied.
    gatewayPluginAiPromptCompressorId String
    The ID of this resource.
    instanceName String
    ordering Property Map
    partials List<Property Map>
    protocols List<String>
    A set of strings representing HTTP protocols.
    route Property Map
    If set, the plugin will only activate when receiving requests via the specified route. Leave unset for the plugin to activate regardless of the route being used.
    service Property Map
    If set, the plugin will only activate when receiving requests via one of the routes belonging to the specified Service. Leave unset for the plugin to activate regardless of the Service being matched.
    tags List<String>
    An optional set of strings associated with the Plugin for grouping and filtering.
    updatedAt Number
    Unix epoch when the resource was last updated.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing GatewayPluginAiPromptCompressor Resource

    Get an existing GatewayPluginAiPromptCompressor 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?: GatewayPluginAiPromptCompressorState, opts?: CustomResourceOptions): GatewayPluginAiPromptCompressor
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            config: Optional[GatewayPluginAiPromptCompressorConfigArgs] = None,
            consumer: Optional[GatewayPluginAiPromptCompressorConsumerArgs] = None,
            consumer_group: Optional[GatewayPluginAiPromptCompressorConsumerGroupArgs] = None,
            control_plane_id: Optional[str] = None,
            created_at: Optional[float] = None,
            enabled: Optional[bool] = None,
            gateway_plugin_ai_prompt_compressor_id: Optional[str] = None,
            instance_name: Optional[str] = None,
            ordering: Optional[GatewayPluginAiPromptCompressorOrderingArgs] = None,
            partials: Optional[Sequence[GatewayPluginAiPromptCompressorPartialArgs]] = None,
            protocols: Optional[Sequence[str]] = None,
            route: Optional[GatewayPluginAiPromptCompressorRouteArgs] = None,
            service: Optional[GatewayPluginAiPromptCompressorServiceArgs] = None,
            tags: Optional[Sequence[str]] = None,
            updated_at: Optional[float] = None) -> GatewayPluginAiPromptCompressor
    func GetGatewayPluginAiPromptCompressor(ctx *Context, name string, id IDInput, state *GatewayPluginAiPromptCompressorState, opts ...ResourceOption) (*GatewayPluginAiPromptCompressor, error)
    public static GatewayPluginAiPromptCompressor Get(string name, Input<string> id, GatewayPluginAiPromptCompressorState? state, CustomResourceOptions? opts = null)
    public static GatewayPluginAiPromptCompressor get(String name, Output<String> id, GatewayPluginAiPromptCompressorState state, CustomResourceOptions options)
    resources:  _:    type: konnect:GatewayPluginAiPromptCompressor    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:
    Config GatewayPluginAiPromptCompressorConfig
    Consumer GatewayPluginAiPromptCompressorConsumer
    If set, the plugin will activate only for requests where the specified has been authenticated. (Note that some plugins can not be restricted to consumers this way.). Leave unset for the plugin to activate regardless of the authenticated Consumer.
    ConsumerGroup GatewayPluginAiPromptCompressorConsumerGroup
    If set, the plugin will activate only for requests where the specified consumer group has been authenticated. (Note that some plugins can not be restricted to consumers groups this way.). Leave unset for the plugin to activate regardless of the authenticated Consumer Groups
    ControlPlaneId string
    The UUID of your control plane. This variable is available in the Konnect manager. Requires replacement if changed.
    CreatedAt double
    Unix epoch when the resource was created.
    Enabled bool
    Whether the plugin is applied.
    GatewayPluginAiPromptCompressorId string
    The ID of this resource.
    InstanceName string
    Ordering GatewayPluginAiPromptCompressorOrdering
    Partials List<GatewayPluginAiPromptCompressorPartial>
    Protocols List<string>
    A set of strings representing HTTP protocols.
    Route GatewayPluginAiPromptCompressorRoute
    If set, the plugin will only activate when receiving requests via the specified route. Leave unset for the plugin to activate regardless of the route being used.
    Service GatewayPluginAiPromptCompressorService
    If set, the plugin will only activate when receiving requests via one of the routes belonging to the specified Service. Leave unset for the plugin to activate regardless of the Service being matched.
    Tags List<string>
    An optional set of strings associated with the Plugin for grouping and filtering.
    UpdatedAt double
    Unix epoch when the resource was last updated.
    Config GatewayPluginAiPromptCompressorConfigArgs
    Consumer GatewayPluginAiPromptCompressorConsumerArgs
    If set, the plugin will activate only for requests where the specified has been authenticated. (Note that some plugins can not be restricted to consumers this way.). Leave unset for the plugin to activate regardless of the authenticated Consumer.
    ConsumerGroup GatewayPluginAiPromptCompressorConsumerGroupArgs
    If set, the plugin will activate only for requests where the specified consumer group has been authenticated. (Note that some plugins can not be restricted to consumers groups this way.). Leave unset for the plugin to activate regardless of the authenticated Consumer Groups
    ControlPlaneId string
    The UUID of your control plane. This variable is available in the Konnect manager. Requires replacement if changed.
    CreatedAt float64
    Unix epoch when the resource was created.
    Enabled bool
    Whether the plugin is applied.
    GatewayPluginAiPromptCompressorId string
    The ID of this resource.
    InstanceName string
    Ordering GatewayPluginAiPromptCompressorOrderingArgs
    Partials []GatewayPluginAiPromptCompressorPartialArgs
    Protocols []string
    A set of strings representing HTTP protocols.
    Route GatewayPluginAiPromptCompressorRouteArgs
    If set, the plugin will only activate when receiving requests via the specified route. Leave unset for the plugin to activate regardless of the route being used.
    Service GatewayPluginAiPromptCompressorServiceArgs
    If set, the plugin will only activate when receiving requests via one of the routes belonging to the specified Service. Leave unset for the plugin to activate regardless of the Service being matched.
    Tags []string
    An optional set of strings associated with the Plugin for grouping and filtering.
    UpdatedAt float64
    Unix epoch when the resource was last updated.
    config GatewayPluginAiPromptCompressorConfig
    consumer GatewayPluginAiPromptCompressorConsumer
    If set, the plugin will activate only for requests where the specified has been authenticated. (Note that some plugins can not be restricted to consumers this way.). Leave unset for the plugin to activate regardless of the authenticated Consumer.
    consumerGroup GatewayPluginAiPromptCompressorConsumerGroup
    If set, the plugin will activate only for requests where the specified consumer group has been authenticated. (Note that some plugins can not be restricted to consumers groups this way.). Leave unset for the plugin to activate regardless of the authenticated Consumer Groups
    controlPlaneId String
    The UUID of your control plane. This variable is available in the Konnect manager. Requires replacement if changed.
    createdAt Double
    Unix epoch when the resource was created.
    enabled Boolean
    Whether the plugin is applied.
    gatewayPluginAiPromptCompressorId String
    The ID of this resource.
    instanceName String
    ordering GatewayPluginAiPromptCompressorOrdering
    partials List<GatewayPluginAiPromptCompressorPartial>
    protocols List<String>
    A set of strings representing HTTP protocols.
    route GatewayPluginAiPromptCompressorRoute
    If set, the plugin will only activate when receiving requests via the specified route. Leave unset for the plugin to activate regardless of the route being used.
    service GatewayPluginAiPromptCompressorService
    If set, the plugin will only activate when receiving requests via one of the routes belonging to the specified Service. Leave unset for the plugin to activate regardless of the Service being matched.
    tags List<String>
    An optional set of strings associated with the Plugin for grouping and filtering.
    updatedAt Double
    Unix epoch when the resource was last updated.
    config GatewayPluginAiPromptCompressorConfig
    consumer GatewayPluginAiPromptCompressorConsumer
    If set, the plugin will activate only for requests where the specified has been authenticated. (Note that some plugins can not be restricted to consumers this way.). Leave unset for the plugin to activate regardless of the authenticated Consumer.
    consumerGroup GatewayPluginAiPromptCompressorConsumerGroup
    If set, the plugin will activate only for requests where the specified consumer group has been authenticated. (Note that some plugins can not be restricted to consumers groups this way.). Leave unset for the plugin to activate regardless of the authenticated Consumer Groups
    controlPlaneId string
    The UUID of your control plane. This variable is available in the Konnect manager. Requires replacement if changed.
    createdAt number
    Unix epoch when the resource was created.
    enabled boolean
    Whether the plugin is applied.
    gatewayPluginAiPromptCompressorId string
    The ID of this resource.
    instanceName string
    ordering GatewayPluginAiPromptCompressorOrdering
    partials GatewayPluginAiPromptCompressorPartial[]
    protocols string[]
    A set of strings representing HTTP protocols.
    route GatewayPluginAiPromptCompressorRoute
    If set, the plugin will only activate when receiving requests via the specified route. Leave unset for the plugin to activate regardless of the route being used.
    service GatewayPluginAiPromptCompressorService
    If set, the plugin will only activate when receiving requests via one of the routes belonging to the specified Service. Leave unset for the plugin to activate regardless of the Service being matched.
    tags string[]
    An optional set of strings associated with the Plugin for grouping and filtering.
    updatedAt number
    Unix epoch when the resource was last updated.
    config GatewayPluginAiPromptCompressorConfigArgs
    consumer GatewayPluginAiPromptCompressorConsumerArgs
    If set, the plugin will activate only for requests where the specified has been authenticated. (Note that some plugins can not be restricted to consumers this way.). Leave unset for the plugin to activate regardless of the authenticated Consumer.
    consumer_group GatewayPluginAiPromptCompressorConsumerGroupArgs
    If set, the plugin will activate only for requests where the specified consumer group has been authenticated. (Note that some plugins can not be restricted to consumers groups this way.). Leave unset for the plugin to activate regardless of the authenticated Consumer Groups
    control_plane_id str
    The UUID of your control plane. This variable is available in the Konnect manager. Requires replacement if changed.
    created_at float
    Unix epoch when the resource was created.
    enabled bool
    Whether the plugin is applied.
    gateway_plugin_ai_prompt_compressor_id str
    The ID of this resource.
    instance_name str
    ordering GatewayPluginAiPromptCompressorOrderingArgs
    partials Sequence[GatewayPluginAiPromptCompressorPartialArgs]
    protocols Sequence[str]
    A set of strings representing HTTP protocols.
    route GatewayPluginAiPromptCompressorRouteArgs
    If set, the plugin will only activate when receiving requests via the specified route. Leave unset for the plugin to activate regardless of the route being used.
    service GatewayPluginAiPromptCompressorServiceArgs
    If set, the plugin will only activate when receiving requests via one of the routes belonging to the specified Service. Leave unset for the plugin to activate regardless of the Service being matched.
    tags Sequence[str]
    An optional set of strings associated with the Plugin for grouping and filtering.
    updated_at float
    Unix epoch when the resource was last updated.
    config Property Map
    consumer Property Map
    If set, the plugin will activate only for requests where the specified has been authenticated. (Note that some plugins can not be restricted to consumers this way.). Leave unset for the plugin to activate regardless of the authenticated Consumer.
    consumerGroup Property Map
    If set, the plugin will activate only for requests where the specified consumer group has been authenticated. (Note that some plugins can not be restricted to consumers groups this way.). Leave unset for the plugin to activate regardless of the authenticated Consumer Groups
    controlPlaneId String
    The UUID of your control plane. This variable is available in the Konnect manager. Requires replacement if changed.
    createdAt Number
    Unix epoch when the resource was created.
    enabled Boolean
    Whether the plugin is applied.
    gatewayPluginAiPromptCompressorId String
    The ID of this resource.
    instanceName String
    ordering Property Map
    partials List<Property Map>
    protocols List<String>
    A set of strings representing HTTP protocols.
    route Property Map
    If set, the plugin will only activate when receiving requests via the specified route. Leave unset for the plugin to activate regardless of the route being used.
    service Property Map
    If set, the plugin will only activate when receiving requests via one of the routes belonging to the specified Service. Leave unset for the plugin to activate regardless of the Service being matched.
    tags List<String>
    An optional set of strings associated with the Plugin for grouping and filtering.
    updatedAt Number
    Unix epoch when the resource was last updated.

    Supporting Types

    GatewayPluginAiPromptCompressorConfig, GatewayPluginAiPromptCompressorConfigArgs

    CompressionRanges List<GatewayPluginAiPromptCompressorConfigCompressionRange>
    What value to be used to compress with. The 'value' is interpreted as rate or targettoken depending on compressortype.
    CompressorType string
    What compression type to use to compress with. must be one of ["rate", "target_token"]
    CompressorUrl string
    The url of the compressor
    KeepaliveTimeout double
    The keepalive timeout for the established http connnection
    LogTextData bool
    Log the text data
    MessageTypes List<string>
    StopOnError bool
    Stop processing if an error occurs
    Timeout double
    Connection timeout with the compressor
    CompressionRanges []GatewayPluginAiPromptCompressorConfigCompressionRange
    What value to be used to compress with. The 'value' is interpreted as rate or targettoken depending on compressortype.
    CompressorType string
    What compression type to use to compress with. must be one of ["rate", "target_token"]
    CompressorUrl string
    The url of the compressor
    KeepaliveTimeout float64
    The keepalive timeout for the established http connnection
    LogTextData bool
    Log the text data
    MessageTypes []string
    StopOnError bool
    Stop processing if an error occurs
    Timeout float64
    Connection timeout with the compressor
    compressionRanges List<GatewayPluginAiPromptCompressorConfigCompressionRange>
    What value to be used to compress with. The 'value' is interpreted as rate or targettoken depending on compressortype.
    compressorType String
    What compression type to use to compress with. must be one of ["rate", "target_token"]
    compressorUrl String
    The url of the compressor
    keepaliveTimeout Double
    The keepalive timeout for the established http connnection
    logTextData Boolean
    Log the text data
    messageTypes List<String>
    stopOnError Boolean
    Stop processing if an error occurs
    timeout Double
    Connection timeout with the compressor
    compressionRanges GatewayPluginAiPromptCompressorConfigCompressionRange[]
    What value to be used to compress with. The 'value' is interpreted as rate or targettoken depending on compressortype.
    compressorType string
    What compression type to use to compress with. must be one of ["rate", "target_token"]
    compressorUrl string
    The url of the compressor
    keepaliveTimeout number
    The keepalive timeout for the established http connnection
    logTextData boolean
    Log the text data
    messageTypes string[]
    stopOnError boolean
    Stop processing if an error occurs
    timeout number
    Connection timeout with the compressor
    compression_ranges Sequence[GatewayPluginAiPromptCompressorConfigCompressionRange]
    What value to be used to compress with. The 'value' is interpreted as rate or targettoken depending on compressortype.
    compressor_type str
    What compression type to use to compress with. must be one of ["rate", "target_token"]
    compressor_url str
    The url of the compressor
    keepalive_timeout float
    The keepalive timeout for the established http connnection
    log_text_data bool
    Log the text data
    message_types Sequence[str]
    stop_on_error bool
    Stop processing if an error occurs
    timeout float
    Connection timeout with the compressor
    compressionRanges List<Property Map>
    What value to be used to compress with. The 'value' is interpreted as rate or targettoken depending on compressortype.
    compressorType String
    What compression type to use to compress with. must be one of ["rate", "target_token"]
    compressorUrl String
    The url of the compressor
    keepaliveTimeout Number
    The keepalive timeout for the established http connnection
    logTextData Boolean
    Log the text data
    messageTypes List<String>
    stopOnError Boolean
    Stop processing if an error occurs
    timeout Number
    Connection timeout with the compressor

    GatewayPluginAiPromptCompressorConfigCompressionRange, GatewayPluginAiPromptCompressorConfigCompressionRangeArgs

    MaxTokens double
    Not Null
    MinTokens double
    Not Null
    Value double
    Not Null
    MaxTokens float64
    Not Null
    MinTokens float64
    Not Null
    Value float64
    Not Null
    maxTokens Double
    Not Null
    minTokens Double
    Not Null
    value Double
    Not Null
    maxTokens number
    Not Null
    minTokens number
    Not Null
    value number
    Not Null
    max_tokens float
    Not Null
    min_tokens float
    Not Null
    value float
    Not Null
    maxTokens Number
    Not Null
    minTokens Number
    Not Null
    value Number
    Not Null

    GatewayPluginAiPromptCompressorConsumer, GatewayPluginAiPromptCompressorConsumerArgs

    Id string
    Id string
    id String
    id string
    id str
    id String

    GatewayPluginAiPromptCompressorConsumerGroup, GatewayPluginAiPromptCompressorConsumerGroupArgs

    Id string
    Id string
    id String
    id string
    id str
    id String

    GatewayPluginAiPromptCompressorOrdering, GatewayPluginAiPromptCompressorOrderingArgs

    GatewayPluginAiPromptCompressorOrderingAfter, GatewayPluginAiPromptCompressorOrderingAfterArgs

    Accesses List<string>
    Accesses []string
    accesses List<String>
    accesses string[]
    accesses Sequence[str]
    accesses List<String>

    GatewayPluginAiPromptCompressorOrderingBefore, GatewayPluginAiPromptCompressorOrderingBeforeArgs

    Accesses List<string>
    Accesses []string
    accesses List<String>
    accesses string[]
    accesses Sequence[str]
    accesses List<String>

    GatewayPluginAiPromptCompressorPartial, GatewayPluginAiPromptCompressorPartialArgs

    Id string
    Name string
    Path string
    Id string
    Name string
    Path string
    id String
    name String
    path String
    id string
    name string
    path string
    id str
    name str
    path str
    id String
    name String
    path String

    GatewayPluginAiPromptCompressorRoute, GatewayPluginAiPromptCompressorRouteArgs

    Id string
    Id string
    id String
    id string
    id str
    id String

    GatewayPluginAiPromptCompressorService, GatewayPluginAiPromptCompressorServiceArgs

    Id string
    Id string
    id String
    id string
    id str
    id String

    Import

    $ pulumi import konnect:index/gatewayPluginAiPromptCompressor:GatewayPluginAiPromptCompressor my_konnect_gateway_plugin_ai_prompt_compressor '{"control_plane_id": "9524ec7d-36d9-465d-a8c5-83a3c9390458", "id": "3473c251-5b6c-4f45-b1ff-7ede735a366d"}'
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    konnect kong/terraform-provider-konnect
    License
    Notes
    This Pulumi package is based on the konnect Terraform Provider.
    konnect logo
    konnect 2.12.0 published on Tuesday, Jul 22, 2025 by kong