datarobot.ExecutionEnvironment
Explore with Pulumi AI
 
Execution Environment
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as datarobot from "@datarobot/pulumi-datarobot";
const example = new datarobot.ExecutionEnvironment("example", {
    programmingLanguage: "python",
    description: "Example Execution Environment Description",
    dockerContextPath: "docker_context.zip",
    dockerImage: "docker_image.tar",
    useCases: ["customModel"],
});
export const datarobotExecutionEnvironmentId = example.id;
export const datarobotExecutionEnvironmentVersionId = example.versionId;
import pulumi
import pulumi_datarobot as datarobot
example = datarobot.ExecutionEnvironment("example",
    programming_language="python",
    description="Example Execution Environment Description",
    docker_context_path="docker_context.zip",
    docker_image="docker_image.tar",
    use_cases=["customModel"])
pulumi.export("datarobotExecutionEnvironmentId", example.id)
pulumi.export("datarobotExecutionEnvironmentVersionId", example.version_id)
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 {
		example, err := datarobot.NewExecutionEnvironment(ctx, "example", &datarobot.ExecutionEnvironmentArgs{
			ProgrammingLanguage: pulumi.String("python"),
			Description:         pulumi.String("Example Execution Environment Description"),
			DockerContextPath:   pulumi.String("docker_context.zip"),
			DockerImage:         pulumi.String("docker_image.tar"),
			UseCases: pulumi.StringArray{
				pulumi.String("customModel"),
			},
		})
		if err != nil {
			return err
		}
		ctx.Export("datarobotExecutionEnvironmentId", example.ID())
		ctx.Export("datarobotExecutionEnvironmentVersionId", example.VersionId)
		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()
    {
        ProgrammingLanguage = "python",
        Description = "Example Execution Environment Description",
        DockerContextPath = "docker_context.zip",
        DockerImage = "docker_image.tar",
        UseCases = new[]
        {
            "customModel",
        },
    });
    return new Dictionary<string, object?>
    {
        ["datarobotExecutionEnvironmentId"] = example.Id,
        ["datarobotExecutionEnvironmentVersionId"] = example.VersionId,
    };
});
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()
            .programmingLanguage("python")
            .description("Example Execution Environment Description")
            .dockerContextPath("docker_context.zip")
            .dockerImage("docker_image.tar")
            .useCases("customModel")
            .build());
        ctx.export("datarobotExecutionEnvironmentId", example.id());
        ctx.export("datarobotExecutionEnvironmentVersionId", example.versionId());
    }
}
resources:
  example:
    type: datarobot:ExecutionEnvironment
    properties:
      programmingLanguage: python
      # Optional
      description: Example Execution Environment Description
      dockerContextPath: docker_context.zip
      dockerImage: docker_image.tar
      useCases:
        - customModel
outputs:
  datarobotExecutionEnvironmentId: ${example.id}
  datarobotExecutionEnvironmentVersionId: ${example.versionId}
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,
                         programming_language: Optional[str] = None,
                         use_cases: Optional[Sequence[str]] = None,
                         description: Optional[str] = None,
                         docker_context_path: Optional[str] = None,
                         docker_image: 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()
{
    ProgrammingLanguage = "string",
    UseCases = new[]
    {
        "string",
    },
    Description = "string",
    DockerContextPath = "string",
    DockerImage = "string",
    Name = "string",
    VersionDescription = "string",
});
example, err := datarobot.NewExecutionEnvironment(ctx, "executionEnvironmentResource", &datarobot.ExecutionEnvironmentArgs{
	ProgrammingLanguage: pulumi.String("string"),
	UseCases: pulumi.StringArray{
		pulumi.String("string"),
	},
	Description:        pulumi.String("string"),
	DockerContextPath:  pulumi.String("string"),
	DockerImage:        pulumi.String("string"),
	Name:               pulumi.String("string"),
	VersionDescription: pulumi.String("string"),
})
var executionEnvironmentResource = new ExecutionEnvironment("executionEnvironmentResource", ExecutionEnvironmentArgs.builder()
    .programmingLanguage("string")
    .useCases("string")
    .description("string")
    .dockerContextPath("string")
    .dockerImage("string")
    .name("string")
    .versionDescription("string")
    .build());
