konnect.GatewayPluginAiGcpModelArmor
GatewayPluginAiGcpModelArmor 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.GatewayPluginAiGcpModelArmor;
import com.pulumi.konnect.GatewayPluginAiGcpModelArmorArgs;
import com.pulumi.konnect.inputs.GatewayPluginAiGcpModelArmorConfigArgs;
import com.pulumi.konnect.inputs.GatewayPluginAiGcpModelArmorConsumerArgs;
import com.pulumi.konnect.inputs.GatewayPluginAiGcpModelArmorConsumerGroupArgs;
import com.pulumi.konnect.inputs.GatewayPluginAiGcpModelArmorOrderingArgs;
import com.pulumi.konnect.inputs.GatewayPluginAiGcpModelArmorOrderingAfterArgs;
import com.pulumi.konnect.inputs.GatewayPluginAiGcpModelArmorOrderingBeforeArgs;
import com.pulumi.konnect.inputs.GatewayPluginAiGcpModelArmorPartialArgs;
import com.pulumi.konnect.inputs.GatewayPluginAiGcpModelArmorRouteArgs;
import com.pulumi.konnect.inputs.GatewayPluginAiGcpModelArmorServiceArgs;
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 myGatewaypluginaigcpmodelarmor = new GatewayPluginAiGcpModelArmor("myGatewaypluginaigcpmodelarmor", GatewayPluginAiGcpModelArmorArgs.builder()
.config(GatewayPluginAiGcpModelArmorConfigArgs.builder()
.enable_multi_language_detection(true)
.gcp_service_account_json("...my_gcp_service_account_json...")
.gcp_use_service_account(true)
.guarding_mode("INPUT")
.location_id("...my_location_id...")
.project_id("...my_project_id...")
.request_failure_message("...my_request_failure_message...")
.response_buffer_size(8.82)
.response_failure_message("...my_response_failure_message...")
.reveal_failure_categories(false)
.source_language("...my_source_language...")
.stop_on_error(false)
.template_id("...my_template_id...")
.text_source("concatenate_all_content")
.timeout(7.5)
.build())
.consumer(GatewayPluginAiGcpModelArmorConsumerArgs.builder()
.id("...my_id...")
.build())
.consumerGroup(GatewayPluginAiGcpModelArmorConsumerGroupArgs.builder()
.id("...my_id...")
.build())
.controlPlaneId("9524ec7d-36d9-465d-a8c5-83a3c9390458")
.createdAt(3)
.enabled(false)
.gatewayPluginAiGcpModelArmorId("...my_id...")
.instanceName("...my_instance_name...")
.ordering(GatewayPluginAiGcpModelArmorOrderingArgs.builder()
.after(GatewayPluginAiGcpModelArmorOrderingAfterArgs.builder()
.access("...")
.build())
.before(GatewayPluginAiGcpModelArmorOrderingBeforeArgs.builder()
.access("...")
.build())
.build())
.partials(GatewayPluginAiGcpModelArmorPartialArgs.builder()
.id("...my_id...")
.name("...my_name...")
.path("...my_path...")
.build())
.protocols("grpcs")
.route(GatewayPluginAiGcpModelArmorRouteArgs.builder()
.id("...my_id...")
.build())
.service(GatewayPluginAiGcpModelArmorServiceArgs.builder()
.id("...my_id...")
.build())
.tags("...")
.updatedAt(4)
.build());
}
}
resources:
myGatewaypluginaigcpmodelarmor:
type: konnect:GatewayPluginAiGcpModelArmor
properties:
config:
enable_multi_language_detection: true
gcp_service_account_json: '...my_gcp_service_account_json...'
gcp_use_service_account: true
guarding_mode: INPUT
location_id: '...my_location_id...'
project_id: '...my_project_id...'
request_failure_message: '...my_request_failure_message...'
response_buffer_size: 8.82
response_failure_message: '...my_response_failure_message...'
reveal_failure_categories: false
source_language: '...my_source_language...'
stop_on_error: false
template_id: '...my_template_id...'
text_source: concatenate_all_content
timeout: 7.5
consumer:
id: '...my_id...'
consumerGroup:
id: '...my_id...'
controlPlaneId: 9524ec7d-36d9-465d-a8c5-83a3c9390458
createdAt: 3
enabled: false
gatewayPluginAiGcpModelArmorId: '...my_id...'
instanceName: '...my_instance_name...'
ordering:
after:
access:
- '...'
before:
access:
- '...'
partials:
- id: '...my_id...'
name: '...my_name...'
path: '...my_path...'
protocols:
- grpcs
route:
id: '...my_id...'
service:
id: '...my_id...'
tags:
- '...'
updatedAt: 4
Create GatewayPluginAiGcpModelArmor Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new GatewayPluginAiGcpModelArmor(name: string, args: GatewayPluginAiGcpModelArmorArgs, opts?: CustomResourceOptions);@overload
def GatewayPluginAiGcpModelArmor(resource_name: str,
args: GatewayPluginAiGcpModelArmorArgs,
opts: Optional[ResourceOptions] = None)
@overload
def GatewayPluginAiGcpModelArmor(resource_name: str,
opts: Optional[ResourceOptions] = None,
control_plane_id: Optional[str] = None,
config: Optional[GatewayPluginAiGcpModelArmorConfigArgs] = None,
gateway_plugin_ai_gcp_model_armor_id: Optional[str] = None,
consumer_group: Optional[GatewayPluginAiGcpModelArmorConsumerGroupArgs] = None,
created_at: Optional[float] = None,
enabled: Optional[bool] = None,
consumer: Optional[GatewayPluginAiGcpModelArmorConsumerArgs] = None,
instance_name: Optional[str] = None,
ordering: Optional[GatewayPluginAiGcpModelArmorOrderingArgs] = None,
partials: Optional[Sequence[GatewayPluginAiGcpModelArmorPartialArgs]] = None,
protocols: Optional[Sequence[str]] = None,
route: Optional[GatewayPluginAiGcpModelArmorRouteArgs] = None,
service: Optional[GatewayPluginAiGcpModelArmorServiceArgs] = None,
tags: Optional[Sequence[str]] = None,
updated_at: Optional[float] = None)func NewGatewayPluginAiGcpModelArmor(ctx *Context, name string, args GatewayPluginAiGcpModelArmorArgs, opts ...ResourceOption) (*GatewayPluginAiGcpModelArmor, error)public GatewayPluginAiGcpModelArmor(string name, GatewayPluginAiGcpModelArmorArgs args, CustomResourceOptions? opts = null)
public GatewayPluginAiGcpModelArmor(String name, GatewayPluginAiGcpModelArmorArgs args)
public GatewayPluginAiGcpModelArmor(String name, GatewayPluginAiGcpModelArmorArgs args, CustomResourceOptions options)
type: konnect:GatewayPluginAiGcpModelArmor
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 GatewayPluginAiGcpModelArmorArgs
- 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 GatewayPluginAiGcpModelArmorArgs
- 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 GatewayPluginAiGcpModelArmorArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args GatewayPluginAiGcpModelArmorArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args GatewayPluginAiGcpModelArmorArgs
- 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 gatewayPluginAiGcpModelArmorResource = new Konnect.GatewayPluginAiGcpModelArmor("gatewayPluginAiGcpModelArmorResource", new()
{
ControlPlaneId = "string",
Config = new Konnect.Inputs.GatewayPluginAiGcpModelArmorConfigArgs
{
LocationId = "string",
TemplateId = "string",
ProjectId = "string",
RequestFailureMessage = "string",
GuardingMode = "string",
GcpUseServiceAccount = false,
EnableMultiLanguageDetection = false,
ResponseBufferSize = 0,
ResponseFailureMessage = "string",
RevealFailureCategories = false,
SourceLanguage = "string",
StopOnError = false,
GcpServiceAccountJson = "string",
TextSource = "string",
Timeout = 0,
},
GatewayPluginAiGcpModelArmorId = "string",
ConsumerGroup = new Konnect.Inputs.GatewayPluginAiGcpModelArmorConsumerGroupArgs
{
Id = "string",
},
CreatedAt = 0,
Enabled = false,
Consumer = new Konnect.Inputs.GatewayPluginAiGcpModelArmorConsumerArgs
{
Id = "string",
},
InstanceName = "string",
Ordering = new Konnect.Inputs.GatewayPluginAiGcpModelArmorOrderingArgs
{
After = new Konnect.Inputs.GatewayPluginAiGcpModelArmorOrderingAfterArgs
{
Accesses = new[]
{
"string",
},
},
Before = new Konnect.Inputs.GatewayPluginAiGcpModelArmorOrderingBeforeArgs
{
Accesses = new[]
{
"string",
},
},
},
Partials = new[]
{
new Konnect.Inputs.GatewayPluginAiGcpModelArmorPartialArgs
{
Id = "string",
Name = "string",
Path = "string",
},
},
Protocols = new[]
{
"string",
},
Route = new Konnect.Inputs.GatewayPluginAiGcpModelArmorRouteArgs
{
Id = "string",
},
Service = new Konnect.Inputs.GatewayPluginAiGcpModelArmorServiceArgs
{
Id = "string",
},
Tags = new[]
{
"string",
},
UpdatedAt = 0,
});
example, err := konnect.NewGatewayPluginAiGcpModelArmor(ctx, "gatewayPluginAiGcpModelArmorResource", &konnect.GatewayPluginAiGcpModelArmorArgs{
ControlPlaneId: pulumi.String("string"),
Config: &konnect.GatewayPluginAiGcpModelArmorConfigArgs{
LocationId: pulumi.String("string"),
TemplateId: pulumi.String("string"),
ProjectId: pulumi.String("string"),
RequestFailureMessage: pulumi.String("string"),
GuardingMode: pulumi.String("string"),
GcpUseServiceAccount: pulumi.Bool(false),
EnableMultiLanguageDetection: pulumi.Bool(false),
ResponseBufferSize: pulumi.Float64(0),
ResponseFailureMessage: pulumi.String("string"),
RevealFailureCategories: pulumi.Bool(false),
SourceLanguage: pulumi.String("string"),
StopOnError: pulumi.Bool(false),
GcpServiceAccountJson: pulumi.String("string"),
TextSource: pulumi.String("string"),
Timeout: pulumi.Float64(0),
},
GatewayPluginAiGcpModelArmorId: pulumi.String("string"),
ConsumerGroup: &konnect.GatewayPluginAiGcpModelArmorConsumerGroupArgs{
Id: pulumi.String("string"),
},
CreatedAt: pulumi.Float64(0),
Enabled: pulumi.Bool(false),
Consumer: &konnect.GatewayPluginAiGcpModelArmorConsumerArgs{
Id: pulumi.String("string"),
},
InstanceName: pulumi.String("string"),
Ordering: &konnect.GatewayPluginAiGcpModelArmorOrderingArgs{
After: &konnect.GatewayPluginAiGcpModelArmorOrderingAfterArgs{
Accesses: pulumi.StringArray{
pulumi.String("string"),
},
},
Before: &konnect.GatewayPluginAiGcpModelArmorOrderingBeforeArgs{
Accesses: pulumi.StringArray{
pulumi.String("string"),
},
},
},
Partials: konnect.GatewayPluginAiGcpModelArmorPartialArray{
&konnect.GatewayPluginAiGcpModelArmorPartialArgs{
Id: pulumi.String("string"),
Name: pulumi.String("string"),
Path: pulumi.String("string"),
},
},
Protocols: pulumi.StringArray{
pulumi.String("string"),
},
Route: &konnect.GatewayPluginAiGcpModelArmorRouteArgs{
Id: pulumi.String("string"),
},
Service: &konnect.GatewayPluginAiGcpModelArmorServiceArgs{
Id: pulumi.String("string"),
},
Tags: pulumi.StringArray{
pulumi.String("string"),
},
UpdatedAt: pulumi.Float64(0),
})
var gatewayPluginAiGcpModelArmorResource = new GatewayPluginAiGcpModelArmor("gatewayPluginAiGcpModelArmorResource", GatewayPluginAiGcpModelArmorArgs.builder()
.controlPlaneId("string")
.config(GatewayPluginAiGcpModelArmorConfigArgs.builder()
.locationId("string")
.templateId("string")
.projectId("string")
.requestFailureMessage("string")
.guardingMode("string")
.gcpUseServiceAccount(false)
.enableMultiLanguageDetection(false)
.responseBufferSize(0.0)
.responseFailureMessage("string")
.revealFailureCategories(false)
.sourceLanguage("string")
.stopOnError(false)
.gcpServiceAccountJson("string")
.textSource("string")
.timeout(0.0)
.build())
.gatewayPluginAiGcpModelArmorId("string")
.consumerGroup(GatewayPluginAiGcpModelArmorConsumerGroupArgs.builder()
.id("string")
.build())
.createdAt(0.0)
.enabled(false)
.consumer(GatewayPluginAiGcpModelArmorConsumerArgs.builder()
.id("string")
.build())
.instanceName("string")
.ordering(GatewayPluginAiGcpModelArmorOrderingArgs.builder()
.after(GatewayPluginAiGcpModelArmorOrderingAfterArgs.builder()
.accesses("string")
.build())
.before(GatewayPluginAiGcpModelArmorOrderingBeforeArgs.builder()
.accesses("string")
.build())
.build())
.partials(GatewayPluginAiGcpModelArmorPartialArgs.builder()
.id("string")
.name("string")
.path("string")
.build())
.protocols("string")
.route(GatewayPluginAiGcpModelArmorRouteArgs.builder()
.id("string")
.build())
.service(GatewayPluginAiGcpModelArmorServiceArgs.builder()
.id("string")
.build())
.tags("string")
.updatedAt(0.0)
.build());
gateway_plugin_ai_gcp_model_armor_resource = konnect.GatewayPluginAiGcpModelArmor("gatewayPluginAiGcpModelArmorResource",
control_plane_id="string",
config={
"location_id": "string",
"template_id": "string",
"project_id": "string",
"request_failure_message": "string",
"guarding_mode": "string",
"gcp_use_service_account": False,
"enable_multi_language_detection": False,
"response_buffer_size": 0,
"response_failure_message": "string",
"reveal_failure_categories": False,
"source_language": "string",
"stop_on_error": False,
"gcp_service_account_json": "string",
"text_source": "string",
"timeout": 0,
},
gateway_plugin_ai_gcp_model_armor_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 gatewayPluginAiGcpModelArmorResource = new konnect.GatewayPluginAiGcpModelArmor("gatewayPluginAiGcpModelArmorResource", {
controlPlaneId: "string",
config: {
locationId: "string",
templateId: "string",
projectId: "string",
requestFailureMessage: "string",
guardingMode: "string",
gcpUseServiceAccount: false,
enableMultiLanguageDetection: false,
responseBufferSize: 0,
responseFailureMessage: "string",
revealFailureCategories: false,
sourceLanguage: "string",
stopOnError: false,
gcpServiceAccountJson: "string",
textSource: "string",
timeout: 0,
},
gatewayPluginAiGcpModelArmorId: "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:GatewayPluginAiGcpModelArmor
properties:
config:
enableMultiLanguageDetection: false
gcpServiceAccountJson: string
gcpUseServiceAccount: false
guardingMode: string
locationId: string
projectId: string
requestFailureMessage: string
responseBufferSize: 0
responseFailureMessage: string
revealFailureCategories: false
sourceLanguage: string
stopOnError: false
templateId: string
textSource: string
timeout: 0
consumer:
id: string
consumerGroup:
id: string
controlPlaneId: string
createdAt: 0
enabled: false
gatewayPluginAiGcpModelArmorId: 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
GatewayPluginAiGcpModelArmor 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 GatewayPluginAiGcpModelArmor resource accepts the following input properties:
- Config
Gateway
Plugin Ai Gcp Model Armor 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 Gcp Model Armor 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 Gcp Model Armor 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. Default: true
- Gateway
Plugin stringAi Gcp Model Armor Id - A string representing a UUID (universally unique identifier).
- Instance
Name string - A unique string representing a UTF-8 encoded name.
- Ordering
Gateway
Plugin Ai Gcp Model Armor Ordering - Partials
List<Gateway
Plugin Ai Gcp Model Armor Partial> - A list of partials to be used by the plugin.
- Protocols List<string>
- A set of strings representing HTTP protocols. Default: ["grpc","grpcs","http","https"]
- Route
Gateway
Plugin Ai Gcp Model Armor 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 Gcp Model Armor 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 Gcp Model Armor 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 Gcp Model Armor 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 Gcp Model Armor 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. Default: true
- Gateway
Plugin stringAi Gcp Model Armor Id - A string representing a UUID (universally unique identifier).
- Instance
Name string - A unique string representing a UTF-8 encoded name.
- Ordering
Gateway
Plugin Ai Gcp Model Armor Ordering Args - Partials
[]Gateway
Plugin Ai Gcp Model Armor Partial Args - A list of partials to be used by the plugin.
- Protocols []string
- A set of strings representing HTTP protocols. Default: ["grpc","grpcs","http","https"]
- Route
Gateway
Plugin Ai Gcp Model Armor 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 Gcp Model Armor 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 Gcp Model Armor 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 Gcp Model Armor 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 Gcp Model Armor 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. Default: true
- gateway
Plugin StringAi Gcp Model Armor Id - A string representing a UUID (universally unique identifier).
- instance
Name String - A unique string representing a UTF-8 encoded name.
- ordering
Gateway
Plugin Ai Gcp Model Armor Ordering - partials
List<Gateway
Plugin Ai Gcp Model Armor Partial> - A list of partials to be used by the plugin.
- protocols List<String>
- A set of strings representing HTTP protocols. Default: ["grpc","grpcs","http","https"]
- route
Gateway
Plugin Ai Gcp Model Armor 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 Gcp Model Armor 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 Gcp Model Armor 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 Gcp Model Armor 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 Gcp Model Armor 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. Default: true
- gateway
Plugin stringAi Gcp Model Armor Id - A string representing a UUID (universally unique identifier).
- instance
Name string - A unique string representing a UTF-8 encoded name.
- ordering
Gateway
Plugin Ai Gcp Model Armor Ordering - partials
Gateway
Plugin Ai Gcp Model Armor Partial[] - A list of partials to be used by the plugin.
- protocols string[]
- A set of strings representing HTTP protocols. Default: ["grpc","grpcs","http","https"]
- route
Gateway
Plugin Ai Gcp Model Armor 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 Gcp Model Armor 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 Gcp Model Armor 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 Gcp Model Armor 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 Gcp Model Armor 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. Default: true
- gateway_
plugin_ strai_ gcp_ model_ armor_ id - A string representing a UUID (universally unique identifier).
- instance_
name str - A unique string representing a UTF-8 encoded name.
- ordering
Gateway
Plugin Ai Gcp Model Armor Ordering Args - partials
Sequence[Gateway
Plugin Ai Gcp Model Armor Partial Args] - A list of partials to be used by the plugin.
- protocols Sequence[str]
- A set of strings representing HTTP protocols. Default: ["grpc","grpcs","http","https"]
- route
Gateway
Plugin Ai Gcp Model Armor 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 Gcp Model Armor 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. Default: true
- gateway
Plugin StringAi Gcp Model Armor Id - A string representing a UUID (universally unique identifier).
- instance
Name String - A unique string representing a UTF-8 encoded name.
- ordering Property Map
- partials List<Property Map>
- A list of partials to be used by the plugin.
- protocols List<String>
- A set of strings representing HTTP protocols. Default: ["grpc","grpcs","http","https"]
- 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 GatewayPluginAiGcpModelArmor 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 GatewayPluginAiGcpModelArmor Resource
Get an existing GatewayPluginAiGcpModelArmor 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?: GatewayPluginAiGcpModelArmorState, opts?: CustomResourceOptions): GatewayPluginAiGcpModelArmor@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
config: Optional[GatewayPluginAiGcpModelArmorConfigArgs] = None,
consumer: Optional[GatewayPluginAiGcpModelArmorConsumerArgs] = None,
consumer_group: Optional[GatewayPluginAiGcpModelArmorConsumerGroupArgs] = None,
control_plane_id: Optional[str] = None,
created_at: Optional[float] = None,
enabled: Optional[bool] = None,
gateway_plugin_ai_gcp_model_armor_id: Optional[str] = None,
instance_name: Optional[str] = None,
ordering: Optional[GatewayPluginAiGcpModelArmorOrderingArgs] = None,
partials: Optional[Sequence[GatewayPluginAiGcpModelArmorPartialArgs]] = None,
protocols: Optional[Sequence[str]] = None,
route: Optional[GatewayPluginAiGcpModelArmorRouteArgs] = None,
service: Optional[GatewayPluginAiGcpModelArmorServiceArgs] = None,
tags: Optional[Sequence[str]] = None,
updated_at: Optional[float] = None) -> GatewayPluginAiGcpModelArmorfunc GetGatewayPluginAiGcpModelArmor(ctx *Context, name string, id IDInput, state *GatewayPluginAiGcpModelArmorState, opts ...ResourceOption) (*GatewayPluginAiGcpModelArmor, error)public static GatewayPluginAiGcpModelArmor Get(string name, Input<string> id, GatewayPluginAiGcpModelArmorState? state, CustomResourceOptions? opts = null)public static GatewayPluginAiGcpModelArmor get(String name, Output<String> id, GatewayPluginAiGcpModelArmorState state, CustomResourceOptions options)resources: _: type: konnect:GatewayPluginAiGcpModelArmor 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 Gcp Model Armor Config - Consumer
Gateway
Plugin Ai Gcp Model Armor 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 Gcp Model Armor 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. Default: true
- Gateway
Plugin stringAi Gcp Model Armor Id - A string representing a UUID (universally unique identifier).
- Instance
Name string - A unique string representing a UTF-8 encoded name.
- Ordering
Gateway
Plugin Ai Gcp Model Armor Ordering - Partials
List<Gateway
Plugin Ai Gcp Model Armor Partial> - A list of partials to be used by the plugin.
- Protocols List<string>
- A set of strings representing HTTP protocols. Default: ["grpc","grpcs","http","https"]
- Route
Gateway
Plugin Ai Gcp Model Armor 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 Gcp Model Armor 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 Gcp Model Armor Config Args - Consumer
Gateway
Plugin Ai Gcp Model Armor 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 Gcp Model Armor 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. Default: true
- Gateway
Plugin stringAi Gcp Model Armor Id - A string representing a UUID (universally unique identifier).
- Instance
Name string - A unique string representing a UTF-8 encoded name.
- Ordering
Gateway
Plugin Ai Gcp Model Armor Ordering Args - Partials
[]Gateway
Plugin Ai Gcp Model Armor Partial Args - A list of partials to be used by the plugin.
- Protocols []string
- A set of strings representing HTTP protocols. Default: ["grpc","grpcs","http","https"]
- Route
Gateway
Plugin Ai Gcp Model Armor 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 Gcp Model Armor 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 Gcp Model Armor Config - consumer
Gateway
Plugin Ai Gcp Model Armor 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 Gcp Model Armor 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. Default: true
- gateway
Plugin StringAi Gcp Model Armor Id - A string representing a UUID (universally unique identifier).
- instance
Name String - A unique string representing a UTF-8 encoded name.
- ordering
Gateway
Plugin Ai Gcp Model Armor Ordering - partials
List<Gateway
Plugin Ai Gcp Model Armor Partial> - A list of partials to be used by the plugin.
- protocols List<String>
- A set of strings representing HTTP protocols. Default: ["grpc","grpcs","http","https"]
- route
Gateway
Plugin Ai Gcp Model Armor 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 Gcp Model Armor 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 Gcp Model Armor Config - consumer
Gateway
Plugin Ai Gcp Model Armor 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 Gcp Model Armor 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. Default: true
- gateway
Plugin stringAi Gcp Model Armor Id - A string representing a UUID (universally unique identifier).
- instance
Name string - A unique string representing a UTF-8 encoded name.
- ordering
Gateway
Plugin Ai Gcp Model Armor Ordering - partials
Gateway
Plugin Ai Gcp Model Armor Partial[] - A list of partials to be used by the plugin.
- protocols string[]
- A set of strings representing HTTP protocols. Default: ["grpc","grpcs","http","https"]
- route
Gateway
Plugin Ai Gcp Model Armor 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 Gcp Model Armor 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 Gcp Model Armor Config Args - consumer
Gateway
Plugin Ai Gcp Model Armor 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 Gcp Model Armor 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. Default: true
- gateway_
plugin_ strai_ gcp_ model_ armor_ id - A string representing a UUID (universally unique identifier).
- instance_
name str - A unique string representing a UTF-8 encoded name.
- ordering
Gateway
Plugin Ai Gcp Model Armor Ordering Args - partials
Sequence[Gateway
Plugin Ai Gcp Model Armor Partial Args] - A list of partials to be used by the plugin.
- protocols Sequence[str]
- A set of strings representing HTTP protocols. Default: ["grpc","grpcs","http","https"]
- route
Gateway
Plugin Ai Gcp Model Armor 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 Gcp Model Armor 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. Default: true
- gateway
Plugin StringAi Gcp Model Armor Id - A string representing a UUID (universally unique identifier).
- instance
Name String - A unique string representing a UTF-8 encoded name.
- ordering Property Map
- partials List<Property Map>
- A list of partials to be used by the plugin.
- protocols List<String>
- A set of strings representing HTTP protocols. Default: ["grpc","grpcs","http","https"]
- 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
GatewayPluginAiGcpModelArmorConfig, GatewayPluginAiGcpModelArmorConfigArgs
- Location
Id string - GCP Location ID for the GCP Model Armor subscription.
- Project
Id string - GCP Project ID for the GCP Model Armor subscription.
- Template
Id string - GCP Model Armor Template ID to enforce.
- Enable
Multi boolLanguage Detection - Enables multi-language detection mode. Must be used with 'source_language'. Default: false
- Gcp
Service stringAccount Json - Set this field to the full JSON of the GCP service account to authenticate, if required. If null (and gcpuseservice_account is true), Kong will attempt to read from environment variable
GCP_SERVICE_ACCOUNTor from the instance/container metadata service. - Gcp
Use boolService Account - Use service account auth for GCP-based providers and models. Default: false
- Guarding
Mode string - The guardrail mode to use for the request. Default: "INPUT"; must be one of ["BOTH", "INPUT", "OUTPUT"]
- Request
Failure stringMessage - The message to return when a failure occurs on the request phase. Default: "Request was filtered by GCP Model Armor"
- Response
Buffer doubleSize - The amount of bytes receiving from upstream to be buffered before sending to the model armor service. This only applies to the response content guard. Default: 100
- Response
Failure stringMessage - The message to return when a failure occurs on the response phase. Default: "Response was filtered by GCP Model Armor"
- Reveal
Failure boolCategories - Whether to reveal failure categories in the response to the caller. Default: false
- Source
Language string - Source language (ISO code) to use when 'enablemultilanguage_detection' is enabled.
- Stop
On boolError - Stop processing if an error occurs. Default: true
- Text
Source string - Select where to pick the 'text' for the GCP Model Armor Services request. Default: "lastmessage"; must be one of ["concatenateallcontent", "concatenateusercontent", "lastmessage"]
- Timeout double
- Connection timeout with the GCP Model Armor service. Default: 10000
- Location
Id string - GCP Location ID for the GCP Model Armor subscription.
- Project
Id string - GCP Project ID for the GCP Model Armor subscription.
- Template
Id string - GCP Model Armor Template ID to enforce.
- Enable
Multi boolLanguage Detection - Enables multi-language detection mode. Must be used with 'source_language'. Default: false
- Gcp
Service stringAccount Json - Set this field to the full JSON of the GCP service account to authenticate, if required. If null (and gcpuseservice_account is true), Kong will attempt to read from environment variable
GCP_SERVICE_ACCOUNTor from the instance/container metadata service. - Gcp
Use boolService Account - Use service account auth for GCP-based providers and models. Default: false
- Guarding
Mode string - The guardrail mode to use for the request. Default: "INPUT"; must be one of ["BOTH", "INPUT", "OUTPUT"]
- Request
Failure stringMessage - The message to return when a failure occurs on the request phase. Default: "Request was filtered by GCP Model Armor"
- Response
Buffer float64Size - The amount of bytes receiving from upstream to be buffered before sending to the model armor service. This only applies to the response content guard. Default: 100
- Response
Failure stringMessage - The message to return when a failure occurs on the response phase. Default: "Response was filtered by GCP Model Armor"
- Reveal
Failure boolCategories - Whether to reveal failure categories in the response to the caller. Default: false
- Source
Language string - Source language (ISO code) to use when 'enablemultilanguage_detection' is enabled.
- Stop
On boolError - Stop processing if an error occurs. Default: true
- Text
Source string - Select where to pick the 'text' for the GCP Model Armor Services request. Default: "lastmessage"; must be one of ["concatenateallcontent", "concatenateusercontent", "lastmessage"]
- Timeout float64
- Connection timeout with the GCP Model Armor service. Default: 10000
- location
Id String - GCP Location ID for the GCP Model Armor subscription.
- project
Id String - GCP Project ID for the GCP Model Armor subscription.
- template
Id String - GCP Model Armor Template ID to enforce.
- enable
Multi BooleanLanguage Detection - Enables multi-language detection mode. Must be used with 'source_language'. Default: false
- gcp
Service StringAccount Json - Set this field to the full JSON of the GCP service account to authenticate, if required. If null (and gcpuseservice_account is true), Kong will attempt to read from environment variable
GCP_SERVICE_ACCOUNTor from the instance/container metadata service. - gcp
Use BooleanService Account - Use service account auth for GCP-based providers and models. Default: false
- guarding
Mode String - The guardrail mode to use for the request. Default: "INPUT"; must be one of ["BOTH", "INPUT", "OUTPUT"]
- request
Failure StringMessage - The message to return when a failure occurs on the request phase. Default: "Request was filtered by GCP Model Armor"
- response
Buffer DoubleSize - The amount of bytes receiving from upstream to be buffered before sending to the model armor service. This only applies to the response content guard. Default: 100
- response
Failure StringMessage - The message to return when a failure occurs on the response phase. Default: "Response was filtered by GCP Model Armor"
- reveal
Failure BooleanCategories - Whether to reveal failure categories in the response to the caller. Default: false
- source
Language String - Source language (ISO code) to use when 'enablemultilanguage_detection' is enabled.
- stop
On BooleanError - Stop processing if an error occurs. Default: true
- text
Source String - Select where to pick the 'text' for the GCP Model Armor Services request. Default: "lastmessage"; must be one of ["concatenateallcontent", "concatenateusercontent", "lastmessage"]
- timeout Double
- Connection timeout with the GCP Model Armor service. Default: 10000
- location
Id string - GCP Location ID for the GCP Model Armor subscription.
- project
Id string - GCP Project ID for the GCP Model Armor subscription.
- template
Id string - GCP Model Armor Template ID to enforce.
- enable
Multi booleanLanguage Detection - Enables multi-language detection mode. Must be used with 'source_language'. Default: false
- gcp
Service stringAccount Json - Set this field to the full JSON of the GCP service account to authenticate, if required. If null (and gcpuseservice_account is true), Kong will attempt to read from environment variable
GCP_SERVICE_ACCOUNTor from the instance/container metadata service. - gcp
Use booleanService Account - Use service account auth for GCP-based providers and models. Default: false
- guarding
Mode string - The guardrail mode to use for the request. Default: "INPUT"; must be one of ["BOTH", "INPUT", "OUTPUT"]
- request
Failure stringMessage - The message to return when a failure occurs on the request phase. Default: "Request was filtered by GCP Model Armor"
- response
Buffer numberSize - The amount of bytes receiving from upstream to be buffered before sending to the model armor service. This only applies to the response content guard. Default: 100
- response
Failure stringMessage - The message to return when a failure occurs on the response phase. Default: "Response was filtered by GCP Model Armor"
- reveal
Failure booleanCategories - Whether to reveal failure categories in the response to the caller. Default: false
- source
Language string - Source language (ISO code) to use when 'enablemultilanguage_detection' is enabled.
- stop
On booleanError - Stop processing if an error occurs. Default: true
- text
Source string - Select where to pick the 'text' for the GCP Model Armor Services request. Default: "lastmessage"; must be one of ["concatenateallcontent", "concatenateusercontent", "lastmessage"]
- timeout number
- Connection timeout with the GCP Model Armor service. Default: 10000
- location_
id str - GCP Location ID for the GCP Model Armor subscription.
- project_
id str - GCP Project ID for the GCP Model Armor subscription.
- template_
id str - GCP Model Armor Template ID to enforce.
- enable_
multi_ boollanguage_ detection - Enables multi-language detection mode. Must be used with 'source_language'. Default: false
- gcp_
service_ straccount_ json - Set this field to the full JSON of the GCP service account to authenticate, if required. If null (and gcpuseservice_account is true), Kong will attempt to read from environment variable
GCP_SERVICE_ACCOUNTor from the instance/container metadata service. - gcp_
use_ boolservice_ account - Use service account auth for GCP-based providers and models. Default: false
- guarding_
mode str - The guardrail mode to use for the request. Default: "INPUT"; must be one of ["BOTH", "INPUT", "OUTPUT"]
- request_
failure_ strmessage - The message to return when a failure occurs on the request phase. Default: "Request was filtered by GCP Model Armor"
- response_
buffer_ floatsize - The amount of bytes receiving from upstream to be buffered before sending to the model armor service. This only applies to the response content guard. Default: 100
- response_
failure_ strmessage - The message to return when a failure occurs on the response phase. Default: "Response was filtered by GCP Model Armor"
- reveal_
failure_ boolcategories - Whether to reveal failure categories in the response to the caller. Default: false
- source_
language str - Source language (ISO code) to use when 'enablemultilanguage_detection' is enabled.
- stop_
on_ boolerror - Stop processing if an error occurs. Default: true
- text_
source str - Select where to pick the 'text' for the GCP Model Armor Services request. Default: "lastmessage"; must be one of ["concatenateallcontent", "concatenateusercontent", "lastmessage"]
- timeout float
- Connection timeout with the GCP Model Armor service. Default: 10000
- location
Id String - GCP Location ID for the GCP Model Armor subscription.
- project
Id String - GCP Project ID for the GCP Model Armor subscription.
- template
Id String - GCP Model Armor Template ID to enforce.
- enable
Multi BooleanLanguage Detection - Enables multi-language detection mode. Must be used with 'source_language'. Default: false
- gcp
Service StringAccount Json - Set this field to the full JSON of the GCP service account to authenticate, if required. If null (and gcpuseservice_account is true), Kong will attempt to read from environment variable
GCP_SERVICE_ACCOUNTor from the instance/container metadata service. - gcp
Use BooleanService Account - Use service account auth for GCP-based providers and models. Default: false
- guarding
Mode String - The guardrail mode to use for the request. Default: "INPUT"; must be one of ["BOTH", "INPUT", "OUTPUT"]
- request
Failure StringMessage - The message to return when a failure occurs on the request phase. Default: "Request was filtered by GCP Model Armor"
- response
Buffer NumberSize - The amount of bytes receiving from upstream to be buffered before sending to the model armor service. This only applies to the response content guard. Default: 100
- response
Failure StringMessage - The message to return when a failure occurs on the response phase. Default: "Response was filtered by GCP Model Armor"
- reveal
Failure BooleanCategories - Whether to reveal failure categories in the response to the caller. Default: false
- source
Language String - Source language (ISO code) to use when 'enablemultilanguage_detection' is enabled.
- stop
On BooleanError - Stop processing if an error occurs. Default: true
- text
Source String - Select where to pick the 'text' for the GCP Model Armor Services request. Default: "lastmessage"; must be one of ["concatenateallcontent", "concatenateusercontent", "lastmessage"]
- timeout Number
- Connection timeout with the GCP Model Armor service. Default: 10000
GatewayPluginAiGcpModelArmorConsumer, GatewayPluginAiGcpModelArmorConsumerArgs
- Id string
- Id string
- id String
- id string
- id str
- id String
GatewayPluginAiGcpModelArmorConsumerGroup, GatewayPluginAiGcpModelArmorConsumerGroupArgs
- Id string
- Id string
- id String
- id string
- id str
- id String
GatewayPluginAiGcpModelArmorOrdering, GatewayPluginAiGcpModelArmorOrderingArgs
GatewayPluginAiGcpModelArmorOrderingAfter, GatewayPluginAiGcpModelArmorOrderingAfterArgs
- Accesses List<string>
- Accesses []string
- accesses List<String>
- accesses string[]
- accesses Sequence[str]
- accesses List<String>
GatewayPluginAiGcpModelArmorOrderingBefore, GatewayPluginAiGcpModelArmorOrderingBeforeArgs
- Accesses List<string>
- Accesses []string
- accesses List<String>
- accesses string[]
- accesses Sequence[str]
- accesses List<String>
GatewayPluginAiGcpModelArmorPartial, GatewayPluginAiGcpModelArmorPartialArgs
GatewayPluginAiGcpModelArmorRoute, GatewayPluginAiGcpModelArmorRouteArgs
- Id string
- Id string
- id String
- id string
- id str
- id String
GatewayPluginAiGcpModelArmorService, GatewayPluginAiGcpModelArmorServiceArgs
- Id string
- Id string
- id String
- id string
- id str
- id String
Import
In Terraform v1.5.0 and later, the import block can be used with the id attribute, for example:
terraform
import {
to = konnect_gateway_plugin_ai_gcp_model_armor.my_konnect_gateway_plugin_ai_gcp_model_armor
id = jsonencode({
control_plane_id = "9524ec7d-36d9-465d-a8c5-83a3c9390458"
id = "3473c251-5b6c-4f45-b1ff-7ede735a366d"
})
}
The pulumi import command can be used, for example:
$ pulumi import konnect:index/gatewayPluginAiGcpModelArmor:GatewayPluginAiGcpModelArmor my_konnect_gateway_plugin_ai_gcp_model_armor '{"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
konnectTerraform Provider.
