1. Registry
  2. Packages
  3. Logfire
  4. API Docs
  5. GatewayProvider
Viewing docs for Logfire v0.1.21
published on Wednesday, Sep 9, 2026 by Pydantic
logfire logo
Viewing docs for Logfire v0.1.21
published on Wednesday, Sep 9, 2026 by Pydantic

    Import

    Import a provider by UUID using the same organization’s management token:

    terraform

    import {

    to = logfire_gateway_provider.openai

    id = “018f45c0-3cab-7b2f-a8f7-8a0b55a7ed11”

    }

    Or use the command line:

    $ pulumi import logfire:index/gatewayProvider:GatewayProvider openai 018f45c0-3cab-7b2f-a8f7-8a0b55a7ed11
    

    Import reads public configuration only. Set api_key in your configuration;

    the next apply writes that key to the imported provider. Import does not recover

    the existing secret.

    Create GatewayProvider Resource

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

    Constructor syntax

    new GatewayProvider(name: string, args: GatewayProviderArgs, opts?: CustomResourceOptions);
    @overload
    def GatewayProvider(resource_name: str,
                        args: GatewayProviderArgs,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def GatewayProvider(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        api_key: Optional[str] = None,
                        slug: Optional[str] = None,
                        vendor: Optional[str] = None,
                        bedrock_api: Optional[str] = None,
                        bedrock_region: Optional[str] = None,
                        require_pricing: Optional[bool] = None)
    func NewGatewayProvider(ctx *Context, name string, args GatewayProviderArgs, opts ...ResourceOption) (*GatewayProvider, error)
    public GatewayProvider(string name, GatewayProviderArgs args, CustomResourceOptions? opts = null)
    public GatewayProvider(String name, GatewayProviderArgs args)
    public GatewayProvider(String name, GatewayProviderArgs args, CustomResourceOptions options)
    
    type: logfire:GatewayProvider
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "logfire_gateway_provider" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args GatewayProviderArgs
    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 GatewayProviderArgs
    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 GatewayProviderArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args GatewayProviderArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args GatewayProviderArgs
    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 gatewayProviderResource = new Logfire.GatewayProvider("gatewayProviderResource", new()
    {
        ApiKey = "string",
        Slug = "string",
        Vendor = "string",
        BedrockApi = "string",
        BedrockRegion = "string",
        RequirePricing = false,
    });
    
    example, err := logfire.NewGatewayProvider(ctx, "gatewayProviderResource", &logfire.GatewayProviderArgs{
    	ApiKey:         pulumi.String("string"),
    	Slug:           pulumi.String("string"),
    	Vendor:         pulumi.String("string"),
    	BedrockApi:     pulumi.String("string"),
    	BedrockRegion:  pulumi.String("string"),
    	RequirePricing: pulumi.Bool(false),
    })
    
    resource "logfire_gateway_provider" "gatewayProviderResource" {
      lifecycle {
        create_before_destroy = true
      }
      api_key         = "string"
      slug            = "string"
      vendor          = "string"
      bedrock_api     = "string"
      bedrock_region  = "string"
      require_pricing = false
    }
    
    var gatewayProviderResource = new GatewayProvider("gatewayProviderResource", GatewayProviderArgs.builder()
        .apiKey("string")
        .slug("string")
        .vendor("string")
        .bedrockApi("string")
        .bedrockRegion("string")
        .requirePricing(false)
        .build());
    
    gateway_provider_resource = logfire.GatewayProvider("gatewayProviderResource",
        api_key="string",
        slug="string",
        vendor="string",
        bedrock_api="string",
        bedrock_region="string",
        require_pricing=False)
    
    const gatewayProviderResource = new logfire.GatewayProvider("gatewayProviderResource", {
        apiKey: "string",
        slug: "string",
        vendor: "string",
        bedrockApi: "string",
        bedrockRegion: "string",
        requirePricing: false,
    });
    
    type: logfire:GatewayProvider
    properties:
        apiKey: string
        bedrockApi: string
        bedrockRegion: string
        requirePricing: false
        slug: string
        vendor: string
    

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

    ApiKey string
    Slug string
    Organization-unique provider slug. Changing it replaces the provider.
    Vendor string
    Upstream vendor: openai, anthropic, bedrock, doubleword, groq, huggingface, or mistral. Changing it replaces the provider.
    BedrockApi string
    Bedrock API variant: runtime or mantle. Required only for bedrock; can be updated in place.
    BedrockRegion string
    AWS region used to derive the Bedrock endpoint, for example us-east-1. Required only for bedrock; can be updated in place.
    RequirePricing bool
    Require known model pricing before forwarding requests. Defaults to true.
    ApiKey string
    Slug string
    Organization-unique provider slug. Changing it replaces the provider.
    Vendor string
    Upstream vendor: openai, anthropic, bedrock, doubleword, groq, huggingface, or mistral. Changing it replaces the provider.
    BedrockApi string
    Bedrock API variant: runtime or mantle. Required only for bedrock; can be updated in place.
    BedrockRegion string
    AWS region used to derive the Bedrock endpoint, for example us-east-1. Required only for bedrock; can be updated in place.
    RequirePricing bool
    Require known model pricing before forwarding requests. Defaults to true.
    api_key string
    slug string
    Organization-unique provider slug. Changing it replaces the provider.
    vendor string
    Upstream vendor: openai, anthropic, bedrock, doubleword, groq, huggingface, or mistral. Changing it replaces the provider.
    bedrock_api string
    Bedrock API variant: runtime or mantle. Required only for bedrock; can be updated in place.
    bedrock_region string
    AWS region used to derive the Bedrock endpoint, for example us-east-1. Required only for bedrock; can be updated in place.
    require_pricing bool
    Require known model pricing before forwarding requests. Defaults to true.
    apiKey String
    slug String
    Organization-unique provider slug. Changing it replaces the provider.
    vendor String
    Upstream vendor: openai, anthropic, bedrock, doubleword, groq, huggingface, or mistral. Changing it replaces the provider.
    bedrockApi String
    Bedrock API variant: runtime or mantle. Required only for bedrock; can be updated in place.
    bedrockRegion String
    AWS region used to derive the Bedrock endpoint, for example us-east-1. Required only for bedrock; can be updated in place.
    requirePricing Boolean
    Require known model pricing before forwarding requests. Defaults to true.
    apiKey string
    slug string
    Organization-unique provider slug. Changing it replaces the provider.
    vendor string
    Upstream vendor: openai, anthropic, bedrock, doubleword, groq, huggingface, or mistral. Changing it replaces the provider.
    bedrockApi string
    Bedrock API variant: runtime or mantle. Required only for bedrock; can be updated in place.
    bedrockRegion string
    AWS region used to derive the Bedrock endpoint, for example us-east-1. Required only for bedrock; can be updated in place.
    requirePricing boolean
    Require known model pricing before forwarding requests. Defaults to true.
    api_key str
    slug str
    Organization-unique provider slug. Changing it replaces the provider.
    vendor str
    Upstream vendor: openai, anthropic, bedrock, doubleword, groq, huggingface, or mistral. Changing it replaces the provider.
    bedrock_api str
    Bedrock API variant: runtime or mantle. Required only for bedrock; can be updated in place.
    bedrock_region str
    AWS region used to derive the Bedrock endpoint, for example us-east-1. Required only for bedrock; can be updated in place.
    require_pricing bool
    Require known model pricing before forwarding requests. Defaults to true.
    apiKey String
    slug String
    Organization-unique provider slug. Changing it replaces the provider.
    vendor String
    Upstream vendor: openai, anthropic, bedrock, doubleword, groq, huggingface, or mistral. Changing it replaces the provider.
    bedrockApi String
    Bedrock API variant: runtime or mantle. Required only for bedrock; can be updated in place.
    bedrockRegion String
    AWS region used to derive the Bedrock endpoint, for example us-east-1. Required only for bedrock; can be updated in place.
    requirePricing Boolean
    Require known model pricing before forwarding requests. Defaults to true.

    Outputs

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

    CreatedAt string
    Timestamp when the provider was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    CreatedAt string
    Timestamp when the provider was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    created_at string
    Timestamp when the provider was created.
    id string
    The provider-assigned unique ID for this managed resource.
    createdAt String
    Timestamp when the provider was created.
    id String
    The provider-assigned unique ID for this managed resource.
    createdAt string
    Timestamp when the provider was created.
    id string
    The provider-assigned unique ID for this managed resource.
    created_at str
    Timestamp when the provider was created.
    id str
    The provider-assigned unique ID for this managed resource.
    createdAt String
    Timestamp when the provider was created.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing GatewayProvider Resource

    Get an existing GatewayProvider 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?: GatewayProviderState, opts?: CustomResourceOptions): GatewayProvider
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            api_key: Optional[str] = None,
            bedrock_api: Optional[str] = None,
            bedrock_region: Optional[str] = None,
            created_at: Optional[str] = None,
            require_pricing: Optional[bool] = None,
            slug: Optional[str] = None,
            vendor: Optional[str] = None) -> GatewayProvider
    func GetGatewayProvider(ctx *Context, name string, id IDInput, state *GatewayProviderState, opts ...ResourceOption) (*GatewayProvider, error)
    public static GatewayProvider Get(string name, Input<string> id, GatewayProviderState? state, CustomResourceOptions? opts = null)
    public static GatewayProvider get(String name, Output<String> id, GatewayProviderState state, CustomResourceOptions options)
    resources:  _:    type: logfire:GatewayProvider    get:      id: ${id}
    import {
      to = logfire_gateway_provider.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.
    The following state arguments are supported:
    ApiKey string
    BedrockApi string
    Bedrock API variant: runtime or mantle. Required only for bedrock; can be updated in place.
    BedrockRegion string
    AWS region used to derive the Bedrock endpoint, for example us-east-1. Required only for bedrock; can be updated in place.
    CreatedAt string
    Timestamp when the provider was created.
    RequirePricing bool
    Require known model pricing before forwarding requests. Defaults to true.
    Slug string
    Organization-unique provider slug. Changing it replaces the provider.
    Vendor string
    Upstream vendor: openai, anthropic, bedrock, doubleword, groq, huggingface, or mistral. Changing it replaces the provider.
    ApiKey string
    BedrockApi string
    Bedrock API variant: runtime or mantle. Required only for bedrock; can be updated in place.
    BedrockRegion string
    AWS region used to derive the Bedrock endpoint, for example us-east-1. Required only for bedrock; can be updated in place.
    CreatedAt string
    Timestamp when the provider was created.
    RequirePricing bool
    Require known model pricing before forwarding requests. Defaults to true.
    Slug string
    Organization-unique provider slug. Changing it replaces the provider.
    Vendor string
    Upstream vendor: openai, anthropic, bedrock, doubleword, groq, huggingface, or mistral. Changing it replaces the provider.
    api_key string
    bedrock_api string
    Bedrock API variant: runtime or mantle. Required only for bedrock; can be updated in place.
    bedrock_region string
    AWS region used to derive the Bedrock endpoint, for example us-east-1. Required only for bedrock; can be updated in place.
    created_at string
    Timestamp when the provider was created.
    require_pricing bool
    Require known model pricing before forwarding requests. Defaults to true.
    slug string
    Organization-unique provider slug. Changing it replaces the provider.
    vendor string
    Upstream vendor: openai, anthropic, bedrock, doubleword, groq, huggingface, or mistral. Changing it replaces the provider.
    apiKey String
    bedrockApi String
    Bedrock API variant: runtime or mantle. Required only for bedrock; can be updated in place.
    bedrockRegion String
    AWS region used to derive the Bedrock endpoint, for example us-east-1. Required only for bedrock; can be updated in place.
    createdAt String
    Timestamp when the provider was created.
    requirePricing Boolean
    Require known model pricing before forwarding requests. Defaults to true.
    slug String
    Organization-unique provider slug. Changing it replaces the provider.
    vendor String
    Upstream vendor: openai, anthropic, bedrock, doubleword, groq, huggingface, or mistral. Changing it replaces the provider.
    apiKey string
    bedrockApi string
    Bedrock API variant: runtime or mantle. Required only for bedrock; can be updated in place.
    bedrockRegion string
    AWS region used to derive the Bedrock endpoint, for example us-east-1. Required only for bedrock; can be updated in place.
    createdAt string
    Timestamp when the provider was created.
    requirePricing boolean
    Require known model pricing before forwarding requests. Defaults to true.
    slug string
    Organization-unique provider slug. Changing it replaces the provider.
    vendor string
    Upstream vendor: openai, anthropic, bedrock, doubleword, groq, huggingface, or mistral. Changing it replaces the provider.
    api_key str
    bedrock_api str
    Bedrock API variant: runtime or mantle. Required only for bedrock; can be updated in place.
    bedrock_region str
    AWS region used to derive the Bedrock endpoint, for example us-east-1. Required only for bedrock; can be updated in place.
    created_at str
    Timestamp when the provider was created.
    require_pricing bool
    Require known model pricing before forwarding requests. Defaults to true.
    slug str
    Organization-unique provider slug. Changing it replaces the provider.
    vendor str
    Upstream vendor: openai, anthropic, bedrock, doubleword, groq, huggingface, or mistral. Changing it replaces the provider.
    apiKey String
    bedrockApi String
    Bedrock API variant: runtime or mantle. Required only for bedrock; can be updated in place.
    bedrockRegion String
    AWS region used to derive the Bedrock endpoint, for example us-east-1. Required only for bedrock; can be updated in place.
    createdAt String
    Timestamp when the provider was created.
    requirePricing Boolean
    Require known model pricing before forwarding requests. Defaults to true.
    slug String
    Organization-unique provider slug. Changing it replaces the provider.
    vendor String
    Upstream vendor: openai, anthropic, bedrock, doubleword, groq, huggingface, or mistral. Changing it replaces the provider.

    Package Details

    Repository
    logfire pydantic/pulumi-logfire
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the logfire Terraform Provider.
    logfire logo
    Viewing docs for Logfire v0.1.21
    published on Wednesday, Sep 9, 2026 by Pydantic

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial