published on Wednesday, Sep 9, 2026 by Pydantic
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:
- 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.
- 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.
- 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.
- 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 Boolean - 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 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.
- 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 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:
- created_
at 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.
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) -> GatewayProviderfunc 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.
- 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.
- 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.
- 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.
- 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 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 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 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.
- 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 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
logfireTerraform Provider.
published on Wednesday, Sep 9, 2026 by Pydantic