1. Packages
  2. DataRobot
  3. API Docs
  4. ApplicationSource
DataRobot v0.8.18 published on Thursday, Mar 27, 2025 by DataRobot, Inc.

datarobot.ApplicationSource

Explore with Pulumi AI

Application Source

Example Usage

Coming soon!
Coming soon!
Coming soon!
Coming soon!
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.datarobot.ApplicationSource;
import com.pulumi.datarobot.ApplicationSourceArgs;
import com.pulumi.datarobot.inputs.ApplicationSourceRuntimeParameterValueArgs;
import com.pulumi.datarobot.inputs.ApplicationSourceResourcesArgs;
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 ApplicationSource("example", ApplicationSourceArgs.builder()
            .baseEnvironmentId("6542cd582a9d3d51bf4ac71e")
            .files(            
                "start-app.sh",
                "streamlit-app.py")
            .folderPath("example-app")
            .runtimeParameterValues(ApplicationSourceRuntimeParameterValueArgs.builder()
                .key("EXAMPLE_PARAM")
                .type("string")
                .value("val")
                .build())
            .resources(ApplicationSourceResourcesArgs.builder()
                .replicas(2)
                .session_affinity(true)
                .resource_label("cpu.medium")
                .build())
            .build());

        ctx.export("datarobotApplicationSourceId", example.id());
        ctx.export("datarobotApplicationSourceVersionId", example.versionId());
    }
}
Copy
resources:
  example:
    type: datarobot:ApplicationSource
    properties:
      baseEnvironmentId: 6542cd582a9d3d51bf4ac71e
      # Optional
      files:
        - - start-app.sh
        - - streamlit-app.py
      folderPath: example-app
      runtimeParameterValues:
        - key: EXAMPLE_PARAM
          type: string
          value: val
      resources:
        replicas: 2
        session_affinity: true
        resource_label: cpu.medium
outputs:
  datarobotApplicationSourceId: ${example.id}
  datarobotApplicationSourceVersionId: ${example.versionId}
Copy

Create ApplicationSource Resource

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

Constructor syntax

new ApplicationSource(name: string, args?: ApplicationSourceArgs, opts?: CustomResourceOptions);
@overload
def ApplicationSource(resource_name: str,
                      args: Optional[ApplicationSourceArgs] = None,
                      opts: Optional[ResourceOptions] = None)

@overload
def ApplicationSource(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      base_environment_id: Optional[str] = None,
                      base_environment_version_id: Optional[str] = None,
                      files: Optional[Any] = None,
                      folder_path: Optional[str] = None,
                      name: Optional[str] = None,
                      resources: Optional[ApplicationSourceResourcesArgs] = None,
                      runtime_parameter_values: Optional[Sequence[ApplicationSourceRuntimeParameterValueArgs]] = None)
