published on Friday, Sep 18, 2026 by kong
published on Friday, Sep 18, 2026 by kong
CatalogAiModelVersion Resource
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as konnect from "@pulumi/konnect";
const myCatalogaimodelversion = new konnect.CatalogAiModelVersion("my_catalogaimodelversion", {
catalogAiModelId: "123e4567-e89b-12d3-a456-426614174000",
targetModels: [{
name: "gpt-4o",
provider: "openai",
}],
version: "1.0.0",
});
import pulumi
import pulumi_konnect as konnect
my_catalogaimodelversion = konnect.CatalogAiModelVersion("my_catalogaimodelversion",
catalog_ai_model_id="123e4567-e89b-12d3-a456-426614174000",
target_models=[{
"name": "gpt-4o",
"provider": "openai",
}],
version="1.0.0")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/konnect/v3/konnect"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := konnect.NewCatalogAiModelVersion(ctx, "my_catalogaimodelversion", &konnect.CatalogAiModelVersionArgs{
CatalogAiModelId: pulumi.String("123e4567-e89b-12d3-a456-426614174000"),
TargetModels: konnect.CatalogAiModelVersionTargetModelArray{
&konnect.CatalogAiModelVersionTargetModelArgs{
Name: pulumi.String("gpt-4o"),
Provider: pulumi.String("openai"),
},
},
Version: pulumi.String("1.0.0"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Konnect = Pulumi.Konnect;
return await Deployment.RunAsync(() =>
{
var myCatalogaimodelversion = new Konnect.CatalogAiModelVersion("my_catalogaimodelversion", new()
{
CatalogAiModelId = "123e4567-e89b-12d3-a456-426614174000",
TargetModels = new[]
{
new Konnect.Inputs.CatalogAiModelVersionTargetModelArgs
{
Name = "gpt-4o",
Provider = "openai",
},
},
Version = "1.0.0",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.konnect.CatalogAiModelVersion;
import com.pulumi.konnect.CatalogAiModelVersionArgs;
import com.pulumi.konnect.inputs.CatalogAiModelVersionTargetModelArgs;
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 myCatalogaimodelversion = new CatalogAiModelVersion("myCatalogaimodelversion", CatalogAiModelVersionArgs.builder()
.catalogAiModelId("123e4567-e89b-12d3-a456-426614174000")
.targetModels(CatalogAiModelVersionTargetModelArgs.builder()
.name("gpt-4o")
.provider("openai")
.build())
.version("1.0.0")
.build());
}
}
resources:
myCatalogaimodelversion:
type: konnect:CatalogAiModelVersion
name: my_catalogaimodelversion
properties:
catalogAiModelId: 123e4567-e89b-12d3-a456-426614174000
targetModels:
- name: gpt-4o
provider: openai
version: 1.0.0
Example coming soon!
Create CatalogAiModelVersion Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CatalogAiModelVersion(name: string, args: CatalogAiModelVersionArgs, opts?: CustomResourceOptions);@overload
def CatalogAiModelVersion(resource_name: str,
args: CatalogAiModelVersionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CatalogAiModelVersion(resource_name: str,
opts: Optional[ResourceOptions] = None,
catalog_ai_model_id: Optional[str] = None,
target_models: Optional[Sequence[CatalogAiModelVersionTargetModelArgs]] = None,
version: Optional[str] = None)func NewCatalogAiModelVersion(ctx *Context, name string, args CatalogAiModelVersionArgs, opts ...ResourceOption) (*CatalogAiModelVersion, error)public CatalogAiModelVersion(string name, CatalogAiModelVersionArgs args, CustomResourceOptions? opts = null)
public CatalogAiModelVersion(String name, CatalogAiModelVersionArgs args)
public CatalogAiModelVersion(String name, CatalogAiModelVersionArgs args, CustomResourceOptions options)
type: konnect:CatalogAiModelVersion
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "konnect_catalog_ai_model_version" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args CatalogAiModelVersionArgs
- 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 CatalogAiModelVersionArgs
- 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 CatalogAiModelVersionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CatalogAiModelVersionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CatalogAiModelVersionArgs
- 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 catalogAiModelVersionResource = new Konnect.CatalogAiModelVersion("catalogAiModelVersionResource", new()
{
CatalogAiModelId = "string",
TargetModels = new[]
{
new Konnect.Inputs.CatalogAiModelVersionTargetModelArgs
{
Name = "string",
Provider = "string",
},
},
Version = "string",
});
example, err := konnect.NewCatalogAiModelVersion(ctx, "catalogAiModelVersionResource", &konnect.CatalogAiModelVersionArgs{
CatalogAiModelId: pulumi.String("string"),
TargetModels: konnect.CatalogAiModelVersionTargetModelArray{
&konnect.CatalogAiModelVersionTargetModelArgs{
Name: pulumi.String("string"),
Provider: pulumi.String("string"),
},
},
Version: pulumi.String("string"),
})
resource "konnect_catalog_ai_model_version" "catalogAiModelVersionResource" {
lifecycle {
create_before_destroy = true
}
catalog_ai_model_id = "string"
target_models {
name = "string"
provider = "string"
}
version = "string"
}
var catalogAiModelVersionResource = new CatalogAiModelVersion("catalogAiModelVersionResource", CatalogAiModelVersionArgs.builder()
.catalogAiModelId("string")
.targetModels(CatalogAiModelVersionTargetModelArgs.builder()
.name("string")
.provider("string")
.build())
.version("string")
.build());
catalog_ai_model_version_resource = konnect.CatalogAiModelVersion("catalogAiModelVersionResource",
catalog_ai_model_id="string",
target_models=[{
"name": "string",
"provider": "string",
}],
version="string")
const catalogAiModelVersionResource = new konnect.CatalogAiModelVersion("catalogAiModelVersionResource", {
catalogAiModelId: "string",
targetModels: [{
name: "string",
provider: "string",
}],
version: "string",
});
type: konnect:CatalogAiModelVersion
properties:
catalogAiModelId: string
targetModels:
- name: string
provider: string
version: string
CatalogAiModelVersion 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 CatalogAiModelVersion resource accepts the following input properties:
- Catalog
Ai stringModel Id - The unique identifier of the AI Model.
- Target
Models List<CatalogAi Model Version Target Model> - The upstream LLM targets (full set).
- Version string
- An optional user-supplied version label.
- Catalog
Ai stringModel Id - The unique identifier of the AI Model.
- Target
Models []CatalogAi Model Version Target Model Args - The upstream LLM targets (full set).
- Version string
- An optional user-supplied version label.
- catalog_
ai_ stringmodel_ id - The unique identifier of the AI Model.
- target_
models list(object) - The upstream LLM targets (full set).
- version string
- An optional user-supplied version label.
- catalog
Ai StringModel Id - The unique identifier of the AI Model.
- target
Models List<CatalogAi Model Version Target Model> - The upstream LLM targets (full set).
- version String
- An optional user-supplied version label.
- catalog
Ai stringModel Id - The unique identifier of the AI Model.
- target
Models CatalogAi Model Version Target Model[] - The upstream LLM targets (full set).
- version string
- An optional user-supplied version label.
- catalog_
ai_ strmodel_ id - The unique identifier of the AI Model.
- target_
models Sequence[CatalogAi Model Version Target Model Args] - The upstream LLM targets (full set).
- version str
- An optional user-supplied version label.
- catalog
Ai StringModel Id - The unique identifier of the AI Model.
- target
Models List<Property Map> - The upstream LLM targets (full set).
- version String
- An optional user-supplied version label.
Outputs
All input properties are implicitly available as output properties. Additionally, the CatalogAiModelVersion resource produces the following output properties:
- ai_
model_ stringid - The identifier of the parent AI Model.
- created_
at string - An ISO-8601 timestamp representation of entity creation date.
- id string
- The provider-assigned unique ID for this managed resource.
- updated_
at string - An ISO-8601 timestamp representation of entity update date.
- ai_
model_ strid - The identifier of the parent AI Model.
- created_
at str - An ISO-8601 timestamp representation of entity creation date.
- id str
- The provider-assigned unique ID for this managed resource.
- updated_
at str - An ISO-8601 timestamp representation of entity update date.
Look up Existing CatalogAiModelVersion Resource
Get an existing CatalogAiModelVersion 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?: CatalogAiModelVersionState, opts?: CustomResourceOptions): CatalogAiModelVersion@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
ai_model_id: Optional[str] = None,
catalog_ai_model_id: Optional[str] = None,
created_at: Optional[str] = None,
target_models: Optional[Sequence[CatalogAiModelVersionTargetModelArgs]] = None,
updated_at: Optional[str] = None,
version: Optional[str] = None) -> CatalogAiModelVersionfunc GetCatalogAiModelVersion(ctx *Context, name string, id IDInput, state *CatalogAiModelVersionState, opts ...ResourceOption) (*CatalogAiModelVersion, error)public static CatalogAiModelVersion Get(string name, Input<string> id, CatalogAiModelVersionState? state, CustomResourceOptions? opts = null)public static CatalogAiModelVersion get(String name, Output<String> id, CatalogAiModelVersionState state, CustomResourceOptions options)resources: _: type: konnect:CatalogAiModelVersion get: id: ${id}import {
to = konnect_catalog_ai_model_version.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.
- Ai
Model stringId - The identifier of the parent AI Model.
- Catalog
Ai stringModel Id - The unique identifier of the AI Model.
- Created
At string - An ISO-8601 timestamp representation of entity creation date.
- Target
Models List<CatalogAi Model Version Target Model> - The upstream LLM targets (full set).
- Updated
At string - An ISO-8601 timestamp representation of entity update date.
- Version string
- An optional user-supplied version label.
- Ai
Model stringId - The identifier of the parent AI Model.
- Catalog
Ai stringModel Id - The unique identifier of the AI Model.
- Created
At string - An ISO-8601 timestamp representation of entity creation date.
- Target
Models []CatalogAi Model Version Target Model Args - The upstream LLM targets (full set).
- Updated
At string - An ISO-8601 timestamp representation of entity update date.
- Version string
- An optional user-supplied version label.
- ai_
model_ stringid - The identifier of the parent AI Model.
- catalog_
ai_ stringmodel_ id - The unique identifier of the AI Model.
- created_
at string - An ISO-8601 timestamp representation of entity creation date.
- target_
models list(object) - The upstream LLM targets (full set).
- updated_
at string - An ISO-8601 timestamp representation of entity update date.
- version string
- An optional user-supplied version label.
- ai
Model StringId - The identifier of the parent AI Model.
- catalog
Ai StringModel Id - The unique identifier of the AI Model.
- created
At String - An ISO-8601 timestamp representation of entity creation date.
- target
Models List<CatalogAi Model Version Target Model> - The upstream LLM targets (full set).
- updated
At String - An ISO-8601 timestamp representation of entity update date.
- version String
- An optional user-supplied version label.
- ai
Model stringId - The identifier of the parent AI Model.
- catalog
Ai stringModel Id - The unique identifier of the AI Model.
- created
At string - An ISO-8601 timestamp representation of entity creation date.
- target
Models CatalogAi Model Version Target Model[] - The upstream LLM targets (full set).
- updated
At string - An ISO-8601 timestamp representation of entity update date.
- version string
- An optional user-supplied version label.
- ai_
model_ strid - The identifier of the parent AI Model.
- catalog_
ai_ strmodel_ id - The unique identifier of the AI Model.
- created_
at str - An ISO-8601 timestamp representation of entity creation date.
- target_
models Sequence[CatalogAi Model Version Target Model Args] - The upstream LLM targets (full set).
- updated_
at str - An ISO-8601 timestamp representation of entity update date.
- version str
- An optional user-supplied version label.
- ai
Model StringId - The identifier of the parent AI Model.
- catalog
Ai StringModel Id - The unique identifier of the AI Model.
- created
At String - An ISO-8601 timestamp representation of entity creation date.
- target
Models List<Property Map> - The upstream LLM targets (full set).
- updated
At String - An ISO-8601 timestamp representation of entity update date.
- version String
- An optional user-supplied version label.
Supporting Types
CatalogAiModelVersionTargetModel, CatalogAiModelVersionTargetModelArgs
Import
In Terraform v1.5.0 and later, the import block can be used with the id attribute, for example:
terraform
import {
to = konnect_catalog_ai_model_version.my_konnect_catalog_ai_model_version
id = “123e4567-e89b-12d3-a456-426614174000”
}
The pulumi import command can be used, for example:
$ pulumi import konnect:index/catalogAiModelVersion:CatalogAiModelVersion my_konnect_catalog_ai_model_version "123e4567-e89b-12d3-a456-426614174000"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- konnect kong/terraform-provider-konnect
- License
- Notes
- This Pulumi package is based on the
konnectTerraform Provider.
published on Friday, Sep 18, 2026 by kong