konnect.GatewayPluginAiPromptCompressor
Explore with Pulumi AI
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
Gateway
Plugin Ai Prompt Compressor Config - Control
Plane stringId - The UUID of your control plane. This variable is available in the Konnect manager. Requires replacement if changed.
- Consumer
Gateway
Plugin Ai Prompt Compressor Consumer - 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 GatewayPlugin Ai Prompt Compressor Consumer Group - 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 double - Unix epoch when the resource was created.
- Enabled bool
- Whether the plugin is applied.
- Gateway
Plugin stringAi Prompt Compressor Id - The ID of this resource.
- Instance
Name string - Ordering
Gateway
Plugin Ai Prompt Compressor Ordering - Partials
List<Gateway
Plugin Ai Prompt Compressor Partial> - Protocols List<string>
- A set of strings representing HTTP protocols.
- Route
Gateway
Plugin Ai Prompt Compressor Route - 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
Gateway
Plugin Ai Prompt Compressor Service - 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.
- List<string>
- An optional set of strings associated with the Plugin for grouping and filtering.
- Updated
At double - Unix epoch when the resource was last updated.
- Config
Gateway
Plugin Ai Prompt Compressor Config Args - Control
Plane stringId - The UUID of your control plane. This variable is available in the Konnect manager. Requires replacement if changed.
- Consumer
Gateway
Plugin Ai Prompt Compressor Consumer Args - 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 GatewayPlugin Ai Prompt Compressor Consumer Group Args - 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 float64 - Unix epoch when the resource was created.
- Enabled bool
- Whether the plugin is applied.
- Gateway
Plugin stringAi Prompt Compressor Id - The ID of this resource.
- Instance
Name string - Ordering
Gateway
Plugin Ai Prompt Compressor Ordering Args - Partials
[]Gateway
Plugin Ai Prompt Compressor Partial Args - Protocols []string
- A set of strings representing HTTP protocols.
- Route
Gateway
Plugin Ai Prompt Compressor Route Args - 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
Gateway
Plugin Ai Prompt Compressor Service Args - 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.
- []string
- An optional set of strings associated with the Plugin for grouping and filtering.
- Updated
At float64 - Unix epoch when the resource was last updated.
- config
Gateway
Plugin Ai Prompt Compressor Config - control
Plane StringId - The UUID of your control plane. This variable is available in the Konnect manager. Requires replacement if changed.
- consumer
Gateway
Plugin Ai Prompt Compressor Consumer - 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 GatewayPlugin Ai Prompt Compressor Consumer Group - 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 Double - Unix epoch when the resource was created.
- enabled Boolean
- Whether the plugin is applied.
- gateway
Plugin StringAi Prompt Compressor Id - The ID of this resource.
- instance
Name String - ordering
Gateway
Plugin Ai Prompt Compressor Ordering - partials
List<Gateway
Plugin Ai Prompt Compressor Partial> - protocols List<String>
- A set of strings representing HTTP protocols.
- route
Gateway
Plugin Ai Prompt Compressor Route - 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
Gateway
Plugin Ai Prompt Compressor Service - 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.
- List<String>
- An optional set of strings associated with the Plugin for grouping and filtering.
- updated
At Double - Unix epoch when the resource was last updated.
- config
Gateway
Plugin Ai Prompt Compressor Config - control
Plane stringId - The UUID of your control plane. This variable is available in the Konnect manager. Requires replacement if changed.
- consumer
Gateway
Plugin Ai Prompt Compressor Consumer - 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 GatewayPlugin Ai Prompt Compressor Consumer Group - 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 number - Unix epoch when the resource was created.
- enabled boolean
- Whether the plugin is applied.
- gateway
Plugin stringAi Prompt Compressor Id - The ID of this resource.
- instance
Name string - ordering
Gateway
Plugin Ai Prompt Compressor Ordering - partials
Gateway
Plugin Ai Prompt Compressor Partial[] - protocols string[]
- A set of strings representing HTTP protocols.
- route
Gateway
Plugin Ai Prompt Compressor Route - 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
Gateway
Plugin Ai Prompt Compressor Service - 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.
- string[]
- An optional set of strings associated with the Plugin for grouping and filtering.
- updated
At number - Unix epoch when the resource was last updated.
- config
Gateway
Plugin Ai Prompt Compressor Config Args - control_
plane_ strid - The UUID of your control plane. This variable is available in the Konnect manager. Requires replacement if changed.
- consumer
Gateway
Plugin Ai Prompt Compressor Consumer Args - 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 GatewayPlugin Ai Prompt Compressor Consumer Group Args - 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_ strai_ prompt_ compressor_ id - The ID of this resource.
- instance_
name str - ordering
Gateway
Plugin Ai Prompt Compressor Ordering Args - partials
Sequence[Gateway
Plugin Ai Prompt Compressor Partial Args] - protocols Sequence[str]
- A set of strings representing HTTP protocols.
- route
Gateway
Plugin Ai Prompt Compressor Route Args - 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
Gateway
Plugin Ai Prompt Compressor Service Args - 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.
- 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
- control
Plane StringId - 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.
- consumer
Group 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
- created
At Number - Unix epoch when the resource was created.
- enabled Boolean
- Whether the plugin is applied.
- gateway
Plugin StringAi Prompt Compressor Id - The ID of this resource.
- instance
Name 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.
- List<String>
- An optional set of strings associated with the Plugin for grouping and filtering.
- updated
At 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.
- Config
Gateway
Plugin Ai Prompt Compressor Config - Consumer
Gateway
Plugin Ai Prompt Compressor Consumer - 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 GatewayPlugin Ai Prompt Compressor Consumer Group - 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 stringId - The UUID of your control plane. This variable is available in the Konnect manager. Requires replacement if changed.
- Created
At double - Unix epoch when the resource was created.
- Enabled bool
- Whether the plugin is applied.
- Gateway
Plugin stringAi Prompt Compressor Id - The ID of this resource.
- Instance
Name string - Ordering
Gateway
Plugin Ai Prompt Compressor Ordering - Partials
List<Gateway
Plugin Ai Prompt Compressor Partial> - Protocols List<string>
- A set of strings representing HTTP protocols.
- Route
Gateway
Plugin Ai Prompt Compressor Route - 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
Gateway
Plugin Ai Prompt Compressor Service - 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.
- List<string>
- An optional set of strings associated with the Plugin for grouping and filtering.
- Updated
At double - Unix epoch when the resource was last updated.
- Config
Gateway
Plugin Ai Prompt Compressor Config Args - Consumer
Gateway
Plugin Ai Prompt Compressor Consumer Args - 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 GatewayPlugin Ai Prompt Compressor Consumer Group Args - 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 stringId - The UUID of your control plane. This variable is available in the Konnect manager. Requires replacement if changed.
- Created
At float64 - Unix epoch when the resource was created.
- Enabled bool
- Whether the plugin is applied.
- Gateway
Plugin stringAi Prompt Compressor Id - The ID of this resource.
- Instance
Name string - Ordering
Gateway
Plugin Ai Prompt Compressor Ordering Args - Partials
[]Gateway
Plugin Ai Prompt Compressor Partial Args - Protocols []string
- A set of strings representing HTTP protocols.
- Route
Gateway
Plugin Ai Prompt Compressor Route Args - 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
Gateway
Plugin Ai Prompt Compressor Service Args - 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.
- []string
- An optional set of strings associated with the Plugin for grouping and filtering.
- Updated
At float64 - Unix epoch when the resource was last updated.
- config
Gateway
Plugin Ai Prompt Compressor Config - consumer
Gateway
Plugin Ai Prompt Compressor Consumer - 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 GatewayPlugin Ai Prompt Compressor Consumer Group - 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 StringId - The UUID of your control plane. This variable is available in the Konnect manager. Requires replacement if changed.
- created
At Double - Unix epoch when the resource was created.
- enabled Boolean
- Whether the plugin is applied.
- gateway
Plugin StringAi Prompt Compressor Id - The ID of this resource.
- instance
Name String - ordering
Gateway
Plugin Ai Prompt Compressor Ordering - partials
List<Gateway
Plugin Ai Prompt Compressor Partial> - protocols List<String>
- A set of strings representing HTTP protocols.
- route
Gateway
Plugin Ai Prompt Compressor Route - 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
Gateway
Plugin Ai Prompt Compressor Service - 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.
- List<String>
- An optional set of strings associated with the Plugin for grouping and filtering.
- updated
At Double - Unix epoch when the resource was last updated.
- config
Gateway
Plugin Ai Prompt Compressor Config - consumer
Gateway
Plugin Ai Prompt Compressor Consumer - 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 GatewayPlugin Ai Prompt Compressor Consumer Group - 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 stringId - The UUID of your control plane. This variable is available in the Konnect manager. Requires replacement if changed.
- created
At number - Unix epoch when the resource was created.
- enabled boolean
- Whether the plugin is applied.
- gateway
Plugin stringAi Prompt Compressor Id - The ID of this resource.
- instance
Name string - ordering
Gateway
Plugin Ai Prompt Compressor Ordering - partials
Gateway
Plugin Ai Prompt Compressor Partial[] - protocols string[]
- A set of strings representing HTTP protocols.
- route
Gateway
Plugin Ai Prompt Compressor Route - 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
Gateway
Plugin Ai Prompt Compressor Service - 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.
- string[]
- An optional set of strings associated with the Plugin for grouping and filtering.
- updated
At number - Unix epoch when the resource was last updated.
- config
Gateway
Plugin Ai Prompt Compressor Config Args - consumer
Gateway
Plugin Ai Prompt Compressor Consumer Args - 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 GatewayPlugin Ai Prompt Compressor Consumer Group Args - 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_ strid - 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_ strai_ prompt_ compressor_ id - The ID of this resource.
- instance_
name str - ordering
Gateway
Plugin Ai Prompt Compressor Ordering Args - partials
Sequence[Gateway
Plugin Ai Prompt Compressor Partial Args] - protocols Sequence[str]
- A set of strings representing HTTP protocols.
- route
Gateway
Plugin Ai Prompt Compressor Route Args - 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
Gateway
Plugin Ai Prompt Compressor Service Args - 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.
- 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.
- consumer
Group 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
- control
Plane StringId - The UUID of your control plane. This variable is available in the Konnect manager. Requires replacement if changed.
- created
At Number - Unix epoch when the resource was created.
- enabled Boolean
- Whether the plugin is applied.
- gateway
Plugin StringAi Prompt Compressor Id - The ID of this resource.
- instance
Name 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.
- List<String>
- An optional set of strings associated with the Plugin for grouping and filtering.
- updated
At Number - Unix epoch when the resource was last updated.
Supporting Types
GatewayPluginAiPromptCompressorConfig, GatewayPluginAiPromptCompressorConfigArgs
- Compression
Ranges List<GatewayPlugin Ai Prompt Compressor Config Compression Range> - What value to be used to compress with. The 'value' is interpreted as rate or targettoken depending on compressortype.
- Compressor
Type string - What compression type to use to compress with. must be one of ["rate", "target_token"]
- Compressor
Url string - The url of the compressor
- Keepalive
Timeout double - The keepalive timeout for the established http connnection
- Log
Text boolData - Log the text data
- Message
Types List<string> - Stop
On boolError - Stop processing if an error occurs
- Timeout double
- Connection timeout with the compressor
- Compression
Ranges []GatewayPlugin Ai Prompt Compressor Config Compression Range - What value to be used to compress with. The 'value' is interpreted as rate or targettoken depending on compressortype.
- Compressor
Type string - What compression type to use to compress with. must be one of ["rate", "target_token"]
- Compressor
Url string - The url of the compressor
- Keepalive
Timeout float64 - The keepalive timeout for the established http connnection
- Log
Text boolData - Log the text data
- Message
Types []string - Stop
On boolError - Stop processing if an error occurs
- Timeout float64
- Connection timeout with the compressor
- compression
Ranges List<GatewayPlugin Ai Prompt Compressor Config Compression Range> - What value to be used to compress with. The 'value' is interpreted as rate or targettoken depending on compressortype.
- compressor
Type String - What compression type to use to compress with. must be one of ["rate", "target_token"]
- compressor
Url String - The url of the compressor
- keepalive
Timeout Double - The keepalive timeout for the established http connnection
- log
Text BooleanData - Log the text data
- message
Types List<String> - stop
On BooleanError - Stop processing if an error occurs
- timeout Double
- Connection timeout with the compressor
- compression
Ranges GatewayPlugin Ai Prompt Compressor Config Compression Range[] - What value to be used to compress with. The 'value' is interpreted as rate or targettoken depending on compressortype.
- compressor
Type string - What compression type to use to compress with. must be one of ["rate", "target_token"]
- compressor
Url string - The url of the compressor
- keepalive
Timeout number - The keepalive timeout for the established http connnection
- log
Text booleanData - Log the text data
- message
Types string[] - stop
On booleanError - Stop processing if an error occurs
- timeout number
- Connection timeout with the compressor
- compression_
ranges Sequence[GatewayPlugin Ai Prompt Compressor Config Compression Range] - 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_ booldata - Log the text data
- message_
types Sequence[str] - stop_
on_ boolerror - Stop processing if an error occurs
- timeout float
- Connection timeout with the compressor
- compression
Ranges List<Property Map> - What value to be used to compress with. The 'value' is interpreted as rate or targettoken depending on compressortype.
- compressor
Type String - What compression type to use to compress with. must be one of ["rate", "target_token"]
- compressor
Url String - The url of the compressor
- keepalive
Timeout Number - The keepalive timeout for the established http connnection
- log
Text BooleanData - Log the text data
- message
Types List<String> - stop
On BooleanError - Stop processing if an error occurs
- timeout Number
- Connection timeout with the compressor
GatewayPluginAiPromptCompressorConfigCompressionRange, GatewayPluginAiPromptCompressorConfigCompressionRangeArgs
- max_
tokens float - Not Null
- min_
tokens float - Not Null
- value float
- 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
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.