func NewApplicationSource(ctx *Context, name string, args *ApplicationSourceArgs, opts ...ResourceOption) (*ApplicationSource, error)
public ApplicationSource(string name, ApplicationSourceArgs? args = null, CustomResourceOptions? opts = null)
public ApplicationSource(String name, ApplicationSourceArgs args)
public ApplicationSource(String name, ApplicationSourceArgs args, CustomResourceOptions options)
type: datarobot:ApplicationSource
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args ApplicationSourceArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args ApplicationSourceArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args ApplicationSourceArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args ApplicationSourceArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. ApplicationSourceArgs
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 applicationSourceResource = new Datarobot.ApplicationSource("applicationSourceResource", new()
{
    BaseEnvironmentId = "string",
    BaseEnvironmentVersionId = "string",
    Files = "any",
    FolderPath = "string",
    Name = "string",
    Resources = new Datarobot.Inputs.ApplicationSourceResourcesArgs
    {
        Replicas = 0,
        ResourceLabel = "string",
        SessionAffinity = false,
    },
    RuntimeParameterValues = new[]
    {
        new Datarobot.Inputs.ApplicationSourceRuntimeParameterValueArgs
        {
            Key = "string",
            Type = "string",
            Value = "string",
        },
    },
});
Copy
example, err := datarobot.NewApplicationSource(ctx, "applicationSourceResource", &datarobot.ApplicationSourceArgs{
	BaseEnvironmentId:        pulumi.String("string"),
	BaseEnvironmentVersionId: pulumi.String("string"),
	Files:                    pulumi.Any("any"),
	FolderPath:               pulumi.String("string"),
	Name:                     pulumi.String("string"),
	Resources: &datarobot.ApplicationSourceResourcesArgs{
		Replicas:        pulumi.Int(0),
		ResourceLabel:   pulumi.String("string"),
		SessionAffinity: pulumi.Bool(false),
	},
	RuntimeParameterValues: datarobot.ApplicationSourceRuntimeParameterValueArray{
		&datarobot.ApplicationSourceRuntimeParameterValueArgs{
			Key:   pulumi.String("string"),
			Type:  pulumi.String("string"),
			Value: pulumi.String("string"),
		},
	},
})
Copy
var applicationSourceResource = new ApplicationSource("applicationSourceResource", ApplicationSourceArgs.builder()
    .baseEnvironmentId("string")
    .baseEnvironmentVersionId("string")
    .files("any")
    .folderPath("string")
    .name("string")
    .resources(ApplicationSourceResourcesArgs.builder()
        .replicas(0)
        .resourceLabel("string")
        .sessionAffinity(false)
        .build())
    .runtimeParameterValues(ApplicationSourceRuntimeParameterValueArgs.builder()
        .key("string")
        .type("string")
        .value("string")
        .build())
    .build());
Copy
application_source_resource = datarobot.ApplicationSource("applicationSourceResource",
    base_environment_id="string",
    base_environment_version_id="string",
    files="any",
    folder_path="string",
    name="string",
    resources={
        "replicas": 0,
        "resource_label": "string",
        "session_affinity": False,
    },
    runtime_parameter_values=[{
        "key": "string",
        "type": "string",
        "value": "string",
    }])
Copy
const applicationSourceResource = new datarobot.ApplicationSource("applicationSourceResource", {
    baseEnvironmentId: "string",
    baseEnvironmentVersionId: "string",
    files: "any",
    folderPath: "string",
    name: "string",
    resources: {
        replicas: 0,
        resourceLabel: "string",
        sessionAffinity: false,
    },
    runtimeParameterValues: [{
        key: "string",
        type: "string",
        value: "string",
    }],
});
Copy
type: datarobot:ApplicationSource
properties:
    baseEnvironmentId: string
    baseEnvironmentVersionId: string
    files: any
    folderPath: string
    name: string
    resources:
        replicas: 0
        resourceLabel: string
        sessionAffinity: false
    runtimeParameterValues:
        - key: string
          type: string
          value: string
Copy

ApplicationSource 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 ApplicationSource resource accepts the following input properties:

