1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. AiLanguage
  5. getModelType
Oracle Cloud Infrastructure v2.29.0 published on Wednesday, Apr 9, 2025 by Pulumi

oci.AiLanguage.getModelType

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.29.0 published on Wednesday, Apr 9, 2025 by Pulumi

This data source provides details about a specific Model Type resource in Oracle Cloud Infrastructure Ai Language service.

Gets model capabilities

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testModelType = oci.AiLanguage.getModelType({
    modelType: modelTypeModelType,
});
Copy
import pulumi
import pulumi_oci as oci

test_model_type = oci.AiLanguage.get_model_type(model_type=model_type_model_type)
Copy
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/ailanguage"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := ailanguage.GetModelType(ctx, &ailanguage.GetModelTypeArgs{
			ModelType: modelTypeModelType,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testModelType = Oci.AiLanguage.GetModelType.Invoke(new()
    {
        ModelType = modelTypeModelType,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.AiLanguage.AiLanguageFunctions;
import com.pulumi.oci.AiLanguage.inputs.GetModelTypeArgs;
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) {
        final var testModelType = AiLanguageFunctions.getModelType(GetModelTypeArgs.builder()
            .modelType(modelTypeModelType)
            .build());

    }
}
Copy
variables:
  testModelType:
    fn::invoke:
      function: oci:AiLanguage:getModelType
      arguments:
        modelType: ${modelTypeModelType}
Copy

Using getModelType

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getModelType(args: GetModelTypeArgs, opts?: InvokeOptions): Promise<GetModelTypeResult>
function getModelTypeOutput(args: GetModelTypeOutputArgs, opts?: InvokeOptions): Output<GetModelTypeResult>
Copy
def get_model_type(model_type: Optional[str] = None,
                   opts: Optional[InvokeOptions] = None) -> GetModelTypeResult
def get_model_type_output(model_type: Optional[pulumi.Input[str]] = None,
                   opts: Optional[InvokeOptions] = None) -> Output[GetModelTypeResult]
Copy
func GetModelType(ctx *Context, args *GetModelTypeArgs, opts ...InvokeOption) (*GetModelTypeResult, error)
func GetModelTypeOutput(ctx *Context, args *GetModelTypeOutputArgs, opts ...InvokeOption) GetModelTypeResultOutput
Copy

> Note: This function is named GetModelType in the Go SDK.

public static class GetModelType 
{
    public static Task<GetModelTypeResult> InvokeAsync(GetModelTypeArgs args, InvokeOptions? opts = null)
    public static Output<GetModelTypeResult> Invoke(GetModelTypeInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetModelTypeResult> getModelType(GetModelTypeArgs args, InvokeOptions options)
public static Output<GetModelTypeResult> getModelType(GetModelTypeArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:AiLanguage/getModelType:getModelType
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

ModelType This property is required. string
Results like version and model supported info by specifying model type
ModelType This property is required. string
Results like version and model supported info by specifying model type
modelType This property is required. String
Results like version and model supported info by specifying model type
modelType This property is required. string
Results like version and model supported info by specifying model type
model_type This property is required. str
Results like version and model supported info by specifying model type
modelType This property is required. String
Results like version and model supported info by specifying model type

getModelType Result

The following output properties are available:

Capabilities string
Model information capabilities related to version
Id string
The provider-assigned unique ID for this managed resource.
ModelType string
Versions List<string>
Model versions available for this model type
Capabilities string
Model information capabilities related to version
Id string
The provider-assigned unique ID for this managed resource.
ModelType string
Versions []string
Model versions available for this model type
capabilities String
Model information capabilities related to version
id String
The provider-assigned unique ID for this managed resource.
modelType String
versions List<String>
Model versions available for this model type
capabilities string
Model information capabilities related to version
id string
The provider-assigned unique ID for this managed resource.
modelType string
versions string[]
Model versions available for this model type
capabilities str
Model information capabilities related to version
id str
The provider-assigned unique ID for this managed resource.
model_type str
versions Sequence[str]
Model versions available for this model type
capabilities String
Model information capabilities related to version
id String
The provider-assigned unique ID for this managed resource.
modelType String
versions List<String>
Model versions available for this model type

Package Details

Repository
oci pulumi/pulumi-oci
License
Apache-2.0
Notes
This Pulumi package is based on the oci Terraform Provider.
Oracle Cloud Infrastructure v2.29.0 published on Wednesday, Apr 9, 2025 by Pulumi