Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi
oci.AiLanguage.getModelType
Explore with Pulumi AI
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,
});
import pulumi
import pulumi_oci as oci
test_model_type = oci.AiLanguage.get_model_type(model_type=model_type_model_type)
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
})
}
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,
});
});
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());
}
}
variables:
testModelType:
fn::invoke:
Function: oci:AiLanguage:getModelType
Arguments:
modelType: ${modelTypeModelType}
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>
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]
func GetModelType(ctx *Context, args *GetModelTypeArgs, opts ...InvokeOption) (*GetModelTypeResult, error)
func GetModelTypeOutput(ctx *Context, args *GetModelTypeOutputArgs, opts ...InvokeOption) GetModelTypeResultOutput
> 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)
}
public static CompletableFuture<GetModelTypeResult> getModelType(GetModelTypeArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:AiLanguage/getModelType:getModelType
arguments:
# arguments dictionary
The following arguments are supported:
- Model
Type string - Results like version and model supported info by specifying model type
- Model
Type string - Results like version and model supported info by specifying model type
- model
Type String - Results like version and model supported info by specifying model type
- model
Type string - Results like version and model supported info by specifying model type
- model_
type str - Results like version and model supported info by specifying model type
- model
Type 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.
- Model
Type 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.
- Model
Type 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.
- model
Type 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.
- model
Type 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.
- model
Type 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.