1. Packages
  2. DataRobot
  3. API Docs
  4. ApplicationSource
DataRobot v0.4.5 published on Monday, Nov 18, 2024 by DataRobot, Inc.

datarobot.ApplicationSource

Explore with Pulumi AI

datarobot logo
DataRobot v0.4.5 published on Monday, Nov 18, 2024 by DataRobot, Inc.

    Application Source

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as datarobot from "@datarobot/pulumi-datarobot";
    
    const example = new datarobot.ApplicationSource("example", {
        baseEnvironmentId: "6542cd582a9d3d51bf4ac71e",
        files: [
            ["start-app.sh"],
            ["streamlit-app.py"],
        ],
    });
    export const datarobotApplicationSourceId = example.id;
    export const datarobotApplicationSourceVersionId = example.versionId;
    
    import pulumi
    import pulumi_datarobot as datarobot
    
    example = datarobot.ApplicationSource("example",
        base_environment_id="6542cd582a9d3d51bf4ac71e",
        files=[
            ["start-app.sh"],
            ["streamlit-app.py"],
        ])
    pulumi.export("datarobotApplicationSourceId", example.id)
    pulumi.export("datarobotApplicationSourceVersionId", 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.NewApplicationSource(ctx, "example", &datarobot.ApplicationSourceArgs{
    			BaseEnvironmentId: pulumi.String("6542cd582a9d3d51bf4ac71e"),
    			Files: pulumi.Any{
    				[]string{
    					"start-app.sh",
    				},
    				[]string{
    					"streamlit-app.py",
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		ctx.Export("datarobotApplicationSourceId", example.ID())
    		ctx.Export("datarobotApplicationSourceVersionId", 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.ApplicationSource("example", new()
        {
            BaseEnvironmentId = "6542cd582a9d3d51bf4ac71e",
            Files = new[]
            {
                new[]
                {
                    "start-app.sh",
                },
                new[]
                {
                    "streamlit-app.py",
                },
            },
        });
    
        return new Dictionary<string, object?>
        {
            ["datarobotApplicationSourceId"] = example.Id,
            ["datarobotApplicationSourceVersionId"] = example.VersionId,
        };
    });
    
    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 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")
                .build());
    
            ctx.export("datarobotApplicationSourceId", example.id());
            ctx.export("datarobotApplicationSourceVersionId", example.versionId());
        }
    }
    
    resources:
      example:
        type: datarobot:ApplicationSource
        properties:
          baseEnvironmentId: 6542cd582a9d3d51bf4ac71e
          files:
            - - start-app.sh
            - - streamlit-app.py
    outputs:
      datarobotApplicationSourceId: ${example.id}
      datarobotApplicationSourceVersionId: ${example.versionId}
    

    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,
                          replicas: Optional[int] = 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 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 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 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 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 String
    The unique name of the resource.
    args 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",
        Replicas = 0,
        RuntimeParameterValues = new[]
        {
            new Datarobot.Inputs.ApplicationSourceRuntimeParameterValueArgs
            {
                Key = "string",
                Type = "string",
                Value = "string",
            },
        },
    });
    
    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"),
    	Replicas:                 pulumi.Int(0),
    	RuntimeParameterValues: datarobot.ApplicationSourceRuntimeParameterValueArray{
    		&datarobot.ApplicationSourceRuntimeParameterValueArgs{
    			Key:   pulumi.String("string"),
    			Type:  pulumi.String("string"),
    			Value: pulumi.String("string"),
    		},
    	},
    })
    
    var applicationSourceResource = new ApplicationSource("applicationSourceResource", ApplicationSourceArgs.builder()
        .baseEnvironmentId("string")
        .baseEnvironmentVersionId("string")
        .files("any")
        .folderPath("string")
        .name("string")
        .replicas(0)
        .runtimeParameterValues(ApplicationSourceRuntimeParameterValueArgs.builder()
            .key("string")
            .type("string")
            .value("string")
            .build())
        .build());
    
    application_source_resource = datarobot.ApplicationSource("applicationSourceResource",
        base_environment_id="string",
        base_environment_version_id="string",
        files="any",
        folder_path="string",
        name="string",
        replicas=0,
        runtime_parameter_values=[{
            "key": "string",
            "type": "string",
            "value": "string",
        }])
    
    const applicationSourceResource = new datarobot.ApplicationSource("applicationSourceResource", {
        baseEnvironmentId: "string",
        baseEnvironmentVersionId: "string",
        files: "any",
        folderPath: "string",
        name: "string",
        replicas: 0,
        runtimeParameterValues: [{
            key: "string",
            type: "string",
            value: "string",
        }],
    });
    
    type: datarobot:ApplicationSource
    properties:
        baseEnvironmentId: string
        baseEnvironmentVersionId: string
        files: any
        folderPath: string
        name: string
        replicas: 0
        runtimeParameterValues:
            - key: string
              type: string
              value: string
    

    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.
    Replicas int
    The replicas 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.
    Replicas int
    The replicas 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.
    replicas Integer
    The replicas 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.
    replicas number
    The replicas 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.
    replicas int
    The replicas 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.
    replicas Number
    The replicas 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,
            replicas: Optional[int] = 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)
    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:
    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.
    Replicas int
    The replicas 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.
    Replicas int
    The replicas 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.
    replicas Integer
    The replicas 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.
    replicas number
    The replicas 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.
    replicas int
    The replicas 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.
    replicas Number
    The replicas 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

    ApplicationSourceRuntimeParameterValue, ApplicationSourceRuntimeParameterValueArgs

    Key string
    The name of the runtime parameter.
    Type string
    The type of the runtime parameter.
    Value string
    The value of the runtime parameter (type conversion is handled internally).
    Key string
    The name of the runtime parameter.
    Type string
    The type of the runtime parameter.
    Value string
    The value of the runtime parameter (type conversion is handled internally).
    key String
    The name of the runtime parameter.
    type String
    The type of the runtime parameter.
    value String
    The value of the runtime parameter (type conversion is handled internally).
    key string
    The name of the runtime parameter.
    type string
    The type of the runtime parameter.
    value string
    The value of the runtime parameter (type conversion is handled internally).
    key str
    The name of the runtime parameter.
    type str
    The type of the runtime parameter.
    value str
    The value of the runtime parameter (type conversion is handled internally).
    key String
    The name of the runtime parameter.
    type String
    The type of the runtime parameter.
    value 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.
    datarobot logo
    DataRobot v0.4.5 published on Monday, Nov 18, 2024 by DataRobot, Inc.