datarobot.ApplicationSourceFromTemplate
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.ApplicationSourceFromTemplate;
import com.pulumi.datarobot.ApplicationSourceFromTemplateArgs;
import com.pulumi.datarobot.inputs.ApplicationSourceFromTemplateRuntimeParameterValueArgs;
import com.pulumi.datarobot.inputs.ApplicationSourceFromTemplateResourcesArgs;
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 ApplicationSourceFromTemplate("example", ApplicationSourceFromTemplateArgs.builder()
            .templateId("67126757e7819551baceb22b")
            .baseEnvironmentId("6542cd582a9d3d51bf4ac71e")
            .files(            
                "start-app.sh",
                "streamlit-app.py")
            .folderPath("example-app")
            .runtimeParameterValues(ApplicationSourceFromTemplateRuntimeParameterValueArgs.builder()
                .key("EXAMPLE_PARAM")
                .type("string")
                .value("val")
                .build())
            .resources(ApplicationSourceFromTemplateResourcesArgs.builder()
                .replicas(2)
                .session_affinity(true)
                .resource_label("cpu.medium")
                .build())
            .build());
        ctx.export("datarobotApplicationSourceId", example.id());
        ctx.export("datarobotApplicationSourceVersionId", example.versionId());
    }
}
resources:
  example:
    type: datarobot:ApplicationSourceFromTemplate
    properties:
      templateId: 67126757e7819551baceb22b
      # Optional
      baseEnvironmentId: 6542cd582a9d3d51bf4ac71e
      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}
Create ApplicationSourceFromTemplate Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ApplicationSourceFromTemplate(name: string, args: ApplicationSourceFromTemplateArgs, opts?: CustomResourceOptions);@overload
def ApplicationSourceFromTemplate(resource_name: str,
                                  args: ApplicationSourceFromTemplateArgs,
                                  opts: Optional[ResourceOptions] = None)
@overload
def ApplicationSourceFromTemplate(resource_name: str,
                                  opts: Optional[ResourceOptions] = None,
                                  template_id: Optional[str] = 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[ApplicationSourceFromTemplateResourcesArgs] = None,
                                  runtime_parameter_values: Optional[Sequence[ApplicationSourceFromTemplateRuntimeParameterValueArgs]] = None)func NewApplicationSourceFromTemplate(ctx *Context, name string, args ApplicationSourceFromTemplateArgs, opts ...ResourceOption) (*ApplicationSourceFromTemplate, error)public ApplicationSourceFromTemplate(string name, ApplicationSourceFromTemplateArgs args, CustomResourceOptions? opts = null)
public ApplicationSourceFromTemplate(String name, ApplicationSourceFromTemplateArgs args)
public ApplicationSourceFromTemplate(String name, ApplicationSourceFromTemplateArgs args, CustomResourceOptions options)
type: datarobot:ApplicationSourceFromTemplate
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 ApplicationSourceFromTemplateArgs
- 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 ApplicationSourceFromTemplateArgs
- 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 ApplicationSourceFromTemplateArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ApplicationSourceFromTemplateArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ApplicationSourceFromTemplateArgs
- 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 applicationSourceFromTemplateResource = new Datarobot.ApplicationSourceFromTemplate("applicationSourceFromTemplateResource", new()
{
    TemplateId = "string",
    BaseEnvironmentId = "string",
    BaseEnvironmentVersionId = "string",
    Files = "any",
    FolderPath = "string",
    Name = "string",
    Resources = new Datarobot.Inputs.ApplicationSourceFromTemplateResourcesArgs
    {
        Replicas = 0,
        ResourceLabel = "string",
        SessionAffinity = false,
    },
    RuntimeParameterValues = new[]
    {
        new Datarobot.Inputs.ApplicationSourceFromTemplateRuntimeParameterValueArgs
        {
            Key = "string",
            Type = "string",
            Value = "string",
        },
    },
});
example, err := datarobot.NewApplicationSourceFromTemplate(ctx, "applicationSourceFromTemplateResource", &datarobot.ApplicationSourceFromTemplateArgs{
	TemplateId:               pulumi.String("string"),
	BaseEnvironmentId:        pulumi.String("string"),
	BaseEnvironmentVersionId: pulumi.String("string"),
	Files:                    pulumi.Any("any"),
	FolderPath:               pulumi.String("string"),
	Name:                     pulumi.String("string"),
	Resources: &datarobot.ApplicationSourceFromTemplateResourcesArgs{
		Replicas:        pulumi.Int(0),
		ResourceLabel:   pulumi.String("string"),
		SessionAffinity: pulumi.Bool(false),
	},
	RuntimeParameterValues: datarobot.ApplicationSourceFromTemplateRuntimeParameterValueArray{
		&datarobot.ApplicationSourceFromTemplateRuntimeParameterValueArgs{
			Key:   pulumi.String("string"),
			Type:  pulumi.String("string"),
			Value: pulumi.String("string"),
		},
	},
})
var applicationSourceFromTemplateResource = new ApplicationSourceFromTemplate("applicationSourceFromTemplateResource", ApplicationSourceFromTemplateArgs.builder()
    .templateId("string")
    .baseEnvironmentId("string")
    .baseEnvironmentVersionId("string")
    .files("any")
    .folderPath("string")
    .name("string")
    .resources(ApplicationSourceFromTemplateResourcesArgs.builder()
        .replicas(0)
        .resourceLabel("string")
        .sessionAffinity(false)
        .build())
    .runtimeParameterValues(ApplicationSourceFromTemplateRuntimeParameterValueArgs.builder()
        .key("string")
        .type("string")
        .value("string")
        .build())
    .build());
