Oracle Cloud Infrastructure

Pulumi Official
Package maintained by Pulumi
v0.1.1 published on Tuesday, May 3, 2022 by Pulumi

getModelDeploymentShapes

This data source provides the list of Model Deployment Shapes in Oracle Cloud Infrastructure Datascience service.

Lists the valid model deployment shapes.

Example Usage

using Pulumi;
using Oci = Pulumi.Oci;

class MyStack : Stack
{
    public MyStack()
    {
        var testModelDeploymentShapes = Output.Create(Oci.DataScience.GetModelDeploymentShapes.InvokeAsync(new Oci.DataScience.GetModelDeploymentShapesArgs
        {
            CompartmentId = @var.Compartment_id,
        }));
    }

}
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := DataScience.GetModelDeploymentShapes(ctx, &datascience.GetModelDeploymentShapesArgs{
			CompartmentId: _var.Compartment_id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_oci as oci

test_model_deployment_shapes = oci.DataScience.get_model_deployment_shapes(compartment_id=var["compartment_id"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testModelDeploymentShapes = oci.DataScience.getModelDeploymentShapes({
    compartmentId: _var.compartment_id,
});

Coming soon!

Using getModelDeploymentShapes

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 getModelDeploymentShapes(args: GetModelDeploymentShapesArgs, opts?: InvokeOptions): Promise<GetModelDeploymentShapesResult>
function getModelDeploymentShapesOutput(args: GetModelDeploymentShapesOutputArgs, opts?: InvokeOptions): Output<GetModelDeploymentShapesResult>
def get_model_deployment_shapes(compartment_id: Optional[str] = None,
                                filters: Optional[Sequence[_datascience.GetModelDeploymentShapesFilter]] = None,
                                opts: Optional[InvokeOptions] = None) -> GetModelDeploymentShapesResult
def get_model_deployment_shapes_output(compartment_id: Optional[pulumi.Input[str]] = None,
                                filters: Optional[pulumi.Input[Sequence[pulumi.Input[_datascience.GetModelDeploymentShapesFilterArgs]]]] = None,
                                opts: Optional[InvokeOptions] = None) -> Output[GetModelDeploymentShapesResult]
func GetModelDeploymentShapes(ctx *Context, args *GetModelDeploymentShapesArgs, opts ...InvokeOption) (*GetModelDeploymentShapesResult, error)
func GetModelDeploymentShapesOutput(ctx *Context, args *GetModelDeploymentShapesOutputArgs, opts ...InvokeOption) GetModelDeploymentShapesResultOutput

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

public static class GetModelDeploymentShapes 
{
    public static Task<GetModelDeploymentShapesResult> InvokeAsync(GetModelDeploymentShapesArgs args, InvokeOptions? opts = null)
    public static Output<GetModelDeploymentShapesResult> Invoke(GetModelDeploymentShapesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetModelDeploymentShapesResult> getModelDeploymentShapes(GetModelDeploymentShapesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: oci:DataScience/getModelDeploymentShapes:getModelDeploymentShapes
  Arguments:
    # Arguments dictionary

The following arguments are supported:

CompartmentId string

Filter results by the OCID of the compartment.

Filters List<GetModelDeploymentShapesFilter>
CompartmentId string

Filter results by the OCID of the compartment.

Filters []GetModelDeploymentShapesFilter
compartmentId String

Filter results by the OCID of the compartment.

filters List<GetModelDeploymentShapesFilter>
compartmentId string

Filter results by the OCID of the compartment.

filters GetModelDeploymentShapesFilter[]
compartment_id str

Filter results by the OCID of the compartment.

filters GetModelDeploymentShapesFilter]
compartmentId String

Filter results by the OCID of the compartment.

filters List<Property Map>

getModelDeploymentShapes Result

The following output properties are available:

CompartmentId string
Id string

The provider-assigned unique ID for this managed resource.

ModelDeploymentShapes List<GetModelDeploymentShapesModelDeploymentShape>

The list of model_deployment_shapes.

Filters List<GetModelDeploymentShapesFilter>
CompartmentId string
Id string

The provider-assigned unique ID for this managed resource.

ModelDeploymentShapes []GetModelDeploymentShapesModelDeploymentShape

The list of model_deployment_shapes.

Filters []GetModelDeploymentShapesFilter
compartmentId String
id String

The provider-assigned unique ID for this managed resource.

modelDeploymentShapes List<GetModelDeploymentShapesModelDeploymentShape>

The list of model_deployment_shapes.

filters List<GetModelDeploymentShapesFilter>
compartmentId string
id string

The provider-assigned unique ID for this managed resource.

modelDeploymentShapes GetModelDeploymentShapesModelDeploymentShape[]

The list of model_deployment_shapes.

filters GetModelDeploymentShapesFilter[]
compartment_id str
id str

The provider-assigned unique ID for this managed resource.

model_deployment_shapes GetModelDeploymentShapesModelDeploymentShape]

The list of model_deployment_shapes.

filters GetModelDeploymentShapesFilter]
compartmentId String
id String

The provider-assigned unique ID for this managed resource.

modelDeploymentShapes List<Property Map>

The list of model_deployment_shapes.

filters List<Property Map>

Supporting Types

GetModelDeploymentShapesFilter

Name string

The name of the model deployment shape.

Values List<string>
Regex bool
Name string

The name of the model deployment shape.

Values []string
Regex bool
name String

The name of the model deployment shape.

values List<String>
regex Boolean
name string

The name of the model deployment shape.

values string[]
regex boolean
name str

The name of the model deployment shape.

values Sequence[str]
regex bool
name String

The name of the model deployment shape.

values List<String>
regex Boolean

GetModelDeploymentShapesModelDeploymentShape

CoreCount int

The number of cores associated with this model deployment shape.

MemoryInGbs int

The amount of memory in GBs associated with this model deployment shape.

Name string

The name of the model deployment shape.

CoreCount int

The number of cores associated with this model deployment shape.

MemoryInGbs int

The amount of memory in GBs associated with this model deployment shape.

Name string

The name of the model deployment shape.

coreCount Integer

The number of cores associated with this model deployment shape.

memoryInGbs Integer

The amount of memory in GBs associated with this model deployment shape.

name String

The name of the model deployment shape.

coreCount number

The number of cores associated with this model deployment shape.

memoryInGbs number

The amount of memory in GBs associated with this model deployment shape.

name string

The name of the model deployment shape.

core_count int

The number of cores associated with this model deployment shape.

memory_in_gbs int

The amount of memory in GBs associated with this model deployment shape.

name str

The name of the model deployment shape.

coreCount Number

The number of cores associated with this model deployment shape.

memoryInGbs Number

The amount of memory in GBs associated with this model deployment shape.

name String

The name of the model deployment shape.

Package Details

Repository
https://github.com/pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.