oci.DataScience.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 System.Collections.Generic;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testModelDeploymentShapes = Oci.DataScience.GetModelDeploymentShapes.Invoke(new()
{
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
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.DataScience.DataScienceFunctions;
import com.pulumi.oci.DataScience.inputs.GetModelDeploymentShapesArgs;
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 testModelDeploymentShapes = DataScienceFunctions.getModelDeploymentShapes(GetModelDeploymentShapesArgs.builder()
.compartmentId(var_.compartment_id())
.build());
}
}
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,
});
variables:
testModelDeploymentShapes:
fn::invoke:
Function: oci:DataScience:getModelDeploymentShapes
Arguments:
compartmentId: ${var.compartment_id}
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:
- Compartment
Id string Filter results by the OCID of the compartment.
- Filters
List<Get
Model Deployment Shapes Filter>
- Compartment
Id string Filter results by the OCID of the compartment.
- Filters
[]Get
Model Deployment Shapes Filter
- compartment
Id String Filter results by the OCID of the compartment.
- filters
List<Get
Model Deployment Shapes Filter>
- compartment
Id string Filter results by the OCID of the compartment.
- filters
Get
Model Deployment Shapes Filter[]
- compartment_
id str Filter results by the OCID of the compartment.
- filters
Get
Model Deployment Shapes Filter]
- compartment
Id String Filter results by the OCID of the compartment.
- filters List<Property Map>
getModelDeploymentShapes Result
The following output properties are available:
- Compartment
Id string - Id string
The provider-assigned unique ID for this managed resource.
- Model
Deployment List<GetShapes Model Deployment Shapes Model Deployment Shape> The list of model_deployment_shapes.
- Filters
List<Get
Model Deployment Shapes Filter>
- Compartment
Id string - Id string
The provider-assigned unique ID for this managed resource.
- Model
Deployment []GetShapes Model Deployment Shapes Model Deployment Shape The list of model_deployment_shapes.
- Filters
[]Get
Model Deployment Shapes Filter
- compartment
Id String - id String
The provider-assigned unique ID for this managed resource.
- model
Deployment List<GetShapes Model Deployment Shapes Model Deployment Shape> The list of model_deployment_shapes.
- filters
List<Get
Model Deployment Shapes Filter>
- compartment
Id string - id string
The provider-assigned unique ID for this managed resource.
- model
Deployment GetShapes Model Deployment Shapes Model Deployment Shape[] The list of model_deployment_shapes.
- filters
Get
Model Deployment Shapes Filter[]
- compartment_
id str - id str
The provider-assigned unique ID for this managed resource.
- model_
deployment_ Getshapes Model Deployment Shapes Model Deployment Shape] The list of model_deployment_shapes.
- filters
Get
Model Deployment Shapes Filter]
- compartment
Id String - id String
The provider-assigned unique ID for this managed resource.
- model
Deployment List<Property Map>Shapes The list of model_deployment_shapes.
- filters List<Property Map>
Supporting Types
GetModelDeploymentShapesFilter
GetModelDeploymentShapesModelDeploymentShape
- Core
Count int The number of cores associated with this model deployment shape.
- Memory
In intGbs The amount of memory in GBs associated with this model deployment shape.
- Name string
The name of the model deployment shape.
- Shape
Series string The family that the compute shape belongs to.
- Core
Count int The number of cores associated with this model deployment shape.
- Memory
In intGbs The amount of memory in GBs associated with this model deployment shape.
- Name string
The name of the model deployment shape.
- Shape
Series string The family that the compute shape belongs to.
- core
Count Integer The number of cores associated with this model deployment shape.
- memory
In IntegerGbs The amount of memory in GBs associated with this model deployment shape.
- name String
The name of the model deployment shape.
- shape
Series String The family that the compute shape belongs to.
- core
Count number The number of cores associated with this model deployment shape.
- memory
In numberGbs The amount of memory in GBs associated with this model deployment shape.
- name string
The name of the model deployment shape.
- shape
Series string The family that the compute shape belongs to.
- core_
count int The number of cores associated with this model deployment shape.
- memory_
in_ intgbs The amount of memory in GBs associated with this model deployment shape.
- name str
The name of the model deployment shape.
- shape_
series str The family that the compute shape belongs to.
- core
Count Number The number of cores associated with this model deployment shape.
- memory
In NumberGbs The amount of memory in GBs associated with this model deployment shape.
- name String
The name of the model deployment shape.
- shape
Series String The family that the compute shape belongs to.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
oci
Terraform Provider.