BaseEnvironmentId string
The ID of the base environment for the Application Source.
BaseEnvironmentVersionId string
The ID of the base environment version for the Application Source.
Files object
The list of tuples, where values in each tuple are the local filesystem path and the path the file should be placed in the Application Source. If list is of strings, then basenames will be used for tuples.
FolderPath string
The path to a folder containing files to build the Application Source. Each file in the folder is uploaded under path relative to a folder path.
Name string
The name of the Application Source.
Resources DataRobotApplicationSourceResources
The resources for the Application Source.
RuntimeParameterValues List<DataRobotApplicationSourceRuntimeParameterValue>
The runtime parameter values for the Application Source.
BaseEnvironmentId string
The ID of the base environment for the Application Source.
BaseEnvironmentVersionId string
The ID of the base environment version for the Application Source.
Files interface{}
The list of tuples, where values in each tuple are the local filesystem path and the path the file should be placed in the Application Source. If list is of strings, then basenames will be used for tuples.
FolderPath string
The path to a folder containing files to build the Application Source. Each file in the folder is uploaded under path relative to a folder path.
Name string
The name of the Application Source.
Resources ApplicationSourceResourcesArgs
The resources for the Application Source.
RuntimeParameterValues []ApplicationSourceRuntimeParameterValueArgs
The runtime parameter values for the Application Source.
baseEnvironmentId String
The ID of the base environment for the Application Source.
baseEnvironmentVersionId String
The ID of the base environment version for the Application Source.
files Object
The list of tuples, where values in each tuple are the local filesystem path and the path the file should be placed in the Application Source. If list is of strings, then basenames will be used for tuples.
folderPath String
The path to a folder containing files to build the Application Source. Each file in the folder is uploaded under path relative to a folder path.
name String
The name of the Application Source.
resources ApplicationSourceResources
The resources for the Application Source.
runtimeParameterValues List<ApplicationSourceRuntimeParameterValue>
The runtime parameter values for the Application Source.
baseEnvironmentId string
The ID of the base environment for the Application Source.
baseEnvironmentVersionId string
The ID of the base environment version for the Application Source.
files any
The list of tuples, where values in each tuple are the local filesystem path and the path the file should be placed in the Application Source. If list is of strings, then basenames will be used for tuples.
folderPath string
The path to a folder containing files to build the Application Source. Each file in the folder is uploaded under path relative to a folder path.
name string
The name of the Application Source.
resources ApplicationSourceResources
The resources for the Application Source.
runtimeParameterValues ApplicationSourceRuntimeParameterValue[]
The runtime parameter values for the Application Source.
base_environment_id str
The ID of the base environment for the Application Source.
base_environment_version_id str
The ID of the base environment version for the Application Source.
files Any
The list of tuples, where values in each tuple are the local filesystem path and the path the file should be placed in the Application Source. If list is of strings, then basenames will be used for tuples.
folder_path str
The path to a folder containing files to build the Application Source. Each file in the folder is uploaded under path relative to a folder path.
name str
The name of the Application Source.
resources ApplicationSourceResourcesArgs
The resources for the Application Source.
runtime_parameter_values Sequence[ApplicationSourceRuntimeParameterValueArgs]
The runtime parameter values for the Application Source.
baseEnvironmentId String
The ID of the base environment for the Application Source.
baseEnvironmentVersionId String
The ID of the base environment version for the Application Source.
files Any
The list of tuples, where values in each tuple are the local filesystem path and the path the file should be placed in the Application Source. If list is of strings, then basenames will be used for tuples.
folderPath String
The path to a folder containing files to build the Application Source. Each file in the folder is uploaded under path relative to a folder path.
name String
The name of the Application Source.
resources Property Map
The resources for the Application Source.
runtimeParameterValues List<Property Map>
The runtime parameter values for the Application Source.

Outputs

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

FilesHashes List<string>
The hash of file contents for each file in files.
FolderPathHash string
The hash of the folder path contents.
Id string
The provider-assigned unique ID for this managed resource.
VersionId string
The version ID of the Application Source.
FilesHashes []string
The hash of file contents for each file in files.
FolderPathHash string
The hash of the folder path contents.
Id string
The provider-assigned unique ID for this managed resource.
VersionId string
The version ID of the Application Source.
filesHashes List<String>
The hash of file contents for each file in files.
folderPathHash String
The hash of the folder path contents.
id String
The provider-assigned unique ID for this managed resource.
versionId String
The version ID of the Application Source.
filesHashes string[]
The hash of file contents for each file in files.
folderPathHash string
The hash of the folder path contents.
id string
The provider-assigned unique ID for this managed resource.
versionId string
The version ID of the Application Source.
files_hashes Sequence[str]
The hash of file contents for each file in files.
folder_path_hash str
The hash of the folder path contents.
id str
The provider-assigned unique ID for this managed resource.
version_id str
The version ID of the Application Source.
filesHashes List<String>
The hash of file contents for each file in files.
folderPathHash String
The hash of the folder path contents.
id String
The provider-assigned unique ID for this managed resource.
versionId String
The version ID of the Application Source.

Look up Existing ApplicationSource Resource

