oci.DataScience.ModelDeployment
Explore with Pulumi AI
This resource provides the Model Deployment resource in Oracle Cloud Infrastructure Datascience service.
Creates a new model deployment.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testModelDeployment = new Oci.DataScience.ModelDeployment("testModelDeployment", new()
{
CompartmentId = @var.Compartment_id,
ModelDeploymentConfigurationDetails = new Oci.DataScience.Inputs.ModelDeploymentModelDeploymentConfigurationDetailsArgs
{
DeploymentType = @var.Model_deployment_model_deployment_configuration_details_deployment_type,
ModelConfigurationDetails = new Oci.DataScience.Inputs.ModelDeploymentModelDeploymentConfigurationDetailsModelConfigurationDetailsArgs
{
InstanceConfiguration = new Oci.DataScience.Inputs.ModelDeploymentModelDeploymentConfigurationDetailsModelConfigurationDetailsInstanceConfigurationArgs
{
InstanceShapeName = oci_core_shape.Test_shape.Name,
ModelDeploymentInstanceShapeConfigDetails = new Oci.DataScience.Inputs.ModelDeploymentModelDeploymentConfigurationDetailsModelConfigurationDetailsInstanceConfigurationModelDeploymentInstanceShapeConfigDetailsArgs
{
MemoryInGbs = @var.Model_deployment_model_deployment_configuration_details_model_configuration_details_instance_configuration_model_deployment_instance_shape_config_details_memory_in_gbs,
Ocpus = @var.Model_deployment_model_deployment_configuration_details_model_configuration_details_instance_configuration_model_deployment_instance_shape_config_details_ocpus,
},
},
ModelId = oci_datascience_model.Test_model.Id,
BandwidthMbps = @var.Model_deployment_model_deployment_configuration_details_model_configuration_details_bandwidth_mbps,
ScalingPolicy = new Oci.DataScience.Inputs.ModelDeploymentModelDeploymentConfigurationDetailsModelConfigurationDetailsScalingPolicyArgs
{
InstanceCount = @var.Model_deployment_model_deployment_configuration_details_model_configuration_details_scaling_policy_instance_count,
PolicyType = @var.Model_deployment_model_deployment_configuration_details_model_configuration_details_scaling_policy_policy_type,
},
},
EnvironmentConfigurationDetails = new Oci.DataScience.Inputs.ModelDeploymentModelDeploymentConfigurationDetailsEnvironmentConfigurationDetailsArgs
{
EnvironmentConfigurationType = @var.Model_deployment_model_deployment_configuration_details_environment_configuration_details_environment_configuration_type,
Cmds = @var.Model_deployment_model_deployment_configuration_details_environment_configuration_details_cmd,
Entrypoints = @var.Model_deployment_model_deployment_configuration_details_environment_configuration_details_entrypoint,
EnvironmentVariables = @var.Model_deployment_model_deployment_configuration_details_environment_configuration_details_environment_variables,
HealthCheckPort = @var.Model_deployment_model_deployment_configuration_details_environment_configuration_details_health_check_port,
Image = @var.Model_deployment_model_deployment_configuration_details_environment_configuration_details_image,
ImageDigest = @var.Model_deployment_model_deployment_configuration_details_environment_configuration_details_image_digest,
ServerPort = @var.Model_deployment_model_deployment_configuration_details_environment_configuration_details_server_port,
},
},
ProjectId = oci_datascience_project.Test_project.Id,
CategoryLogDetails = new Oci.DataScience.Inputs.ModelDeploymentCategoryLogDetailsArgs
{
Access = new Oci.DataScience.Inputs.ModelDeploymentCategoryLogDetailsAccessArgs
{
LogGroupId = oci_logging_log_group.Test_log_group.Id,
LogId = oci_logging_log.Test_log.Id,
},
Predict = new Oci.DataScience.Inputs.ModelDeploymentCategoryLogDetailsPredictArgs
{
LogGroupId = oci_logging_log_group.Test_log_group.Id,
LogId = oci_logging_log.Test_log.Id,
},
},
DefinedTags =
{
{ "Operations.CostCenter", "42" },
},
Description = @var.Model_deployment_description,
DisplayName = @var.Model_deployment_display_name,
FreeformTags =
{
{ "Department", "Finance" },
},
});
});
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.NewModelDeployment(ctx, "testModelDeployment", &DataScience.ModelDeploymentArgs{
CompartmentId: pulumi.Any(_var.Compartment_id),
ModelDeploymentConfigurationDetails: &datascience.ModelDeploymentModelDeploymentConfigurationDetailsArgs{
DeploymentType: pulumi.Any(_var.Model_deployment_model_deployment_configuration_details_deployment_type),
ModelConfigurationDetails: &datascience.ModelDeploymentModelDeploymentConfigurationDetailsModelConfigurationDetailsArgs{
InstanceConfiguration: &datascience.ModelDeploymentModelDeploymentConfigurationDetailsModelConfigurationDetailsInstanceConfigurationArgs{
InstanceShapeName: pulumi.Any(oci_core_shape.Test_shape.Name),
ModelDeploymentInstanceShapeConfigDetails: &datascience.ModelDeploymentModelDeploymentConfigurationDetailsModelConfigurationDetailsInstanceConfigurationModelDeploymentInstanceShapeConfigDetailsArgs{
MemoryInGbs: pulumi.Any(_var.Model_deployment_model_deployment_configuration_details_model_configuration_details_instance_configuration_model_deployment_instance_shape_config_details_memory_in_gbs),
Ocpus: pulumi.Any(_var.Model_deployment_model_deployment_configuration_details_model_configuration_details_instance_configuration_model_deployment_instance_shape_config_details_ocpus),
},
},
ModelId: pulumi.Any(oci_datascience_model.Test_model.Id),
BandwidthMbps: pulumi.Any(_var.Model_deployment_model_deployment_configuration_details_model_configuration_details_bandwidth_mbps),
ScalingPolicy: &datascience.ModelDeploymentModelDeploymentConfigurationDetailsModelConfigurationDetailsScalingPolicyArgs{
InstanceCount: pulumi.Any(_var.Model_deployment_model_deployment_configuration_details_model_configuration_details_scaling_policy_instance_count),
PolicyType: pulumi.Any(_var.Model_deployment_model_deployment_configuration_details_model_configuration_details_scaling_policy_policy_type),
},
},
EnvironmentConfigurationDetails: &datascience.ModelDeploymentModelDeploymentConfigurationDetailsEnvironmentConfigurationDetailsArgs{
EnvironmentConfigurationType: pulumi.Any(_var.Model_deployment_model_deployment_configuration_details_environment_configuration_details_environment_configuration_type),
Cmds: pulumi.Any(_var.Model_deployment_model_deployment_configuration_details_environment_configuration_details_cmd),
Entrypoints: pulumi.Any(_var.Model_deployment_model_deployment_configuration_details_environment_configuration_details_entrypoint),
EnvironmentVariables: pulumi.Any(_var.Model_deployment_model_deployment_configuration_details_environment_configuration_details_environment_variables),
HealthCheckPort: pulumi.Any(_var.Model_deployment_model_deployment_configuration_details_environment_configuration_details_health_check_port),
Image: pulumi.Any(_var.Model_deployment_model_deployment_configuration_details_environment_configuration_details_image),
ImageDigest: pulumi.Any(_var.Model_deployment_model_deployment_configuration_details_environment_configuration_details_image_digest),
ServerPort: pulumi.Any(_var.Model_deployment_model_deployment_configuration_details_environment_configuration_details_server_port),
},
},
ProjectId: pulumi.Any(oci_datascience_project.Test_project.Id),
CategoryLogDetails: &datascience.ModelDeploymentCategoryLogDetailsArgs{
Access: &datascience.ModelDeploymentCategoryLogDetailsAccessArgs{
LogGroupId: pulumi.Any(oci_logging_log_group.Test_log_group.Id),
LogId: pulumi.Any(oci_logging_log.Test_log.Id),
},
Predict: &datascience.ModelDeploymentCategoryLogDetailsPredictArgs{
LogGroupId: pulumi.Any(oci_logging_log_group.Test_log_group.Id),
LogId: pulumi.Any(oci_logging_log.Test_log.Id),
},
},
DefinedTags: pulumi.Map{
"Operations.CostCenter": pulumi.Any("42"),
},
Description: pulumi.Any(_var.Model_deployment_description),
DisplayName: pulumi.Any(_var.Model_deployment_display_name),
FreeformTags: pulumi.Map{
"Department": pulumi.Any("Finance"),
},
})
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.ModelDeployment;
import com.pulumi.oci.DataScience.ModelDeploymentArgs;
import com.pulumi.oci.DataScience.inputs.ModelDeploymentModelDeploymentConfigurationDetailsArgs;
import com.pulumi.oci.DataScience.inputs.ModelDeploymentModelDeploymentConfigurationDetailsModelConfigurationDetailsArgs;
import com.pulumi.oci.DataScience.inputs.ModelDeploymentModelDeploymentConfigurationDetailsModelConfigurationDetailsInstanceConfigurationArgs;
import com.pulumi.oci.DataScience.inputs.ModelDeploymentModelDeploymentConfigurationDetailsModelConfigurationDetailsInstanceConfigurationModelDeploymentInstanceShapeConfigDetailsArgs;
import com.pulumi.oci.DataScience.inputs.ModelDeploymentModelDeploymentConfigurationDetailsModelConfigurationDetailsScalingPolicyArgs;
import com.pulumi.oci.DataScience.inputs.ModelDeploymentModelDeploymentConfigurationDetailsEnvironmentConfigurationDetailsArgs;
import com.pulumi.oci.DataScience.inputs.ModelDeploymentCategoryLogDetailsArgs;
import com.pulumi.oci.DataScience.inputs.ModelDeploymentCategoryLogDetailsAccessArgs;
import com.pulumi.oci.DataScience.inputs.ModelDeploymentCategoryLogDetailsPredictArgs;
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 testModelDeployment = new ModelDeployment("testModelDeployment", ModelDeploymentArgs.builder()
.compartmentId(var_.compartment_id())
.modelDeploymentConfigurationDetails(ModelDeploymentModelDeploymentConfigurationDetailsArgs.builder()
.deploymentType(var_.model_deployment_model_deployment_configuration_details_deployment_type())
.modelConfigurationDetails(ModelDeploymentModelDeploymentConfigurationDetailsModelConfigurationDetailsArgs.builder()
.instanceConfiguration(ModelDeploymentModelDeploymentConfigurationDetailsModelConfigurationDetailsInstanceConfigurationArgs.builder()
.instanceShapeName(oci_core_shape.test_shape().name())
.modelDeploymentInstanceShapeConfigDetails(ModelDeploymentModelDeploymentConfigurationDetailsModelConfigurationDetailsInstanceConfigurationModelDeploymentInstanceShapeConfigDetailsArgs.builder()
.memoryInGbs(var_.model_deployment_model_deployment_configuration_details_model_configuration_details_instance_configuration_model_deployment_instance_shape_config_details_memory_in_gbs())
.ocpus(var_.model_deployment_model_deployment_configuration_details_model_configuration_details_instance_configuration_model_deployment_instance_shape_config_details_ocpus())
.build())
.build())
.modelId(oci_datascience_model.test_model().id())
.bandwidthMbps(var_.model_deployment_model_deployment_configuration_details_model_configuration_details_bandwidth_mbps())
.scalingPolicy(ModelDeploymentModelDeploymentConfigurationDetailsModelConfigurationDetailsScalingPolicyArgs.builder()
.instanceCount(var_.model_deployment_model_deployment_configuration_details_model_configuration_details_scaling_policy_instance_count())
.policyType(var_.model_deployment_model_deployment_configuration_details_model_configuration_details_scaling_policy_policy_type())
.build())
.build())
.environmentConfigurationDetails(ModelDeploymentModelDeploymentConfigurationDetailsEnvironmentConfigurationDetailsArgs.builder()
.environmentConfigurationType(var_.model_deployment_model_deployment_configuration_details_environment_configuration_details_environment_configuration_type())
.cmds(var_.model_deployment_model_deployment_configuration_details_environment_configuration_details_cmd())
.entrypoints(var_.model_deployment_model_deployment_configuration_details_environment_configuration_details_entrypoint())
.environmentVariables(var_.model_deployment_model_deployment_configuration_details_environment_configuration_details_environment_variables())
.healthCheckPort(var_.model_deployment_model_deployment_configuration_details_environment_configuration_details_health_check_port())
.image(var_.model_deployment_model_deployment_configuration_details_environment_configuration_details_image())
.imageDigest(var_.model_deployment_model_deployment_configuration_details_environment_configuration_details_image_digest())
.serverPort(var_.model_deployment_model_deployment_configuration_details_environment_configuration_details_server_port())
.build())
.build())
.projectId(oci_datascience_project.test_project().id())
.categoryLogDetails(ModelDeploymentCategoryLogDetailsArgs.builder()
.access(ModelDeploymentCategoryLogDetailsAccessArgs.builder()
.logGroupId(oci_logging_log_group.test_log_group().id())
.logId(oci_logging_log.test_log().id())
.build())
.predict(ModelDeploymentCategoryLogDetailsPredictArgs.builder()
.logGroupId(oci_logging_log_group.test_log_group().id())
.logId(oci_logging_log.test_log().id())
.build())
.build())
.definedTags(Map.of("Operations.CostCenter", "42"))
.description(var_.model_deployment_description())
.displayName(var_.model_deployment_display_name())
.freeformTags(Map.of("Department", "Finance"))
.build());
}
}
import pulumi
import pulumi_oci as oci
test_model_deployment = oci.data_science.ModelDeployment("testModelDeployment",
compartment_id=var["compartment_id"],
model_deployment_configuration_details=oci.data_science.ModelDeploymentModelDeploymentConfigurationDetailsArgs(
deployment_type=var["model_deployment_model_deployment_configuration_details_deployment_type"],
model_configuration_details=oci.data_science.ModelDeploymentModelDeploymentConfigurationDetailsModelConfigurationDetailsArgs(
instance_configuration=oci.data_science.ModelDeploymentModelDeploymentConfigurationDetailsModelConfigurationDetailsInstanceConfigurationArgs(
instance_shape_name=oci_core_shape["test_shape"]["name"],
model_deployment_instance_shape_config_details=oci.data_science.ModelDeploymentModelDeploymentConfigurationDetailsModelConfigurationDetailsInstanceConfigurationModelDeploymentInstanceShapeConfigDetailsArgs(
memory_in_gbs=var["model_deployment_model_deployment_configuration_details_model_configuration_details_instance_configuration_model_deployment_instance_shape_config_details_memory_in_gbs"],
ocpus=var["model_deployment_model_deployment_configuration_details_model_configuration_details_instance_configuration_model_deployment_instance_shape_config_details_ocpus"],
),
),
model_id=oci_datascience_model["test_model"]["id"],
bandwidth_mbps=var["model_deployment_model_deployment_configuration_details_model_configuration_details_bandwidth_mbps"],
scaling_policy=oci.data_science.ModelDeploymentModelDeploymentConfigurationDetailsModelConfigurationDetailsScalingPolicyArgs(
instance_count=var["model_deployment_model_deployment_configuration_details_model_configuration_details_scaling_policy_instance_count"],
policy_type=var["model_deployment_model_deployment_configuration_details_model_configuration_details_scaling_policy_policy_type"],
),
),
environment_configuration_details=oci.data_science.ModelDeploymentModelDeploymentConfigurationDetailsEnvironmentConfigurationDetailsArgs(
environment_configuration_type=var["model_deployment_model_deployment_configuration_details_environment_configuration_details_environment_configuration_type"],
cmds=var["model_deployment_model_deployment_configuration_details_environment_configuration_details_cmd"],
entrypoints=var["model_deployment_model_deployment_configuration_details_environment_configuration_details_entrypoint"],
environment_variables=var["model_deployment_model_deployment_configuration_details_environment_configuration_details_environment_variables"],
health_check_port=var["model_deployment_model_deployment_configuration_details_environment_configuration_details_health_check_port"],
image=var["model_deployment_model_deployment_configuration_details_environment_configuration_details_image"],
image_digest=var["model_deployment_model_deployment_configuration_details_environment_configuration_details_image_digest"],
server_port=var["model_deployment_model_deployment_configuration_details_environment_configuration_details_server_port"],
),
),
project_id=oci_datascience_project["test_project"]["id"],
category_log_details=oci.data_science.ModelDeploymentCategoryLogDetailsArgs(
access=oci.data_science.ModelDeploymentCategoryLogDetailsAccessArgs(
log_group_id=oci_logging_log_group["test_log_group"]["id"],
log_id=oci_logging_log["test_log"]["id"],
),
predict=oci.data_science.ModelDeploymentCategoryLogDetailsPredictArgs(
log_group_id=oci_logging_log_group["test_log_group"]["id"],
log_id=oci_logging_log["test_log"]["id"],
),
),
defined_tags={
"Operations.CostCenter": "42",
},
description=var["model_deployment_description"],
display_name=var["model_deployment_display_name"],
freeform_tags={
"Department": "Finance",
})
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testModelDeployment = new oci.datascience.ModelDeployment("testModelDeployment", {
compartmentId: _var.compartment_id,
modelDeploymentConfigurationDetails: {
deploymentType: _var.model_deployment_model_deployment_configuration_details_deployment_type,
modelConfigurationDetails: {
instanceConfiguration: {
instanceShapeName: oci_core_shape.test_shape.name,
modelDeploymentInstanceShapeConfigDetails: {
memoryInGbs: _var.model_deployment_model_deployment_configuration_details_model_configuration_details_instance_configuration_model_deployment_instance_shape_config_details_memory_in_gbs,
ocpus: _var.model_deployment_model_deployment_configuration_details_model_configuration_details_instance_configuration_model_deployment_instance_shape_config_details_ocpus,
},
},
modelId: oci_datascience_model.test_model.id,
bandwidthMbps: _var.model_deployment_model_deployment_configuration_details_model_configuration_details_bandwidth_mbps,
scalingPolicy: {
instanceCount: _var.model_deployment_model_deployment_configuration_details_model_configuration_details_scaling_policy_instance_count,
policyType: _var.model_deployment_model_deployment_configuration_details_model_configuration_details_scaling_policy_policy_type,
},
},
environmentConfigurationDetails: {
environmentConfigurationType: _var.model_deployment_model_deployment_configuration_details_environment_configuration_details_environment_configuration_type,
cmds: _var.model_deployment_model_deployment_configuration_details_environment_configuration_details_cmd,
entrypoints: _var.model_deployment_model_deployment_configuration_details_environment_configuration_details_entrypoint,
environmentVariables: _var.model_deployment_model_deployment_configuration_details_environment_configuration_details_environment_variables,
healthCheckPort: _var.model_deployment_model_deployment_configuration_details_environment_configuration_details_health_check_port,
image: _var.model_deployment_model_deployment_configuration_details_environment_configuration_details_image,
imageDigest: _var.model_deployment_model_deployment_configuration_details_environment_configuration_details_image_digest,
serverPort: _var.model_deployment_model_deployment_configuration_details_environment_configuration_details_server_port,
},
},
projectId: oci_datascience_project.test_project.id,
categoryLogDetails: {
access: {
logGroupId: oci_logging_log_group.test_log_group.id,
logId: oci_logging_log.test_log.id,
},
predict: {
logGroupId: oci_logging_log_group.test_log_group.id,
logId: oci_logging_log.test_log.id,
},
},
definedTags: {
"Operations.CostCenter": "42",
},
description: _var.model_deployment_description,
displayName: _var.model_deployment_display_name,
freeformTags: {
Department: "Finance",
},
});
resources:
testModelDeployment:
type: oci:DataScience:ModelDeployment
properties:
#Required
compartmentId: ${var.compartment_id}
modelDeploymentConfigurationDetails:
deploymentType: ${var.model_deployment_model_deployment_configuration_details_deployment_type}
modelConfigurationDetails:
instanceConfiguration:
instanceShapeName: ${oci_core_shape.test_shape.name}
modelDeploymentInstanceShapeConfigDetails:
memoryInGbs: ${var.model_deployment_model_deployment_configuration_details_model_configuration_details_instance_configuration_model_deployment_instance_shape_config_details_memory_in_gbs}
ocpus: ${var.model_deployment_model_deployment_configuration_details_model_configuration_details_instance_configuration_model_deployment_instance_shape_config_details_ocpus}
modelId: ${oci_datascience_model.test_model.id}
bandwidthMbps: ${var.model_deployment_model_deployment_configuration_details_model_configuration_details_bandwidth_mbps}
scalingPolicy:
instanceCount: ${var.model_deployment_model_deployment_configuration_details_model_configuration_details_scaling_policy_instance_count}
policyType: ${var.model_deployment_model_deployment_configuration_details_model_configuration_details_scaling_policy_policy_type}
environmentConfigurationDetails:
environmentConfigurationType: ${var.model_deployment_model_deployment_configuration_details_environment_configuration_details_environment_configuration_type}
cmds: ${var.model_deployment_model_deployment_configuration_details_environment_configuration_details_cmd}
entrypoints: ${var.model_deployment_model_deployment_configuration_details_environment_configuration_details_entrypoint}
environmentVariables: ${var.model_deployment_model_deployment_configuration_details_environment_configuration_details_environment_variables}
healthCheckPort: ${var.model_deployment_model_deployment_configuration_details_environment_configuration_details_health_check_port}
image: ${var.model_deployment_model_deployment_configuration_details_environment_configuration_details_image}
imageDigest: ${var.model_deployment_model_deployment_configuration_details_environment_configuration_details_image_digest}
serverPort: ${var.model_deployment_model_deployment_configuration_details_environment_configuration_details_server_port}
projectId: ${oci_datascience_project.test_project.id}
categoryLogDetails:
access:
logGroupId: ${oci_logging_log_group.test_log_group.id}
logId: ${oci_logging_log.test_log.id}
predict:
logGroupId: ${oci_logging_log_group.test_log_group.id}
logId: ${oci_logging_log.test_log.id}
definedTags:
Operations.CostCenter: '42'
description: ${var.model_deployment_description}
displayName: ${var.model_deployment_display_name}
freeformTags:
Department: Finance
Create ModelDeployment Resource
new ModelDeployment(name: string, args: ModelDeploymentArgs, opts?: CustomResourceOptions);
@overload
def ModelDeployment(resource_name: str,
opts: Optional[ResourceOptions] = None,
category_log_details: Optional[_datascience.ModelDeploymentCategoryLogDetailsArgs] = None,
compartment_id: Optional[str] = None,
defined_tags: Optional[Mapping[str, Any]] = None,
description: Optional[str] = None,
display_name: Optional[str] = None,
freeform_tags: Optional[Mapping[str, Any]] = None,
model_deployment_configuration_details: Optional[_datascience.ModelDeploymentModelDeploymentConfigurationDetailsArgs] = None,
project_id: Optional[str] = None,
state: Optional[str] = None)
@overload
def ModelDeployment(resource_name: str,
args: ModelDeploymentArgs,
opts: Optional[ResourceOptions] = None)
func NewModelDeployment(ctx *Context, name string, args ModelDeploymentArgs, opts ...ResourceOption) (*ModelDeployment, error)
public ModelDeployment(string name, ModelDeploymentArgs args, CustomResourceOptions? opts = null)
public ModelDeployment(String name, ModelDeploymentArgs args)
public ModelDeployment(String name, ModelDeploymentArgs args, CustomResourceOptions options)
type: oci:DataScience:ModelDeployment
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ModelDeploymentArgs
- 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 ModelDeploymentArgs
- 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 ModelDeploymentArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ModelDeploymentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ModelDeploymentArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
ModelDeployment 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 ModelDeployment resource accepts the following input properties:
- Compartment
Id string (Updatable) The OCID of the compartment where you want to create the model deployment.
- Model
Deployment ModelConfiguration Details Deployment Model Deployment Configuration Details (Updatable) The model deployment configuration details.
- Project
Id string The OCID of the project to associate with the model deployment.
- Category
Log ModelDetails Deployment Category Log Details (Updatable) The log details for each category.
- 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"}
- Description string
(Updatable) A short description of the model deployment.
- Display
Name string (Updatable) A user-friendly display name for the resource. Does not have to be unique, and can be modified. Avoid entering confidential information. Example:
My ModelDeployment
- 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"}
- State string
(Updatable) The target state for the Model Deployment. Could be set to
ACTIVE
orINACTIVE
.** 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
- Compartment
Id string (Updatable) The OCID of the compartment where you want to create the model deployment.
- Model
Deployment ModelConfiguration Details Deployment Model Deployment Configuration Details Args (Updatable) The model deployment configuration details.
- Project
Id string The OCID of the project to associate with the model deployment.
- Category
Log ModelDetails Deployment Category Log Details Args (Updatable) The log details for each category.
- 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"}
- Description string
(Updatable) A short description of the model deployment.
- Display
Name string (Updatable) A user-friendly display name for the resource. Does not have to be unique, and can be modified. Avoid entering confidential information. Example:
My ModelDeployment
- 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"}
- State string
(Updatable) The target state for the Model Deployment. Could be set to
ACTIVE
orINACTIVE
.** 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
- compartment
Id String (Updatable) The OCID of the compartment where you want to create the model deployment.
- model
Deployment ModelConfiguration Details Deployment Model Deployment Configuration Details (Updatable) The model deployment configuration details.
- project
Id String The OCID of the project to associate with the model deployment.
- category
Log ModelDetails Deployment Category Log Details (Updatable) The log details for each category.
- 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"}
- description String
(Updatable) A short description of the model deployment.
- display
Name String (Updatable) A user-friendly display name for the resource. Does not have to be unique, and can be modified. Avoid entering confidential information. Example:
My ModelDeployment
- 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"}
- state String
(Updatable) The target state for the Model Deployment. Could be set to
ACTIVE
orINACTIVE
.** 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
- compartment
Id string (Updatable) The OCID of the compartment where you want to create the model deployment.
- model
Deployment ModelConfiguration Details Deployment Model Deployment Configuration Details (Updatable) The model deployment configuration details.
- project
Id string The OCID of the project to associate with the model deployment.
- category
Log ModelDetails Deployment Category Log Details (Updatable) The log details for each category.
- {[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"}
- description string
(Updatable) A short description of the model deployment.
- display
Name string (Updatable) A user-friendly display name for the resource. Does not have to be unique, and can be modified. Avoid entering confidential information. Example:
My ModelDeployment
- {[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"}
- state string
(Updatable) The target state for the Model Deployment. Could be set to
ACTIVE
orINACTIVE
.** 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
- compartment_
id str (Updatable) The OCID of the compartment where you want to create the model deployment.
- model_
deployment_ Modelconfiguration_ details Deployment Model Deployment Configuration Details Args (Updatable) The model deployment configuration details.
- project_
id str The OCID of the project to associate with the model deployment.
- category_
log_ Modeldetails Deployment Category Log Details Args (Updatable) The log details for each category.
- 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"}
- description str
(Updatable) A short description of the model deployment.
- display_
name str (Updatable) A user-friendly display name for the resource. Does not have to be unique, and can be modified. Avoid entering confidential information. Example:
My ModelDeployment
- 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"}
- state str
(Updatable) The target state for the Model Deployment. Could be set to
ACTIVE
orINACTIVE
.** 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
- compartment
Id String (Updatable) The OCID of the compartment where you want to create the model deployment.
- model
Deployment Property MapConfiguration Details (Updatable) The model deployment configuration details.
- project
Id String The OCID of the project to associate with the model deployment.
- category
Log Property MapDetails (Updatable) The log details for each category.
- Map<Any>
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example:
{"Operations.CostCenter": "42"}
- description String
(Updatable) A short description of the model deployment.
- display
Name String (Updatable) A user-friendly display name for the resource. Does not have to be unique, and can be modified. Avoid entering confidential information. Example:
My ModelDeployment
- 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"}
- state String
(Updatable) The target state for the Model Deployment. Could be set to
ACTIVE
orINACTIVE
.** 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
Outputs
All input properties are implicitly available as output properties. Additionally, the ModelDeployment resource produces the following output properties:
- Created
By string The OCID of the user who created the model deployment.
- Id string
The provider-assigned unique ID for this managed resource.
- Lifecycle
Details string Details about the state of the model deployment.
- Model
Deployment stringUrl The URL to interact with the model deployment.
- Time
Created 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 string The OCID of the user who created the model deployment.
- Id string
The provider-assigned unique ID for this managed resource.
- Lifecycle
Details string Details about the state of the model deployment.
- Model
Deployment stringUrl The URL to interact with the model deployment.
- Time
Created 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 String The OCID of the user who created the model deployment.
- id String
The provider-assigned unique ID for this managed resource.
- lifecycle
Details String Details about the state of the model deployment.
- model
Deployment StringUrl The URL to interact with the model deployment.
- time
Created 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 string The OCID of the user who created the model deployment.
- id string
The provider-assigned unique ID for this managed resource.
- lifecycle
Details string Details about the state of the model deployment.
- model
Deployment stringUrl The URL to interact with the model deployment.
- time
Created 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 model deployment.
- id str
The provider-assigned unique ID for this managed resource.
- lifecycle_
details str Details about the state of the model deployment.
- model_
deployment_ strurl The URL to interact with the model deployment.
- 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
- created
By String The OCID of the user who created the model deployment.
- id String
The provider-assigned unique ID for this managed resource.
- lifecycle
Details String Details about the state of the model deployment.
- model
Deployment StringUrl The URL to interact with the model deployment.
- time
Created 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 ModelDeployment Resource
Get an existing ModelDeployment 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?: ModelDeploymentState, opts?: CustomResourceOptions): ModelDeployment
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
category_log_details: Optional[_datascience.ModelDeploymentCategoryLogDetailsArgs] = None,
compartment_id: Optional[str] = None,
created_by: Optional[str] = None,
defined_tags: Optional[Mapping[str, Any]] = None,
description: Optional[str] = None,
display_name: Optional[str] = None,
freeform_tags: Optional[Mapping[str, Any]] = None,
lifecycle_details: Optional[str] = None,
model_deployment_configuration_details: Optional[_datascience.ModelDeploymentModelDeploymentConfigurationDetailsArgs] = None,
model_deployment_url: Optional[str] = None,
project_id: Optional[str] = None,
state: Optional[str] = None,
time_created: Optional[str] = None) -> ModelDeployment
func GetModelDeployment(ctx *Context, name string, id IDInput, state *ModelDeploymentState, opts ...ResourceOption) (*ModelDeployment, error)
public static ModelDeployment Get(string name, Input<string> id, ModelDeploymentState? state, CustomResourceOptions? opts = null)
public static ModelDeployment get(String name, Output<String> id, ModelDeploymentState 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.
- Category
Log ModelDetails Deployment Category Log Details (Updatable) The log details for each category.
- Compartment
Id string (Updatable) The OCID of the compartment where you want to create the model deployment.
- Created
By string The OCID of the user who created the model deployment.
- 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"}
- Description string
(Updatable) A short description of the model deployment.
- Display
Name string (Updatable) A user-friendly display name for the resource. Does not have to be unique, and can be modified. Avoid entering confidential information. Example:
My ModelDeployment
- 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"}
- Lifecycle
Details string Details about the state of the model deployment.
- Model
Deployment ModelConfiguration Details Deployment Model Deployment Configuration Details (Updatable) The model deployment configuration details.
- Model
Deployment stringUrl The URL to interact with the model deployment.
- Project
Id string The OCID of the project to associate with the model deployment.
- State string
(Updatable) The target state for the Model Deployment. Could be set to
ACTIVE
orINACTIVE
.** 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
- Time
Created string The date and time the resource was created, in the timestamp format defined by RFC3339. Example: 2019-08-25T21:10:29.41Z
- Category
Log ModelDetails Deployment Category Log Details Args (Updatable) The log details for each category.
- Compartment
Id string (Updatable) The OCID of the compartment where you want to create the model deployment.
- Created
By string The OCID of the user who created the model deployment.
- 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"}
- Description string
(Updatable) A short description of the model deployment.
- Display
Name string (Updatable) A user-friendly display name for the resource. Does not have to be unique, and can be modified. Avoid entering confidential information. Example:
My ModelDeployment
- 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"}
- Lifecycle
Details string Details about the state of the model deployment.
- Model
Deployment ModelConfiguration Details Deployment Model Deployment Configuration Details Args (Updatable) The model deployment configuration details.
- Model
Deployment stringUrl The URL to interact with the model deployment.
- Project
Id string The OCID of the project to associate with the model deployment.
- State string
(Updatable) The target state for the Model Deployment. Could be set to
ACTIVE
orINACTIVE
.** 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
- Time
Created string The date and time the resource was created, in the timestamp format defined by RFC3339. Example: 2019-08-25T21:10:29.41Z
- category
Log ModelDetails Deployment Category Log Details (Updatable) The log details for each category.
- compartment
Id String (Updatable) The OCID of the compartment where you want to create the model deployment.
- created
By String The OCID of the user who created the model deployment.
- 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"}
- description String
(Updatable) A short description of the model deployment.
- display
Name String (Updatable) A user-friendly display name for the resource. Does not have to be unique, and can be modified. Avoid entering confidential information. Example:
My ModelDeployment
- 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"}
- lifecycle
Details String Details about the state of the model deployment.
- model
Deployment ModelConfiguration Details Deployment Model Deployment Configuration Details (Updatable) The model deployment configuration details.
- model
Deployment StringUrl The URL to interact with the model deployment.
- project
Id String The OCID of the project to associate with the model deployment.
- state String
(Updatable) The target state for the Model Deployment. Could be set to
ACTIVE
orINACTIVE
.** 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
- time
Created String The date and time the resource was created, in the timestamp format defined by RFC3339. Example: 2019-08-25T21:10:29.41Z
- category
Log ModelDetails Deployment Category Log Details (Updatable) The log details for each category.
- compartment
Id string (Updatable) The OCID of the compartment where you want to create the model deployment.
- created
By string The OCID of the user who created the model deployment.
- {[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"}
- description string
(Updatable) A short description of the model deployment.
- display
Name string (Updatable) A user-friendly display name for the resource. Does not have to be unique, and can be modified. Avoid entering confidential information. Example:
My ModelDeployment
- {[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"}
- lifecycle
Details string Details about the state of the model deployment.
- model
Deployment ModelConfiguration Details Deployment Model Deployment Configuration Details (Updatable) The model deployment configuration details.
- model
Deployment stringUrl The URL to interact with the model deployment.
- project
Id string The OCID of the project to associate with the model deployment.
- state string
(Updatable) The target state for the Model Deployment. Could be set to
ACTIVE
orINACTIVE
.** 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
- time
Created string The date and time the resource was created, in the timestamp format defined by RFC3339. Example: 2019-08-25T21:10:29.41Z
- category_
log_ Modeldetails Deployment Category Log Details Args (Updatable) The log details for each category.
- compartment_
id str (Updatable) The OCID of the compartment where you want to create the model deployment.
- created_
by str The OCID of the user who created the model deployment.
- 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"}
- description str
(Updatable) A short description of the model deployment.
- display_
name str (Updatable) A user-friendly display name for the resource. Does not have to be unique, and can be modified. Avoid entering confidential information. Example:
My ModelDeployment
- 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 model deployment.
- model_
deployment_ Modelconfiguration_ details Deployment Model Deployment Configuration Details Args (Updatable) The model deployment configuration details.
- model_
deployment_ strurl The URL to interact with the model deployment.
- project_
id str The OCID of the project to associate with the model deployment.
- state str
(Updatable) The target state for the Model Deployment. Could be set to
ACTIVE
orINACTIVE
.** 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
- 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
- category
Log Property MapDetails (Updatable) The log details for each category.
- compartment
Id String (Updatable) The OCID of the compartment where you want to create the model deployment.
- created
By String The OCID of the user who created the model deployment.
- Map<Any>
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example:
{"Operations.CostCenter": "42"}
- description String
(Updatable) A short description of the model deployment.
- display
Name String (Updatable) A user-friendly display name for the resource. Does not have to be unique, and can be modified. Avoid entering confidential information. Example:
My ModelDeployment
- 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"}
- lifecycle
Details String Details about the state of the model deployment.
- model
Deployment Property MapConfiguration Details (Updatable) The model deployment configuration details.
- model
Deployment StringUrl The URL to interact with the model deployment.
- project
Id String The OCID of the project to associate with the model deployment.
- state String
(Updatable) The target state for the Model Deployment. Could be set to
ACTIVE
orINACTIVE
.** 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
- time
Created 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
ModelDeploymentCategoryLogDetails, ModelDeploymentCategoryLogDetailsArgs
- Access
Model
Deployment Category Log Details Access (Updatable) The log details.
- Predict
Model
Deployment Category Log Details Predict (Updatable) The log details.
- Access
Model
Deployment Category Log Details Access (Updatable) The log details.
- Predict
Model
Deployment Category Log Details Predict (Updatable) The log details.
- access
Model
Deployment Category Log Details Access (Updatable) The log details.
- predict
Model
Deployment Category Log Details Predict (Updatable) The log details.
- access
Model
Deployment Category Log Details Access (Updatable) The log details.
- predict
Model
Deployment Category Log Details Predict (Updatable) The log details.
- access
Model
Deployment Category Log Details Access (Updatable) The log details.
- predict
Model
Deployment Category Log Details Predict (Updatable) The log details.
- access Property Map
(Updatable) The log details.
- predict Property Map
(Updatable) The log details.
ModelDeploymentCategoryLogDetailsAccess, ModelDeploymentCategoryLogDetailsAccessArgs
- Log
Group stringId (Updatable) The OCID of a log group to work with.
- Log
Id string (Updatable) The OCID of a log to work with.
- Log
Group stringId (Updatable) The OCID of a log group to work with.
- Log
Id string (Updatable) The OCID of a log to work with.
- log
Group StringId (Updatable) The OCID of a log group to work with.
- log
Id String (Updatable) The OCID of a log to work with.
- log
Group stringId (Updatable) The OCID of a log group to work with.
- log
Id string (Updatable) The OCID of a log to work with.
- log_
group_ strid (Updatable) The OCID of a log group to work with.
- log_
id str (Updatable) The OCID of a log to work with.
- log
Group StringId (Updatable) The OCID of a log group to work with.
- log
Id String (Updatable) The OCID of a log to work with.
ModelDeploymentCategoryLogDetailsPredict, ModelDeploymentCategoryLogDetailsPredictArgs
- Log
Group stringId (Updatable) The OCID of a log group to work with.
- Log
Id string (Updatable) The OCID of a log to work with.
- Log
Group stringId (Updatable) The OCID of a log group to work with.
- Log
Id string (Updatable) The OCID of a log to work with.
- log
Group StringId (Updatable) The OCID of a log group to work with.
- log
Id String (Updatable) The OCID of a log to work with.
- log
Group stringId (Updatable) The OCID of a log group to work with.
- log
Id string (Updatable) The OCID of a log to work with.
- log_
group_ strid (Updatable) The OCID of a log group to work with.
- log_
id str (Updatable) The OCID of a log to work with.
- log
Group StringId (Updatable) The OCID of a log group to work with.
- log
Id String (Updatable) The OCID of a log to work with.
ModelDeploymentModelDeploymentConfigurationDetails, ModelDeploymentModelDeploymentConfigurationDetailsArgs
- Deployment
Type string (Updatable) The type of the model deployment.
- Model
Configuration ModelDetails Deployment Model Deployment Configuration Details Model Configuration Details (Updatable) The model configuration details.
- Environment
Configuration ModelDetails Deployment Model Deployment Configuration Details Environment Configuration Details (Updatable) The configuration to carry the environment details thats used in Model Deployment creation
- Deployment
Type string (Updatable) The type of the model deployment.
- Model
Configuration ModelDetails Deployment Model Deployment Configuration Details Model Configuration Details (Updatable) The model configuration details.
- Environment
Configuration ModelDetails Deployment Model Deployment Configuration Details Environment Configuration Details (Updatable) The configuration to carry the environment details thats used in Model Deployment creation
- deployment
Type String (Updatable) The type of the model deployment.
- model
Configuration ModelDetails Deployment Model Deployment Configuration Details Model Configuration Details (Updatable) The model configuration details.
- environment
Configuration ModelDetails Deployment Model Deployment Configuration Details Environment Configuration Details (Updatable) The configuration to carry the environment details thats used in Model Deployment creation
- deployment
Type string (Updatable) The type of the model deployment.
- model
Configuration ModelDetails Deployment Model Deployment Configuration Details Model Configuration Details (Updatable) The model configuration details.
- environment
Configuration ModelDetails Deployment Model Deployment Configuration Details Environment Configuration Details (Updatable) The configuration to carry the environment details thats used in Model Deployment creation
- deployment_
type str (Updatable) The type of the model deployment.
- model_
configuration_ Modeldetails Deployment Model Deployment Configuration Details Model Configuration Details (Updatable) The model configuration details.
- environment_
configuration_ Modeldetails Deployment Model Deployment Configuration Details Environment Configuration Details (Updatable) The configuration to carry the environment details thats used in Model Deployment creation
- deployment
Type String (Updatable) The type of the model deployment.
- model
Configuration Property MapDetails (Updatable) The model configuration details.
- environment
Configuration Property MapDetails (Updatable) The configuration to carry the environment details thats used in Model Deployment creation
ModelDeploymentModelDeploymentConfigurationDetailsEnvironmentConfigurationDetails, ModelDeploymentModelDeploymentConfigurationDetailsEnvironmentConfigurationDetailsArgs
- Environment
Configuration stringType (Updatable) The environment configuration type
- Cmds List<string>
(Updatable) The container image run CMD as a list of strings. Use
CMD
as arguments to theENTRYPOINT
or the only command to run in the absence of anENTRYPOINT
. The combined size ofCMD
andENTRYPOINT
must be less than 2048 bytes.- Entrypoints List<string>
(Updatable) The container image run ENTRYPOINT as a list of strings. Accept the
CMD
as extra arguments. The combined size ofCMD
andENTRYPOINT
must be less than 2048 bytes. More information on howCMD
andENTRYPOINT
interact are here.- Environment
Variables Dictionary<string, object> (Updatable) Environment variables to set for the web server container. The size of envVars must be less than 2048 bytes. Key should be under 32 characters. Key should contain only letters, digits and underscore (_) Key should start with a letter. Key should have at least 2 characters. Key should not end with underscore eg.
TEST_
Key if added cannot be empty. Value can be empty. No specific size limits on individual Values. But overall environment variables is limited to 2048 bytes. Key can't be reserved Model Deployment environment variables.- Health
Check intPort (Updatable) The port on which the container HEALTHCHECK would listen. The port can be anything between
1024
and65535
. The following ports cannot be used24224
,8446
,8447
.- Image string
(Updatable) The full path to the Oracle Container Repository (OCIR) registry, image, and tag in a canonical format. Acceptable format:
<region>.ocir.io/<registry>/<image>:<tag>
<region>.ocir.io/<registry>/<image>:<tag>@digest
- Image
Digest string (Updatable) The digest of the container image. For example,
sha256:881303a6b2738834d795a32b4a98eb0e5e3d1cad590a712d1e04f9b2fa90a030
- Server
Port int (Updatable) The port on which the web server serving the inference is running. The port can be anything between
1024
and65535
. The following ports cannot be used24224
,8446
,8447
.
- Environment
Configuration stringType (Updatable) The environment configuration type
- Cmds []string
(Updatable) The container image run CMD as a list of strings. Use
CMD
as arguments to theENTRYPOINT
or the only command to run in the absence of anENTRYPOINT
. The combined size ofCMD
andENTRYPOINT
must be less than 2048 bytes.- Entrypoints []string
(Updatable) The container image run ENTRYPOINT as a list of strings. Accept the
CMD
as extra arguments. The combined size ofCMD
andENTRYPOINT
must be less than 2048 bytes. More information on howCMD
andENTRYPOINT
interact are here.- Environment
Variables map[string]interface{} (Updatable) Environment variables to set for the web server container. The size of envVars must be less than 2048 bytes. Key should be under 32 characters. Key should contain only letters, digits and underscore (_) Key should start with a letter. Key should have at least 2 characters. Key should not end with underscore eg.
TEST_
Key if added cannot be empty. Value can be empty. No specific size limits on individual Values. But overall environment variables is limited to 2048 bytes. Key can't be reserved Model Deployment environment variables.- Health
Check intPort (Updatable) The port on which the container HEALTHCHECK would listen. The port can be anything between
1024
and65535
. The following ports cannot be used24224
,8446
,8447
.- Image string
(Updatable) The full path to the Oracle Container Repository (OCIR) registry, image, and tag in a canonical format. Acceptable format:
<region>.ocir.io/<registry>/<image>:<tag>
<region>.ocir.io/<registry>/<image>:<tag>@digest
- Image
Digest string (Updatable) The digest of the container image. For example,
sha256:881303a6b2738834d795a32b4a98eb0e5e3d1cad590a712d1e04f9b2fa90a030
- Server
Port int (Updatable) The port on which the web server serving the inference is running. The port can be anything between
1024
and65535
. The following ports cannot be used24224
,8446
,8447
.
- environment
Configuration StringType (Updatable) The environment configuration type
- cmds List<String>
(Updatable) The container image run CMD as a list of strings. Use
CMD
as arguments to theENTRYPOINT
or the only command to run in the absence of anENTRYPOINT
. The combined size ofCMD
andENTRYPOINT
must be less than 2048 bytes.- entrypoints List<String>
(Updatable) The container image run ENTRYPOINT as a list of strings. Accept the
CMD
as extra arguments. The combined size ofCMD
andENTRYPOINT
must be less than 2048 bytes. More information on howCMD
andENTRYPOINT
interact are here.- environment
Variables Map<String,Object> (Updatable) Environment variables to set for the web server container. The size of envVars must be less than 2048 bytes. Key should be under 32 characters. Key should contain only letters, digits and underscore (_) Key should start with a letter. Key should have at least 2 characters. Key should not end with underscore eg.
TEST_
Key if added cannot be empty. Value can be empty. No specific size limits on individual Values. But overall environment variables is limited to 2048 bytes. Key can't be reserved Model Deployment environment variables.- health
Check IntegerPort (Updatable) The port on which the container HEALTHCHECK would listen. The port can be anything between
1024
and65535
. The following ports cannot be used24224
,8446
,8447
.- image String
(Updatable) The full path to the Oracle Container Repository (OCIR) registry, image, and tag in a canonical format. Acceptable format:
<region>.ocir.io/<registry>/<image>:<tag>
<region>.ocir.io/<registry>/<image>:<tag>@digest
- image
Digest String (Updatable) The digest of the container image. For example,
sha256:881303a6b2738834d795a32b4a98eb0e5e3d1cad590a712d1e04f9b2fa90a030
- server
Port Integer (Updatable) The port on which the web server serving the inference is running. The port can be anything between
1024
and65535
. The following ports cannot be used24224
,8446
,8447
.
- environment
Configuration stringType (Updatable) The environment configuration type
- cmds string[]
(Updatable) The container image run CMD as a list of strings. Use
CMD
as arguments to theENTRYPOINT
or the only command to run in the absence of anENTRYPOINT
. The combined size ofCMD
andENTRYPOINT
must be less than 2048 bytes.- entrypoints string[]
(Updatable) The container image run ENTRYPOINT as a list of strings. Accept the
CMD
as extra arguments. The combined size ofCMD
andENTRYPOINT
must be less than 2048 bytes. More information on howCMD
andENTRYPOINT
interact are here.- environment
Variables {[key: string]: any} (Updatable) Environment variables to set for the web server container. The size of envVars must be less than 2048 bytes. Key should be under 32 characters. Key should contain only letters, digits and underscore (_) Key should start with a letter. Key should have at least 2 characters. Key should not end with underscore eg.
TEST_
Key if added cannot be empty. Value can be empty. No specific size limits on individual Values. But overall environment variables is limited to 2048 bytes. Key can't be reserved Model Deployment environment variables.- health
Check numberPort (Updatable) The port on which the container HEALTHCHECK would listen. The port can be anything between
1024
and65535
. The following ports cannot be used24224
,8446
,8447
.- image string
(Updatable) The full path to the Oracle Container Repository (OCIR) registry, image, and tag in a canonical format. Acceptable format:
<region>.ocir.io/<registry>/<image>:<tag>
<region>.ocir.io/<registry>/<image>:<tag>@digest
- image
Digest string (Updatable) The digest of the container image. For example,
sha256:881303a6b2738834d795a32b4a98eb0e5e3d1cad590a712d1e04f9b2fa90a030
- server
Port number (Updatable) The port on which the web server serving the inference is running. The port can be anything between
1024
and65535
. The following ports cannot be used24224
,8446
,8447
.
- environment_
configuration_ strtype (Updatable) The environment configuration type
- cmds Sequence[str]
(Updatable) The container image run CMD as a list of strings. Use
CMD
as arguments to theENTRYPOINT
or the only command to run in the absence of anENTRYPOINT
. The combined size ofCMD
andENTRYPOINT
must be less than 2048 bytes.- entrypoints Sequence[str]
(Updatable) The container image run ENTRYPOINT as a list of strings. Accept the
CMD
as extra arguments. The combined size ofCMD
andENTRYPOINT
must be less than 2048 bytes. More information on howCMD
andENTRYPOINT
interact are here.- environment_
variables Mapping[str, Any] (Updatable) Environment variables to set for the web server container. The size of envVars must be less than 2048 bytes. Key should be under 32 characters. Key should contain only letters, digits and underscore (_) Key should start with a letter. Key should have at least 2 characters. Key should not end with underscore eg.
TEST_
Key if added cannot be empty. Value can be empty. No specific size limits on individual Values. But overall environment variables is limited to 2048 bytes. Key can't be reserved Model Deployment environment variables.- health_
check_ intport (Updatable) The port on which the container HEALTHCHECK would listen. The port can be anything between
1024
and65535
. The following ports cannot be used24224
,8446
,8447
.- image str
(Updatable) The full path to the Oracle Container Repository (OCIR) registry, image, and tag in a canonical format. Acceptable format:
<region>.ocir.io/<registry>/<image>:<tag>
<region>.ocir.io/<registry>/<image>:<tag>@digest
- image_
digest str (Updatable) The digest of the container image. For example,
sha256:881303a6b2738834d795a32b4a98eb0e5e3d1cad590a712d1e04f9b2fa90a030
- server_
port int (Updatable) The port on which the web server serving the inference is running. The port can be anything between
1024
and65535
. The following ports cannot be used24224
,8446
,8447
.
- environment
Configuration StringType (Updatable) The environment configuration type
- cmds List<String>
(Updatable) The container image run CMD as a list of strings. Use
CMD
as arguments to theENTRYPOINT
or the only command to run in the absence of anENTRYPOINT
. The combined size ofCMD
andENTRYPOINT
must be less than 2048 bytes.- entrypoints List<String>
(Updatable) The container image run ENTRYPOINT as a list of strings. Accept the
CMD
as extra arguments. The combined size ofCMD
andENTRYPOINT
must be less than 2048 bytes. More information on howCMD
andENTRYPOINT
interact are here.- environment
Variables Map<Any> (Updatable) Environment variables to set for the web server container. The size of envVars must be less than 2048 bytes. Key should be under 32 characters. Key should contain only letters, digits and underscore (_) Key should start with a letter. Key should have at least 2 characters. Key should not end with underscore eg.
TEST_
Key if added cannot be empty. Value can be empty. No specific size limits on individual Values. But overall environment variables is limited to 2048 bytes. Key can't be reserved Model Deployment environment variables.- health
Check NumberPort (Updatable) The port on which the container HEALTHCHECK would listen. The port can be anything between
1024
and65535
. The following ports cannot be used24224
,8446
,8447
.- image String
(Updatable) The full path to the Oracle Container Repository (OCIR) registry, image, and tag in a canonical format. Acceptable format:
<region>.ocir.io/<registry>/<image>:<tag>
<region>.ocir.io/<registry>/<image>:<tag>@digest
- image
Digest String (Updatable) The digest of the container image. For example,
sha256:881303a6b2738834d795a32b4a98eb0e5e3d1cad590a712d1e04f9b2fa90a030
- server
Port Number (Updatable) The port on which the web server serving the inference is running. The port can be anything between
1024
and65535
. The following ports cannot be used24224
,8446
,8447
.
ModelDeploymentModelDeploymentConfigurationDetailsModelConfigurationDetails, ModelDeploymentModelDeploymentConfigurationDetailsModelConfigurationDetailsArgs
- Instance
Configuration ModelDeployment Model Deployment Configuration Details Model Configuration Details Instance Configuration (Updatable) The model deployment instance configuration
- Model
Id string (Updatable) The OCID of the model you want to deploy.
- Bandwidth
Mbps int (Updatable) The minimum network bandwidth for the model deployment.
- Scaling
Policy ModelDeployment Model Deployment Configuration Details Model Configuration Details Scaling Policy (Updatable) The scaling policy to apply to each model of the deployment.
- Instance
Configuration ModelDeployment Model Deployment Configuration Details Model Configuration Details Instance Configuration (Updatable) The model deployment instance configuration
- Model
Id string (Updatable) The OCID of the model you want to deploy.
- Bandwidth
Mbps int (Updatable) The minimum network bandwidth for the model deployment.
- Scaling
Policy ModelDeployment Model Deployment Configuration Details Model Configuration Details Scaling Policy (Updatable) The scaling policy to apply to each model of the deployment.
- instance
Configuration ModelDeployment Model Deployment Configuration Details Model Configuration Details Instance Configuration (Updatable) The model deployment instance configuration
- model
Id String (Updatable) The OCID of the model you want to deploy.
- bandwidth
Mbps Integer (Updatable) The minimum network bandwidth for the model deployment.
- scaling
Policy ModelDeployment Model Deployment Configuration Details Model Configuration Details Scaling Policy (Updatable) The scaling policy to apply to each model of the deployment.
- instance
Configuration ModelDeployment Model Deployment Configuration Details Model Configuration Details Instance Configuration (Updatable) The model deployment instance configuration
- model
Id string (Updatable) The OCID of the model you want to deploy.
- bandwidth
Mbps number (Updatable) The minimum network bandwidth for the model deployment.
- scaling
Policy ModelDeployment Model Deployment Configuration Details Model Configuration Details Scaling Policy (Updatable) The scaling policy to apply to each model of the deployment.
- instance_
configuration ModelDeployment Model Deployment Configuration Details Model Configuration Details Instance Configuration (Updatable) The model deployment instance configuration
- model_
id str (Updatable) The OCID of the model you want to deploy.
- bandwidth_
mbps int (Updatable) The minimum network bandwidth for the model deployment.
- scaling_
policy ModelDeployment Model Deployment Configuration Details Model Configuration Details Scaling Policy (Updatable) The scaling policy to apply to each model of the deployment.
- instance
Configuration Property Map (Updatable) The model deployment instance configuration
- model
Id String (Updatable) The OCID of the model you want to deploy.
- bandwidth
Mbps Number (Updatable) The minimum network bandwidth for the model deployment.
- scaling
Policy Property Map (Updatable) The scaling policy to apply to each model of the deployment.
ModelDeploymentModelDeploymentConfigurationDetailsModelConfigurationDetailsInstanceConfiguration, ModelDeploymentModelDeploymentConfigurationDetailsModelConfigurationDetailsInstanceConfigurationArgs
- Instance
Shape stringName (Updatable) The shape used to launch the model deployment instances.
- Model
Deployment ModelInstance Shape Config Details Deployment Model Deployment Configuration Details Model Configuration Details Instance Configuration Model Deployment Instance Shape Config Details (Updatable) Details for the model-deployment instance shape configuration.
- Instance
Shape stringName (Updatable) The shape used to launch the model deployment instances.
- Model
Deployment ModelInstance Shape Config Details Deployment Model Deployment Configuration Details Model Configuration Details Instance Configuration Model Deployment Instance Shape Config Details (Updatable) Details for the model-deployment instance shape configuration.
- instance
Shape StringName (Updatable) The shape used to launch the model deployment instances.
- model
Deployment ModelInstance Shape Config Details Deployment Model Deployment Configuration Details Model Configuration Details Instance Configuration Model Deployment Instance Shape Config Details (Updatable) Details for the model-deployment instance shape configuration.
- instance
Shape stringName (Updatable) The shape used to launch the model deployment instances.
- model
Deployment ModelInstance Shape Config Details Deployment Model Deployment Configuration Details Model Configuration Details Instance Configuration Model Deployment Instance Shape Config Details (Updatable) Details for the model-deployment instance shape configuration.
- instance_
shape_ strname (Updatable) The shape used to launch the model deployment instances.
- model_
deployment_ Modelinstance_ shape_ config_ details Deployment Model Deployment Configuration Details Model Configuration Details Instance Configuration Model Deployment Instance Shape Config Details (Updatable) Details for the model-deployment instance shape configuration.
- instance
Shape StringName (Updatable) The shape used to launch the model deployment instances.
- model
Deployment Property MapInstance Shape Config Details (Updatable) Details for the model-deployment instance shape configuration.
ModelDeploymentModelDeploymentConfigurationDetailsModelConfigurationDetailsInstanceConfigurationModelDeploymentInstanceShapeConfigDetails, ModelDeploymentModelDeploymentConfigurationDetailsModelConfigurationDetailsInstanceConfigurationModelDeploymentInstanceShapeConfigDetailsArgs
- Memory
In doubleGbs (Updatable) A model-deployment instance of type VM.Standard.E3.Flex or VM.Standard.E4.Flex allows the memory to be specified with in the range of 6 to 1024 GB. VM.Standard3.Flex memory range is between 6 to 512 GB and VM.Optimized3.Flex memory range is between 6 to 256 GB.
- Ocpus double
(Updatable) A model-deployment instance of type VM.Standard.E3.Flex or VM.Standard.E4.Flex allows the ocpu count to be specified with in the range of 1 to 64 ocpu. VM.Standard3.Flex OCPU range is between 1 to 32 ocpu and for VM.Optimized3.Flex OCPU range is 1 to 18 ocpu.
- Memory
In float64Gbs (Updatable) A model-deployment instance of type VM.Standard.E3.Flex or VM.Standard.E4.Flex allows the memory to be specified with in the range of 6 to 1024 GB. VM.Standard3.Flex memory range is between 6 to 512 GB and VM.Optimized3.Flex memory range is between 6 to 256 GB.
- Ocpus float64
(Updatable) A model-deployment instance of type VM.Standard.E3.Flex or VM.Standard.E4.Flex allows the ocpu count to be specified with in the range of 1 to 64 ocpu. VM.Standard3.Flex OCPU range is between 1 to 32 ocpu and for VM.Optimized3.Flex OCPU range is 1 to 18 ocpu.
- memory
In DoubleGbs (Updatable) A model-deployment instance of type VM.Standard.E3.Flex or VM.Standard.E4.Flex allows the memory to be specified with in the range of 6 to 1024 GB. VM.Standard3.Flex memory range is between 6 to 512 GB and VM.Optimized3.Flex memory range is between 6 to 256 GB.
- ocpus Double
(Updatable) A model-deployment instance of type VM.Standard.E3.Flex or VM.Standard.E4.Flex allows the ocpu count to be specified with in the range of 1 to 64 ocpu. VM.Standard3.Flex OCPU range is between 1 to 32 ocpu and for VM.Optimized3.Flex OCPU range is 1 to 18 ocpu.
- memory
In numberGbs (Updatable) A model-deployment instance of type VM.Standard.E3.Flex or VM.Standard.E4.Flex allows the memory to be specified with in the range of 6 to 1024 GB. VM.Standard3.Flex memory range is between 6 to 512 GB and VM.Optimized3.Flex memory range is between 6 to 256 GB.
- ocpus number
(Updatable) A model-deployment instance of type VM.Standard.E3.Flex or VM.Standard.E4.Flex allows the ocpu count to be specified with in the range of 1 to 64 ocpu. VM.Standard3.Flex OCPU range is between 1 to 32 ocpu and for VM.Optimized3.Flex OCPU range is 1 to 18 ocpu.
- memory_
in_ floatgbs (Updatable) A model-deployment instance of type VM.Standard.E3.Flex or VM.Standard.E4.Flex allows the memory to be specified with in the range of 6 to 1024 GB. VM.Standard3.Flex memory range is between 6 to 512 GB and VM.Optimized3.Flex memory range is between 6 to 256 GB.
- ocpus float
(Updatable) A model-deployment instance of type VM.Standard.E3.Flex or VM.Standard.E4.Flex allows the ocpu count to be specified with in the range of 1 to 64 ocpu. VM.Standard3.Flex OCPU range is between 1 to 32 ocpu and for VM.Optimized3.Flex OCPU range is 1 to 18 ocpu.
- memory
In NumberGbs (Updatable) A model-deployment instance of type VM.Standard.E3.Flex or VM.Standard.E4.Flex allows the memory to be specified with in the range of 6 to 1024 GB. VM.Standard3.Flex memory range is between 6 to 512 GB and VM.Optimized3.Flex memory range is between 6 to 256 GB.
- ocpus Number
(Updatable) A model-deployment instance of type VM.Standard.E3.Flex or VM.Standard.E4.Flex allows the ocpu count to be specified with in the range of 1 to 64 ocpu. VM.Standard3.Flex OCPU range is between 1 to 32 ocpu and for VM.Optimized3.Flex OCPU range is 1 to 18 ocpu.
ModelDeploymentModelDeploymentConfigurationDetailsModelConfigurationDetailsScalingPolicy, ModelDeploymentModelDeploymentConfigurationDetailsModelConfigurationDetailsScalingPolicyArgs
- Instance
Count int (Updatable) The number of instances for the model deployment.
- Policy
Type string (Updatable) The type of scaling policy.
- Instance
Count int (Updatable) The number of instances for the model deployment.
- Policy
Type string (Updatable) The type of scaling policy.
- instance
Count Integer (Updatable) The number of instances for the model deployment.
- policy
Type String (Updatable) The type of scaling policy.
- instance
Count number (Updatable) The number of instances for the model deployment.
- policy
Type string (Updatable) The type of scaling policy.
- instance_
count int (Updatable) The number of instances for the model deployment.
- policy_
type str (Updatable) The type of scaling policy.
- instance
Count Number (Updatable) The number of instances for the model deployment.
- policy
Type String (Updatable) The type of scaling policy.
Import
ModelDeployments can be imported using the id
, e.g.
$ pulumi import oci:DataScience/modelDeployment:ModelDeployment test_model_deployment "id"
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
oci
Terraform Provider.