application_source_from_template_resource = datarobot.ApplicationSourceFromTemplate("applicationSourceFromTemplateResource",
    template_id="string",
    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",
    }])
const applicationSourceFromTemplateResource = new datarobot.ApplicationSourceFromTemplate("applicationSourceFromTemplateResource", {
    templateId: "string",
    baseEnvironmentId: "string",
    baseEnvironmentVersionId: "string",
    files: "any",
    folderPath: "string",
    name: "string",
    resources: {
        replicas: 0,
        resourceLabel: "string",
        sessionAffinity: false,
    },
    runtimeParameterValues: [{
        key: "string",
        type: "string",
        value: "string",
    }],
});
type: datarobot:ApplicationSourceFromTemplate
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
    templateId: string
ApplicationSourceFromTemplate 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 ApplicationSourceFromTemplate resource accepts the following input properties:
- TemplateId string
- The ID of the template used to create the Application Source.
- BaseEnvironment stringId 
- The ID of the base environment for the Application Source.
- BaseEnvironment 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.
- 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
DataRobot Application Source From Template Resources 
- The resources for the Application Source.
- RuntimeParameter List<DataValues Robot Application Source From Template Runtime Parameter Value> 
- The runtime parameter values for the Application Source.
- TemplateId string
- The ID of the template used to create the Application Source.
- BaseEnvironment stringId 
- The ID of the base environment for the Application Source.
- BaseEnvironment 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.
- 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
ApplicationSource From Template Resources Args 
- The resources for the Application Source.
- RuntimeParameter []ApplicationValues Source From Template Runtime Parameter Value Args 
- The runtime parameter values for the Application Source.
- templateId String
- The ID of the template used to create the Application Source.
- baseEnvironment StringId 
- The ID of the base environment for the Application Source.
- baseEnvironment 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.
- 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
ApplicationSource From Template Resources 
- The resources for the Application Source.
- runtimeParameter List<ApplicationValues Source From Template Runtime Parameter Value> 
- The runtime parameter values for the Application Source.
- templateId string
- The ID of the template used to create the Application Source.
- baseEnvironment stringId 
- The ID of the base environment for the Application Source.
- baseEnvironment 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.
- 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
ApplicationSource From Template Resources 
- The resources for the Application Source.
- runtimeParameter ApplicationValues Source From Template Runtime Parameter Value[] 
- The runtime parameter values for the Application Source.
- template_id str
- The ID of the template used to create 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.
- resources
ApplicationSource From Template Resources Args 
- The resources for the Application Source.
- runtime_parameter_ Sequence[Applicationvalues Source From Template Runtime Parameter Value Args] 
- The runtime parameter values for the Application Source.
- templateId String
- The ID of the template used to create the Application Source.
- baseEnvironment StringId 
- The ID of the base environment for the Application Source.
- baseEnvironment 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.
- 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.
- runtimeParameter List<Property Map>Values 
- The runtime parameter values for the Application Source.
Outputs
All input properties are implicitly available as output properties. Additionally, the ApplicationSourceFromTemplate resource produces the following output properties:
- FilesHashes List<string>
- The hash of file contents for each file in files.
- FolderPath stringHash 
- 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.
- FolderPath stringHash 
- 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.
- folderPath StringHash 
- 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.
- folderPath stringHash 
- 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_ 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.
- filesHashes List<String>
- The hash of file contents for each file in files.
- folderPath StringHash 
- 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 ApplicationSourceFromTemplate Resource
Get an existing ApplicationSourceFromTemplate 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?: ApplicationSourceFromTemplateState, opts?: CustomResourceOptions): ApplicationSourceFromTemplate@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[ApplicationSourceFromTemplateResourcesArgs] = None,
        runtime_parameter_values: Optional[Sequence[ApplicationSourceFromTemplateRuntimeParameterValueArgs]] = None,
        template_id: Optional[str] = None,
        version_id: Optional[str] = None) -> ApplicationSourceFromTemplatefunc GetApplicationSourceFromTemplate(ctx *Context, name string, id IDInput, state *ApplicationSourceFromTemplateState, opts ...ResourceOption) (*ApplicationSourceFromTemplate, error)public static ApplicationSourceFromTemplate Get(string name, Input<string> id, ApplicationSourceFromTemplateState? state, CustomResourceOptions? opts = null)public static ApplicationSourceFromTemplate get(String name, Output<String> id, ApplicationSourceFromTemplateState state, CustomResourceOptions options)resources:  _:    type: datarobot:ApplicationSourceFromTemplate    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.