Get an existing ApplicationSource 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?: ApplicationSourceState, opts?: CustomResourceOptions): ApplicationSource
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        base_environment_id: Optional[str] = None,
        base_environment_version_id: Optional[str] = None,
        files: Optional[Any] = None,
        files_hashes: Optional[Sequence[str]] = None,
        folder_path: Optional[str] = None,
        folder_path_hash: Optional[str] = None,
        name: Optional[str] = None,
        resources: Optional[ApplicationSourceResourcesArgs] = None,
        runtime_parameter_values: Optional[Sequence[ApplicationSourceRuntimeParameterValueArgs]] = None,
        version_id: Optional[str] = None) -> ApplicationSource
func GetApplicationSource(ctx *Context, name string, id IDInput, state *ApplicationSourceState, opts ...ResourceOption) (*ApplicationSource, error)
public static ApplicationSource Get(string name, Input<string> id, ApplicationSourceState? state, CustomResourceOptions? opts = null)
public static ApplicationSource get(String name, Output<String> id, ApplicationSourceState state, CustomResourceOptions options)
resources:  _:    type: datarobot:ApplicationSource    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
BaseEnvironmentId string
The ID of the base environment for the Application Source.
BaseEnvironmentVersionId string
The ID of the base environment version for the Application Source.
Files object
The list of tuples, where values in each tuple are the local filesystem path and the path the file should be placed in the Application Source. If list is of strings, then basenames will be used for tuples.
FilesHashes List<string>
The hash of file contents for each file in files.
FolderPath string
The path to a folder containing files to build the Application Source. Each file in the folder is uploaded under path relative to a folder path.
FolderPathHash string
The hash of the folder path contents.
Name string
The name of the Application Source.
Resources DataRobotApplicationSourceResources
The resources for the Application Source.
RuntimeParameterValues List<DataRobotApplicationSourceRuntimeParameterValue>
The runtime parameter values for the Application Source.
VersionId string
The version ID of the Application Source.
BaseEnvironmentId string
The ID of the base environment for the Application Source.
BaseEnvironmentVersionId string
The ID of the base environment version for the Application Source.
Files interface{}
The list of tuples, where values in each tuple are the local filesystem path and the path the file should be placed in the Application Source. If list is of strings, then basenames will be used for tuples.
FilesHashes []string
The hash of file contents for each file in files.
FolderPath string
The path to a folder containing files to build the Application Source. Each file in the folder is uploaded under path relative to a folder path.
FolderPathHash string
The hash of the folder path contents.
Name string
The name of the Application Source.
Resources ApplicationSourceResourcesArgs
The resources for the Application Source.
RuntimeParameterValues []ApplicationSourceRuntimeParameterValueArgs
The runtime parameter values for the Application Source.
VersionId string
The version ID of the Application Source.
baseEnvironmentId String
The ID of the base environment for the Application Source.
baseEnvironmentVersionId String
The ID of the base environment version for the Application Source.
files Object
The list of tuples, where values in each tuple are the local filesystem path and the path the file should be placed in the Application Source. If list is of strings, then basenames will be used for tuples.
filesHashes List<String>
The hash of file contents for each file in files.
folderPath String
The path to a folder containing files to build the Application Source. Each file in the folder is uploaded under path relative to a folder path.
folderPathHash String
The hash of the folder path contents.
name String
The name of the Application Source.
resources ApplicationSourceResources
The resources for the Application Source.
runtimeParameterValues List<ApplicationSourceRuntimeParameterValue>
The runtime parameter values for the Application Source.
versionId String
The version ID of the Application Source.
baseEnvironmentId string
The ID of the base environment for the Application Source.
baseEnvironmentVersionId string
The ID of the base environment version for the Application Source.
files any
The list of tuples, where values in each tuple are the local filesystem path and the path the file should be placed in the Application Source. If list is of strings, then basenames will be used for tuples.
filesHashes string[]
The hash of file contents for each file in files.
folderPath string
The path to a folder containing files to build the Application Source. Each file in the folder is uploaded under path relative to a folder path.
folderPathHash string
The hash of the folder path contents.
name string
The name of the Application Source.
resources ApplicationSourceResources
The resources for the Application Source.
runtimeParameterValues ApplicationSourceRuntimeParameterValue[]
The runtime parameter values for the Application Source.
versionId string
The version ID of the Application Source.
base_environment_id str
The ID of the base environment for the Application Source.
base_environment_version_id str
The ID of the base environment version for the Application Source.
files Any
The list of tuples, where values in each tuple are the local filesystem path and the path the file should be placed in the Application Source. If list is of strings, then basenames will be used for tuples.
files_hashes Sequence[str]
The hash of file contents for each file in files.
folder_path str
The path to a folder containing files to build the Application Source. Each file in the folder is uploaded under path relative to a folder path.
folder_path_hash str
The hash of the folder path contents.
name str
The name of the Application Source.
resources ApplicationSourceResourcesArgs
The resources for the Application Source.
runtime_parameter_values Sequence[ApplicationSourceRuntimeParameterValueArgs]
The runtime parameter values for the Application Source.
version_id str
The version ID of the Application Source.
baseEnvironmentId String
The ID of the base environment for the Application Source.
baseEnvironmentVersionId String
The ID of the base environment version for the Application Source.
files Any
The list of tuples, where values in each tuple are the local filesystem path and the path the file should be placed in the Application Source. If list is of strings, then basenames will be used for tuples.
filesHashes List<String>
The hash of file contents for each file in files.
folderPath String
The path to a folder containing files to build the Application Source. Each file in the folder is uploaded under path relative to a folder path.
folderPathHash String
The hash of the folder path contents.
name String
The name of the Application Source.
resources Property Map
The resources for the Application Source.
runtimeParameterValues List<Property Map>
The runtime parameter values for the Application Source.
versionId String
The version ID of the Application Source.

