Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
oci.DataScience.getJobShapes
Explore with Pulumi AI
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
This data source provides the list of Job Shapes in Oracle Cloud Infrastructure Data Science service.
List job shapes available in the specified compartment.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testJobShapes = oci.DataScience.getJobShapes({
compartmentId: compartmentId,
});
import pulumi
import pulumi_oci as oci
test_job_shapes = oci.DataScience.get_job_shapes(compartment_id=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.GetJobShapes(ctx, &datascience.GetJobShapesArgs{
CompartmentId: compartmentId,
}, 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 testJobShapes = Oci.DataScience.GetJobShapes.Invoke(new()
{
CompartmentId = compartmentId,
});
});
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.GetJobShapesArgs;
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 testJobShapes = DataScienceFunctions.getJobShapes(GetJobShapesArgs.builder()
.compartmentId(compartmentId)
.build());
}
}
variables:
testJobShapes:
fn::invoke:
Function: oci:DataScience:getJobShapes
Arguments:
compartmentId: ${compartmentId}
Using getJobShapes
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 getJobShapes(args: GetJobShapesArgs, opts?: InvokeOptions): Promise<GetJobShapesResult>
function getJobShapesOutput(args: GetJobShapesOutputArgs, opts?: InvokeOptions): Output<GetJobShapesResult>
def get_job_shapes(compartment_id: Optional[str] = None,
filters: Optional[Sequence[_datascience.GetJobShapesFilter]] = None,
opts: Optional[InvokeOptions] = None) -> GetJobShapesResult
def get_job_shapes_output(compartment_id: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[_datascience.GetJobShapesFilterArgs]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetJobShapesResult]
func GetJobShapes(ctx *Context, args *GetJobShapesArgs, opts ...InvokeOption) (*GetJobShapesResult, error)
func GetJobShapesOutput(ctx *Context, args *GetJobShapesOutputArgs, opts ...InvokeOption) GetJobShapesResultOutput
> Note: This function is named GetJobShapes
in the Go SDK.
public static class GetJobShapes
{
public static Task<GetJobShapesResult> InvokeAsync(GetJobShapesArgs args, InvokeOptions? opts = null)
public static Output<GetJobShapesResult> Invoke(GetJobShapesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetJobShapesResult> getJobShapes(GetJobShapesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:DataScience/getJobShapes:getJobShapes
arguments:
# arguments dictionary
The following arguments are supported:
- Compartment
Id string - Filter results by the OCID of the compartment.
- Filters
List<Get
Job Shapes Filter>
- Compartment
Id string - Filter results by the OCID of the compartment.
- Filters
[]Get
Job Shapes Filter
- compartment
Id String - Filter results by the OCID of the compartment.
- filters
List<Get
Job Shapes Filter>
- compartment
Id string - Filter results by the OCID of the compartment.
- filters
Get
Job Shapes Filter[]
- compartment_
id str - Filter results by the OCID of the compartment.
- filters
Sequence[datascience.
Get Job Shapes Filter]
- compartment
Id String - Filter results by the OCID of the compartment.
- filters List<Property Map>
getJobShapes Result
The following output properties are available:
- Compartment
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Job
Shapes List<GetJob Shapes Job Shape> - The list of job_shapes.
- Filters
List<Get
Job Shapes Filter>
- Compartment
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Job
Shapes []GetJob Shapes Job Shape - The list of job_shapes.
- Filters
[]Get
Job Shapes Filter
- compartment
Id String - id String
- The provider-assigned unique ID for this managed resource.
- job
Shapes List<GetJob Shapes Job Shape> - The list of job_shapes.
- filters
List<Get
Job Shapes Filter>
- compartment
Id string - id string
- The provider-assigned unique ID for this managed resource.
- job
Shapes GetJob Shapes Job Shape[] - The list of job_shapes.
- filters
Get
Job Shapes Filter[]
- compartment_
id str - id str
- The provider-assigned unique ID for this managed resource.
- job_
shapes Sequence[datascience.Get Job Shapes Job Shape] - The list of job_shapes.
- filters
Sequence[datascience.
Get Job Shapes Filter]
- compartment
Id String - id String
- The provider-assigned unique ID for this managed resource.
- job
Shapes List<Property Map> - The list of job_shapes.
- filters List<Property Map>
Supporting Types
GetJobShapesFilter
GetJobShapesJobShape
- Core
Count int - The number of cores associated with this job run shape.
- Memory
In intGbs - The number of cores associated with this job shape.
- Name string
- The name of the job shape.
- Shape
Series string - The family that the compute shape belongs to.
- Core
Count int - The number of cores associated with this job run shape.
- Memory
In intGbs - The number of cores associated with this job shape.
- Name string
- The name of the job shape.
- Shape
Series string - The family that the compute shape belongs to.
- core
Count Integer - The number of cores associated with this job run shape.
- memory
In IntegerGbs - The number of cores associated with this job shape.
- name String
- The name of the job shape.
- shape
Series String - The family that the compute shape belongs to.
- core
Count number - The number of cores associated with this job run shape.
- memory
In numberGbs - The number of cores associated with this job shape.
- name string
- The name of the job shape.
- shape
Series string - The family that the compute shape belongs to.
- core_
count int - The number of cores associated with this job run shape.
- memory_
in_ intgbs - The number of cores associated with this job shape.
- name str
- The name of the job shape.
- shape_
series str - The family that the compute shape belongs to.
- core
Count Number - The number of cores associated with this job run shape.
- memory
In NumberGbs - The number of cores associated with this job shape.
- name String
- The name of the job 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.
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi