Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi
oci.DataScience.getNotebookSessionShapes
Explore with Pulumi AI
This data source provides the list of Notebook Session Shapes in Oracle Cloud Infrastructure Data Science service.
Lists the valid notebook session shapes.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testNotebookSessionShapes = oci.DataScience.getNotebookSessionShapes({
compartmentId: compartmentId,
});
import pulumi
import pulumi_oci as oci
test_notebook_session_shapes = oci.DataScience.get_notebook_session_shapes(compartment_id=compartment_id)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/DataScience"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := DataScience.GetNotebookSessionShapes(ctx, &datascience.GetNotebookSessionShapesArgs{
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 testNotebookSessionShapes = Oci.DataScience.GetNotebookSessionShapes.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.GetNotebookSessionShapesArgs;
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 testNotebookSessionShapes = DataScienceFunctions.getNotebookSessionShapes(GetNotebookSessionShapesArgs.builder()
.compartmentId(compartmentId)
.build());
}
}
variables:
testNotebookSessionShapes:
fn::invoke:
Function: oci:DataScience:getNotebookSessionShapes
Arguments:
compartmentId: ${compartmentId}
Using getNotebookSessionShapes
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 getNotebookSessionShapes(args: GetNotebookSessionShapesArgs, opts?: InvokeOptions): Promise<GetNotebookSessionShapesResult>
function getNotebookSessionShapesOutput(args: GetNotebookSessionShapesOutputArgs, opts?: InvokeOptions): Output<GetNotebookSessionShapesResult>
def get_notebook_session_shapes(compartment_id: Optional[str] = None,
filters: Optional[Sequence[_datascience.GetNotebookSessionShapesFilter]] = None,
opts: Optional[InvokeOptions] = None) -> GetNotebookSessionShapesResult
def get_notebook_session_shapes_output(compartment_id: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[_datascience.GetNotebookSessionShapesFilterArgs]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetNotebookSessionShapesResult]
func GetNotebookSessionShapes(ctx *Context, args *GetNotebookSessionShapesArgs, opts ...InvokeOption) (*GetNotebookSessionShapesResult, error)
func GetNotebookSessionShapesOutput(ctx *Context, args *GetNotebookSessionShapesOutputArgs, opts ...InvokeOption) GetNotebookSessionShapesResultOutput
> Note: This function is named GetNotebookSessionShapes
in the Go SDK.
public static class GetNotebookSessionShapes
{
public static Task<GetNotebookSessionShapesResult> InvokeAsync(GetNotebookSessionShapesArgs args, InvokeOptions? opts = null)
public static Output<GetNotebookSessionShapesResult> Invoke(GetNotebookSessionShapesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetNotebookSessionShapesResult> getNotebookSessionShapes(GetNotebookSessionShapesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:DataScience/getNotebookSessionShapes:getNotebookSessionShapes
arguments:
# arguments dictionary
The following arguments are supported:
- Compartment
Id string - Filter results by the OCID of the compartment.
- Filters
List<Get
Notebook Session Shapes Filter>
- Compartment
Id string - Filter results by the OCID of the compartment.
- Filters
[]Get
Notebook Session Shapes Filter
- compartment
Id String - Filter results by the OCID of the compartment.
- filters
List<Get
Notebook Session Shapes Filter>
- compartment
Id string - Filter results by the OCID of the compartment.
- filters
Get
Notebook Session Shapes Filter[]
- compartment_
id str - Filter results by the OCID of the compartment.
- filters
Sequence[datascience.
Get Notebook Session Shapes Filter]
- compartment
Id String - Filter results by the OCID of the compartment.
- filters List<Property Map>
getNotebookSessionShapes Result
The following output properties are available:
- Compartment
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Notebook
Session List<GetShapes Notebook Session Shapes Notebook Session Shape> - The list of notebook_session_shapes.
- Filters
List<Get
Notebook Session Shapes Filter>
- Compartment
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Notebook
Session []GetShapes Notebook Session Shapes Notebook Session Shape - The list of notebook_session_shapes.
- Filters
[]Get
Notebook Session Shapes Filter
- compartment
Id String - id String
- The provider-assigned unique ID for this managed resource.
- notebook
Session List<GetShapes Notebook Session Shapes Notebook Session Shape> - The list of notebook_session_shapes.
- filters
List<Get
Notebook Session Shapes Filter>
- compartment
Id string - id string
- The provider-assigned unique ID for this managed resource.
- notebook
Session GetShapes Notebook Session Shapes Notebook Session Shape[] - The list of notebook_session_shapes.
- filters
Get
Notebook Session Shapes Filter[]
- compartment_
id str - id str
- The provider-assigned unique ID for this managed resource.
- notebook_
session_ Sequence[datascience.shapes Get Notebook Session Shapes Notebook Session Shape] - The list of notebook_session_shapes.
- filters
Sequence[datascience.
Get Notebook Session Shapes Filter]
- compartment
Id String - id String
- The provider-assigned unique ID for this managed resource.
- notebook
Session List<Property Map>Shapes - The list of notebook_session_shapes.
- filters List<Property Map>
Supporting Types
GetNotebookSessionShapesFilter
GetNotebookSessionShapesNotebookSessionShape
- Core
Count int - The number of cores associated with this notebook session shape.
- Memory
In intGbs - The amount of memory in GBs associated with this notebook session shape.
- Name string
- The name of the notebook session shape.
- Shape
Series string - The family that the compute shape belongs to.
- Core
Count int - The number of cores associated with this notebook session shape.
- Memory
In intGbs - The amount of memory in GBs associated with this notebook session shape.
- Name string
- The name of the notebook session shape.
- Shape
Series string - The family that the compute shape belongs to.
- core
Count Integer - The number of cores associated with this notebook session shape.
- memory
In IntegerGbs - The amount of memory in GBs associated with this notebook session shape.
- name String
- The name of the notebook session shape.
- shape
Series String - The family that the compute shape belongs to.
- core
Count number - The number of cores associated with this notebook session shape.
- memory
In numberGbs - The amount of memory in GBs associated with this notebook session shape.
- name string
- The name of the notebook session shape.
- shape
Series string - The family that the compute shape belongs to.
- core_
count int - The number of cores associated with this notebook session shape.
- memory_
in_ intgbs - The amount of memory in GBs associated with this notebook session shape.
- name str
- The name of the notebook session shape.
- shape_
series str - The family that the compute shape belongs to.
- core
Count Number - The number of cores associated with this notebook session shape.
- memory
In NumberGbs - The amount of memory in GBs associated with this notebook session shape.
- name String
- The name of the notebook session 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.