Supporting Types

ApplicationSourceResources
, ApplicationSourceResourcesArgs

Replicas int
The replicas for the Application Source.
ResourceLabel string
The resource label for the Application Source.
SessionAffinity bool
The session affinity for the Application Source.
Replicas int
The replicas for the Application Source.
ResourceLabel string
The resource label for the Application Source.
SessionAffinity bool
The session affinity for the Application Source.
replicas Integer
The replicas for the Application Source.
resourceLabel String
The resource label for the Application Source.
sessionAffinity Boolean
The session affinity for the Application Source.
replicas number
The replicas for the Application Source.
resourceLabel string
The resource label for the Application Source.
sessionAffinity boolean
The session affinity for the Application Source.
replicas int
The replicas for the Application Source.
resource_label str
The resource label for the Application Source.
session_affinity bool
The session affinity for the Application Source.
replicas Number
The replicas for the Application Source.
resourceLabel String
The resource label for the Application Source.
sessionAffinity Boolean
The session affinity for the Application Source.

ApplicationSourceRuntimeParameterValue
, ApplicationSourceRuntimeParameterValueArgs

Key This property is required. string
The name of the runtime parameter.
Type This property is required. string
The type of the runtime parameter.
Value This property is required. string
The value of the runtime parameter (type conversion is handled internally).
Key This property is required. string
The name of the runtime parameter.
Type This property is required. string
The type of the runtime parameter.
Value This property is required. string
The value of the runtime parameter (type conversion is handled internally).
key This property is required. String
The name of the runtime parameter.
type This property is required. String
The type of the runtime parameter.
value This property is required. String
The value of the runtime parameter (type conversion is handled internally).
key This property is required. string
The name of the runtime parameter.
type This property is required. string
The type of the runtime parameter.
value This property is required. string
The value of the runtime parameter (type conversion is handled internally).
key This property is required. str
The name of the runtime parameter.
type This property is required. str
The type of the runtime parameter.
value This property is required. str
The value of the runtime parameter (type conversion is handled internally).
key This property is required. String
The name of the runtime parameter.
type This property is required. String
The type of the runtime parameter.
value This property is required. String
The value of the runtime parameter (type conversion is handled internally).

Package Details

Repository
datarobot datarobot-community/pulumi-datarobot
License
Apache-2.0
Notes
This Pulumi package is based on the datarobot Terraform Provider.