execution_environment_resource = datarobot.ExecutionEnvironment("executionEnvironmentResource",
    programming_language="string",
    use_cases=["string"],
    description="string",
    docker_context_path="string",
    docker_image="string",
    name="string",
    version_description="string")
const executionEnvironmentResource = new datarobot.ExecutionEnvironment("executionEnvironmentResource", {
    programmingLanguage: "string",
    useCases: ["string"],
    description: "string",
    dockerContextPath: "string",
    dockerImage: "string",
    name: "string",
    versionDescription: "string",
});
type: datarobot:ExecutionEnvironment
properties:
    description: string
    dockerContextPath: string
    dockerImage: 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:
- 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.
- DockerContext stringPath 
- The path to a docker context archive or folder
- DockerImage string
- A prebuilt environment image saved as a tarball using the Docker save command.
- Name string
- The name of the Execution Environment.
- VersionDescription string
- The description of the Execution Environment version.
- 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.
- DockerContext stringPath 
- The path to a docker context archive or folder
- DockerImage string
- A prebuilt environment image saved as a tarball using the Docker save command.
- Name string
- The name of the Execution Environment.
- VersionDescription string
- The description of the Execution Environment version.
- 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.
- dockerContext StringPath 
- The path to a docker context archive or folder
- dockerImage String
- A prebuilt environment image saved as a tarball using the Docker save command.
- name String
- The name of the Execution Environment.
- versionDescription String
- The description of the Execution Environment version.
- 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.
- dockerContext stringPath 
- The path to a docker context archive or folder
- dockerImage string
- A prebuilt environment image saved as a tarball using the Docker save command.
- name string
- The name of the Execution Environment.
- versionDescription string
- The description of the Execution Environment version.
- 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.
- docker_context_ strpath 
- The path to a docker context archive or folder
- docker_image str
- A prebuilt environment image saved as a tarball using the Docker save command.
- name str
- The name of the Execution Environment.
- version_description str
- The description of the Execution Environment version.
- 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.
- dockerContext StringPath 
- The path to a docker context archive or folder
- dockerImage String
- A prebuilt environment image saved as a tarball using the Docker save command.
- 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.
- DockerContext stringHash 
- The hash of the docker context contents.
- 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.
- DockerContext stringHash 
- The hash of the docker context contents.
- 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.
- dockerContext StringHash 
- The hash of the docker context contents.
- 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.
- dockerContext stringHash 
- The hash of the docker context contents.
- 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.
- docker_context_ strhash 
- The hash of the docker context contents.
- 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.
- dockerContext StringHash 
- The hash of the docker context contents.
- 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_hash: Optional[str] = None,
        docker_context_path: Optional[str] = None,
        docker_image: 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) -> ExecutionEnvironmentfunc 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)resources:  _:    type: datarobot:ExecutionEnvironment    get:      id: ${id}- 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.
- BuildStatus string
- The status of the Execution Environment version build.
- Description string
- The description of the Execution Environment.
- DockerContext stringHash 
- The hash of the docker context contents.
- DockerContext stringPath 
- The path to a docker context archive or folder
- DockerImage string
- A prebuilt environment image saved as a tarball using the Docker save command.
- 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.
- DockerContext stringHash 
- The hash of the docker context contents.
- DockerContext stringPath 
- The path to a docker context archive or folder
- DockerImage string
- A prebuilt environment image saved as a tarball using the Docker save command.
- 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.
- dockerContext StringHash 
- The hash of the docker context contents.
- dockerContext StringPath 
- The path to a docker context archive or folder
- dockerImage String
- A prebuilt environment image saved as a tarball using the Docker save command.
- 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.
- dockerContext stringHash 
- The hash of the docker context contents.
- dockerContext stringPath 
- The path to a docker context archive or folder
- dockerImage string
- A prebuilt environment image saved as a tarball using the Docker save command.
- 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_ strhash 
- The hash of the docker context contents.
- docker_context_ strpath 
- The path to a docker context archive or folder
- docker_image str
- A prebuilt environment image saved as a tarball using the Docker save command.
- 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.
- dockerContext StringHash 
- The hash of the docker context contents.
- dockerContext StringPath 
- The path to a docker context archive or folder
- dockerImage String
- A prebuilt environment image saved as a tarball using the Docker save command.
- 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 datarobotTerraform Provider.
