import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * This resource provides the Notebook Session resource in Oracle Cloud Infrastructure Data Science service. * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/data-science/latest/NotebookSession * * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/datascience * * Creates a new notebook session. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testNotebookSession = new oci.datascience.NotebookSession("test_notebook_session", { * compartmentId: compartmentId, * projectId: testProject.id, * definedTags: { * "Operations.CostCenter": "42", * }, * displayName: notebookSessionDisplayName, * freeformTags: { * Department: "Finance", * }, * notebookSessionConfigDetails: { * shape: notebookSessionNotebookSessionConfigDetailsShape, * blockStorageSizeInGbs: Number(notebookSessionNotebookSessionConfigDetailsBlockStorageSizeInGbs), * notebookSessionShapeConfigDetails: { * cpuBaseline: notebookSessionNotebookSessionConfigDetailsNotebookSessionShapeConfigDetailsCpuBaseline, * memoryInGbs: notebookSessionNotebookSessionConfigDetailsNotebookSessionShapeConfigDetailsMemoryInGbs, * ocpus: notebookSessionNotebookSessionConfigDetailsNotebookSessionShapeConfigDetailsOcpus, * }, * privateEndpointId: testPrivateEndpoint.id, * subnetId: testSubnet.id, * }, * notebookSessionConfigurationDetails: { * shape: notebookSessionNotebookSessionConfigurationDetailsShape, * subnetId: testSubnet.id, * blockStorageSizeInGbs: Number(notebookSessionNotebookSessionConfigurationDetailsBlockStorageSizeInGbs), * notebookSessionShapeConfigDetails: { * cpuBaseline: notebookSessionNotebookSessionConfigurationDetailsNotebookSessionShapeConfigDetailsCpuBaseline, * memoryInGbs: notebookSessionNotebookSessionConfigurationDetailsNotebookSessionShapeConfigDetailsMemoryInGbs, * ocpus: notebookSessionNotebookSessionConfigurationDetailsNotebookSessionShapeConfigDetailsOcpus, * }, * privateEndpointId: testPrivateEndpoint.id, * }, * notebookSessionRuntimeConfigDetails: { * customEnvironmentVariables: notebookSessionNotebookSessionRuntimeConfigDetailsCustomEnvironmentVariables, * notebookSessionGitConfigDetails: { * notebookSessionGitRepoConfigCollections: [{ * url: notebookSessionNotebookSessionRuntimeConfigDetailsNotebookSessionGitConfigDetailsNotebookSessionGitRepoConfigCollectionUrl, * }], * }, * }, * notebookSessionStorageMountConfigurationDetailsLists: [{ * destinationDirectoryName: notebookSessionNotebookSessionStorageMountConfigurationDetailsListDestinationDirectoryName, * storageType: notebookSessionNotebookSessionStorageMountConfigurationDetailsListStorageType, * bucket: notebookSessionNotebookSessionStorageMountConfigurationDetailsListBucket, * destinationPath: notebookSessionNotebookSessionStorageMountConfigurationDetailsListDestinationPath, * exportId: testExport.id, * mountTargetId: testMountTarget.id, * namespace: notebookSessionNotebookSessionStorageMountConfigurationDetailsListNamespace, * prefix: notebookSessionNotebookSessionStorageMountConfigurationDetailsListPrefix, * }], * }); * ``` * * ## Import * * NotebookSessions can be imported using the `id`, e.g. * * ```sh * $ pulumi import oci:DataScience/notebookSession:NotebookSession test_notebook_session "id" * ``` */ export declare class NotebookSession extends pulumi.CustomResource { /** * Get an existing NotebookSession resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: NotebookSessionState, opts?: pulumi.CustomResourceOptions): NotebookSession; /** * Returns true if the given object is an instance of NotebookSession. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is NotebookSession; /** * (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment where you want to create the notebook session. */ readonly compartmentId: pulumi.Output; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the user who created the notebook session. */ readonly createdBy: pulumi.Output; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}` */ readonly definedTags: pulumi.Output<{ [key: string]: 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` */ readonly displayName: pulumi.Output; /** * (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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` */ readonly freeformTags: pulumi.Output<{ [key: string]: string; }>; /** * Details about the state of the notebook session. */ readonly lifecycleDetails: pulumi.Output; /** * Details for the notebook session configuration. */ readonly notebookSessionConfigDetails: pulumi.Output; /** * (Updatable) Details for the notebook session configuration. */ readonly notebookSessionConfigurationDetails: pulumi.Output; /** * (Updatable) Notebook Session runtime configuration details. */ readonly notebookSessionRuntimeConfigDetails: pulumi.Output; /** * (Updatable) Collection of NotebookSessionStorageMountConfigurationDetails. */ readonly notebookSessionStorageMountConfigurationDetailsLists: pulumi.Output; /** * The URL to interact with the notebook session. */ readonly notebookSessionUrl: pulumi.Output; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) 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 */ readonly projectId: pulumi.Output; /** * The state of the notebook session. */ readonly state: pulumi.Output; /** * The date and time the resource was created in the timestamp format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). Example: 2019-08-25T21:10:29.41Z */ readonly timeCreated: pulumi.Output; /** * Create a NotebookSession resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: NotebookSessionArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering NotebookSession resources. */ export interface NotebookSessionState { /** * (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment where you want to create the notebook session. */ compartmentId?: pulumi.Input; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the user who created the notebook session. */ createdBy?: pulumi.Input; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}` */ definedTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * (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` */ displayName?: pulumi.Input; /** * (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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` */ freeformTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * Details about the state of the notebook session. */ lifecycleDetails?: pulumi.Input; /** * Details for the notebook session configuration. */ notebookSessionConfigDetails?: pulumi.Input; /** * (Updatable) Details for the notebook session configuration. */ notebookSessionConfigurationDetails?: pulumi.Input; /** * (Updatable) Notebook Session runtime configuration details. */ notebookSessionRuntimeConfigDetails?: pulumi.Input; /** * (Updatable) Collection of NotebookSessionStorageMountConfigurationDetails. */ notebookSessionStorageMountConfigurationDetailsLists?: pulumi.Input[] | undefined>; /** * The URL to interact with the notebook session. */ notebookSessionUrl?: pulumi.Input; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) 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 */ projectId?: pulumi.Input; /** * The state of the notebook session. */ state?: pulumi.Input; /** * The date and time the resource was created in the timestamp format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). Example: 2019-08-25T21:10:29.41Z */ timeCreated?: pulumi.Input; } /** * The set of arguments for constructing a NotebookSession resource. */ export interface NotebookSessionArgs { /** * (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment where you want to create the notebook session. */ compartmentId: pulumi.Input; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}` */ definedTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * (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` */ displayName?: pulumi.Input; /** * (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](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` */ freeformTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * Details for the notebook session configuration. */ notebookSessionConfigDetails?: pulumi.Input; /** * (Updatable) Details for the notebook session configuration. */ notebookSessionConfigurationDetails?: pulumi.Input; /** * (Updatable) Notebook Session runtime configuration details. */ notebookSessionRuntimeConfigDetails?: pulumi.Input; /** * (Updatable) Collection of NotebookSessionStorageMountConfigurationDetails. */ notebookSessionStorageMountConfigurationDetailsLists?: pulumi.Input[] | undefined>; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) 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 */ projectId: pulumi.Input; /** * The state of the notebook session. */ state?: pulumi.Input; } //# sourceMappingURL=notebookSession.d.ts.map