1. Packages
  2. DataRobot
  3. API Docs
  4. ExecutionEnvironment
DataRobot v0.5.1 published on Friday, Nov 29, 2024 by DataRobot, Inc.

datarobot.ExecutionEnvironment

Explore with Pulumi AI

datarobot logo
DataRobot v0.5.1 published on Friday, Nov 29, 2024 by DataRobot, Inc.

    Execution Environment

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as datarobot from "@datarobot/pulumi-datarobot";
    
    const example = new datarobot.ExecutionEnvironment("example", {
        description: "Example Execution Environment Description",
        dockerContextPath: "docker_context.zip",
        programmingLanguage: "python",
        useCases: ["customModel"],
    });
    
    import pulumi
    import pulumi_datarobot as datarobot
    
    example = datarobot.ExecutionEnvironment("example",
        description="Example Execution Environment Description",
        docker_context_path="docker_context.zip",
        programming_language="python",
        use_cases=["customModel"])
    
    package main
    
    import (
    	"github.com/datarobot-community/pulumi-datarobot/sdk/go/datarobot"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := datarobot.NewExecutionEnvironment(ctx, "example", &datarobot.ExecutionEnvironmentArgs{
    			Description:         pulumi.String("Example Execution Environment Description"),
    			DockerContextPath:   pulumi.String("docker_context.zip"),
    			ProgrammingLanguage: pulumi.String("python"),
    			UseCases: pulumi.StringArray{
    				pulumi.String("customModel"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Datarobot = DataRobotPulumi.Datarobot;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Datarobot.ExecutionEnvironment("example", new()
        {
            Description = "Example Execution Environment Description",
            DockerContextPath = "docker_context.zip",
            ProgrammingLanguage = "python",
            UseCases = new[]
            {
                "customModel",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.datarobot.ExecutionEnvironment;
    import com.pulumi.datarobot.ExecutionEnvironmentArgs;
    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 example = new ExecutionEnvironment("example", ExecutionEnvironmentArgs.builder()
                .description("Example Execution Environment Description")
                .dockerContextPath("docker_context.zip")
                .programmingLanguage("python")
                .useCases("customModel")
                .build());
    
        }
    }
    
    resources:
      example:
        type: datarobot:ExecutionEnvironment
        properties:
          description: Example Execution Environment Description
          dockerContextPath: docker_context.zip
          programmingLanguage: python
          useCases:
            - customModel
    

    Create ExecutionEnvironment Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ExecutionEnvironment(name: string, args: ExecutionEnvironmentArgs, opts?: CustomResourceOptions);
    @overload
    def ExecutionEnvironment(resource_name: str,
                             args: ExecutionEnvironmentArgs,
                             opts: Optional[ResourceOptions] = None)
    
    @overload
    def ExecutionEnvironment(resource_name: str,
                             opts: Optional[ResourceOptions] = None,
                             docker_context_path: Optional[str] = None,
                             programming_language: Optional[str] = None,
                             use_cases: Optional[Sequence[str]] = None,
                             description: Optional[str] = None,
                             name: Optional[str] = None,
                             version_description: Optional[str] = None)
    func NewExecutionEnvironment(ctx *Context, name string, args ExecutionEnvironmentArgs, opts ...ResourceOption) (*ExecutionEnvironment, error)
    public ExecutionEnvironment(string name, ExecutionEnvironmentArgs args, CustomResourceOptions? opts = null)
    public ExecutionEnvironment(String name, ExecutionEnvironmentArgs args)
    public ExecutionEnvironment(String name, ExecutionEnvironmentArgs args, CustomResourceOptions options)
    
    type: datarobot:ExecutionEnvironment
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args ExecutionEnvironmentArgs
    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 ExecutionEnvironmentArgs
    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 ExecutionEnvironmentArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ExecutionEnvironmentArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ExecutionEnvironmentArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var executionEnvironmentResource = new Datarobot.ExecutionEnvironment("executionEnvironmentResource", new()
    {
        DockerContextPath = "string",
        ProgrammingLanguage = "string",
        UseCases = new[]
        {
            "string",
        },
        Description = "string",
        Name = "string",
        VersionDescription = "string",
    });
    
    example, err := datarobot.NewExecutionEnvironment(ctx, "executionEnvironmentResource", &datarobot.ExecutionEnvironmentArgs{
    	DockerContextPath:   pulumi.String("string"),
    	ProgrammingLanguage: pulumi.String("string"),
    	UseCases: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Description:        pulumi.String("string"),
    	Name:               pulumi.String("string"),
    	VersionDescription: pulumi.String("string"),
    })
    
    var executionEnvironmentResource = new ExecutionEnvironment("executionEnvironmentResource", ExecutionEnvironmentArgs.builder()
        .dockerContextPath("string")
        .programmingLanguage("string")
        .useCases("string")
        .description("string")
        .name("string")
        .versionDescription("string")
        .build());
    
    execution_environment_resource = datarobot.ExecutionEnvironment("executionEnvironmentResource",
        docker_context_path="string",
        programming_language="string",
        use_cases=["string"],
        description="string",
        name="string",
        version_description="string")
    
    const executionEnvironmentResource = new datarobot.ExecutionEnvironment("executionEnvironmentResource", {
        dockerContextPath: "string",
        programmingLanguage: "string",
        useCases: ["string"],
        description: "string",
        name: "string",
        versionDescription: "string",
    });
    
    type: datarobot:ExecutionEnvironment
    properties:
        description: string
        dockerContextPath: string
        name: string
        programmingLanguage: string
        useCases:
            - string
        versionDescription: string
    

    ExecutionEnvironment Resource Properties

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

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The ExecutionEnvironment resource accepts the following input properties:

    DockerContextPath string
    The path to a docker context archive or folder
    ProgrammingLanguage string
    The programming language of the Execution Environment.
    UseCases List<string>
    The list of Use Cases that the Execution Environment supports.
    Description string
    The description of the Execution Environment.
    Name string
    The name of the Execution Environment.
    VersionDescription string
    The description of the Execution Environment version.
    DockerContextPath string
    The path to a docker context archive or folder
    ProgrammingLanguage string
    The programming language of the Execution Environment.
    UseCases []string
    The list of Use Cases that the Execution Environment supports.
    Description string
    The description of the Execution Environment.
    Name string
    The name of the Execution Environment.
    VersionDescription string
    The description of the Execution Environment version.
    dockerContextPath String
    The path to a docker context archive or folder
    programmingLanguage String
    The programming language of the Execution Environment.
    useCases List<String>
    The list of Use Cases that the Execution Environment supports.
    description String
    The description of the Execution Environment.
    name String
    The name of the Execution Environment.
    versionDescription String
    The description of the Execution Environment version.
    dockerContextPath string
    The path to a docker context archive or folder
    programmingLanguage string
    The programming language of the Execution Environment.
    useCases string[]
    The list of Use Cases that the Execution Environment supports.
    description string
    The description of the Execution Environment.
    name string
    The name of the Execution Environment.
    versionDescription string
    The description of the Execution Environment version.
    docker_context_path str
    The path to a docker context archive or folder
    programming_language str
    The programming language of the Execution Environment.
    use_cases Sequence[str]
    The list of Use Cases that the Execution Environment supports.
    description str
    The description of the Execution Environment.
    name str
    The name of the Execution Environment.
    version_description str
    The description of the Execution Environment version.
    dockerContextPath String
    The path to a docker context archive or folder
    programmingLanguage String
    The programming language of the Execution Environment.
    useCases List<String>
    The list of Use Cases that the Execution Environment supports.
    description String
    The description of the Execution Environment.
    name String
    The name of the Execution Environment.
    versionDescription String
    The description of the Execution Environment version.

    Outputs

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

    BuildStatus string
    The status of the Execution Environment version build.
    Id string
    The provider-assigned unique ID for this managed resource.
    VersionId string
    The ID of the Execution Environment Version.
    BuildStatus string
    The status of the Execution Environment version build.
    Id string
    The provider-assigned unique ID for this managed resource.
    VersionId string
    The ID of the Execution Environment Version.
    buildStatus String
    The status of the Execution Environment version build.
    id String
    The provider-assigned unique ID for this managed resource.
    versionId String
    The ID of the Execution Environment Version.
    buildStatus string
    The status of the Execution Environment version build.
    id string
    The provider-assigned unique ID for this managed resource.
    versionId string
    The ID of the Execution Environment Version.
    build_status str
    The status of the Execution Environment version build.
    id str
    The provider-assigned unique ID for this managed resource.
    version_id str
    The ID of the Execution Environment Version.
    buildStatus String
    The status of the Execution Environment version build.
    id String
    The provider-assigned unique ID for this managed resource.
    versionId String
    The ID of the Execution Environment Version.

    Look up Existing ExecutionEnvironment Resource

    Get an existing ExecutionEnvironment 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?: ExecutionEnvironmentState, opts?: CustomResourceOptions): ExecutionEnvironment
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            build_status: Optional[str] = None,
            description: Optional[str] = None,
            docker_context_path: Optional[str] = None,
            name: Optional[str] = None,
            programming_language: Optional[str] = None,
            use_cases: Optional[Sequence[str]] = None,
            version_description: Optional[str] = None,
            version_id: Optional[str] = None) -> ExecutionEnvironment
    func GetExecutionEnvironment(ctx *Context, name string, id IDInput, state *ExecutionEnvironmentState, opts ...ResourceOption) (*ExecutionEnvironment, error)
    public static ExecutionEnvironment Get(string name, Input<string> id, ExecutionEnvironmentState? state, CustomResourceOptions? opts = null)
    public static ExecutionEnvironment get(String name, Output<String> id, ExecutionEnvironmentState 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:
    BuildStatus string
    The status of the Execution Environment version build.
    Description string
    The description of the Execution Environment.
    DockerContextPath string
    The path to a docker context archive or folder
    Name string
    The name of the Execution Environment.
    ProgrammingLanguage string
    The programming language of the Execution Environment.
    UseCases List<string>
    The list of Use Cases that the Execution Environment supports.
    VersionDescription string
    The description of the Execution Environment version.
    VersionId string
    The ID of the Execution Environment Version.
    BuildStatus string
    The status of the Execution Environment version build.
    Description string
    The description of the Execution Environment.
    DockerContextPath string
    The path to a docker context archive or folder
    Name string
    The name of the Execution Environment.
    ProgrammingLanguage string
    The programming language of the Execution Environment.
    UseCases []string
    The list of Use Cases that the Execution Environment supports.
    VersionDescription string
    The description of the Execution Environment version.
    VersionId string
    The ID of the Execution Environment Version.
    buildStatus String
    The status of the Execution Environment version build.
    description String
    The description of the Execution Environment.
    dockerContextPath String
    The path to a docker context archive or folder
    name String
    The name of the Execution Environment.
    programmingLanguage String
    The programming language of the Execution Environment.
    useCases List<String>
    The list of Use Cases that the Execution Environment supports.
    versionDescription String
    The description of the Execution Environment version.
    versionId String
    The ID of the Execution Environment Version.
    buildStatus string
    The status of the Execution Environment version build.
    description string
    The description of the Execution Environment.
    dockerContextPath string
    The path to a docker context archive or folder
    name string
    The name of the Execution Environment.
    programmingLanguage string
    The programming language of the Execution Environment.
    useCases string[]
    The list of Use Cases that the Execution Environment supports.
    versionDescription string
    The description of the Execution Environment version.
    versionId string
    The ID of the Execution Environment Version.
    build_status str
    The status of the Execution Environment version build.
    description str
    The description of the Execution Environment.
    docker_context_path str
    The path to a docker context archive or folder
    name str
    The name of the Execution Environment.
    programming_language str
    The programming language of the Execution Environment.
    use_cases Sequence[str]
    The list of Use Cases that the Execution Environment supports.
    version_description str
    The description of the Execution Environment version.
    version_id str
    The ID of the Execution Environment Version.
    buildStatus String
    The status of the Execution Environment version build.
    description String
    The description of the Execution Environment.
    dockerContextPath String
    The path to a docker context archive or folder
    name String
    The name of the Execution Environment.
    programmingLanguage String
    The programming language of the Execution Environment.
    useCases List<String>
    The list of Use Cases that the Execution Environment supports.
    versionDescription String
    The description of the Execution Environment version.
    versionId String
    The ID of the Execution Environment Version.

    Package Details

    Repository
    datarobot datarobot-community/pulumi-datarobot
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the datarobot Terraform Provider.
    datarobot logo
    DataRobot v0.5.1 published on Friday, Nov 29, 2024 by DataRobot, Inc.