1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. DataScience
  5. NotebookSession
Oracle Cloud Infrastructure v1.16.0 published on Thursday, Nov 2, 2023 by Pulumi

oci.DataScience.NotebookSession

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.16.0 published on Thursday, Nov 2, 2023 by Pulumi

    This resource provides the Notebook Session resource in Oracle Cloud Infrastructure Data Science service.

    Creates a new notebook session.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Oci = Pulumi.Oci;
    
    return await Deployment.RunAsync(() => 
    {
        var testNotebookSession = new Oci.DataScience.NotebookSession("testNotebookSession", new()
        {
            CompartmentId = @var.Compartment_id,
            ProjectId = oci_datascience_project.Test_project.Id,
            DefinedTags = 
            {
                { "Operations.CostCenter", "42" },
            },
            DisplayName = @var.Notebook_session_display_name,
            FreeformTags = 
            {
                { "Department", "Finance" },
            },
            NotebookSessionConfigDetails = new Oci.DataScience.Inputs.NotebookSessionNotebookSessionConfigDetailsArgs
            {
                Shape = @var.Notebook_session_notebook_session_config_details_shape,
                BlockStorageSizeInGbs = @var.Notebook_session_notebook_session_config_details_block_storage_size_in_gbs,
                NotebookSessionShapeConfigDetails = new Oci.DataScience.Inputs.NotebookSessionNotebookSessionConfigDetailsNotebookSessionShapeConfigDetailsArgs
                {
                    MemoryInGbs = @var.Notebook_session_notebook_session_config_details_notebook_session_shape_config_details_memory_in_gbs,
                    Ocpus = @var.Notebook_session_notebook_session_config_details_notebook_session_shape_config_details_ocpus,
                },
                PrivateEndpointId = oci_dataflow_private_endpoint.Test_private_endpoint.Id,
                SubnetId = oci_core_subnet.Test_subnet.Id,
            },
            NotebookSessionConfigurationDetails = new Oci.DataScience.Inputs.NotebookSessionNotebookSessionConfigurationDetailsArgs
            {
                Shape = @var.Notebook_session_notebook_session_configuration_details_shape,
                SubnetId = oci_core_subnet.Test_subnet.Id,
                BlockStorageSizeInGbs = @var.Notebook_session_notebook_session_configuration_details_block_storage_size_in_gbs,
                NotebookSessionShapeConfigDetails = new Oci.DataScience.Inputs.NotebookSessionNotebookSessionConfigurationDetailsNotebookSessionShapeConfigDetailsArgs
                {
                    MemoryInGbs = @var.Notebook_session_notebook_session_configuration_details_notebook_session_shape_config_details_memory_in_gbs,
                    Ocpus = @var.Notebook_session_notebook_session_configuration_details_notebook_session_shape_config_details_ocpus,
                },
                PrivateEndpointId = oci_dataflow_private_endpoint.Test_private_endpoint.Id,
            },
            NotebookSessionRuntimeConfigDetails = new Oci.DataScience.Inputs.NotebookSessionNotebookSessionRuntimeConfigDetailsArgs
            {
                CustomEnvironmentVariables = @var.Notebook_session_notebook_session_runtime_config_details_custom_environment_variables,
                NotebookSessionGitConfigDetails = new Oci.DataScience.Inputs.NotebookSessionNotebookSessionRuntimeConfigDetailsNotebookSessionGitConfigDetailsArgs
                {
                    NotebookSessionGitRepoConfigCollections = new[]
                    {
                        new Oci.DataScience.Inputs.NotebookSessionNotebookSessionRuntimeConfigDetailsNotebookSessionGitConfigDetailsNotebookSessionGitRepoConfigCollectionArgs
                        {
                            Url = @var.Notebook_session_notebook_session_runtime_config_details_notebook_session_git_config_details_notebook_session_git_repo_config_collection_url,
                        },
                    },
                },
            },
            NotebookSessionStorageMountConfigurationDetailsLists = new[]
            {
                new Oci.DataScience.Inputs.NotebookSessionNotebookSessionStorageMountConfigurationDetailsListArgs
                {
                    DestinationDirectoryName = @var.Notebook_session_notebook_session_storage_mount_configuration_details_list_destination_directory_name,
                    StorageType = @var.Notebook_session_notebook_session_storage_mount_configuration_details_list_storage_type,
                    Bucket = @var.Notebook_session_notebook_session_storage_mount_configuration_details_list_bucket,
                    DestinationPath = @var.Notebook_session_notebook_session_storage_mount_configuration_details_list_destination_path,
                    ExportId = oci_file_storage_export.Test_export.Id,
                    MountTargetId = oci_file_storage_mount_target.Test_mount_target.Id,
                    Namespace = @var.Notebook_session_notebook_session_storage_mount_configuration_details_list_namespace,
                    Prefix = @var.Notebook_session_notebook_session_storage_mount_configuration_details_list_prefix,
                },
            },
        });
    
    });
    
    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.NewNotebookSession(ctx, "testNotebookSession", &DataScience.NotebookSessionArgs{
    			CompartmentId: pulumi.Any(_var.Compartment_id),
    			ProjectId:     pulumi.Any(oci_datascience_project.Test_project.Id),
    			DefinedTags: pulumi.Map{
    				"Operations.CostCenter": pulumi.Any("42"),
    			},
    			DisplayName: pulumi.Any(_var.Notebook_session_display_name),
    			FreeformTags: pulumi.Map{
    				"Department": pulumi.Any("Finance"),
    			},
    			NotebookSessionConfigDetails: &datascience.NotebookSessionNotebookSessionConfigDetailsArgs{
    				Shape:                 pulumi.Any(_var.Notebook_session_notebook_session_config_details_shape),
    				BlockStorageSizeInGbs: pulumi.Any(_var.Notebook_session_notebook_session_config_details_block_storage_size_in_gbs),
    				NotebookSessionShapeConfigDetails: &datascience.NotebookSessionNotebookSessionConfigDetailsNotebookSessionShapeConfigDetailsArgs{
    					MemoryInGbs: pulumi.Any(_var.Notebook_session_notebook_session_config_details_notebook_session_shape_config_details_memory_in_gbs),
    					Ocpus:       pulumi.Any(_var.Notebook_session_notebook_session_config_details_notebook_session_shape_config_details_ocpus),
    				},
    				PrivateEndpointId: pulumi.Any(oci_dataflow_private_endpoint.Test_private_endpoint.Id),
    				SubnetId:          pulumi.Any(oci_core_subnet.Test_subnet.Id),
    			},
    			NotebookSessionConfigurationDetails: &datascience.NotebookSessionNotebookSessionConfigurationDetailsArgs{
    				Shape:                 pulumi.Any(_var.Notebook_session_notebook_session_configuration_details_shape),
    				SubnetId:              pulumi.Any(oci_core_subnet.Test_subnet.Id),
    				BlockStorageSizeInGbs: pulumi.Any(_var.Notebook_session_notebook_session_configuration_details_block_storage_size_in_gbs),
    				NotebookSessionShapeConfigDetails: &datascience.NotebookSessionNotebookSessionConfigurationDetailsNotebookSessionShapeConfigDetailsArgs{
    					MemoryInGbs: pulumi.Any(_var.Notebook_session_notebook_session_configuration_details_notebook_session_shape_config_details_memory_in_gbs),
    					Ocpus:       pulumi.Any(_var.Notebook_session_notebook_session_configuration_details_notebook_session_shape_config_details_ocpus),
    				},
    				PrivateEndpointId: pulumi.Any(oci_dataflow_private_endpoint.Test_private_endpoint.Id),
    			},
    			NotebookSessionRuntimeConfigDetails: &datascience.NotebookSessionNotebookSessionRuntimeConfigDetailsArgs{
    				CustomEnvironmentVariables: pulumi.Any(_var.Notebook_session_notebook_session_runtime_config_details_custom_environment_variables),
    				NotebookSessionGitConfigDetails: &datascience.NotebookSessionNotebookSessionRuntimeConfigDetailsNotebookSessionGitConfigDetailsArgs{
    					NotebookSessionGitRepoConfigCollections: datascience.NotebookSessionNotebookSessionRuntimeConfigDetailsNotebookSessionGitConfigDetailsNotebookSessionGitRepoConfigCollectionArray{
    						&datascience.NotebookSessionNotebookSessionRuntimeConfigDetailsNotebookSessionGitConfigDetailsNotebookSessionGitRepoConfigCollectionArgs{
    							Url: pulumi.Any(_var.Notebook_session_notebook_session_runtime_config_details_notebook_session_git_config_details_notebook_session_git_repo_config_collection_url),
    						},
    					},
    				},
    			},
    			NotebookSessionStorageMountConfigurationDetailsLists: datascience.NotebookSessionNotebookSessionStorageMountConfigurationDetailsListArray{
    				&datascience.NotebookSessionNotebookSessionStorageMountConfigurationDetailsListArgs{
    					DestinationDirectoryName: pulumi.Any(_var.Notebook_session_notebook_session_storage_mount_configuration_details_list_destination_directory_name),
    					StorageType:              pulumi.Any(_var.Notebook_session_notebook_session_storage_mount_configuration_details_list_storage_type),
    					Bucket:                   pulumi.Any(_var.Notebook_session_notebook_session_storage_mount_configuration_details_list_bucket),
    					DestinationPath:          pulumi.Any(_var.Notebook_session_notebook_session_storage_mount_configuration_details_list_destination_path),
    					ExportId:                 pulumi.Any(oci_file_storage_export.Test_export.Id),
    					MountTargetId:            pulumi.Any(oci_file_storage_mount_target.Test_mount_target.Id),
    					Namespace:                pulumi.Any(_var.Notebook_session_notebook_session_storage_mount_configuration_details_list_namespace),
    					Prefix:                   pulumi.Any(_var.Notebook_session_notebook_session_storage_mount_configuration_details_list_prefix),
    				},
    			},
    		})
    		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.NotebookSession;
    import com.pulumi.oci.DataScience.NotebookSessionArgs;
    import com.pulumi.oci.DataScience.inputs.NotebookSessionNotebookSessionConfigDetailsArgs;
    import com.pulumi.oci.DataScience.inputs.NotebookSessionNotebookSessionConfigDetailsNotebookSessionShapeConfigDetailsArgs;
    import com.pulumi.oci.DataScience.inputs.NotebookSessionNotebookSessionConfigurationDetailsArgs;
    import com.pulumi.oci.DataScience.inputs.NotebookSessionNotebookSessionConfigurationDetailsNotebookSessionShapeConfigDetailsArgs;
    import com.pulumi.oci.DataScience.inputs.NotebookSessionNotebookSessionRuntimeConfigDetailsArgs;
    import com.pulumi.oci.DataScience.inputs.NotebookSessionNotebookSessionRuntimeConfigDetailsNotebookSessionGitConfigDetailsArgs;
    import com.pulumi.oci.DataScience.inputs.NotebookSessionNotebookSessionStorageMountConfigurationDetailsListArgs;
    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) {
            var testNotebookSession = new NotebookSession("testNotebookSession", NotebookSessionArgs.builder()        
                .compartmentId(var_.compartment_id())
                .projectId(oci_datascience_project.test_project().id())
                .definedTags(Map.of("Operations.CostCenter", "42"))
                .displayName(var_.notebook_session_display_name())
                .freeformTags(Map.of("Department", "Finance"))
                .notebookSessionConfigDetails(NotebookSessionNotebookSessionConfigDetailsArgs.builder()
                    .shape(var_.notebook_session_notebook_session_config_details_shape())
                    .blockStorageSizeInGbs(var_.notebook_session_notebook_session_config_details_block_storage_size_in_gbs())
                    .notebookSessionShapeConfigDetails(NotebookSessionNotebookSessionConfigDetailsNotebookSessionShapeConfigDetailsArgs.builder()
                        .memoryInGbs(var_.notebook_session_notebook_session_config_details_notebook_session_shape_config_details_memory_in_gbs())
                        .ocpus(var_.notebook_session_notebook_session_config_details_notebook_session_shape_config_details_ocpus())
                        .build())
                    .privateEndpointId(oci_dataflow_private_endpoint.test_private_endpoint().id())
                    .subnetId(oci_core_subnet.test_subnet().id())
                    .build())
                .notebookSessionConfigurationDetails(NotebookSessionNotebookSessionConfigurationDetailsArgs.builder()
                    .shape(var_.notebook_session_notebook_session_configuration_details_shape())
                    .subnetId(oci_core_subnet.test_subnet().id())
                    .blockStorageSizeInGbs(var_.notebook_session_notebook_session_configuration_details_block_storage_size_in_gbs())
                    .notebookSessionShapeConfigDetails(NotebookSessionNotebookSessionConfigurationDetailsNotebookSessionShapeConfigDetailsArgs.builder()
                        .memoryInGbs(var_.notebook_session_notebook_session_configuration_details_notebook_session_shape_config_details_memory_in_gbs())
                        .ocpus(var_.notebook_session_notebook_session_configuration_details_notebook_session_shape_config_details_ocpus())
                        .build())
                    .privateEndpointId(oci_dataflow_private_endpoint.test_private_endpoint().id())
                    .build())
                .notebookSessionRuntimeConfigDetails(NotebookSessionNotebookSessionRuntimeConfigDetailsArgs.builder()
                    .customEnvironmentVariables(var_.notebook_session_notebook_session_runtime_config_details_custom_environment_variables())
                    .notebookSessionGitConfigDetails(NotebookSessionNotebookSessionRuntimeConfigDetailsNotebookSessionGitConfigDetailsArgs.builder()
                        .notebookSessionGitRepoConfigCollections(NotebookSessionNotebookSessionRuntimeConfigDetailsNotebookSessionGitConfigDetailsNotebookSessionGitRepoConfigCollectionArgs.builder()
                            .url(var_.notebook_session_notebook_session_runtime_config_details_notebook_session_git_config_details_notebook_session_git_repo_config_collection_url())
                            .build())
                        .build())
                    .build())
                .notebookSessionStorageMountConfigurationDetailsLists(NotebookSessionNotebookSessionStorageMountConfigurationDetailsListArgs.builder()
                    .destinationDirectoryName(var_.notebook_session_notebook_session_storage_mount_configuration_details_list_destination_directory_name())
                    .storageType(var_.notebook_session_notebook_session_storage_mount_configuration_details_list_storage_type())
                    .bucket(var_.notebook_session_notebook_session_storage_mount_configuration_details_list_bucket())
                    .destinationPath(var_.notebook_session_notebook_session_storage_mount_configuration_details_list_destination_path())
                    .exportId(oci_file_storage_export.test_export().id())
                    .mountTargetId(oci_file_storage_mount_target.test_mount_target().id())
                    .namespace(var_.notebook_session_notebook_session_storage_mount_configuration_details_list_namespace())
                    .prefix(var_.notebook_session_notebook_session_storage_mount_configuration_details_list_prefix())
                    .build())
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_oci as oci
    
    test_notebook_session = oci.data_science.NotebookSession("testNotebookSession",
        compartment_id=var["compartment_id"],
        project_id=oci_datascience_project["test_project"]["id"],
        defined_tags={
            "Operations.CostCenter": "42",
        },
        display_name=var["notebook_session_display_name"],
        freeform_tags={
            "Department": "Finance",
        },
        notebook_session_config_details=oci.data_science.NotebookSessionNotebookSessionConfigDetailsArgs(
            shape=var["notebook_session_notebook_session_config_details_shape"],
            block_storage_size_in_gbs=var["notebook_session_notebook_session_config_details_block_storage_size_in_gbs"],
            notebook_session_shape_config_details=oci.data_science.NotebookSessionNotebookSessionConfigDetailsNotebookSessionShapeConfigDetailsArgs(
                memory_in_gbs=var["notebook_session_notebook_session_config_details_notebook_session_shape_config_details_memory_in_gbs"],
                ocpus=var["notebook_session_notebook_session_config_details_notebook_session_shape_config_details_ocpus"],
            ),
            private_endpoint_id=oci_dataflow_private_endpoint["test_private_endpoint"]["id"],
            subnet_id=oci_core_subnet["test_subnet"]["id"],
        ),
        notebook_session_configuration_details=oci.data_science.NotebookSessionNotebookSessionConfigurationDetailsArgs(
            shape=var["notebook_session_notebook_session_configuration_details_shape"],
            subnet_id=oci_core_subnet["test_subnet"]["id"],
            block_storage_size_in_gbs=var["notebook_session_notebook_session_configuration_details_block_storage_size_in_gbs"],
            notebook_session_shape_config_details=oci.data_science.NotebookSessionNotebookSessionConfigurationDetailsNotebookSessionShapeConfigDetailsArgs(
                memory_in_gbs=var["notebook_session_notebook_session_configuration_details_notebook_session_shape_config_details_memory_in_gbs"],
                ocpus=var["notebook_session_notebook_session_configuration_details_notebook_session_shape_config_details_ocpus"],
            ),
            private_endpoint_id=oci_dataflow_private_endpoint["test_private_endpoint"]["id"],
        ),
        notebook_session_runtime_config_details=oci.data_science.NotebookSessionNotebookSessionRuntimeConfigDetailsArgs(
            custom_environment_variables=var["notebook_session_notebook_session_runtime_config_details_custom_environment_variables"],
            notebook_session_git_config_details=oci.data_science.NotebookSessionNotebookSessionRuntimeConfigDetailsNotebookSessionGitConfigDetailsArgs(
                notebook_session_git_repo_config_collections=[oci.data_science.NotebookSessionNotebookSessionRuntimeConfigDetailsNotebookSessionGitConfigDetailsNotebookSessionGitRepoConfigCollectionArgs(
                    url=var["notebook_session_notebook_session_runtime_config_details_notebook_session_git_config_details_notebook_session_git_repo_config_collection_url"],
                )],
            ),
        ),
        notebook_session_storage_mount_configuration_details_lists=[oci.data_science.NotebookSessionNotebookSessionStorageMountConfigurationDetailsListArgs(
            destination_directory_name=var["notebook_session_notebook_session_storage_mount_configuration_details_list_destination_directory_name"],
            storage_type=var["notebook_session_notebook_session_storage_mount_configuration_details_list_storage_type"],
            bucket=var["notebook_session_notebook_session_storage_mount_configuration_details_list_bucket"],
            destination_path=var["notebook_session_notebook_session_storage_mount_configuration_details_list_destination_path"],
            export_id=oci_file_storage_export["test_export"]["id"],
            mount_target_id=oci_file_storage_mount_target["test_mount_target"]["id"],
            namespace=var["notebook_session_notebook_session_storage_mount_configuration_details_list_namespace"],
            prefix=var["notebook_session_notebook_session_storage_mount_configuration_details_list_prefix"],
        )])
    
    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testNotebookSession = new oci.datascience.NotebookSession("testNotebookSession", {
        compartmentId: _var.compartment_id,
        projectId: oci_datascience_project.test_project.id,
        definedTags: {
            "Operations.CostCenter": "42",
        },
        displayName: _var.notebook_session_display_name,
        freeformTags: {
            Department: "Finance",
        },
        notebookSessionConfigDetails: {
            shape: _var.notebook_session_notebook_session_config_details_shape,
            blockStorageSizeInGbs: _var.notebook_session_notebook_session_config_details_block_storage_size_in_gbs,
            notebookSessionShapeConfigDetails: {
                memoryInGbs: _var.notebook_session_notebook_session_config_details_notebook_session_shape_config_details_memory_in_gbs,
                ocpus: _var.notebook_session_notebook_session_config_details_notebook_session_shape_config_details_ocpus,
            },
            privateEndpointId: oci_dataflow_private_endpoint.test_private_endpoint.id,
            subnetId: oci_core_subnet.test_subnet.id,
        },
        notebookSessionConfigurationDetails: {
            shape: _var.notebook_session_notebook_session_configuration_details_shape,
            subnetId: oci_core_subnet.test_subnet.id,
            blockStorageSizeInGbs: _var.notebook_session_notebook_session_configuration_details_block_storage_size_in_gbs,
            notebookSessionShapeConfigDetails: {
                memoryInGbs: _var.notebook_session_notebook_session_configuration_details_notebook_session_shape_config_details_memory_in_gbs,
                ocpus: _var.notebook_session_notebook_session_configuration_details_notebook_session_shape_config_details_ocpus,
            },
            privateEndpointId: oci_dataflow_private_endpoint.test_private_endpoint.id,
        },
        notebookSessionRuntimeConfigDetails: {
            customEnvironmentVariables: _var.notebook_session_notebook_session_runtime_config_details_custom_environment_variables,
            notebookSessionGitConfigDetails: {
                notebookSessionGitRepoConfigCollections: [{
                    url: _var.notebook_session_notebook_session_runtime_config_details_notebook_session_git_config_details_notebook_session_git_repo_config_collection_url,
                }],
            },
        },
        notebookSessionStorageMountConfigurationDetailsLists: [{
            destinationDirectoryName: _var.notebook_session_notebook_session_storage_mount_configuration_details_list_destination_directory_name,
            storageType: _var.notebook_session_notebook_session_storage_mount_configuration_details_list_storage_type,
            bucket: _var.notebook_session_notebook_session_storage_mount_configuration_details_list_bucket,
            destinationPath: _var.notebook_session_notebook_session_storage_mount_configuration_details_list_destination_path,
            exportId: oci_file_storage_export.test_export.id,
            mountTargetId: oci_file_storage_mount_target.test_mount_target.id,
            namespace: _var.notebook_session_notebook_session_storage_mount_configuration_details_list_namespace,
            prefix: _var.notebook_session_notebook_session_storage_mount_configuration_details_list_prefix,
        }],
    });
    
    resources:
      testNotebookSession:
        type: oci:DataScience:NotebookSession
        properties:
          #Required
          compartmentId: ${var.compartment_id}
          projectId: ${oci_datascience_project.test_project.id}
          #Optional
          definedTags:
            Operations.CostCenter: '42'
          displayName: ${var.notebook_session_display_name}
          freeformTags:
            Department: Finance
          notebookSessionConfigDetails:
            shape: ${var.notebook_session_notebook_session_config_details_shape}
            blockStorageSizeInGbs: ${var.notebook_session_notebook_session_config_details_block_storage_size_in_gbs}
            notebookSessionShapeConfigDetails:
              memoryInGbs: ${var.notebook_session_notebook_session_config_details_notebook_session_shape_config_details_memory_in_gbs}
              ocpus: ${var.notebook_session_notebook_session_config_details_notebook_session_shape_config_details_ocpus}
            privateEndpointId: ${oci_dataflow_private_endpoint.test_private_endpoint.id}
            subnetId: ${oci_core_subnet.test_subnet.id}
          notebookSessionConfigurationDetails:
            shape: ${var.notebook_session_notebook_session_configuration_details_shape}
            subnetId: ${oci_core_subnet.test_subnet.id}
            blockStorageSizeInGbs: ${var.notebook_session_notebook_session_configuration_details_block_storage_size_in_gbs}
            notebookSessionShapeConfigDetails:
              memoryInGbs: ${var.notebook_session_notebook_session_configuration_details_notebook_session_shape_config_details_memory_in_gbs}
              ocpus: ${var.notebook_session_notebook_session_configuration_details_notebook_session_shape_config_details_ocpus}
            privateEndpointId: ${oci_dataflow_private_endpoint.test_private_endpoint.id}
          notebookSessionRuntimeConfigDetails:
            customEnvironmentVariables: ${var.notebook_session_notebook_session_runtime_config_details_custom_environment_variables}
            notebookSessionGitConfigDetails:
              notebookSessionGitRepoConfigCollections:
                - url: ${var.notebook_session_notebook_session_runtime_config_details_notebook_session_git_config_details_notebook_session_git_repo_config_collection_url}
          notebookSessionStorageMountConfigurationDetailsLists:
            - destinationDirectoryName: ${var.notebook_session_notebook_session_storage_mount_configuration_details_list_destination_directory_name}
              storageType: ${var.notebook_session_notebook_session_storage_mount_configuration_details_list_storage_type}
              bucket: ${var.notebook_session_notebook_session_storage_mount_configuration_details_list_bucket}
              destinationPath: ${var.notebook_session_notebook_session_storage_mount_configuration_details_list_destination_path}
              exportId: ${oci_file_storage_export.test_export.id}
              mountTargetId: ${oci_file_storage_mount_target.test_mount_target.id}
              namespace: ${var.notebook_session_notebook_session_storage_mount_configuration_details_list_namespace}
              prefix: ${var.notebook_session_notebook_session_storage_mount_configuration_details_list_prefix}
    

    Create NotebookSession Resource

    new NotebookSession(name: string, args: NotebookSessionArgs, opts?: CustomResourceOptions);
    @overload
    def NotebookSession(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        compartment_id: Optional[str] = None,
                        defined_tags: Optional[Mapping[str, Any]] = None,
                        display_name: Optional[str] = None,
                        freeform_tags: Optional[Mapping[str, Any]] = None,
                        notebook_session_config_details: Optional[_datascience.NotebookSessionNotebookSessionConfigDetailsArgs] = None,
                        notebook_session_configuration_details: Optional[_datascience.NotebookSessionNotebookSessionConfigurationDetailsArgs] = None,
                        notebook_session_runtime_config_details: Optional[_datascience.NotebookSessionNotebookSessionRuntimeConfigDetailsArgs] = None,
                        notebook_session_storage_mount_configuration_details_lists: Optional[Sequence[_datascience.NotebookSessionNotebookSessionStorageMountConfigurationDetailsListArgs]] = None,
                        project_id: Optional[str] = None,
                        state: Optional[str] = None)
    @overload
    def NotebookSession(resource_name: str,
                        args: NotebookSessionArgs,
                        opts: Optional[ResourceOptions] = None)
    func NewNotebookSession(ctx *Context, name string, args NotebookSessionArgs, opts ...ResourceOption) (*NotebookSession, error)
    public NotebookSession(string name, NotebookSessionArgs args, CustomResourceOptions? opts = null)
    public NotebookSession(String name, NotebookSessionArgs args)
    public NotebookSession(String name, NotebookSessionArgs args, CustomResourceOptions options)
    
    type: oci:DataScience:NotebookSession
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args NotebookSessionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args NotebookSessionArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args NotebookSessionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args NotebookSessionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args NotebookSessionArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    NotebookSession Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The NotebookSession resource accepts the following input properties:

    CompartmentId string

    (Updatable) The OCID of the compartment where you want to create the notebook session.

    ProjectId string

    The OCID of the project to associate with the notebook session.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    DefinedTags Dictionary<string, object>

    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"Operations.CostCenter": "42"}

    DisplayName string

    (Updatable) A user-friendly display name for the resource. It does not have to be unique and can be modified. Avoid entering confidential information. Example: My NotebookSession

    FreeformTags Dictionary<string, object>

    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. See Resource Tags. Example: {"Department": "Finance"}

    NotebookSessionConfigDetails NotebookSessionNotebookSessionConfigDetails

    Details for the notebook session configuration.

    NotebookSessionConfigurationDetails NotebookSessionNotebookSessionConfigurationDetails

    (Updatable) Details for the notebook session configuration.

    NotebookSessionRuntimeConfigDetails NotebookSessionNotebookSessionRuntimeConfigDetails

    (Updatable) Notebook Session runtime configuration details.

    NotebookSessionStorageMountConfigurationDetailsLists List<NotebookSessionNotebookSessionStorageMountConfigurationDetailsList>

    (Updatable) Collection of NotebookSessionStorageMountConfigurationDetails.

    State string

    The state of the notebook session.

    CompartmentId string

    (Updatable) The OCID of the compartment where you want to create the notebook session.

    ProjectId string

    The OCID of the project to associate with the notebook session.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    DefinedTags map[string]interface{}

    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"Operations.CostCenter": "42"}

    DisplayName string

    (Updatable) A user-friendly display name for the resource. It does not have to be unique and can be modified. Avoid entering confidential information. Example: My NotebookSession

    FreeformTags map[string]interface{}

    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. See Resource Tags. Example: {"Department": "Finance"}

    NotebookSessionConfigDetails NotebookSessionNotebookSessionConfigDetailsArgs

    Details for the notebook session configuration.

    NotebookSessionConfigurationDetails NotebookSessionNotebookSessionConfigurationDetailsArgs

    (Updatable) Details for the notebook session configuration.

    NotebookSessionRuntimeConfigDetails NotebookSessionNotebookSessionRuntimeConfigDetailsArgs

    (Updatable) Notebook Session runtime configuration details.

    NotebookSessionStorageMountConfigurationDetailsLists []NotebookSessionNotebookSessionStorageMountConfigurationDetailsListArgs

    (Updatable) Collection of NotebookSessionStorageMountConfigurationDetails.

    State string

    The state of the notebook session.

    compartmentId String

    (Updatable) The OCID of the compartment where you want to create the notebook session.

    projectId String

    The OCID of the project to associate with the notebook session.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    definedTags Map<String,Object>

    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"Operations.CostCenter": "42"}

    displayName String

    (Updatable) A user-friendly display name for the resource. It does not have to be unique and can be modified. Avoid entering confidential information. Example: My NotebookSession

    freeformTags Map<String,Object>

    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. See Resource Tags. Example: {"Department": "Finance"}

    notebookSessionConfigDetails NotebookSessionNotebookSessionConfigDetails

    Details for the notebook session configuration.

    notebookSessionConfigurationDetails NotebookSessionNotebookSessionConfigurationDetails

    (Updatable) Details for the notebook session configuration.

    notebookSessionRuntimeConfigDetails NotebookSessionNotebookSessionRuntimeConfigDetails

    (Updatable) Notebook Session runtime configuration details.

    notebookSessionStorageMountConfigurationDetailsLists List<NotebookSessionNotebookSessionStorageMountConfigurationDetailsList>

    (Updatable) Collection of NotebookSessionStorageMountConfigurationDetails.

    state String

    The state of the notebook session.

    compartmentId string

    (Updatable) The OCID of the compartment where you want to create the notebook session.

    projectId string

    The OCID of the project to associate with the notebook session.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    definedTags {[key: string]: any}

    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"Operations.CostCenter": "42"}

    displayName string

    (Updatable) A user-friendly display name for the resource. It does not have to be unique and can be modified. Avoid entering confidential information. Example: My NotebookSession

    freeformTags {[key: string]: any}

    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. See Resource Tags. Example: {"Department": "Finance"}

    notebookSessionConfigDetails NotebookSessionNotebookSessionConfigDetails

    Details for the notebook session configuration.

    notebookSessionConfigurationDetails NotebookSessionNotebookSessionConfigurationDetails

    (Updatable) Details for the notebook session configuration.

    notebookSessionRuntimeConfigDetails NotebookSessionNotebookSessionRuntimeConfigDetails

    (Updatable) Notebook Session runtime configuration details.

    notebookSessionStorageMountConfigurationDetailsLists NotebookSessionNotebookSessionStorageMountConfigurationDetailsList[]

    (Updatable) Collection of NotebookSessionStorageMountConfigurationDetails.

    state string

    The state of the notebook session.

    compartment_id str

    (Updatable) The OCID of the compartment where you want to create the notebook session.

    project_id str

    The OCID of the project to associate with the notebook session.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    defined_tags Mapping[str, Any]

    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"Operations.CostCenter": "42"}

    display_name str

    (Updatable) A user-friendly display name for the resource. It does not have to be unique and can be modified. Avoid entering confidential information. Example: My NotebookSession

    freeform_tags Mapping[str, Any]

    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. See Resource Tags. Example: {"Department": "Finance"}

    notebook_session_config_details NotebookSessionNotebookSessionConfigDetailsArgs

    Details for the notebook session configuration.

    notebook_session_configuration_details NotebookSessionNotebookSessionConfigurationDetailsArgs

    (Updatable) Details for the notebook session configuration.

    notebook_session_runtime_config_details NotebookSessionNotebookSessionRuntimeConfigDetailsArgs

    (Updatable) Notebook Session runtime configuration details.

    notebook_session_storage_mount_configuration_details_lists NotebookSessionNotebookSessionStorageMountConfigurationDetailsListArgs]

    (Updatable) Collection of NotebookSessionStorageMountConfigurationDetails.

    state str

    The state of the notebook session.

    compartmentId String

    (Updatable) The OCID of the compartment where you want to create the notebook session.

    projectId String

    The OCID of the project to associate with the notebook session.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    definedTags Map<Any>

    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"Operations.CostCenter": "42"}

    displayName String

    (Updatable) A user-friendly display name for the resource. It does not have to be unique and can be modified. Avoid entering confidential information. Example: My NotebookSession

    freeformTags Map<Any>

    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. See Resource Tags. Example: {"Department": "Finance"}

    notebookSessionConfigDetails Property Map

    Details for the notebook session configuration.

    notebookSessionConfigurationDetails Property Map

    (Updatable) Details for the notebook session configuration.

    notebookSessionRuntimeConfigDetails Property Map

    (Updatable) Notebook Session runtime configuration details.

    notebookSessionStorageMountConfigurationDetailsLists List<Property Map>

    (Updatable) Collection of NotebookSessionStorageMountConfigurationDetails.

    state String

    The state of the notebook session.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the NotebookSession resource produces the following output properties:

    CreatedBy string

    The OCID of the user who created the notebook session.

    Id string

    The provider-assigned unique ID for this managed resource.

    LifecycleDetails string

    Details about the state of the notebook session.

    NotebookSessionUrl string

    The URL to interact with the notebook session.

    TimeCreated string

    The date and time the resource was created in the timestamp format defined by RFC3339. Example: 2019-08-25T21:10:29.41Z

    CreatedBy string

    The OCID of the user who created the notebook session.

    Id string

    The provider-assigned unique ID for this managed resource.

    LifecycleDetails string

    Details about the state of the notebook session.

    NotebookSessionUrl string

    The URL to interact with the notebook session.

    TimeCreated string

    The date and time the resource was created in the timestamp format defined by RFC3339. Example: 2019-08-25T21:10:29.41Z

    createdBy String

    The OCID of the user who created the notebook session.

    id String

    The provider-assigned unique ID for this managed resource.

    lifecycleDetails String

    Details about the state of the notebook session.

    notebookSessionUrl String

    The URL to interact with the notebook session.

    timeCreated String

    The date and time the resource was created in the timestamp format defined by RFC3339. Example: 2019-08-25T21:10:29.41Z

    createdBy string

    The OCID of the user who created the notebook session.

    id string

    The provider-assigned unique ID for this managed resource.

    lifecycleDetails string

    Details about the state of the notebook session.

    notebookSessionUrl string

    The URL to interact with the notebook session.

    timeCreated string

    The date and time the resource was created in the timestamp format defined by RFC3339. Example: 2019-08-25T21:10:29.41Z

    created_by str

    The OCID of the user who created the notebook session.

    id str

    The provider-assigned unique ID for this managed resource.

    lifecycle_details str

    Details about the state of the notebook session.

    notebook_session_url str

    The URL to interact with the notebook session.

    time_created str

    The date and time the resource was created in the timestamp format defined by RFC3339. Example: 2019-08-25T21:10:29.41Z

    createdBy String

    The OCID of the user who created the notebook session.

    id String

    The provider-assigned unique ID for this managed resource.

    lifecycleDetails String

    Details about the state of the notebook session.

    notebookSessionUrl String

    The URL to interact with the notebook session.

    timeCreated String

    The date and time the resource was created in the timestamp format defined by RFC3339. Example: 2019-08-25T21:10:29.41Z

    Look up Existing NotebookSession Resource

    Get an existing NotebookSession resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: NotebookSessionState, opts?: CustomResourceOptions): NotebookSession
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            compartment_id: Optional[str] = None,
            created_by: Optional[str] = None,
            defined_tags: Optional[Mapping[str, Any]] = None,
            display_name: Optional[str] = None,
            freeform_tags: Optional[Mapping[str, Any]] = None,
            lifecycle_details: Optional[str] = None,
            notebook_session_config_details: Optional[_datascience.NotebookSessionNotebookSessionConfigDetailsArgs] = None,
            notebook_session_configuration_details: Optional[_datascience.NotebookSessionNotebookSessionConfigurationDetailsArgs] = None,
            notebook_session_runtime_config_details: Optional[_datascience.NotebookSessionNotebookSessionRuntimeConfigDetailsArgs] = None,
            notebook_session_storage_mount_configuration_details_lists: Optional[Sequence[_datascience.NotebookSessionNotebookSessionStorageMountConfigurationDetailsListArgs]] = None,
            notebook_session_url: Optional[str] = None,
            project_id: Optional[str] = None,
            state: Optional[str] = None,
            time_created: Optional[str] = None) -> NotebookSession
    func GetNotebookSession(ctx *Context, name string, id IDInput, state *NotebookSessionState, opts ...ResourceOption) (*NotebookSession, error)
    public static NotebookSession Get(string name, Input<string> id, NotebookSessionState? state, CustomResourceOptions? opts = null)
    public static NotebookSession get(String name, Output<String> id, NotebookSessionState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    CompartmentId string

    (Updatable) The OCID of the compartment where you want to create the notebook session.

    CreatedBy string

    The OCID of the user who created the notebook session.

    DefinedTags Dictionary<string, object>

    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"Operations.CostCenter": "42"}

    DisplayName string

    (Updatable) A user-friendly display name for the resource. It does not have to be unique and can be modified. Avoid entering confidential information. Example: My NotebookSession

    FreeformTags Dictionary<string, object>

    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. See Resource Tags. Example: {"Department": "Finance"}

    LifecycleDetails string

    Details about the state of the notebook session.

    NotebookSessionConfigDetails NotebookSessionNotebookSessionConfigDetails

    Details for the notebook session configuration.

    NotebookSessionConfigurationDetails NotebookSessionNotebookSessionConfigurationDetails

    (Updatable) Details for the notebook session configuration.

    NotebookSessionRuntimeConfigDetails NotebookSessionNotebookSessionRuntimeConfigDetails

    (Updatable) Notebook Session runtime configuration details.

    NotebookSessionStorageMountConfigurationDetailsLists List<NotebookSessionNotebookSessionStorageMountConfigurationDetailsList>

    (Updatable) Collection of NotebookSessionStorageMountConfigurationDetails.

    NotebookSessionUrl string

    The URL to interact with the notebook session.

    ProjectId string

    The OCID of the project to associate with the notebook session.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    State string

    The state of the notebook session.

    TimeCreated string

    The date and time the resource was created in the timestamp format defined by RFC3339. Example: 2019-08-25T21:10:29.41Z

    CompartmentId string

    (Updatable) The OCID of the compartment where you want to create the notebook session.

    CreatedBy string

    The OCID of the user who created the notebook session.

    DefinedTags map[string]interface{}

    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"Operations.CostCenter": "42"}

    DisplayName string

    (Updatable) A user-friendly display name for the resource. It does not have to be unique and can be modified. Avoid entering confidential information. Example: My NotebookSession

    FreeformTags map[string]interface{}

    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. See Resource Tags. Example: {"Department": "Finance"}

    LifecycleDetails string

    Details about the state of the notebook session.

    NotebookSessionConfigDetails NotebookSessionNotebookSessionConfigDetailsArgs

    Details for the notebook session configuration.

    NotebookSessionConfigurationDetails NotebookSessionNotebookSessionConfigurationDetailsArgs

    (Updatable) Details for the notebook session configuration.

    NotebookSessionRuntimeConfigDetails NotebookSessionNotebookSessionRuntimeConfigDetailsArgs

    (Updatable) Notebook Session runtime configuration details.

    NotebookSessionStorageMountConfigurationDetailsLists []NotebookSessionNotebookSessionStorageMountConfigurationDetailsListArgs

    (Updatable) Collection of NotebookSessionStorageMountConfigurationDetails.

    NotebookSessionUrl string

    The URL to interact with the notebook session.

    ProjectId string

    The OCID of the project to associate with the notebook session.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    State string

    The state of the notebook session.

    TimeCreated string

    The date and time the resource was created in the timestamp format defined by RFC3339. Example: 2019-08-25T21:10:29.41Z

    compartmentId String

    (Updatable) The OCID of the compartment where you want to create the notebook session.

    createdBy String

    The OCID of the user who created the notebook session.

    definedTags Map<String,Object>

    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"Operations.CostCenter": "42"}

    displayName String

    (Updatable) A user-friendly display name for the resource. It does not have to be unique and can be modified. Avoid entering confidential information. Example: My NotebookSession

    freeformTags Map<String,Object>

    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. See Resource Tags. Example: {"Department": "Finance"}

    lifecycleDetails String

    Details about the state of the notebook session.

    notebookSessionConfigDetails NotebookSessionNotebookSessionConfigDetails

    Details for the notebook session configuration.

    notebookSessionConfigurationDetails NotebookSessionNotebookSessionConfigurationDetails

    (Updatable) Details for the notebook session configuration.

    notebookSessionRuntimeConfigDetails NotebookSessionNotebookSessionRuntimeConfigDetails

    (Updatable) Notebook Session runtime configuration details.

    notebookSessionStorageMountConfigurationDetailsLists List<NotebookSessionNotebookSessionStorageMountConfigurationDetailsList>

    (Updatable) Collection of NotebookSessionStorageMountConfigurationDetails.

    notebookSessionUrl String

    The URL to interact with the notebook session.

    projectId String

    The OCID of the project to associate with the notebook session.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    state String

    The state of the notebook session.

    timeCreated String

    The date and time the resource was created in the timestamp format defined by RFC3339. Example: 2019-08-25T21:10:29.41Z

    compartmentId string

    (Updatable) The OCID of the compartment where you want to create the notebook session.

    createdBy string

    The OCID of the user who created the notebook session.

    definedTags {[key: string]: any}

    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"Operations.CostCenter": "42"}

    displayName string

    (Updatable) A user-friendly display name for the resource. It does not have to be unique and can be modified. Avoid entering confidential information. Example: My NotebookSession

    freeformTags {[key: string]: any}

    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. See Resource Tags. Example: {"Department": "Finance"}

    lifecycleDetails string

    Details about the state of the notebook session.

    notebookSessionConfigDetails NotebookSessionNotebookSessionConfigDetails

    Details for the notebook session configuration.

    notebookSessionConfigurationDetails NotebookSessionNotebookSessionConfigurationDetails

    (Updatable) Details for the notebook session configuration.

    notebookSessionRuntimeConfigDetails NotebookSessionNotebookSessionRuntimeConfigDetails

    (Updatable) Notebook Session runtime configuration details.

    notebookSessionStorageMountConfigurationDetailsLists NotebookSessionNotebookSessionStorageMountConfigurationDetailsList[]

    (Updatable) Collection of NotebookSessionStorageMountConfigurationDetails.

    notebookSessionUrl string

    The URL to interact with the notebook session.

    projectId string

    The OCID of the project to associate with the notebook session.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    state string

    The state of the notebook session.

    timeCreated string

    The date and time the resource was created in the timestamp format defined by RFC3339. Example: 2019-08-25T21:10:29.41Z

    compartment_id str

    (Updatable) The OCID of the compartment where you want to create the notebook session.

    created_by str

    The OCID of the user who created the notebook session.

    defined_tags Mapping[str, Any]

    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"Operations.CostCenter": "42"}

    display_name str

    (Updatable) A user-friendly display name for the resource. It does not have to be unique and can be modified. Avoid entering confidential information. Example: My NotebookSession

    freeform_tags Mapping[str, Any]

    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. See Resource Tags. Example: {"Department": "Finance"}

    lifecycle_details str

    Details about the state of the notebook session.

    notebook_session_config_details NotebookSessionNotebookSessionConfigDetailsArgs

    Details for the notebook session configuration.

    notebook_session_configuration_details NotebookSessionNotebookSessionConfigurationDetailsArgs

    (Updatable) Details for the notebook session configuration.

    notebook_session_runtime_config_details NotebookSessionNotebookSessionRuntimeConfigDetailsArgs

    (Updatable) Notebook Session runtime configuration details.

    notebook_session_storage_mount_configuration_details_lists NotebookSessionNotebookSessionStorageMountConfigurationDetailsListArgs]

    (Updatable) Collection of NotebookSessionStorageMountConfigurationDetails.

    notebook_session_url str

    The URL to interact with the notebook session.

    project_id str

    The OCID of the project to associate with the notebook session.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    state str

    The state of the notebook session.

    time_created str

    The date and time the resource was created in the timestamp format defined by RFC3339. Example: 2019-08-25T21:10:29.41Z

    compartmentId String

    (Updatable) The OCID of the compartment where you want to create the notebook session.

    createdBy String

    The OCID of the user who created the notebook session.

    definedTags Map<Any>

    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"Operations.CostCenter": "42"}

    displayName String

    (Updatable) A user-friendly display name for the resource. It does not have to be unique and can be modified. Avoid entering confidential information. Example: My NotebookSession

    freeformTags Map<Any>

    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. See Resource Tags. Example: {"Department": "Finance"}

    lifecycleDetails String

    Details about the state of the notebook session.

    notebookSessionConfigDetails Property Map

    Details for the notebook session configuration.

    notebookSessionConfigurationDetails Property Map

    (Updatable) Details for the notebook session configuration.

    notebookSessionRuntimeConfigDetails Property Map

    (Updatable) Notebook Session runtime configuration details.

    notebookSessionStorageMountConfigurationDetailsLists List<Property Map>

    (Updatable) Collection of NotebookSessionStorageMountConfigurationDetails.

    notebookSessionUrl String

    The URL to interact with the notebook session.

    projectId String

    The OCID of the project to associate with the notebook session.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    state String

    The state of the notebook session.

    timeCreated String

    The date and time the resource was created in the timestamp format defined by RFC3339. Example: 2019-08-25T21:10:29.41Z

    Supporting Types

    NotebookSessionNotebookSessionConfigDetails, NotebookSessionNotebookSessionConfigDetailsArgs

    Shape string

    (Updatable) The shape used to launch the notebook session compute instance. The list of available shapes in a given compartment can be retrieved using the ListNotebookSessionShapes endpoint.

    BlockStorageSizeInGbs int

    (Updatable) A notebook session instance is provided with a block storage volume. This specifies the size of the volume in GBs.

    NotebookSessionShapeConfigDetails NotebookSessionNotebookSessionConfigDetailsNotebookSessionShapeConfigDetails

    (Updatable) Details for the notebook session shape configuration.

    PrivateEndpointId string

    (Updatable) The OCID of a Data Science private endpoint.

    SubnetId string

    (Updatable) A notebook session instance is provided with a VNIC for network access. This specifies the OCID of the subnet to create a VNIC in. The subnet should be in a VCN with a NAT gateway for egress to the internet.

    Shape string

    (Updatable) The shape used to launch the notebook session compute instance. The list of available shapes in a given compartment can be retrieved using the ListNotebookSessionShapes endpoint.

    BlockStorageSizeInGbs int

    (Updatable) A notebook session instance is provided with a block storage volume. This specifies the size of the volume in GBs.

    NotebookSessionShapeConfigDetails NotebookSessionNotebookSessionConfigDetailsNotebookSessionShapeConfigDetails

    (Updatable) Details for the notebook session shape configuration.

    PrivateEndpointId string

    (Updatable) The OCID of a Data Science private endpoint.

    SubnetId string

    (Updatable) A notebook session instance is provided with a VNIC for network access. This specifies the OCID of the subnet to create a VNIC in. The subnet should be in a VCN with a NAT gateway for egress to the internet.

    shape String

    (Updatable) The shape used to launch the notebook session compute instance. The list of available shapes in a given compartment can be retrieved using the ListNotebookSessionShapes endpoint.

    blockStorageSizeInGbs Integer

    (Updatable) A notebook session instance is provided with a block storage volume. This specifies the size of the volume in GBs.

    notebookSessionShapeConfigDetails NotebookSessionNotebookSessionConfigDetailsNotebookSessionShapeConfigDetails

    (Updatable) Details for the notebook session shape configuration.

    privateEndpointId String

    (Updatable) The OCID of a Data Science private endpoint.

    subnetId String

    (Updatable) A notebook session instance is provided with a VNIC for network access. This specifies the OCID of the subnet to create a VNIC in. The subnet should be in a VCN with a NAT gateway for egress to the internet.

    shape string

    (Updatable) The shape used to launch the notebook session compute instance. The list of available shapes in a given compartment can be retrieved using the ListNotebookSessionShapes endpoint.

    blockStorageSizeInGbs number

    (Updatable) A notebook session instance is provided with a block storage volume. This specifies the size of the volume in GBs.

    notebookSessionShapeConfigDetails NotebookSessionNotebookSessionConfigDetailsNotebookSessionShapeConfigDetails

    (Updatable) Details for the notebook session shape configuration.

    privateEndpointId string

    (Updatable) The OCID of a Data Science private endpoint.

    subnetId string

    (Updatable) A notebook session instance is provided with a VNIC for network access. This specifies the OCID of the subnet to create a VNIC in. The subnet should be in a VCN with a NAT gateway for egress to the internet.

    shape str

    (Updatable) The shape used to launch the notebook session compute instance. The list of available shapes in a given compartment can be retrieved using the ListNotebookSessionShapes endpoint.

    block_storage_size_in_gbs int

    (Updatable) A notebook session instance is provided with a block storage volume. This specifies the size of the volume in GBs.

    notebook_session_shape_config_details NotebookSessionNotebookSessionConfigDetailsNotebookSessionShapeConfigDetails

    (Updatable) Details for the notebook session shape configuration.

    private_endpoint_id str

    (Updatable) The OCID of a Data Science private endpoint.

    subnet_id str

    (Updatable) A notebook session instance is provided with a VNIC for network access. This specifies the OCID of the subnet to create a VNIC in. The subnet should be in a VCN with a NAT gateway for egress to the internet.

    shape String

    (Updatable) The shape used to launch the notebook session compute instance. The list of available shapes in a given compartment can be retrieved using the ListNotebookSessionShapes endpoint.

    blockStorageSizeInGbs Number

    (Updatable) A notebook session instance is provided with a block storage volume. This specifies the size of the volume in GBs.

    notebookSessionShapeConfigDetails Property Map

    (Updatable) Details for the notebook session shape configuration.

    privateEndpointId String

    (Updatable) The OCID of a Data Science private endpoint.

    subnetId String

    (Updatable) A notebook session instance is provided with a VNIC for network access. This specifies the OCID of the subnet to create a VNIC in. The subnet should be in a VCN with a NAT gateway for egress to the internet.

    NotebookSessionNotebookSessionConfigDetailsNotebookSessionShapeConfigDetails, NotebookSessionNotebookSessionConfigDetailsNotebookSessionShapeConfigDetailsArgs

    MemoryInGbs double

    (Updatable) The total amount of memory available to the notebook session instance, in gigabytes.

    Ocpus double

    (Updatable) The total number of OCPUs available to the notebook session instance.

    MemoryInGbs float64

    (Updatable) The total amount of memory available to the notebook session instance, in gigabytes.

    Ocpus float64

    (Updatable) The total number of OCPUs available to the notebook session instance.

    memoryInGbs Double

    (Updatable) The total amount of memory available to the notebook session instance, in gigabytes.

    ocpus Double

    (Updatable) The total number of OCPUs available to the notebook session instance.

    memoryInGbs number

    (Updatable) The total amount of memory available to the notebook session instance, in gigabytes.

    ocpus number

    (Updatable) The total number of OCPUs available to the notebook session instance.

    memory_in_gbs float

    (Updatable) The total amount of memory available to the notebook session instance, in gigabytes.

    ocpus float

    (Updatable) The total number of OCPUs available to the notebook session instance.

    memoryInGbs Number

    (Updatable) The total amount of memory available to the notebook session instance, in gigabytes.

    ocpus Number

    (Updatable) The total number of OCPUs available to the notebook session instance.

    NotebookSessionNotebookSessionConfigurationDetails, NotebookSessionNotebookSessionConfigurationDetailsArgs

    Shape string

    (Updatable) The shape used to launch the notebook session compute instance. The list of available shapes in a given compartment can be retrieved using the ListNotebookSessionShapes endpoint.

    SubnetId string

    (Updatable) A notebook session instance is provided with a VNIC for network access. This specifies the OCID of the subnet to create a VNIC in. The subnet should be in a VCN with a NAT gateway for egress to the internet.

    BlockStorageSizeInGbs int

    (Updatable) A notebook session instance is provided with a block storage volume. This specifies the size of the volume in GBs.

    NotebookSessionShapeConfigDetails NotebookSessionNotebookSessionConfigurationDetailsNotebookSessionShapeConfigDetails

    (Updatable) Details for the notebook session shape configuration.

    PrivateEndpointId string

    (Updatable) The OCID of a Data Science private endpoint.

    Shape string

    (Updatable) The shape used to launch the notebook session compute instance. The list of available shapes in a given compartment can be retrieved using the ListNotebookSessionShapes endpoint.

    SubnetId string

    (Updatable) A notebook session instance is provided with a VNIC for network access. This specifies the OCID of the subnet to create a VNIC in. The subnet should be in a VCN with a NAT gateway for egress to the internet.

    BlockStorageSizeInGbs int

    (Updatable) A notebook session instance is provided with a block storage volume. This specifies the size of the volume in GBs.

    NotebookSessionShapeConfigDetails NotebookSessionNotebookSessionConfigurationDetailsNotebookSessionShapeConfigDetails

    (Updatable) Details for the notebook session shape configuration.

    PrivateEndpointId string

    (Updatable) The OCID of a Data Science private endpoint.

    shape String

    (Updatable) The shape used to launch the notebook session compute instance. The list of available shapes in a given compartment can be retrieved using the ListNotebookSessionShapes endpoint.

    subnetId String

    (Updatable) A notebook session instance is provided with a VNIC for network access. This specifies the OCID of the subnet to create a VNIC in. The subnet should be in a VCN with a NAT gateway for egress to the internet.

    blockStorageSizeInGbs Integer

    (Updatable) A notebook session instance is provided with a block storage volume. This specifies the size of the volume in GBs.

    notebookSessionShapeConfigDetails NotebookSessionNotebookSessionConfigurationDetailsNotebookSessionShapeConfigDetails

    (Updatable) Details for the notebook session shape configuration.

    privateEndpointId String

    (Updatable) The OCID of a Data Science private endpoint.

    shape string

    (Updatable) The shape used to launch the notebook session compute instance. The list of available shapes in a given compartment can be retrieved using the ListNotebookSessionShapes endpoint.

    subnetId string

    (Updatable) A notebook session instance is provided with a VNIC for network access. This specifies the OCID of the subnet to create a VNIC in. The subnet should be in a VCN with a NAT gateway for egress to the internet.

    blockStorageSizeInGbs number

    (Updatable) A notebook session instance is provided with a block storage volume. This specifies the size of the volume in GBs.

    notebookSessionShapeConfigDetails NotebookSessionNotebookSessionConfigurationDetailsNotebookSessionShapeConfigDetails

    (Updatable) Details for the notebook session shape configuration.

    privateEndpointId string

    (Updatable) The OCID of a Data Science private endpoint.

    shape str

    (Updatable) The shape used to launch the notebook session compute instance. The list of available shapes in a given compartment can be retrieved using the ListNotebookSessionShapes endpoint.

    subnet_id str

    (Updatable) A notebook session instance is provided with a VNIC for network access. This specifies the OCID of the subnet to create a VNIC in. The subnet should be in a VCN with a NAT gateway for egress to the internet.

    block_storage_size_in_gbs int

    (Updatable) A notebook session instance is provided with a block storage volume. This specifies the size of the volume in GBs.

    notebook_session_shape_config_details NotebookSessionNotebookSessionConfigurationDetailsNotebookSessionShapeConfigDetails

    (Updatable) Details for the notebook session shape configuration.

    private_endpoint_id str

    (Updatable) The OCID of a Data Science private endpoint.

    shape String

    (Updatable) The shape used to launch the notebook session compute instance. The list of available shapes in a given compartment can be retrieved using the ListNotebookSessionShapes endpoint.

    subnetId String

    (Updatable) A notebook session instance is provided with a VNIC for network access. This specifies the OCID of the subnet to create a VNIC in. The subnet should be in a VCN with a NAT gateway for egress to the internet.

    blockStorageSizeInGbs Number

    (Updatable) A notebook session instance is provided with a block storage volume. This specifies the size of the volume in GBs.

    notebookSessionShapeConfigDetails Property Map

    (Updatable) Details for the notebook session shape configuration.

    privateEndpointId String

    (Updatable) The OCID of a Data Science private endpoint.

    NotebookSessionNotebookSessionConfigurationDetailsNotebookSessionShapeConfigDetails, NotebookSessionNotebookSessionConfigurationDetailsNotebookSessionShapeConfigDetailsArgs

    MemoryInGbs double

    (Updatable) The total amount of memory available to the notebook session instance, in gigabytes.

    Ocpus double

    (Updatable) The total number of OCPUs available to the notebook session instance.

    MemoryInGbs float64

    (Updatable) The total amount of memory available to the notebook session instance, in gigabytes.

    Ocpus float64

    (Updatable) The total number of OCPUs available to the notebook session instance.

    memoryInGbs Double

    (Updatable) The total amount of memory available to the notebook session instance, in gigabytes.

    ocpus Double

    (Updatable) The total number of OCPUs available to the notebook session instance.

    memoryInGbs number

    (Updatable) The total amount of memory available to the notebook session instance, in gigabytes.

    ocpus number

    (Updatable) The total number of OCPUs available to the notebook session instance.

    memory_in_gbs float

    (Updatable) The total amount of memory available to the notebook session instance, in gigabytes.

    ocpus float

    (Updatable) The total number of OCPUs available to the notebook session instance.

    memoryInGbs Number

    (Updatable) The total amount of memory available to the notebook session instance, in gigabytes.

    ocpus Number

    (Updatable) The total number of OCPUs available to the notebook session instance.

    NotebookSessionNotebookSessionRuntimeConfigDetails, NotebookSessionNotebookSessionRuntimeConfigDetailsArgs

    CustomEnvironmentVariables Dictionary<string, object>

    (Updatable) Custom environment variables for Notebook Session. These key-value pairs will be available for customers in Notebook Sessions.

    NotebookSessionGitConfigDetails NotebookSessionNotebookSessionRuntimeConfigDetailsNotebookSessionGitConfigDetails

    (Updatable) Git configuration Details.

    CustomEnvironmentVariables map[string]interface{}

    (Updatable) Custom environment variables for Notebook Session. These key-value pairs will be available for customers in Notebook Sessions.

    NotebookSessionGitConfigDetails NotebookSessionNotebookSessionRuntimeConfigDetailsNotebookSessionGitConfigDetails

    (Updatable) Git configuration Details.

    customEnvironmentVariables Map<String,Object>

    (Updatable) Custom environment variables for Notebook Session. These key-value pairs will be available for customers in Notebook Sessions.

    notebookSessionGitConfigDetails NotebookSessionNotebookSessionRuntimeConfigDetailsNotebookSessionGitConfigDetails

    (Updatable) Git configuration Details.

    customEnvironmentVariables {[key: string]: any}

    (Updatable) Custom environment variables for Notebook Session. These key-value pairs will be available for customers in Notebook Sessions.

    notebookSessionGitConfigDetails NotebookSessionNotebookSessionRuntimeConfigDetailsNotebookSessionGitConfigDetails

    (Updatable) Git configuration Details.

    custom_environment_variables Mapping[str, Any]

    (Updatable) Custom environment variables for Notebook Session. These key-value pairs will be available for customers in Notebook Sessions.

    notebook_session_git_config_details NotebookSessionNotebookSessionRuntimeConfigDetailsNotebookSessionGitConfigDetails

    (Updatable) Git configuration Details.

    customEnvironmentVariables Map<Any>

    (Updatable) Custom environment variables for Notebook Session. These key-value pairs will be available for customers in Notebook Sessions.

    notebookSessionGitConfigDetails Property Map

    (Updatable) Git configuration Details.

    NotebookSessionNotebookSessionRuntimeConfigDetailsNotebookSessionGitConfigDetails, NotebookSessionNotebookSessionRuntimeConfigDetailsNotebookSessionGitConfigDetailsArgs

    notebookSessionGitRepoConfigCollections List<Property Map>

    (Updatable) A collection of Git repository configurations.

    NotebookSessionNotebookSessionRuntimeConfigDetailsNotebookSessionGitConfigDetailsNotebookSessionGitRepoConfigCollection, NotebookSessionNotebookSessionRuntimeConfigDetailsNotebookSessionGitConfigDetailsNotebookSessionGitRepoConfigCollectionArgs

    Url string

    (Updatable) The repository URL

    Url string

    (Updatable) The repository URL

    url String

    (Updatable) The repository URL

    url string

    (Updatable) The repository URL

    url str

    (Updatable) The repository URL

    url String

    (Updatable) The repository URL

    NotebookSessionNotebookSessionStorageMountConfigurationDetailsList, NotebookSessionNotebookSessionStorageMountConfigurationDetailsListArgs

    DestinationDirectoryName string

    (Updatable) The local directory name to be mounted

    StorageType string

    (Updatable) The type of storage.

    Bucket string

    (Updatable) The object storage bucket

    DestinationPath string

    (Updatable) The local path of the mounted directory, excluding directory name.

    ExportId string

    (Updatable) OCID of the export

    MountTargetId string

    (Updatable) OCID of the mount target

    Namespace string

    (Updatable) The object storage namespace

    Prefix string

    (Updatable) Prefix in the bucket to mount

    DestinationDirectoryName string

    (Updatable) The local directory name to be mounted

    StorageType string

    (Updatable) The type of storage.

    Bucket string

    (Updatable) The object storage bucket

    DestinationPath string

    (Updatable) The local path of the mounted directory, excluding directory name.

    ExportId string

    (Updatable) OCID of the export

    MountTargetId string

    (Updatable) OCID of the mount target

    Namespace string

    (Updatable) The object storage namespace

    Prefix string

    (Updatable) Prefix in the bucket to mount

    destinationDirectoryName String

    (Updatable) The local directory name to be mounted

    storageType String

    (Updatable) The type of storage.

    bucket String

    (Updatable) The object storage bucket

    destinationPath String

    (Updatable) The local path of the mounted directory, excluding directory name.

    exportId String

    (Updatable) OCID of the export

    mountTargetId String

    (Updatable) OCID of the mount target

    namespace String

    (Updatable) The object storage namespace

    prefix String

    (Updatable) Prefix in the bucket to mount

    destinationDirectoryName string

    (Updatable) The local directory name to be mounted

    storageType string

    (Updatable) The type of storage.

    bucket string

    (Updatable) The object storage bucket

    destinationPath string

    (Updatable) The local path of the mounted directory, excluding directory name.

    exportId string

    (Updatable) OCID of the export

    mountTargetId string

    (Updatable) OCID of the mount target

    namespace string

    (Updatable) The object storage namespace

    prefix string

    (Updatable) Prefix in the bucket to mount

    destination_directory_name str

    (Updatable) The local directory name to be mounted

    storage_type str

    (Updatable) The type of storage.

    bucket str

    (Updatable) The object storage bucket

    destination_path str

    (Updatable) The local path of the mounted directory, excluding directory name.

    export_id str

    (Updatable) OCID of the export

    mount_target_id str

    (Updatable) OCID of the mount target

    namespace str

    (Updatable) The object storage namespace

    prefix str

    (Updatable) Prefix in the bucket to mount

    destinationDirectoryName String

    (Updatable) The local directory name to be mounted

    storageType String

    (Updatable) The type of storage.

    bucket String

    (Updatable) The object storage bucket

    destinationPath String

    (Updatable) The local path of the mounted directory, excluding directory name.

    exportId String

    (Updatable) OCID of the export

    mountTargetId String

    (Updatable) OCID of the mount target

    namespace String

    (Updatable) The object storage namespace

    prefix String

    (Updatable) Prefix in the bucket to mount

    Import

    NotebookSessions can be imported using the id, e.g.

     $ pulumi import oci:DataScience/notebookSession:NotebookSession test_notebook_session "id"
    

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes

    This Pulumi package is based on the oci Terraform Provider.

    oci logo
    Oracle Cloud Infrastructure v1.16.0 published on Thursday, Nov 2, 2023 by Pulumi