published on Thursday, Jul 16, 2026 by Pulumi
published on Thursday, Jul 16, 2026 by Pulumi
Accepted Permissions
AI Gateway ReadAI Gateway Write
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleAiGateway = new cloudflare.AiGateway("example_ai_gateway", {
accountId: "3ebbcb006d4d46d7bb6a8c7f14676cb0",
aiGatewayId: "my-gateway",
cacheInvalidateOnUpdate: true,
cacheTtl: 0,
collectLogs: true,
rateLimitingInterval: 0,
rateLimitingLimit: 0,
authentication: true,
logManagement: 10000,
logManagementStrategy: "STOP_INSERTING",
logpush: true,
logpushPublicKey: "xxxxxxxxxxxxxxxx",
rateLimitingTechnique: "fixed",
retryBackoff: "constant",
retryDelay: 0,
retryMaxAttempts: 1,
workersAiBillingMode: "postpaid",
zdr: true,
});
import pulumi
import pulumi_cloudflare as cloudflare
example_ai_gateway = cloudflare.AiGateway("example_ai_gateway",
account_id="3ebbcb006d4d46d7bb6a8c7f14676cb0",
ai_gateway_id="my-gateway",
cache_invalidate_on_update=True,
cache_ttl=0,
collect_logs=True,
rate_limiting_interval=0,
rate_limiting_limit=0,
authentication=True,
log_management=10000,
log_management_strategy="STOP_INSERTING",
logpush=True,
logpush_public_key="xxxxxxxxxxxxxxxx",
rate_limiting_technique="fixed",
retry_backoff="constant",
retry_delay=0,
retry_max_attempts=1,
workers_ai_billing_mode="postpaid",
zdr=True)
package main
import (
"github.com/pulumi/pulumi-cloudflare/sdk/v6/go/cloudflare"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudflare.NewAiGateway(ctx, "example_ai_gateway", &cloudflare.AiGatewayArgs{
AccountId: pulumi.String("3ebbcb006d4d46d7bb6a8c7f14676cb0"),
AiGatewayId: pulumi.String("my-gateway"),
CacheInvalidateOnUpdate: pulumi.Bool(true),
CacheTtl: pulumi.Int(0),
CollectLogs: pulumi.Bool(true),
RateLimitingInterval: pulumi.Int(0),
RateLimitingLimit: pulumi.Int(0),
Authentication: pulumi.Bool(true),
LogManagement: pulumi.Int(10000),
LogManagementStrategy: pulumi.String("STOP_INSERTING"),
Logpush: pulumi.Bool(true),
LogpushPublicKey: pulumi.String("xxxxxxxxxxxxxxxx"),
RateLimitingTechnique: pulumi.String("fixed"),
RetryBackoff: pulumi.String("constant"),
RetryDelay: pulumi.Int(0),
RetryMaxAttempts: pulumi.Int(1),
WorkersAiBillingMode: pulumi.String("postpaid"),
Zdr: pulumi.Bool(true),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Cloudflare = Pulumi.Cloudflare;
return await Deployment.RunAsync(() =>
{
var exampleAiGateway = new Cloudflare.AiGateway("example_ai_gateway", new()
{
AccountId = "3ebbcb006d4d46d7bb6a8c7f14676cb0",
AiGatewayId = "my-gateway",
CacheInvalidateOnUpdate = true,
CacheTtl = 0,
CollectLogs = true,
RateLimitingInterval = 0,
RateLimitingLimit = 0,
Authentication = true,
LogManagement = 10000,
LogManagementStrategy = "STOP_INSERTING",
Logpush = true,
LogpushPublicKey = "xxxxxxxxxxxxxxxx",
RateLimitingTechnique = "fixed",
RetryBackoff = "constant",
RetryDelay = 0,
RetryMaxAttempts = 1,
WorkersAiBillingMode = "postpaid",
Zdr = true,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.AiGateway;
import com.pulumi.cloudflare.AiGatewayArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 exampleAiGateway = new AiGateway("exampleAiGateway", AiGatewayArgs.builder()
.accountId("3ebbcb006d4d46d7bb6a8c7f14676cb0")
.aiGatewayId("my-gateway")
.cacheInvalidateOnUpdate(true)
.cacheTtl(0)
.collectLogs(true)
.rateLimitingInterval(0)
.rateLimitingLimit(0)
.authentication(true)
.logManagement(10000)
.logManagementStrategy("STOP_INSERTING")
.logpush(true)
.logpushPublicKey("xxxxxxxxxxxxxxxx")
.rateLimitingTechnique("fixed")
.retryBackoff("constant")
.retryDelay(0)
.retryMaxAttempts(1)
.workersAiBillingMode("postpaid")
.zdr(true)
.build());
}
}
resources:
exampleAiGateway:
type: cloudflare:AiGateway
name: example_ai_gateway
properties:
accountId: 3ebbcb006d4d46d7bb6a8c7f14676cb0
aiGatewayId: my-gateway
cacheInvalidateOnUpdate: true
cacheTtl: 0
collectLogs: true
rateLimitingInterval: 0
rateLimitingLimit: 0
authentication: true
logManagement: 10000
logManagementStrategy: STOP_INSERTING
logpush: true
logpushPublicKey: xxxxxxxxxxxxxxxx
rateLimitingTechnique: fixed
retryBackoff: constant
retryDelay: 0
retryMaxAttempts: 1
workersAiBillingMode: postpaid
zdr: true
pulumi {
required_providers {
cloudflare = {
source = "pulumi/cloudflare"
}
}
}
resource "cloudflare_aigateway" "example_ai_gateway" {
account_id = "3ebbcb006d4d46d7bb6a8c7f14676cb0"
ai_gateway_id = "my-gateway"
cache_invalidate_on_update = true
cache_ttl = 0
collect_logs = true
rate_limiting_interval = 0
rate_limiting_limit = 0
authentication = true
log_management = 10000
log_management_strategy = "STOP_INSERTING"
logpush = true
logpush_public_key = "xxxxxxxxxxxxxxxx"
rate_limiting_technique = "fixed"
retry_backoff = "constant"
retry_delay = 0
retry_max_attempts = 1
workers_ai_billing_mode = "postpaid"
zdr = true
}
Create AiGateway Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AiGateway(name: string, args: AiGatewayArgs, opts?: CustomResourceOptions);@overload
def AiGateway(resource_name: str,
args: AiGatewayArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AiGateway(resource_name: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
ai_gateway_id: Optional[str] = None,
rate_limiting_limit: Optional[int] = None,
cache_invalidate_on_update: Optional[bool] = None,
cache_ttl: Optional[int] = None,
collect_logs: Optional[bool] = None,
rate_limiting_interval: Optional[int] = None,
otels: Optional[Sequence[AiGatewayOtelArgs]] = None,
retry_backoff: Optional[str] = None,
log_management_strategy: Optional[str] = None,
logpush: Optional[bool] = None,
logpush_public_key: Optional[str] = None,
guardrails: Optional[AiGatewayGuardrailsArgs] = None,
dlp: Optional[AiGatewayDlpArgs] = None,
authentication: Optional[bool] = None,
rate_limiting_technique: Optional[str] = None,
log_management: Optional[int] = None,
retry_delay: Optional[int] = None,
retry_max_attempts: Optional[int] = None,
spend_limits: Optional[AiGatewaySpendLimitsArgs] = None,
store_id: Optional[str] = None,
stripe: Optional[AiGatewayStripeArgs] = None,
workers_ai_billing_mode: Optional[str] = None,
zdr: Optional[bool] = None)func NewAiGateway(ctx *Context, name string, args AiGatewayArgs, opts ...ResourceOption) (*AiGateway, error)public AiGateway(string name, AiGatewayArgs args, CustomResourceOptions? opts = null)
public AiGateway(String name, AiGatewayArgs args)
public AiGateway(String name, AiGatewayArgs args, CustomResourceOptions options)
type: cloudflare:AiGateway
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "cloudflare_ai_gateway" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args AiGatewayArgs
- 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 AiGatewayArgs
- 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 AiGatewayArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AiGatewayArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AiGatewayArgs
- 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 aiGatewayResource = new Cloudflare.AiGateway("aiGatewayResource", new()
{
AccountId = "string",
AiGatewayId = "string",
RateLimitingLimit = 0,
CacheInvalidateOnUpdate = false,
CacheTtl = 0,
CollectLogs = false,
RateLimitingInterval = 0,
Otels = new[]
{
new Cloudflare.Inputs.AiGatewayOtelArgs
{
Headers =
{
{ "string", "string" },
},
Url = "string",
Authorization = "string",
ContentType = "string",
},
},
RetryBackoff = "string",
LogManagementStrategy = "string",
Logpush = false,
LogpushPublicKey = "string",
Guardrails = new Cloudflare.Inputs.AiGatewayGuardrailsArgs
{
Prompt = new Cloudflare.Inputs.AiGatewayGuardrailsPromptArgs
{
P1 = "string",
S1 = "string",
S10 = "string",
S11 = "string",
S12 = "string",
S13 = "string",
S2 = "string",
S3 = "string",
S4 = "string",
S5 = "string",
S6 = "string",
S7 = "string",
S8 = "string",
S9 = "string",
},
Response = new Cloudflare.Inputs.AiGatewayGuardrailsResponseArgs
{
P1 = "string",
S1 = "string",
S10 = "string",
S11 = "string",
S12 = "string",
S13 = "string",
S2 = "string",
S3 = "string",
S4 = "string",
S5 = "string",
S6 = "string",
S7 = "string",
S8 = "string",
S9 = "string",
},
},
Dlp = new Cloudflare.Inputs.AiGatewayDlpArgs
{
Enabled = false,
Action = "string",
Policies = new[]
{
new Cloudflare.Inputs.AiGatewayDlpPolicyArgs
{
Action = "string",
Checks = new[]
{
"string",
},
Enabled = false,
Id = "string",
Profiles = new[]
{
"string",
},
},
},
Profiles = new[]
{
"string",
},
},
Authentication = false,
RateLimitingTechnique = "string",
LogManagement = 0,
RetryDelay = 0,
RetryMaxAttempts = 0,
SpendLimits = new Cloudflare.Inputs.AiGatewaySpendLimitsArgs
{
Enabled = false,
Rules = new[]
{
new Cloudflare.Inputs.AiGatewaySpendLimitsRuleArgs
{
Limit = 0,
LimitType = "string",
Window = 0,
AiGatewayProvider = new Cloudflare.Inputs.AiGatewaySpendLimitsRuleAiGatewayProviderArgs
{
Mode = "string",
Values = new[]
{
"string",
},
},
Enabled = false,
Id = "string",
Metadata =
{
{ "string", new Cloudflare.Inputs.AiGatewaySpendLimitsRuleMetadataArgs
{
Mode = "string",
Values = new[]
{
"string",
},
} },
},
Model = new Cloudflare.Inputs.AiGatewaySpendLimitsRuleModelArgs
{
Mode = "string",
Values = new[]
{
"string",
},
},
Technique = "string",
},
},
},
StoreId = "string",
Stripe = new Cloudflare.Inputs.AiGatewayStripeArgs
{
Authorization = "string",
UsageEvents = new[]
{
new Cloudflare.Inputs.AiGatewayStripeUsageEventArgs
{
Payload = "string",
},
},
},
WorkersAiBillingMode = "string",
Zdr = false,
});
example, err := cloudflare.NewAiGateway(ctx, "aiGatewayResource", &cloudflare.AiGatewayArgs{
AccountId: pulumi.String("string"),
AiGatewayId: pulumi.String("string"),
RateLimitingLimit: pulumi.Int(0),
CacheInvalidateOnUpdate: pulumi.Bool(false),
CacheTtl: pulumi.Int(0),
CollectLogs: pulumi.Bool(false),
RateLimitingInterval: pulumi.Int(0),
Otels: cloudflare.AiGatewayOtelArray{
&cloudflare.AiGatewayOtelArgs{
Headers: pulumi.StringMap{
"string": pulumi.String("string"),
},
Url: pulumi.String("string"),
Authorization: pulumi.String("string"),
ContentType: pulumi.String("string"),
},
},
RetryBackoff: pulumi.String("string"),
LogManagementStrategy: pulumi.String("string"),
Logpush: pulumi.Bool(false),
LogpushPublicKey: pulumi.String("string"),
Guardrails: &cloudflare.AiGatewayGuardrailsArgs{
Prompt: &cloudflare.AiGatewayGuardrailsPromptArgs{
P1: pulumi.String("string"),
S1: pulumi.String("string"),
S10: pulumi.String("string"),
S11: pulumi.String("string"),
S12: pulumi.String("string"),
S13: pulumi.String("string"),
S2: pulumi.String("string"),
S3: pulumi.String("string"),
S4: pulumi.String("string"),
S5: pulumi.String("string"),
S6: pulumi.String("string"),
S7: pulumi.String("string"),
S8: pulumi.String("string"),
S9: pulumi.String("string"),
},
Response: &cloudflare.AiGatewayGuardrailsResponseArgs{
P1: pulumi.String("string"),
S1: pulumi.String("string"),
S10: pulumi.String("string"),
S11: pulumi.String("string"),
S12: pulumi.String("string"),
S13: pulumi.String("string"),
S2: pulumi.String("string"),
S3: pulumi.String("string"),
S4: pulumi.String("string"),
S5: pulumi.String("string"),
S6: pulumi.String("string"),
S7: pulumi.String("string"),
S8: pulumi.String("string"),
S9: pulumi.String("string"),
},
},
Dlp: &cloudflare.AiGatewayDlpArgs{
Enabled: pulumi.Bool(false),
Action: pulumi.String("string"),
Policies: cloudflare.AiGatewayDlpPolicyArray{
&cloudflare.AiGatewayDlpPolicyArgs{
Action: pulumi.String("string"),
Checks: pulumi.StringArray{
pulumi.String("string"),
},
Enabled: pulumi.Bool(false),
Id: pulumi.String("string"),
Profiles: pulumi.StringArray{
pulumi.String("string"),
},
},
},
Profiles: pulumi.StringArray{
pulumi.String("string"),
},
},
Authentication: pulumi.Bool(false),
RateLimitingTechnique: pulumi.String("string"),
LogManagement: pulumi.Int(0),
RetryDelay: pulumi.Int(0),
RetryMaxAttempts: pulumi.Int(0),
SpendLimits: &cloudflare.AiGatewaySpendLimitsArgs{
Enabled: pulumi.Bool(false),
Rules: cloudflare.AiGatewaySpendLimitsRuleArray{
&cloudflare.AiGatewaySpendLimitsRuleArgs{
Limit: pulumi.Float64(0),
LimitType: pulumi.String("string"),
Window: pulumi.Int(0),
AiGatewayProvider: &cloudflare.AiGatewaySpendLimitsRuleAiGatewayProviderArgs{
Mode: pulumi.String("string"),
Values: pulumi.StringArray{
pulumi.String("string"),
},
},
Enabled: pulumi.Bool(false),
Id: pulumi.String("string"),
Metadata: cloudflare.AiGatewaySpendLimitsRuleMetadataMap{
"string": &cloudflare.AiGatewaySpendLimitsRuleMetadataArgs{
Mode: pulumi.String("string"),
Values: pulumi.StringArray{
pulumi.String("string"),
},
},
},
Model: &cloudflare.AiGatewaySpendLimitsRuleModelArgs{
Mode: pulumi.String("string"),
Values: pulumi.StringArray{
pulumi.String("string"),
},
},
Technique: pulumi.String("string"),
},
},
},
StoreId: pulumi.String("string"),
Stripe: &cloudflare.AiGatewayStripeArgs{
Authorization: pulumi.String("string"),
UsageEvents: cloudflare.AiGatewayStripeUsageEventArray{
&cloudflare.AiGatewayStripeUsageEventArgs{
Payload: pulumi.String("string"),
},
},
},
WorkersAiBillingMode: pulumi.String("string"),
Zdr: pulumi.Bool(false),
})
resource "cloudflare_ai_gateway" "aiGatewayResource" {
lifecycle {
create_before_destroy = true
}
account_id = "string"
ai_gateway_id = "string"
rate_limiting_limit = 0
cache_invalidate_on_update = false
cache_ttl = 0
collect_logs = false
rate_limiting_interval = 0
otels {
headers = {
"string" = "string"
}
url = "string"
authorization = "string"
content_type = "string"
}
retry_backoff = "string"
log_management_strategy = "string"
logpush = false
logpush_public_key = "string"
guardrails = {
prompt = {
p1 = "string"
s1 = "string"
s10 = "string"
s11 = "string"
s12 = "string"
s13 = "string"
s2 = "string"
s3 = "string"
s4 = "string"
s5 = "string"
s6 = "string"
s7 = "string"
s8 = "string"
s9 = "string"
}
response = {
p1 = "string"
s1 = "string"
s10 = "string"
s11 = "string"
s12 = "string"
s13 = "string"
s2 = "string"
s3 = "string"
s4 = "string"
s5 = "string"
s6 = "string"
s7 = "string"
s8 = "string"
s9 = "string"
}
}
dlp = {
enabled = false
action = "string"
policies = [{
action = "string"
checks = ["string"]
enabled = false
id = "string"
profiles = ["string"]
}]
profiles = ["string"]
}
authentication = false
rate_limiting_technique = "string"
log_management = 0
retry_delay = 0
retry_max_attempts = 0
spend_limits = {
enabled = false
rules = [{
limit = 0
limit_type = "string"
window = 0
ai_gateway_provider = {
mode = "string"
values = ["string"]
}
enabled = false
id = "string"
metadata = {
"string" = {
mode = "string"
values = ["string"]
}
}
model = {
mode = "string"
values = ["string"]
}
technique = "string"
}]
}
store_id = "string"
stripe = {
authorization = "string"
usage_events = [{
payload = "string"
}]
}
workers_ai_billing_mode = "string"
zdr = false
}
var aiGatewayResource = new AiGateway("aiGatewayResource", AiGatewayArgs.builder()
.accountId("string")
.aiGatewayId("string")
.rateLimitingLimit(0)
.cacheInvalidateOnUpdate(false)
.cacheTtl(0)
.collectLogs(false)
.rateLimitingInterval(0)
.otels(AiGatewayOtelArgs.builder()
.headers(Map.of("string", "string"))
.url("string")
.authorization("string")
.contentType("string")
.build())
.retryBackoff("string")
.logManagementStrategy("string")
.logpush(false)
.logpushPublicKey("string")
.guardrails(AiGatewayGuardrailsArgs.builder()
.prompt(AiGatewayGuardrailsPromptArgs.builder()
.p1("string")
.s1("string")
.s10("string")
.s11("string")
.s12("string")
.s13("string")
.s2("string")
.s3("string")
.s4("string")
.s5("string")
.s6("string")
.s7("string")
.s8("string")
.s9("string")
.build())
.response(AiGatewayGuardrailsResponseArgs.builder()
.p1("string")
.s1("string")
.s10("string")
.s11("string")
.s12("string")
.s13("string")
.s2("string")
.s3("string")
.s4("string")
.s5("string")
.s6("string")
.s7("string")
.s8("string")
.s9("string")
.build())
.build())
.dlp(AiGatewayDlpArgs.builder()
.enabled(false)
.action("string")
.policies(AiGatewayDlpPolicyArgs.builder()
.action("string")
.checks("string")
.enabled(false)
.id("string")
.profiles("string")
.build())
.profiles("string")
.build())
.authentication(false)
.rateLimitingTechnique("string")
.logManagement(0)
.retryDelay(0)
.retryMaxAttempts(0)
.spendLimits(AiGatewaySpendLimitsArgs.builder()
.enabled(false)
.rules(AiGatewaySpendLimitsRuleArgs.builder()
.limit(0.0)
.limitType("string")
.window(0)
.aiGatewayProvider(AiGatewaySpendLimitsRuleAiGatewayProviderArgs.builder()
.mode("string")
.values("string")
.build())
.enabled(false)
.id("string")
.metadata(Map.of("string", AiGatewaySpendLimitsRuleMetadataArgs.builder()
.mode("string")
.values("string")
.build()))
.model(AiGatewaySpendLimitsRuleModelArgs.builder()
.mode("string")
.values("string")
.build())
.technique("string")
.build())
.build())
.storeId("string")
.stripe(AiGatewayStripeArgs.builder()
.authorization("string")
.usageEvents(AiGatewayStripeUsageEventArgs.builder()
.payload("string")
.build())
.build())
.workersAiBillingMode("string")
.zdr(false)
.build());
ai_gateway_resource = cloudflare.AiGateway("aiGatewayResource",
account_id="string",
ai_gateway_id="string",
rate_limiting_limit=0,
cache_invalidate_on_update=False,
cache_ttl=0,
collect_logs=False,
rate_limiting_interval=0,
otels=[{
"headers": {
"string": "string",
},
"url": "string",
"authorization": "string",
"content_type": "string",
}],
retry_backoff="string",
log_management_strategy="string",
logpush=False,
logpush_public_key="string",
guardrails={
"prompt": {
"p1": "string",
"s1": "string",
"s10": "string",
"s11": "string",
"s12": "string",
"s13": "string",
"s2": "string",
"s3": "string",
"s4": "string",
"s5": "string",
"s6": "string",
"s7": "string",
"s8": "string",
"s9": "string",
},
"response": {
"p1": "string",
"s1": "string",
"s10": "string",
"s11": "string",
"s12": "string",
"s13": "string",
"s2": "string",
"s3": "string",
"s4": "string",
"s5": "string",
"s6": "string",
"s7": "string",
"s8": "string",
"s9": "string",
},
},
dlp={
"enabled": False,
"action": "string",
"policies": [{
"action": "string",
"checks": ["string"],
"enabled": False,
"id": "string",
"profiles": ["string"],
}],
"profiles": ["string"],
},
authentication=False,
rate_limiting_technique="string",
log_management=0,
retry_delay=0,
retry_max_attempts=0,
spend_limits={
"enabled": False,
"rules": [{
"limit": float(0),
"limit_type": "string",
"window": 0,
"ai_gateway_provider": {
"mode": "string",
"values": ["string"],
},
"enabled": False,
"id": "string",
"metadata": {
"string": {
"mode": "string",
"values": ["string"],
},
},
"model": {
"mode": "string",
"values": ["string"],
},
"technique": "string",
}],
},
store_id="string",
stripe={
"authorization": "string",
"usage_events": [{
"payload": "string",
}],
},
workers_ai_billing_mode="string",
zdr=False)
const aiGatewayResource = new cloudflare.AiGateway("aiGatewayResource", {
accountId: "string",
aiGatewayId: "string",
rateLimitingLimit: 0,
cacheInvalidateOnUpdate: false,
cacheTtl: 0,
collectLogs: false,
rateLimitingInterval: 0,
otels: [{
headers: {
string: "string",
},
url: "string",
authorization: "string",
contentType: "string",
}],
retryBackoff: "string",
logManagementStrategy: "string",
logpush: false,
logpushPublicKey: "string",
guardrails: {
prompt: {
p1: "string",
s1: "string",
s10: "string",
s11: "string",
s12: "string",
s13: "string",
s2: "string",
s3: "string",
s4: "string",
s5: "string",
s6: "string",
s7: "string",
s8: "string",
s9: "string",
},
response: {
p1: "string",
s1: "string",
s10: "string",
s11: "string",
s12: "string",
s13: "string",
s2: "string",
s3: "string",
s4: "string",
s5: "string",
s6: "string",
s7: "string",
s8: "string",
s9: "string",
},
},
dlp: {
enabled: false,
action: "string",
policies: [{
action: "string",
checks: ["string"],
enabled: false,
id: "string",
profiles: ["string"],
}],
profiles: ["string"],
},
authentication: false,
rateLimitingTechnique: "string",
logManagement: 0,
retryDelay: 0,
retryMaxAttempts: 0,
spendLimits: {
enabled: false,
rules: [{
limit: 0,
limitType: "string",
window: 0,
aiGatewayProvider: {
mode: "string",
values: ["string"],
},
enabled: false,
id: "string",
metadata: {
string: {
mode: "string",
values: ["string"],
},
},
model: {
mode: "string",
values: ["string"],
},
technique: "string",
}],
},
storeId: "string",
stripe: {
authorization: "string",
usageEvents: [{
payload: "string",
}],
},
workersAiBillingMode: "string",
zdr: false,
});
type: cloudflare:AiGateway
properties:
accountId: string
aiGatewayId: string
authentication: false
cacheInvalidateOnUpdate: false
cacheTtl: 0
collectLogs: false
dlp:
action: string
enabled: false
policies:
- action: string
checks:
- string
enabled: false
id: string
profiles:
- string
profiles:
- string
guardrails:
prompt:
p1: string
s1: string
s2: string
s3: string
s4: string
s5: string
s6: string
s7: string
s8: string
s9: string
s10: string
s11: string
s12: string
s13: string
response:
p1: string
s1: string
s2: string
s3: string
s4: string
s5: string
s6: string
s7: string
s8: string
s9: string
s10: string
s11: string
s12: string
s13: string
logManagement: 0
logManagementStrategy: string
logpush: false
logpushPublicKey: string
otels:
- authorization: string
contentType: string
headers:
string: string
url: string
rateLimitingInterval: 0
rateLimitingLimit: 0
rateLimitingTechnique: string
retryBackoff: string
retryDelay: 0
retryMaxAttempts: 0
spendLimits:
enabled: false
rules:
- aiGatewayProvider:
mode: string
values:
- string
enabled: false
id: string
limit: 0
limitType: string
metadata:
string:
mode: string
values:
- string
model:
mode: string
values:
- string
technique: string
window: 0
storeId: string
stripe:
authorization: string
usageEvents:
- payload: string
workersAiBillingMode: string
zdr: false
AiGateway 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 AiGateway resource accepts the following input properties:
- Account
Id string - Ai
Gateway stringId - gateway id
- Cache
Invalidate boolOn Update - Cache
Ttl int - Collect
Logs bool - Rate
Limiting intInterval - Rate
Limiting intLimit - Authentication bool
- Dlp
Ai
Gateway Dlp - Guardrails
Ai
Gateway Guardrails - Log
Management int - Log
Management stringStrategy - Available values: "STOPINSERTING", "DELETEOLDEST".
- Logpush bool
- Logpush
Public stringKey - Otels
List<Ai
Gateway Otel> - Rate
Limiting stringTechnique - Available values: "fixed", "sliding".
- Retry
Backoff string - Backoff strategy for retry delays Available values: "constant", "linear", "exponential".
- Retry
Delay int - Delay between retry attempts in milliseconds (0-5000)
- Retry
Max intAttempts - Maximum number of retry attempts for failed requests (1-5)
- Spend
Limits AiGateway Spend Limits - Store
Id string - Stripe
Ai
Gateway Stripe - Workers
Ai stringBilling Mode - Controls how Workers AI inference calls routed through this gateway are billed. Only 'postpaid' is currently supported. Available values: "postpaid".
- Zdr bool
- Account
Id string - Ai
Gateway stringId - gateway id
- Cache
Invalidate boolOn Update - Cache
Ttl int - Collect
Logs bool - Rate
Limiting intInterval - Rate
Limiting intLimit - Authentication bool
- Dlp
Ai
Gateway Dlp Args - Guardrails
Ai
Gateway Guardrails Args - Log
Management int - Log
Management stringStrategy - Available values: "STOPINSERTING", "DELETEOLDEST".
- Logpush bool
- Logpush
Public stringKey - Otels
[]Ai
Gateway Otel Args - Rate
Limiting stringTechnique - Available values: "fixed", "sliding".
- Retry
Backoff string - Backoff strategy for retry delays Available values: "constant", "linear", "exponential".
- Retry
Delay int - Delay between retry attempts in milliseconds (0-5000)
- Retry
Max intAttempts - Maximum number of retry attempts for failed requests (1-5)
- Spend
Limits AiGateway Spend Limits Args - Store
Id string - Stripe
Ai
Gateway Stripe Args - Workers
Ai stringBilling Mode - Controls how Workers AI inference calls routed through this gateway are billed. Only 'postpaid' is currently supported. Available values: "postpaid".
- Zdr bool
- account_
id string - ai_
gateway_ stringid - gateway id
- cache_
invalidate_ boolon_ update - cache_
ttl number - collect_
logs bool - rate_
limiting_ numberinterval - rate_
limiting_ numberlimit - authentication bool
- dlp object
- guardrails object
- log_
management number - log_
management_ stringstrategy - Available values: "STOPINSERTING", "DELETEOLDEST".
- logpush bool
- logpush_
public_ stringkey - otels list(object)
- rate_
limiting_ stringtechnique - Available values: "fixed", "sliding".
- retry_
backoff string - Backoff strategy for retry delays Available values: "constant", "linear", "exponential".
- retry_
delay number - Delay between retry attempts in milliseconds (0-5000)
- retry_
max_ numberattempts - Maximum number of retry attempts for failed requests (1-5)
- spend_
limits object - store_
id string - stripe object
- workers_
ai_ stringbilling_ mode - Controls how Workers AI inference calls routed through this gateway are billed. Only 'postpaid' is currently supported. Available values: "postpaid".
- zdr bool
- account
Id String - ai
Gateway StringId - gateway id
- cache
Invalidate BooleanOn Update - cache
Ttl Integer - collect
Logs Boolean - rate
Limiting IntegerInterval - rate
Limiting IntegerLimit - authentication Boolean
- dlp
Ai
Gateway Dlp - guardrails
Ai
Gateway Guardrails - log
Management Integer - log
Management StringStrategy - Available values: "STOPINSERTING", "DELETEOLDEST".
- logpush Boolean
- logpush
Public StringKey - otels
List<Ai
Gateway Otel> - rate
Limiting StringTechnique - Available values: "fixed", "sliding".
- retry
Backoff String - Backoff strategy for retry delays Available values: "constant", "linear", "exponential".
- retry
Delay Integer - Delay between retry attempts in milliseconds (0-5000)
- retry
Max IntegerAttempts - Maximum number of retry attempts for failed requests (1-5)
- spend
Limits AiGateway Spend Limits - store
Id String - stripe
Ai
Gateway Stripe - workers
Ai StringBilling Mode - Controls how Workers AI inference calls routed through this gateway are billed. Only 'postpaid' is currently supported. Available values: "postpaid".
- zdr Boolean
- account
Id string - ai
Gateway stringId - gateway id
- cache
Invalidate booleanOn Update - cache
Ttl number - collect
Logs boolean - rate
Limiting numberInterval - rate
Limiting numberLimit - authentication boolean
- dlp
Ai
Gateway Dlp - guardrails
Ai
Gateway Guardrails - log
Management number - log
Management stringStrategy - Available values: "STOPINSERTING", "DELETEOLDEST".
- logpush boolean
- logpush
Public stringKey - otels
Ai
Gateway Otel[] - rate
Limiting stringTechnique - Available values: "fixed", "sliding".
- retry
Backoff string - Backoff strategy for retry delays Available values: "constant", "linear", "exponential".
- retry
Delay number - Delay between retry attempts in milliseconds (0-5000)
- retry
Max numberAttempts - Maximum number of retry attempts for failed requests (1-5)
- spend
Limits AiGateway Spend Limits - store
Id string - stripe
Ai
Gateway Stripe - workers
Ai stringBilling Mode - Controls how Workers AI inference calls routed through this gateway are billed. Only 'postpaid' is currently supported. Available values: "postpaid".
- zdr boolean
- account_
id str - ai_
gateway_ strid - gateway id
- cache_
invalidate_ boolon_ update - cache_
ttl int - collect_
logs bool - rate_
limiting_ intinterval - rate_
limiting_ intlimit - authentication bool
- dlp
Ai
Gateway Dlp Args - guardrails
Ai
Gateway Guardrails Args - log_
management int - log_
management_ strstrategy - Available values: "STOPINSERTING", "DELETEOLDEST".
- logpush bool
- logpush_
public_ strkey - otels
Sequence[Ai
Gateway Otel Args] - rate_
limiting_ strtechnique - Available values: "fixed", "sliding".
- retry_
backoff str - Backoff strategy for retry delays Available values: "constant", "linear", "exponential".
- retry_
delay int - Delay between retry attempts in milliseconds (0-5000)
- retry_
max_ intattempts - Maximum number of retry attempts for failed requests (1-5)
- spend_
limits AiGateway Spend Limits Args - store_
id str - stripe
Ai
Gateway Stripe Args - workers_
ai_ strbilling_ mode - Controls how Workers AI inference calls routed through this gateway are billed. Only 'postpaid' is currently supported. Available values: "postpaid".
- zdr bool
- account
Id String - ai
Gateway StringId - gateway id
- cache
Invalidate BooleanOn Update - cache
Ttl Number - collect
Logs Boolean - rate
Limiting NumberInterval - rate
Limiting NumberLimit - authentication Boolean
- dlp Property Map
- guardrails Property Map
- log
Management Number - log
Management StringStrategy - Available values: "STOPINSERTING", "DELETEOLDEST".
- logpush Boolean
- logpush
Public StringKey - otels List<Property Map>
- rate
Limiting StringTechnique - Available values: "fixed", "sliding".
- retry
Backoff String - Backoff strategy for retry delays Available values: "constant", "linear", "exponential".
- retry
Delay Number - Delay between retry attempts in milliseconds (0-5000)
- retry
Max NumberAttempts - Maximum number of retry attempts for failed requests (1-5)
- spend
Limits Property Map - store
Id String - stripe Property Map
- workers
Ai StringBilling Mode - Controls how Workers AI inference calls routed through this gateway are billed. Only 'postpaid' is currently supported. Available values: "postpaid".
- zdr Boolean
Outputs
All input properties are implicitly available as output properties. Additionally, the AiGateway resource produces the following output properties:
- Created
At string - Id string
- The provider-assigned unique ID for this managed resource.
- Is
Default bool - Modified
At string
- Created
At string - Id string
- The provider-assigned unique ID for this managed resource.
- Is
Default bool - Modified
At string
- created_
at string - id string
- The provider-assigned unique ID for this managed resource.
- is_
default bool - modified_
at string
- created
At String - id String
- The provider-assigned unique ID for this managed resource.
- is
Default Boolean - modified
At String
- created
At string - id string
- The provider-assigned unique ID for this managed resource.
- is
Default boolean - modified
At string
- created_
at str - id str
- The provider-assigned unique ID for this managed resource.
- is_
default bool - modified_
at str
- created
At String - id String
- The provider-assigned unique ID for this managed resource.
- is
Default Boolean - modified
At String
Look up Existing AiGateway Resource
Get an existing AiGateway 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?: AiGatewayState, opts?: CustomResourceOptions): AiGateway@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
ai_gateway_id: Optional[str] = None,
authentication: Optional[bool] = None,
cache_invalidate_on_update: Optional[bool] = None,
cache_ttl: Optional[int] = None,
collect_logs: Optional[bool] = None,
created_at: Optional[str] = None,
dlp: Optional[AiGatewayDlpArgs] = None,
guardrails: Optional[AiGatewayGuardrailsArgs] = None,
is_default: Optional[bool] = None,
log_management: Optional[int] = None,
log_management_strategy: Optional[str] = None,
logpush: Optional[bool] = None,
logpush_public_key: Optional[str] = None,
modified_at: Optional[str] = None,
otels: Optional[Sequence[AiGatewayOtelArgs]] = None,
rate_limiting_interval: Optional[int] = None,
rate_limiting_limit: Optional[int] = None,
rate_limiting_technique: Optional[str] = None,
retry_backoff: Optional[str] = None,
retry_delay: Optional[int] = None,
retry_max_attempts: Optional[int] = None,
spend_limits: Optional[AiGatewaySpendLimitsArgs] = None,
store_id: Optional[str] = None,
stripe: Optional[AiGatewayStripeArgs] = None,
workers_ai_billing_mode: Optional[str] = None,
zdr: Optional[bool] = None) -> AiGatewayfunc GetAiGateway(ctx *Context, name string, id IDInput, state *AiGatewayState, opts ...ResourceOption) (*AiGateway, error)public static AiGateway Get(string name, Input<string> id, AiGatewayState? state, CustomResourceOptions? opts = null)public static AiGateway get(String name, Output<String> id, AiGatewayState state, CustomResourceOptions options)resources: _: type: cloudflare:AiGateway get: id: ${id}import {
to = cloudflare_ai_gateway.example
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.
- Account
Id string - Ai
Gateway stringId - gateway id
- Authentication bool
- Cache
Invalidate boolOn Update - Cache
Ttl int - Collect
Logs bool - Created
At string - Dlp
Ai
Gateway Dlp - Guardrails
Ai
Gateway Guardrails - Is
Default bool - Log
Management int - Log
Management stringStrategy - Available values: "STOPINSERTING", "DELETEOLDEST".
- Logpush bool
- Logpush
Public stringKey - Modified
At string - Otels
List<Ai
Gateway Otel> - Rate
Limiting intInterval - Rate
Limiting intLimit - Rate
Limiting stringTechnique - Available values: "fixed", "sliding".
- Retry
Backoff string - Backoff strategy for retry delays Available values: "constant", "linear", "exponential".
- Retry
Delay int - Delay between retry attempts in milliseconds (0-5000)
- Retry
Max intAttempts - Maximum number of retry attempts for failed requests (1-5)
- Spend
Limits AiGateway Spend Limits - Store
Id string - Stripe
Ai
Gateway Stripe - Workers
Ai stringBilling Mode - Controls how Workers AI inference calls routed through this gateway are billed. Only 'postpaid' is currently supported. Available values: "postpaid".
- Zdr bool
- Account
Id string - Ai
Gateway stringId - gateway id
- Authentication bool
- Cache
Invalidate boolOn Update - Cache
Ttl int - Collect
Logs bool - Created
At string - Dlp
Ai
Gateway Dlp Args - Guardrails
Ai
Gateway Guardrails Args - Is
Default bool - Log
Management int - Log
Management stringStrategy - Available values: "STOPINSERTING", "DELETEOLDEST".
- Logpush bool
- Logpush
Public stringKey - Modified
At string - Otels
[]Ai
Gateway Otel Args - Rate
Limiting intInterval - Rate
Limiting intLimit - Rate
Limiting stringTechnique - Available values: "fixed", "sliding".
- Retry
Backoff string - Backoff strategy for retry delays Available values: "constant", "linear", "exponential".
- Retry
Delay int - Delay between retry attempts in milliseconds (0-5000)
- Retry
Max intAttempts - Maximum number of retry attempts for failed requests (1-5)
- Spend
Limits AiGateway Spend Limits Args - Store
Id string - Stripe
Ai
Gateway Stripe Args - Workers
Ai stringBilling Mode - Controls how Workers AI inference calls routed through this gateway are billed. Only 'postpaid' is currently supported. Available values: "postpaid".
- Zdr bool
- account_
id string - ai_
gateway_ stringid - gateway id
- authentication bool
- cache_
invalidate_ boolon_ update - cache_
ttl number - collect_
logs bool - created_
at string - dlp object
- guardrails object
- is_
default bool - log_
management number - log_
management_ stringstrategy - Available values: "STOPINSERTING", "DELETEOLDEST".
- logpush bool
- logpush_
public_ stringkey - modified_
at string - otels list(object)
- rate_
limiting_ numberinterval - rate_
limiting_ numberlimit - rate_
limiting_ stringtechnique - Available values: "fixed", "sliding".
- retry_
backoff string - Backoff strategy for retry delays Available values: "constant", "linear", "exponential".
- retry_
delay number - Delay between retry attempts in milliseconds (0-5000)
- retry_
max_ numberattempts - Maximum number of retry attempts for failed requests (1-5)
- spend_
limits object - store_
id string - stripe object
- workers_
ai_ stringbilling_ mode - Controls how Workers AI inference calls routed through this gateway are billed. Only 'postpaid' is currently supported. Available values: "postpaid".
- zdr bool
- account
Id String - ai
Gateway StringId - gateway id
- authentication Boolean
- cache
Invalidate BooleanOn Update - cache
Ttl Integer - collect
Logs Boolean - created
At String - dlp
Ai
Gateway Dlp - guardrails
Ai
Gateway Guardrails - is
Default Boolean - log
Management Integer - log
Management StringStrategy - Available values: "STOPINSERTING", "DELETEOLDEST".
- logpush Boolean
- logpush
Public StringKey - modified
At String - otels
List<Ai
Gateway Otel> - rate
Limiting IntegerInterval - rate
Limiting IntegerLimit - rate
Limiting StringTechnique - Available values: "fixed", "sliding".
- retry
Backoff String - Backoff strategy for retry delays Available values: "constant", "linear", "exponential".
- retry
Delay Integer - Delay between retry attempts in milliseconds (0-5000)
- retry
Max IntegerAttempts - Maximum number of retry attempts for failed requests (1-5)
- spend
Limits AiGateway Spend Limits - store
Id String - stripe
Ai
Gateway Stripe - workers
Ai StringBilling Mode - Controls how Workers AI inference calls routed through this gateway are billed. Only 'postpaid' is currently supported. Available values: "postpaid".
- zdr Boolean
- account
Id string - ai
Gateway stringId - gateway id
- authentication boolean
- cache
Invalidate booleanOn Update - cache
Ttl number - collect
Logs boolean - created
At string - dlp
Ai
Gateway Dlp - guardrails
Ai
Gateway Guardrails - is
Default boolean - log
Management number - log
Management stringStrategy - Available values: "STOPINSERTING", "DELETEOLDEST".
- logpush boolean
- logpush
Public stringKey - modified
At string - otels
Ai
Gateway Otel[] - rate
Limiting numberInterval - rate
Limiting numberLimit - rate
Limiting stringTechnique - Available values: "fixed", "sliding".
- retry
Backoff string - Backoff strategy for retry delays Available values: "constant", "linear", "exponential".
- retry
Delay number - Delay between retry attempts in milliseconds (0-5000)
- retry
Max numberAttempts - Maximum number of retry attempts for failed requests (1-5)
- spend
Limits AiGateway Spend Limits - store
Id string - stripe
Ai
Gateway Stripe - workers
Ai stringBilling Mode - Controls how Workers AI inference calls routed through this gateway are billed. Only 'postpaid' is currently supported. Available values: "postpaid".
- zdr boolean
- account_
id str - ai_
gateway_ strid - gateway id
- authentication bool
- cache_
invalidate_ boolon_ update - cache_
ttl int - collect_
logs bool - created_
at str - dlp
Ai
Gateway Dlp Args - guardrails
Ai
Gateway Guardrails Args - is_
default bool - log_
management int - log_
management_ strstrategy - Available values: "STOPINSERTING", "DELETEOLDEST".
- logpush bool
- logpush_
public_ strkey - modified_
at str - otels
Sequence[Ai
Gateway Otel Args] - rate_
limiting_ intinterval - rate_
limiting_ intlimit - rate_
limiting_ strtechnique - Available values: "fixed", "sliding".
- retry_
backoff str - Backoff strategy for retry delays Available values: "constant", "linear", "exponential".
- retry_
delay int - Delay between retry attempts in milliseconds (0-5000)
- retry_
max_ intattempts - Maximum number of retry attempts for failed requests (1-5)
- spend_
limits AiGateway Spend Limits Args - store_
id str - stripe
Ai
Gateway Stripe Args - workers_
ai_ strbilling_ mode - Controls how Workers AI inference calls routed through this gateway are billed. Only 'postpaid' is currently supported. Available values: "postpaid".
- zdr bool
- account
Id String - ai
Gateway StringId - gateway id
- authentication Boolean
- cache
Invalidate BooleanOn Update - cache
Ttl Number - collect
Logs Boolean - created
At String - dlp Property Map
- guardrails Property Map
- is
Default Boolean - log
Management Number - log
Management StringStrategy - Available values: "STOPINSERTING", "DELETEOLDEST".
- logpush Boolean
- logpush
Public StringKey - modified
At String - otels List<Property Map>
- rate
Limiting NumberInterval - rate
Limiting NumberLimit - rate
Limiting StringTechnique - Available values: "fixed", "sliding".
- retry
Backoff String - Backoff strategy for retry delays Available values: "constant", "linear", "exponential".
- retry
Delay Number - Delay between retry attempts in milliseconds (0-5000)
- retry
Max NumberAttempts - Maximum number of retry attempts for failed requests (1-5)
- spend
Limits Property Map - store
Id String - stripe Property Map
- workers
Ai StringBilling Mode - Controls how Workers AI inference calls routed through this gateway are billed. Only 'postpaid' is currently supported. Available values: "postpaid".
- zdr Boolean
Supporting Types
AiGatewayDlp, AiGatewayDlpArgs
- Enabled bool
- Action string
- Available values: "BLOCK", "FLAG".
- Policies
List<Ai
Gateway Dlp Policy> - Profiles List<string>
- Enabled bool
- Action string
- Available values: "BLOCK", "FLAG".
- Policies
[]Ai
Gateway Dlp Policy - Profiles []string
- enabled bool
- action string
- Available values: "BLOCK", "FLAG".
- policies list(object)
- profiles list(string)
- enabled Boolean
- action String
- Available values: "BLOCK", "FLAG".
- policies
List<Ai
Gateway Dlp Policy> - profiles List<String>
- enabled boolean
- action string
- Available values: "BLOCK", "FLAG".
- policies
Ai
Gateway Dlp Policy[] - profiles string[]
- enabled bool
- action str
- Available values: "BLOCK", "FLAG".
- policies
Sequence[Ai
Gateway Dlp Policy] - profiles Sequence[str]
- enabled Boolean
- action String
- Available values: "BLOCK", "FLAG".
- policies List<Property Map>
- profiles List<String>
AiGatewayDlpPolicy, AiGatewayDlpPolicyArgs
AiGatewayGuardrails, AiGatewayGuardrailsArgs
AiGatewayGuardrailsPrompt, AiGatewayGuardrailsPromptArgs
- P1 string
- Available values: "FLAG", "BLOCK".
- S1 string
- Available values: "FLAG", "BLOCK".
- S10 string
- Available values: "FLAG", "BLOCK".
- S11 string
- Available values: "FLAG", "BLOCK".
- S12 string
- Available values: "FLAG", "BLOCK".
- S13 string
- Available values: "FLAG", "BLOCK".
- S2 string
- Available values: "FLAG", "BLOCK".
- S3 string
- Available values: "FLAG", "BLOCK".
- S4 string
- Available values: "FLAG", "BLOCK".
- S5 string
- Available values: "FLAG", "BLOCK".
- S6 string
- Available values: "FLAG", "BLOCK".
- S7 string
- Available values: "FLAG", "BLOCK".
- S8 string
- Available values: "FLAG", "BLOCK".
- S9 string
- Available values: "FLAG", "BLOCK".
- P1 string
- Available values: "FLAG", "BLOCK".
- S1 string
- Available values: "FLAG", "BLOCK".
- S10 string
- Available values: "FLAG", "BLOCK".
- S11 string
- Available values: "FLAG", "BLOCK".
- S12 string
- Available values: "FLAG", "BLOCK".
- S13 string
- Available values: "FLAG", "BLOCK".
- S2 string
- Available values: "FLAG", "BLOCK".
- S3 string
- Available values: "FLAG", "BLOCK".
- S4 string
- Available values: "FLAG", "BLOCK".
- S5 string
- Available values: "FLAG", "BLOCK".
- S6 string
- Available values: "FLAG", "BLOCK".
- S7 string
- Available values: "FLAG", "BLOCK".
- S8 string
- Available values: "FLAG", "BLOCK".
- S9 string
- Available values: "FLAG", "BLOCK".
- p1 string
- Available values: "FLAG", "BLOCK".
- s1 string
- Available values: "FLAG", "BLOCK".
- s10 string
- Available values: "FLAG", "BLOCK".
- s11 string
- Available values: "FLAG", "BLOCK".
- s12 string
- Available values: "FLAG", "BLOCK".
- s13 string
- Available values: "FLAG", "BLOCK".
- s2 string
- Available values: "FLAG", "BLOCK".
- s3 string
- Available values: "FLAG", "BLOCK".
- s4 string
- Available values: "FLAG", "BLOCK".
- s5 string
- Available values: "FLAG", "BLOCK".
- s6 string
- Available values: "FLAG", "BLOCK".
- s7 string
- Available values: "FLAG", "BLOCK".
- s8 string
- Available values: "FLAG", "BLOCK".
- s9 string
- Available values: "FLAG", "BLOCK".
- p1 String
- Available values: "FLAG", "BLOCK".
- s1 String
- Available values: "FLAG", "BLOCK".
- s10 String
- Available values: "FLAG", "BLOCK".
- s11 String
- Available values: "FLAG", "BLOCK".
- s12 String
- Available values: "FLAG", "BLOCK".
- s13 String
- Available values: "FLAG", "BLOCK".
- s2 String
- Available values: "FLAG", "BLOCK".
- s3 String
- Available values: "FLAG", "BLOCK".
- s4 String
- Available values: "FLAG", "BLOCK".
- s5 String
- Available values: "FLAG", "BLOCK".
- s6 String
- Available values: "FLAG", "BLOCK".
- s7 String
- Available values: "FLAG", "BLOCK".
- s8 String
- Available values: "FLAG", "BLOCK".
- s9 String
- Available values: "FLAG", "BLOCK".
- p1 string
- Available values: "FLAG", "BLOCK".
- s1 string
- Available values: "FLAG", "BLOCK".
- s10 string
- Available values: "FLAG", "BLOCK".
- s11 string
- Available values: "FLAG", "BLOCK".
- s12 string
- Available values: "FLAG", "BLOCK".
- s13 string
- Available values: "FLAG", "BLOCK".
- s2 string
- Available values: "FLAG", "BLOCK".
- s3 string
- Available values: "FLAG", "BLOCK".
- s4 string
- Available values: "FLAG", "BLOCK".
- s5 string
- Available values: "FLAG", "BLOCK".
- s6 string
- Available values: "FLAG", "BLOCK".
- s7 string
- Available values: "FLAG", "BLOCK".
- s8 string
- Available values: "FLAG", "BLOCK".
- s9 string
- Available values: "FLAG", "BLOCK".
- p1 str
- Available values: "FLAG", "BLOCK".
- s1 str
- Available values: "FLAG", "BLOCK".
- s10 str
- Available values: "FLAG", "BLOCK".
- s11 str
- Available values: "FLAG", "BLOCK".
- s12 str
- Available values: "FLAG", "BLOCK".
- s13 str
- Available values: "FLAG", "BLOCK".
- s2 str
- Available values: "FLAG", "BLOCK".
- s3 str
- Available values: "FLAG", "BLOCK".
- s4 str
- Available values: "FLAG", "BLOCK".
- s5 str
- Available values: "FLAG", "BLOCK".
- s6 str
- Available values: "FLAG", "BLOCK".
- s7 str
- Available values: "FLAG", "BLOCK".
- s8 str
- Available values: "FLAG", "BLOCK".
- s9 str
- Available values: "FLAG", "BLOCK".
- p1 String
- Available values: "FLAG", "BLOCK".
- s1 String
- Available values: "FLAG", "BLOCK".
- s10 String
- Available values: "FLAG", "BLOCK".
- s11 String
- Available values: "FLAG", "BLOCK".
- s12 String
- Available values: "FLAG", "BLOCK".
- s13 String
- Available values: "FLAG", "BLOCK".
- s2 String
- Available values: "FLAG", "BLOCK".
- s3 String
- Available values: "FLAG", "BLOCK".
- s4 String
- Available values: "FLAG", "BLOCK".
- s5 String
- Available values: "FLAG", "BLOCK".
- s6 String
- Available values: "FLAG", "BLOCK".
- s7 String
- Available values: "FLAG", "BLOCK".
- s8 String
- Available values: "FLAG", "BLOCK".
- s9 String
- Available values: "FLAG", "BLOCK".
AiGatewayGuardrailsResponse, AiGatewayGuardrailsResponseArgs
- P1 string
- Available values: "FLAG", "BLOCK".
- S1 string
- Available values: "FLAG", "BLOCK".
- S10 string
- Available values: "FLAG", "BLOCK".
- S11 string
- Available values: "FLAG", "BLOCK".
- S12 string
- Available values: "FLAG", "BLOCK".
- S13 string
- Available values: "FLAG", "BLOCK".
- S2 string
- Available values: "FLAG", "BLOCK".
- S3 string
- Available values: "FLAG", "BLOCK".
- S4 string
- Available values: "FLAG", "BLOCK".
- S5 string
- Available values: "FLAG", "BLOCK".
- S6 string
- Available values: "FLAG", "BLOCK".
- S7 string
- Available values: "FLAG", "BLOCK".
- S8 string
- Available values: "FLAG", "BLOCK".
- S9 string
- Available values: "FLAG", "BLOCK".
- P1 string
- Available values: "FLAG", "BLOCK".
- S1 string
- Available values: "FLAG", "BLOCK".
- S10 string
- Available values: "FLAG", "BLOCK".
- S11 string
- Available values: "FLAG", "BLOCK".
- S12 string
- Available values: "FLAG", "BLOCK".
- S13 string
- Available values: "FLAG", "BLOCK".
- S2 string
- Available values: "FLAG", "BLOCK".
- S3 string
- Available values: "FLAG", "BLOCK".
- S4 string
- Available values: "FLAG", "BLOCK".
- S5 string
- Available values: "FLAG", "BLOCK".
- S6 string
- Available values: "FLAG", "BLOCK".
- S7 string
- Available values: "FLAG", "BLOCK".
- S8 string
- Available values: "FLAG", "BLOCK".
- S9 string
- Available values: "FLAG", "BLOCK".
- p1 string
- Available values: "FLAG", "BLOCK".
- s1 string
- Available values: "FLAG", "BLOCK".
- s10 string
- Available values: "FLAG", "BLOCK".
- s11 string
- Available values: "FLAG", "BLOCK".
- s12 string
- Available values: "FLAG", "BLOCK".
- s13 string
- Available values: "FLAG", "BLOCK".
- s2 string
- Available values: "FLAG", "BLOCK".
- s3 string
- Available values: "FLAG", "BLOCK".
- s4 string
- Available values: "FLAG", "BLOCK".
- s5 string
- Available values: "FLAG", "BLOCK".
- s6 string
- Available values: "FLAG", "BLOCK".
- s7 string
- Available values: "FLAG", "BLOCK".
- s8 string
- Available values: "FLAG", "BLOCK".
- s9 string
- Available values: "FLAG", "BLOCK".
- p1 String
- Available values: "FLAG", "BLOCK".
- s1 String
- Available values: "FLAG", "BLOCK".
- s10 String
- Available values: "FLAG", "BLOCK".
- s11 String
- Available values: "FLAG", "BLOCK".
- s12 String
- Available values: "FLAG", "BLOCK".
- s13 String
- Available values: "FLAG", "BLOCK".
- s2 String
- Available values: "FLAG", "BLOCK".
- s3 String
- Available values: "FLAG", "BLOCK".
- s4 String
- Available values: "FLAG", "BLOCK".
- s5 String
- Available values: "FLAG", "BLOCK".
- s6 String
- Available values: "FLAG", "BLOCK".
- s7 String
- Available values: "FLAG", "BLOCK".
- s8 String
- Available values: "FLAG", "BLOCK".
- s9 String
- Available values: "FLAG", "BLOCK".
- p1 string
- Available values: "FLAG", "BLOCK".
- s1 string
- Available values: "FLAG", "BLOCK".
- s10 string
- Available values: "FLAG", "BLOCK".
- s11 string
- Available values: "FLAG", "BLOCK".
- s12 string
- Available values: "FLAG", "BLOCK".
- s13 string
- Available values: "FLAG", "BLOCK".
- s2 string
- Available values: "FLAG", "BLOCK".
- s3 string
- Available values: "FLAG", "BLOCK".
- s4 string
- Available values: "FLAG", "BLOCK".
- s5 string
- Available values: "FLAG", "BLOCK".
- s6 string
- Available values: "FLAG", "BLOCK".
- s7 string
- Available values: "FLAG", "BLOCK".
- s8 string
- Available values: "FLAG", "BLOCK".
- s9 string
- Available values: "FLAG", "BLOCK".
- p1 str
- Available values: "FLAG", "BLOCK".
- s1 str
- Available values: "FLAG", "BLOCK".
- s10 str
- Available values: "FLAG", "BLOCK".
- s11 str
- Available values: "FLAG", "BLOCK".
- s12 str
- Available values: "FLAG", "BLOCK".
- s13 str
- Available values: "FLAG", "BLOCK".
- s2 str
- Available values: "FLAG", "BLOCK".
- s3 str
- Available values: "FLAG", "BLOCK".
- s4 str
- Available values: "FLAG", "BLOCK".
- s5 str
- Available values: "FLAG", "BLOCK".
- s6 str
- Available values: "FLAG", "BLOCK".
- s7 str
- Available values: "FLAG", "BLOCK".
- s8 str
- Available values: "FLAG", "BLOCK".
- s9 str
- Available values: "FLAG", "BLOCK".
- p1 String
- Available values: "FLAG", "BLOCK".
- s1 String
- Available values: "FLAG", "BLOCK".
- s10 String
- Available values: "FLAG", "BLOCK".
- s11 String
- Available values: "FLAG", "BLOCK".
- s12 String
- Available values: "FLAG", "BLOCK".
- s13 String
- Available values: "FLAG", "BLOCK".
- s2 String
- Available values: "FLAG", "BLOCK".
- s3 String
- Available values: "FLAG", "BLOCK".
- s4 String
- Available values: "FLAG", "BLOCK".
- s5 String
- Available values: "FLAG", "BLOCK".
- s6 String
- Available values: "FLAG", "BLOCK".
- s7 String
- Available values: "FLAG", "BLOCK".
- s8 String
- Available values: "FLAG", "BLOCK".
- s9 String
- Available values: "FLAG", "BLOCK".
AiGatewayOtel, AiGatewayOtelArgs
- Headers Dictionary<string, string>
- Url string
- string
- Content
Type string - Available values: "json", "protobuf".
- Headers map[string]string
- Url string
- string
- Content
Type string - Available values: "json", "protobuf".
- headers map(string)
- url string
- string
- content_
type string - Available values: "json", "protobuf".
- headers Map<String,String>
- url String
- String
- content
Type String - Available values: "json", "protobuf".
- headers {[key: string]: string}
- url string
- string
- content
Type string - Available values: "json", "protobuf".
- headers Mapping[str, str]
- url str
- str
- content_
type str - Available values: "json", "protobuf".
- headers Map<String>
- url String
- String
- content
Type String - Available values: "json", "protobuf".
AiGatewaySpendLimits, AiGatewaySpendLimitsArgs
- enabled bool
- rules list(object)
- enabled Boolean
- rules List<Property Map>
AiGatewaySpendLimitsRule, AiGatewaySpendLimitsRuleArgs
- Limit double
- Limit
Type string - Available values: "cost".
- Window int
- Ai
Gateway AiProvider Gateway Spend Limits Rule Ai Gateway Provider - Enabled bool
- Id string
- Metadata
Dictionary<string, Ai
Gateway Spend Limits Rule Metadata> - Model
Ai
Gateway Spend Limits Rule Model - Technique string
- Available values: "fixed", "sliding".
- Limit float64
- Limit
Type string - Available values: "cost".
- Window int
- Ai
Gateway AiProvider Gateway Spend Limits Rule Ai Gateway Provider - Enabled bool
- Id string
- Metadata
map[string]Ai
Gateway Spend Limits Rule Metadata - Model
Ai
Gateway Spend Limits Rule Model - Technique string
- Available values: "fixed", "sliding".
- limit Double
- limit
Type String - Available values: "cost".
- window Integer
- ai
Gateway AiProvider Gateway Spend Limits Rule Ai Gateway Provider - enabled Boolean
- id String
- metadata
Map<String,Ai
Gateway Spend Limits Rule Metadata> - model
Ai
Gateway Spend Limits Rule Model - technique String
- Available values: "fixed", "sliding".
- limit number
- limit
Type string - Available values: "cost".
- window number
- ai
Gateway AiProvider Gateway Spend Limits Rule Ai Gateway Provider - enabled boolean
- id string
- metadata
{[key: string]: Ai
Gateway Spend Limits Rule Metadata} - model
Ai
Gateway Spend Limits Rule Model - technique string
- Available values: "fixed", "sliding".
- limit float
- limit_
type str - Available values: "cost".
- window int
- ai_
gateway_ Aiprovider Gateway Spend Limits Rule Ai Gateway Provider - enabled bool
- id str
- metadata
Mapping[str, Ai
Gateway Spend Limits Rule Metadata] - model
Ai
Gateway Spend Limits Rule Model - technique str
- Available values: "fixed", "sliding".
- limit Number
- limit
Type String - Available values: "cost".
- window Number
- ai
Gateway Property MapProvider - enabled Boolean
- id String
- metadata Map<Property Map>
- model Property Map
- technique String
- Available values: "fixed", "sliding".
AiGatewaySpendLimitsRuleAiGatewayProvider, AiGatewaySpendLimitsRuleAiGatewayProviderArgs
AiGatewaySpendLimitsRuleMetadata, AiGatewaySpendLimitsRuleMetadataArgs
AiGatewaySpendLimitsRuleModel, AiGatewaySpendLimitsRuleModelArgs
AiGatewayStripe, AiGatewayStripeArgs
- string
- usage_
events list(object)
AiGatewayStripeUsageEvent, AiGatewayStripeUsageEventArgs
- Payload string
- Payload string
- payload string
- payload String
- payload string
- payload str
- payload String
Import
$ pulumi import cloudflare:index/aiGateway:AiGateway example '<account_id>/<id>'
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Cloudflare pulumi/pulumi-cloudflare
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cloudflareTerraform Provider.
published on Thursday, Jul 16, 2026 by Pulumi