- BaseEnvironment stringId 
- The ID of the base environment for the Application Source.
- BaseEnvironment 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.
- 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.
- FolderPath stringHash 
- The hash of the folder path contents.
- Name string
- The name of the Application Source.
- Resources
DataRobot Application Source From Template Resources 
- The resources for the Application Source.
- RuntimeParameter List<DataValues Robot Application Source From Template Runtime Parameter Value> 
- The runtime parameter values for the Application Source.
- TemplateId string
- The ID of the template used to create the Application Source.
- VersionId string
- The version ID of the Application Source.
- BaseEnvironment stringId 
- The ID of the base environment for the Application Source.
- BaseEnvironment 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.
- 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.
- FolderPath stringHash 
- The hash of the folder path contents.
- Name string
- The name of the Application Source.
- Resources
ApplicationSource From Template Resources Args 
- The resources for the Application Source.
- RuntimeParameter []ApplicationValues Source From Template Runtime Parameter Value Args 
- The runtime parameter values for the Application Source.
- TemplateId string
- The ID of the template used to create the Application Source.
- VersionId string
- The version ID of the Application Source.
- baseEnvironment StringId 
- The ID of the base environment for the Application Source.
- baseEnvironment 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.
- 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.
- folderPath StringHash 
- The hash of the folder path contents.
- name String
- The name of the Application Source.
- resources
ApplicationSource From Template Resources 
- The resources for the Application Source.
- runtimeParameter List<ApplicationValues Source From Template Runtime Parameter Value> 
- The runtime parameter values for the Application Source.
- templateId String
- The ID of the template used to create the Application Source.
- versionId String
- The version ID of the Application Source.
- baseEnvironment stringId 
- The ID of the base environment for the Application Source.
- baseEnvironment 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.
- 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.
- folderPath stringHash 
- The hash of the folder path contents.
- name string
- The name of the Application Source.
- resources
ApplicationSource From Template Resources 
- The resources for the Application Source.
- runtimeParameter ApplicationValues Source From Template Runtime Parameter Value[] 
- The runtime parameter values for the Application Source.
- templateId string
- The ID of the template used to create the Application Source.
- versionId 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.
- resources
ApplicationSource From Template Resources Args 
- The resources for the Application Source.
- runtime_parameter_ Sequence[Applicationvalues Source From Template Runtime Parameter Value Args] 
- The runtime parameter values for the Application Source.
- template_id str
- The ID of the template used to create the Application Source.
- version_id str
- The version ID of the Application Source.
- baseEnvironment StringId 
- The ID of the base environment for the Application Source.
- baseEnvironment 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.
- 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.
- folderPath StringHash 
- The hash of the folder path contents.
- name String
- The name of the Application Source.
- resources Property Map
- The resources for the Application Source.
- runtimeParameter List<Property Map>Values 
- The runtime parameter values for the Application Source.
- templateId String
- The ID of the template used to create the Application Source.
- versionId String
- The version ID of the Application Source.
Supporting Types
ApplicationSourceFromTemplateResources, ApplicationSourceFromTemplateResourcesArgs          
- 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.
ApplicationSourceFromTemplateRuntimeParameterValue, ApplicationSourceFromTemplateRuntimeParameterValueArgs              
Package Details
- Repository
- datarobot datarobot-community/pulumi-datarobot
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the datarobotTerraform Provider.
