1. Packages
  2. Packages
  3. Cloudflare Provider
  4. API Docs
  5. AiGateway
Viewing docs for Cloudflare v6.15.0
published on Saturday, May 2, 2026 by Pulumi
cloudflare logo
Viewing docs for Cloudflare v6.15.0
published on Saturday, May 2, 2026 by Pulumi

    Accepted Permissions

    • AI Gateway Read
    • AI 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.Index.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.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 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
    

    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,
                  rate_limiting_interval: Optional[int] = 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,
                  logpush_public_key: Optional[str] = None,
                  authentication: Optional[bool] = None,
                  log_management_strategy: Optional[str] = None,
                  logpush: Optional[bool] = None,
                  account_id: Optional[str] = None,
                  otels: Optional[Sequence[AiGatewayOtelArgs]] = None,
                  dlp: Optional[AiGatewayDlpArgs] = None,
                  log_management: 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,
                  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.
    
    

    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.

    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:

    AiGatewayId string
    gateway id
    CacheInvalidateOnUpdate bool
    CacheTtl int
    CollectLogs bool
    RateLimitingInterval int
    RateLimitingLimit int
    AccountId string
    Authentication bool
    Dlp AiGatewayDlp
    LogManagement int
    LogManagementStrategy string
    Available values: "STOPINSERTING", "DELETEOLDEST".
    Logpush bool
    LogpushPublicKey string
    Otels List<AiGatewayOtel>
    RateLimitingTechnique string
    Available values: "fixed", "sliding".
    RetryBackoff string
    Backoff strategy for retry delays Available values: "constant", "linear", "exponential".
    RetryDelay int
    Delay between retry attempts in milliseconds (0-5000)
    RetryMaxAttempts int
    Maximum number of retry attempts for failed requests (1-5)
    StoreId string
    Stripe AiGatewayStripe
    WorkersAiBillingMode string
    Controls how Workers AI inference calls routed through this gateway are billed. Only 'postpaid' is currently supported. Available values: "postpaid".
    Zdr bool
    AiGatewayId string
    gateway id
    CacheInvalidateOnUpdate bool
    CacheTtl int
    CollectLogs bool
    RateLimitingInterval int
    RateLimitingLimit int
    AccountId string
    Authentication bool
    Dlp AiGatewayDlpArgs
    LogManagement int
    LogManagementStrategy string
    Available values: "STOPINSERTING", "DELETEOLDEST".
    Logpush bool
    LogpushPublicKey string
    Otels []AiGatewayOtelArgs
    RateLimitingTechnique string
    Available values: "fixed", "sliding".
    RetryBackoff string
    Backoff strategy for retry delays Available values: "constant", "linear", "exponential".
    RetryDelay int
    Delay between retry attempts in milliseconds (0-5000)
    RetryMaxAttempts int
    Maximum number of retry attempts for failed requests (1-5)
    StoreId string
    Stripe AiGatewayStripeArgs
    WorkersAiBillingMode string
    Controls how Workers AI inference calls routed through this gateway are billed. Only 'postpaid' is currently supported. Available values: "postpaid".
    Zdr bool
    aiGatewayId String
    gateway id
    cacheInvalidateOnUpdate Boolean
    cacheTtl Integer
    collectLogs Boolean
    rateLimitingInterval Integer
    rateLimitingLimit Integer
    accountId String
    authentication Boolean
    dlp AiGatewayDlp
    logManagement Integer
    logManagementStrategy String
    Available values: "STOPINSERTING", "DELETEOLDEST".
    logpush Boolean
    logpushPublicKey String
    otels List<AiGatewayOtel>
    rateLimitingTechnique String
    Available values: "fixed", "sliding".
    retryBackoff String
    Backoff strategy for retry delays Available values: "constant", "linear", "exponential".
    retryDelay Integer
    Delay between retry attempts in milliseconds (0-5000)
    retryMaxAttempts Integer
    Maximum number of retry attempts for failed requests (1-5)
    storeId String
    stripe AiGatewayStripe
    workersAiBillingMode String
    Controls how Workers AI inference calls routed through this gateway are billed. Only 'postpaid' is currently supported. Available values: "postpaid".
    zdr Boolean
    aiGatewayId string
    gateway id
    cacheInvalidateOnUpdate boolean
    cacheTtl number
    collectLogs boolean
    rateLimitingInterval number
    rateLimitingLimit number
    accountId string
    authentication boolean
    dlp AiGatewayDlp
    logManagement number
    logManagementStrategy string
    Available values: "STOPINSERTING", "DELETEOLDEST".
    logpush boolean
    logpushPublicKey string
    otels AiGatewayOtel[]
    rateLimitingTechnique string
    Available values: "fixed", "sliding".
    retryBackoff string
    Backoff strategy for retry delays Available values: "constant", "linear", "exponential".
    retryDelay number
    Delay between retry attempts in milliseconds (0-5000)
    retryMaxAttempts number
    Maximum number of retry attempts for failed requests (1-5)
    storeId string
    stripe AiGatewayStripe
    workersAiBillingMode string
    Controls how Workers AI inference calls routed through this gateway are billed. Only 'postpaid' is currently supported. Available values: "postpaid".
    zdr boolean
    ai_gateway_id str
    gateway id
    cache_invalidate_on_update bool
    cache_ttl int
    collect_logs bool
    rate_limiting_interval int
    rate_limiting_limit int
    account_id str
    authentication bool
    dlp AiGatewayDlpArgs
    log_management int
    log_management_strategy str
    Available values: "STOPINSERTING", "DELETEOLDEST".
    logpush bool
    logpush_public_key str
    otels Sequence[AiGatewayOtelArgs]
    rate_limiting_technique str
    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_attempts int
    Maximum number of retry attempts for failed requests (1-5)
    store_id str
    stripe AiGatewayStripeArgs
    workers_ai_billing_mode str
    Controls how Workers AI inference calls routed through this gateway are billed. Only 'postpaid' is currently supported. Available values: "postpaid".
    zdr bool
    aiGatewayId String
    gateway id
    cacheInvalidateOnUpdate Boolean
    cacheTtl Number
    collectLogs Boolean
    rateLimitingInterval Number
    rateLimitingLimit Number
    accountId String
    authentication Boolean
    dlp Property Map
    logManagement Number
    logManagementStrategy String
    Available values: "STOPINSERTING", "DELETEOLDEST".
    logpush Boolean
    logpushPublicKey String
    otels List<Property Map>
    rateLimitingTechnique String
    Available values: "fixed", "sliding".
    retryBackoff String
    Backoff strategy for retry delays Available values: "constant", "linear", "exponential".
    retryDelay Number
    Delay between retry attempts in milliseconds (0-5000)
    retryMaxAttempts Number
    Maximum number of retry attempts for failed requests (1-5)
    storeId String
    stripe Property Map
    workersAiBillingMode String
    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:

    CreatedAt string
    Id string
    The provider-assigned unique ID for this managed resource.
    IsDefault bool
    ModifiedAt string
    CreatedAt string
    Id string
    The provider-assigned unique ID for this managed resource.
    IsDefault bool
    ModifiedAt string
    createdAt String
    id String
    The provider-assigned unique ID for this managed resource.
    isDefault Boolean
    modifiedAt String
    createdAt string
    id string
    The provider-assigned unique ID for this managed resource.
    isDefault boolean
    modifiedAt string
    created_at str
    id str
    The provider-assigned unique ID for this managed resource.
    is_default bool
    modified_at str
    createdAt String
    id String
    The provider-assigned unique ID for this managed resource.
    isDefault Boolean
    modifiedAt 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,
            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,
            store_id: Optional[str] = None,
            stripe: Optional[AiGatewayStripeArgs] = None,
            workers_ai_billing_mode: Optional[str] = None,
            zdr: Optional[bool] = None) -> AiGateway
    func 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}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AccountId string
    AiGatewayId string
    gateway id
    Authentication bool
    CacheInvalidateOnUpdate bool
    CacheTtl int
    CollectLogs bool
    CreatedAt string
    Dlp AiGatewayDlp
    IsDefault bool
    LogManagement int
    LogManagementStrategy string
    Available values: "STOPINSERTING", "DELETEOLDEST".
    Logpush bool
    LogpushPublicKey string
    ModifiedAt string
    Otels List<AiGatewayOtel>
    RateLimitingInterval int
    RateLimitingLimit int
    RateLimitingTechnique string
    Available values: "fixed", "sliding".
    RetryBackoff string
    Backoff strategy for retry delays Available values: "constant", "linear", "exponential".
    RetryDelay int
    Delay between retry attempts in milliseconds (0-5000)
    RetryMaxAttempts int
    Maximum number of retry attempts for failed requests (1-5)
    StoreId string
    Stripe AiGatewayStripe
    WorkersAiBillingMode string
    Controls how Workers AI inference calls routed through this gateway are billed. Only 'postpaid' is currently supported. Available values: "postpaid".
    Zdr bool
    AccountId string
    AiGatewayId string
    gateway id
    Authentication bool
    CacheInvalidateOnUpdate bool
    CacheTtl int
    CollectLogs bool
    CreatedAt string
    Dlp AiGatewayDlpArgs
    IsDefault bool
    LogManagement int
    LogManagementStrategy string
    Available values: "STOPINSERTING", "DELETEOLDEST".
    Logpush bool
    LogpushPublicKey string
    ModifiedAt string
    Otels []AiGatewayOtelArgs
    RateLimitingInterval int
    RateLimitingLimit int
    RateLimitingTechnique string
    Available values: "fixed", "sliding".
    RetryBackoff string
    Backoff strategy for retry delays Available values: "constant", "linear", "exponential".
    RetryDelay int
    Delay between retry attempts in milliseconds (0-5000)
    RetryMaxAttempts int
    Maximum number of retry attempts for failed requests (1-5)
    StoreId string
    Stripe AiGatewayStripeArgs
    WorkersAiBillingMode string
    Controls how Workers AI inference calls routed through this gateway are billed. Only 'postpaid' is currently supported. Available values: "postpaid".
    Zdr bool
    accountId String
    aiGatewayId String
    gateway id
    authentication Boolean
    cacheInvalidateOnUpdate Boolean
    cacheTtl Integer
    collectLogs Boolean
    createdAt String
    dlp AiGatewayDlp
    isDefault Boolean
    logManagement Integer
    logManagementStrategy String
    Available values: "STOPINSERTING", "DELETEOLDEST".
    logpush Boolean
    logpushPublicKey String
    modifiedAt String
    otels List<AiGatewayOtel>
    rateLimitingInterval Integer
    rateLimitingLimit Integer
    rateLimitingTechnique String
    Available values: "fixed", "sliding".
    retryBackoff String
    Backoff strategy for retry delays Available values: "constant", "linear", "exponential".
    retryDelay Integer
    Delay between retry attempts in milliseconds (0-5000)
    retryMaxAttempts Integer
    Maximum number of retry attempts for failed requests (1-5)
    storeId String
    stripe AiGatewayStripe
    workersAiBillingMode String
    Controls how Workers AI inference calls routed through this gateway are billed. Only 'postpaid' is currently supported. Available values: "postpaid".
    zdr Boolean
    accountId string
    aiGatewayId string
    gateway id
    authentication boolean
    cacheInvalidateOnUpdate boolean
    cacheTtl number
    collectLogs boolean
    createdAt string
    dlp AiGatewayDlp
    isDefault boolean
    logManagement number
    logManagementStrategy string
    Available values: "STOPINSERTING", "DELETEOLDEST".
    logpush boolean
    logpushPublicKey string
    modifiedAt string
    otels AiGatewayOtel[]
    rateLimitingInterval number
    rateLimitingLimit number
    rateLimitingTechnique string
    Available values: "fixed", "sliding".
    retryBackoff string
    Backoff strategy for retry delays Available values: "constant", "linear", "exponential".
    retryDelay number
    Delay between retry attempts in milliseconds (0-5000)
    retryMaxAttempts number
    Maximum number of retry attempts for failed requests (1-5)
    storeId string
    stripe AiGatewayStripe
    workersAiBillingMode string
    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_id str
    gateway id
    authentication bool
    cache_invalidate_on_update bool
    cache_ttl int
    collect_logs bool
    created_at str
    dlp AiGatewayDlpArgs
    is_default bool
    log_management int
    log_management_strategy str
    Available values: "STOPINSERTING", "DELETEOLDEST".
    logpush bool
    logpush_public_key str
    modified_at str
    otels Sequence[AiGatewayOtelArgs]
    rate_limiting_interval int
    rate_limiting_limit int
    rate_limiting_technique str
    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_attempts int
    Maximum number of retry attempts for failed requests (1-5)
    store_id str
    stripe AiGatewayStripeArgs
    workers_ai_billing_mode str
    Controls how Workers AI inference calls routed through this gateway are billed. Only 'postpaid' is currently supported. Available values: "postpaid".
    zdr bool
    accountId String
    aiGatewayId String
    gateway id
    authentication Boolean
    cacheInvalidateOnUpdate Boolean
    cacheTtl Number
    collectLogs Boolean
    createdAt String
    dlp Property Map
    isDefault Boolean
    logManagement Number
    logManagementStrategy String
    Available values: "STOPINSERTING", "DELETEOLDEST".
    logpush Boolean
    logpushPublicKey String
    modifiedAt String
    otels List<Property Map>
    rateLimitingInterval Number
    rateLimitingLimit Number
    rateLimitingTechnique String
    Available values: "fixed", "sliding".
    retryBackoff String
    Backoff strategy for retry delays Available values: "constant", "linear", "exponential".
    retryDelay Number
    Delay between retry attempts in milliseconds (0-5000)
    retryMaxAttempts Number
    Maximum number of retry attempts for failed requests (1-5)
    storeId String
    stripe Property Map
    workersAiBillingMode String
    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<AiGatewayDlpPolicy>
    Profiles List<string>
    Enabled bool
    Action string
    Available values: "BLOCK", "FLAG".
    Policies []AiGatewayDlpPolicy
    Profiles []string
    enabled Boolean
    action String
    Available values: "BLOCK", "FLAG".
    policies List<AiGatewayDlpPolicy>
    profiles List<String>
    enabled boolean
    action string
    Available values: "BLOCK", "FLAG".
    policies AiGatewayDlpPolicy[]
    profiles string[]
    enabled bool
    action str
    Available values: "BLOCK", "FLAG".
    policies Sequence[AiGatewayDlpPolicy]
    profiles Sequence[str]
    enabled Boolean
    action String
    Available values: "BLOCK", "FLAG".
    policies List<Property Map>
    profiles List<String>

    AiGatewayDlpPolicy, AiGatewayDlpPolicyArgs

    Action string
    Available values: "FLAG", "BLOCK".
    Checks List<string>
    Enabled bool
    Id string
    Profiles List<string>
    Action string
    Available values: "FLAG", "BLOCK".
    Checks []string
    Enabled bool
    Id string
    Profiles []string
    action String
    Available values: "FLAG", "BLOCK".
    checks List<String>
    enabled Boolean
    id String
    profiles List<String>
    action string
    Available values: "FLAG", "BLOCK".
    checks string[]
    enabled boolean
    id string
    profiles string[]
    action str
    Available values: "FLAG", "BLOCK".
    checks Sequence[str]
    enabled bool
    id str
    profiles Sequence[str]
    action String
    Available values: "FLAG", "BLOCK".
    checks List<String>
    enabled Boolean
    id String
    profiles List<String>

    AiGatewayOtel, AiGatewayOtelArgs

    Authorization string
    Headers Dictionary<string, string>
    Url string
    ContentType string
    Available values: "json", "protobuf".
    Authorization string
    Headers map[string]string
    Url string
    ContentType string
    Available values: "json", "protobuf".
    authorization String
    headers Map<String,String>
    url String
    contentType String
    Available values: "json", "protobuf".
    authorization string
    headers {[key: string]: string}
    url string
    contentType string
    Available values: "json", "protobuf".
    authorization str
    headers Mapping[str, str]
    url str
    content_type str
    Available values: "json", "protobuf".
    authorization String
    headers Map<String>
    url String
    contentType String
    Available values: "json", "protobuf".

    AiGatewayStripe, AiGatewayStripeArgs

    AiGatewayStripeUsageEvent, AiGatewayStripeUsageEventArgs

    Payload string
    Payload string
    payload String
    payload string
    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 cloudflare Terraform Provider.
    cloudflare logo
    Viewing docs for Cloudflare v6.15.0
    published on Saturday, May 2, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.