datarobot.ApplicationSource
Explore with Pulumi AI
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:
- Base
Environment stringId - The ID of the base environment for the Application Source.
- Base
Environment stringVersion Id - 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.
- Folder
Path 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.
- Runtime
Parameter List<DataValues Robot Application Source Runtime Parameter Value> - The runtime parameter values for the Application Source.
- Base
Environment stringId - The ID of the base environment for the Application Source.
- Base
Environment stringVersion Id - 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.
- Folder
Path 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.
- Runtime
Parameter []ApplicationValues Source Runtime Parameter Value Args - The runtime parameter values for the Application Source.
- base
Environment StringId - The ID of the base environment for the Application Source.
- base
Environment StringVersion Id - 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.
- folder
Path 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.
- runtime
Parameter List<ApplicationValues Source Runtime Parameter Value> - The runtime parameter values for the Application Source.
- base
Environment stringId - The ID of the base environment for the Application Source.
- base
Environment stringVersion Id - 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 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.
- runtime
Parameter ApplicationValues Source Runtime Parameter Value[] - The runtime parameter values for the Application Source.
- base_
environment_ strid - The ID of the base environment for the Application Source.
- base_
environment_ strversion_ id - 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_ Sequence[Applicationvalues Source Runtime Parameter Value Args] - The runtime parameter values for the Application Source.
- base
Environment StringId - The ID of the base environment for the Application Source.
- base
Environment StringVersion Id - 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 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.
- runtime
Parameter List<Property Map>Values - 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:
- Files
Hashes List<string> - The hash of file contents for each file in files.
- Folder
Path stringHash - The hash of the folder path contents.
- Id string
- The provider-assigned unique ID for this managed resource.
- Version
Id string - The version ID of the Application Source.
- Files
Hashes []string - The hash of file contents for each file in files.
- Folder
Path stringHash - The hash of the folder path contents.
- Id string
- The provider-assigned unique ID for this managed resource.
- Version
Id string - The version ID of the Application Source.
- files
Hashes List<String> - The hash of file contents for each file in files.
- folder
Path StringHash - The hash of the folder path contents.
- id String
- The provider-assigned unique ID for this managed resource.
- version
Id String - The version ID of the Application Source.
- files
Hashes string[] - The hash of file contents for each file in files.
- folder
Path stringHash - The hash of the folder path contents.
- id string
- The provider-assigned unique ID for this managed resource.
- version
Id string - The version ID of the Application Source.
- files_
hashes Sequence[str] - The hash of file contents for each file in files.
- folder_
path_ strhash - 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.
- files
Hashes List<String> - The hash of file contents for each file in files.
- folder
Path StringHash - The hash of the folder path contents.
- id String
- The provider-assigned unique ID for this managed resource.
- version
Id 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.
- Base
Environment stringId - The ID of the base environment for the Application Source.
- Base
Environment stringVersion Id - 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.
- Files
Hashes List<string> - The hash of file contents for each file in files.
- Folder
Path 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.
- Folder
Path stringHash - The hash of the folder path contents.
- Name string
- The name of the Application Source.
- Replicas int
- The replicas for the Application Source.
- Runtime
Parameter List<DataValues Robot Application Source Runtime Parameter Value> - The runtime parameter values for the Application Source.
- Version
Id string - The version ID of the Application Source.
- Base
Environment stringId - The ID of the base environment for the Application Source.
- Base
Environment stringVersion Id - 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.
- Files
Hashes []string - The hash of file contents for each file in files.
- Folder
Path 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.
- Folder
Path stringHash - The hash of the folder path contents.
- Name string
- The name of the Application Source.
- Replicas int
- The replicas for the Application Source.
- Runtime
Parameter []ApplicationValues Source Runtime Parameter Value Args - The runtime parameter values for the Application Source.
- Version
Id string - The version ID of the Application Source.
- base
Environment StringId - The ID of the base environment for the Application Source.
- base
Environment StringVersion Id - 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.
- files
Hashes List<String> - The hash of file contents for each file in files.
- folder
Path 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.
- folder
Path StringHash - The hash of the folder path contents.
- name String
- The name of the Application Source.
- replicas Integer
- The replicas for the Application Source.
- runtime
Parameter List<ApplicationValues Source Runtime Parameter Value> - The runtime parameter values for the Application Source.
- version
Id String - The version ID of the Application Source.
- base
Environment stringId - The ID of the base environment for the Application Source.
- base
Environment stringVersion Id - 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 string[] - The hash of file contents for each file in files.
- folder
Path 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.
- folder
Path stringHash - The hash of the folder path contents.
- name string
- The name of the Application Source.
- replicas number
- The replicas for the Application Source.
- runtime
Parameter ApplicationValues Source Runtime Parameter Value[] - The runtime parameter values for the Application Source.
- version
Id string - The version ID of the Application Source.
- base_
environment_ strid - The ID of the base environment for the Application Source.
- base_
environment_ strversion_ id - 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_ strhash - 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_ Sequence[Applicationvalues Source Runtime Parameter Value Args] - The runtime parameter values for the Application Source.
- version_
id str - The version ID of the Application Source.
- base
Environment StringId - The ID of the base environment for the Application Source.
- base
Environment StringVersion Id - 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 List<String> - The hash of file contents for each file in files.
- folder
Path 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.
- folder
Path StringHash - The hash of the folder path contents.
- name String
- The name of the Application Source.
- replicas Number
- The replicas for the Application Source.
- runtime
Parameter List<Property Map>Values - The runtime parameter values for the Application Source.
- version
Id String - The version ID of the Application Source.
Supporting Types
ApplicationSourceRuntimeParameterValue, ApplicationSourceRuntimeParameterValueArgs
Package Details
- Repository
- datarobot datarobot-community/pulumi-datarobot
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
datarobot
Terraform Provider.