datarobot.CustomApplication
Explore with Pulumi AI
Custom Application
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as datarobot from "@datarobot/pulumi-datarobot";
const exampleApplicationSource = new datarobot.ApplicationSource("exampleApplicationSource", {files: [
["start-app.sh"],
["streamlit-app.py"],
]});
const exampleCustomApplication = new datarobot.CustomApplication("exampleCustomApplication", {
sourceVersionId: exampleApplicationSource.versionId,
externalAccessEnabled: true,
externalAccessRecipients: ["recipient@example.com"],
});
export const datarobotCustomApplicationId = exampleCustomApplication.id;
export const datarobotCustomApplicationSourceId = exampleCustomApplication.sourceId;
export const datarobotCustomApplicationSourceVersionId = exampleCustomApplication.sourceVersionId;
export const datarobotCustomApplicationUrl = exampleCustomApplication.applicationUrl;
import pulumi
import pulumi_datarobot as datarobot
example_application_source = datarobot.ApplicationSource("exampleApplicationSource", files=[
["start-app.sh"],
["streamlit-app.py"],
])
example_custom_application = datarobot.CustomApplication("exampleCustomApplication",
source_version_id=example_application_source.version_id,
external_access_enabled=True,
external_access_recipients=["recipient@example.com"])
pulumi.export("datarobotCustomApplicationId", example_custom_application.id)
pulumi.export("datarobotCustomApplicationSourceId", example_custom_application.source_id)
pulumi.export("datarobotCustomApplicationSourceVersionId", example_custom_application.source_version_id)
pulumi.export("datarobotCustomApplicationUrl", example_custom_application.application_url)
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 {
exampleApplicationSource, err := datarobot.NewApplicationSource(ctx, "exampleApplicationSource", &datarobot.ApplicationSourceArgs{
Files: pulumi.Any{
[]string{
"start-app.sh",
},
[]string{
"streamlit-app.py",
},
},
})
if err != nil {
return err
}
exampleCustomApplication, err := datarobot.NewCustomApplication(ctx, "exampleCustomApplication", &datarobot.CustomApplicationArgs{
SourceVersionId: exampleApplicationSource.VersionId,
ExternalAccessEnabled: pulumi.Bool(true),
ExternalAccessRecipients: pulumi.StringArray{
pulumi.String("recipient@example.com"),
},
})
if err != nil {
return err
}
ctx.Export("datarobotCustomApplicationId", exampleCustomApplication.ID())
ctx.Export("datarobotCustomApplicationSourceId", exampleCustomApplication.SourceId)
ctx.Export("datarobotCustomApplicationSourceVersionId", exampleCustomApplication.SourceVersionId)
ctx.Export("datarobotCustomApplicationUrl", exampleCustomApplication.ApplicationUrl)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Datarobot = DataRobotPulumi.Datarobot;
return await Deployment.RunAsync(() =>
{
var exampleApplicationSource = new Datarobot.ApplicationSource("exampleApplicationSource", new()
{
Files = new[]
{
new[]
{
"start-app.sh",
},
new[]
{
"streamlit-app.py",
},
},
});
var exampleCustomApplication = new Datarobot.CustomApplication("exampleCustomApplication", new()
{
SourceVersionId = exampleApplicationSource.VersionId,
ExternalAccessEnabled = true,
ExternalAccessRecipients = new[]
{
"recipient@example.com",
},
});
return new Dictionary<string, object?>
{
["datarobotCustomApplicationId"] = exampleCustomApplication.Id,
["datarobotCustomApplicationSourceId"] = exampleCustomApplication.SourceId,
["datarobotCustomApplicationSourceVersionId"] = exampleCustomApplication.SourceVersionId,
["datarobotCustomApplicationUrl"] = exampleCustomApplication.ApplicationUrl,
};
});
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.CustomApplication;
import com.pulumi.datarobot.CustomApplicationArgs;
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 exampleApplicationSource = new ApplicationSource("exampleApplicationSource", ApplicationSourceArgs.builder()
.files(
"start-app.sh",
"streamlit-app.py")
.build());
var exampleCustomApplication = new CustomApplication("exampleCustomApplication", CustomApplicationArgs.builder()
.sourceVersionId(exampleApplicationSource.versionId())
.externalAccessEnabled(true)
.externalAccessRecipients("recipient@example.com")
.build());
ctx.export("datarobotCustomApplicationId", exampleCustomApplication.id());
ctx.export("datarobotCustomApplicationSourceId", exampleCustomApplication.sourceId());
ctx.export("datarobotCustomApplicationSourceVersionId", exampleCustomApplication.sourceVersionId());
ctx.export("datarobotCustomApplicationUrl", exampleCustomApplication.applicationUrl());
}
}
resources:
exampleApplicationSource:
type: datarobot:ApplicationSource
properties:
files:
- - start-app.sh
- - streamlit-app.py
exampleCustomApplication:
type: datarobot:CustomApplication
properties:
sourceVersionId: ${exampleApplicationSource.versionId}
# optional settings
externalAccessEnabled: true
externalAccessRecipients:
- recipient@example.com
outputs:
datarobotCustomApplicationId: ${exampleCustomApplication.id}
datarobotCustomApplicationSourceId: ${exampleCustomApplication.sourceId}
datarobotCustomApplicationSourceVersionId: ${exampleCustomApplication.sourceVersionId}
datarobotCustomApplicationUrl: ${exampleCustomApplication.applicationUrl}
Create CustomApplication Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CustomApplication(name: string, args: CustomApplicationArgs, opts?: CustomResourceOptions);
@overload
def CustomApplication(resource_name: str,
args: CustomApplicationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CustomApplication(resource_name: str,
opts: Optional[ResourceOptions] = None,
source_version_id: Optional[str] = None,
external_access_enabled: Optional[bool] = None,
external_access_recipients: Optional[Sequence[str]] = None,
name: Optional[str] = None,
use_case_ids: Optional[Sequence[str]] = None)
func NewCustomApplication(ctx *Context, name string, args CustomApplicationArgs, opts ...ResourceOption) (*CustomApplication, error)
public CustomApplication(string name, CustomApplicationArgs args, CustomResourceOptions? opts = null)
public CustomApplication(String name, CustomApplicationArgs args)
public CustomApplication(String name, CustomApplicationArgs args, CustomResourceOptions options)
type: datarobot:CustomApplication
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 CustomApplicationArgs
- 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 CustomApplicationArgs
- 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 CustomApplicationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CustomApplicationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CustomApplicationArgs
- 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 customApplicationResource = new Datarobot.CustomApplication("customApplicationResource", new()
{
SourceVersionId = "string",
ExternalAccessEnabled = false,
ExternalAccessRecipients = new[]
{
"string",
},
Name = "string",
UseCaseIds = new[]
{
"string",
},
});
example, err := datarobot.NewCustomApplication(ctx, "customApplicationResource", &datarobot.CustomApplicationArgs{
SourceVersionId: pulumi.String("string"),
ExternalAccessEnabled: pulumi.Bool(false),
ExternalAccessRecipients: pulumi.StringArray{
pulumi.String("string"),
},
Name: pulumi.String("string"),
UseCaseIds: pulumi.StringArray{
pulumi.String("string"),
},
})
var customApplicationResource = new CustomApplication("customApplicationResource", CustomApplicationArgs.builder()
.sourceVersionId("string")
.externalAccessEnabled(false)
.externalAccessRecipients("string")
.name("string")
.useCaseIds("string")
.build());
custom_application_resource = datarobot.CustomApplication("customApplicationResource",
source_version_id="string",
external_access_enabled=False,
external_access_recipients=["string"],
name="string",
use_case_ids=["string"])
const customApplicationResource = new datarobot.CustomApplication("customApplicationResource", {
sourceVersionId: "string",
externalAccessEnabled: false,
externalAccessRecipients: ["string"],
name: "string",
useCaseIds: ["string"],
});
type: datarobot:CustomApplication
properties:
externalAccessEnabled: false
externalAccessRecipients:
- string
name: string
sourceVersionId: string
useCaseIds:
- string
CustomApplication 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 CustomApplication resource accepts the following input properties:
- Source
Version stringId - The version ID of the Custom Application Source.
- External
Access boolEnabled - Whether external access is enabled for the Custom Application.
- External
Access List<string>Recipients - The list of external email addresses that have access to the Custom Application.
- Name string
- The name of the Custom Application.
- Use
Case List<string>Ids - The list of Use Case IDs to add the Custom Application to.
- Source
Version stringId - The version ID of the Custom Application Source.
- External
Access boolEnabled - Whether external access is enabled for the Custom Application.
- External
Access []stringRecipients - The list of external email addresses that have access to the Custom Application.
- Name string
- The name of the Custom Application.
- Use
Case []stringIds - The list of Use Case IDs to add the Custom Application to.
- source
Version StringId - The version ID of the Custom Application Source.
- external
Access BooleanEnabled - Whether external access is enabled for the Custom Application.
- external
Access List<String>Recipients - The list of external email addresses that have access to the Custom Application.
- name String
- The name of the Custom Application.
- use
Case List<String>Ids - The list of Use Case IDs to add the Custom Application to.
- source
Version stringId - The version ID of the Custom Application Source.
- external
Access booleanEnabled - Whether external access is enabled for the Custom Application.
- external
Access string[]Recipients - The list of external email addresses that have access to the Custom Application.
- name string
- The name of the Custom Application.
- use
Case string[]Ids - The list of Use Case IDs to add the Custom Application to.
- source_
version_ strid - The version ID of the Custom Application Source.
- external_
access_ boolenabled - Whether external access is enabled for the Custom Application.
- external_
access_ Sequence[str]recipients - The list of external email addresses that have access to the Custom Application.
- name str
- The name of the Custom Application.
- use_
case_ Sequence[str]ids - The list of Use Case IDs to add the Custom Application to.
- source
Version StringId - The version ID of the Custom Application Source.
- external
Access BooleanEnabled - Whether external access is enabled for the Custom Application.
- external
Access List<String>Recipients - The list of external email addresses that have access to the Custom Application.
- name String
- The name of the Custom Application.
- use
Case List<String>Ids - The list of Use Case IDs to add the Custom Application to.
Outputs
All input properties are implicitly available as output properties. Additionally, the CustomApplication resource produces the following output properties:
- Application
Url string - The URL of the Custom Application.
- Id string
- The provider-assigned unique ID for this managed resource.
- Source
Id string - The ID of the Custom Application Source.
- Application
Url string - The URL of the Custom Application.
- Id string
- The provider-assigned unique ID for this managed resource.
- Source
Id string - The ID of the Custom Application Source.
- application
Url String - The URL of the Custom Application.
- id String
- The provider-assigned unique ID for this managed resource.
- source
Id String - The ID of the Custom Application Source.
- application
Url string - The URL of the Custom Application.
- id string
- The provider-assigned unique ID for this managed resource.
- source
Id string - The ID of the Custom Application Source.
- application_
url str - The URL of the Custom Application.
- id str
- The provider-assigned unique ID for this managed resource.
- source_
id str - The ID of the Custom Application Source.
- application
Url String - The URL of the Custom Application.
- id String
- The provider-assigned unique ID for this managed resource.
- source
Id String - The ID of the Custom Application Source.
Look up Existing CustomApplication Resource
Get an existing CustomApplication 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?: CustomApplicationState, opts?: CustomResourceOptions): CustomApplication
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
application_url: Optional[str] = None,
external_access_enabled: Optional[bool] = None,
external_access_recipients: Optional[Sequence[str]] = None,
name: Optional[str] = None,
source_id: Optional[str] = None,
source_version_id: Optional[str] = None,
use_case_ids: Optional[Sequence[str]] = None) -> CustomApplication
func GetCustomApplication(ctx *Context, name string, id IDInput, state *CustomApplicationState, opts ...ResourceOption) (*CustomApplication, error)
public static CustomApplication Get(string name, Input<string> id, CustomApplicationState? state, CustomResourceOptions? opts = null)
public static CustomApplication get(String name, Output<String> id, CustomApplicationState 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.
- Application
Url string - The URL of the Custom Application.
- External
Access boolEnabled - Whether external access is enabled for the Custom Application.
- External
Access List<string>Recipients - The list of external email addresses that have access to the Custom Application.
- Name string
- The name of the Custom Application.
- Source
Id string - The ID of the Custom Application Source.
- Source
Version stringId - The version ID of the Custom Application Source.
- Use
Case List<string>Ids - The list of Use Case IDs to add the Custom Application to.
- Application
Url string - The URL of the Custom Application.
- External
Access boolEnabled - Whether external access is enabled for the Custom Application.
- External
Access []stringRecipients - The list of external email addresses that have access to the Custom Application.
- Name string
- The name of the Custom Application.
- Source
Id string - The ID of the Custom Application Source.
- Source
Version stringId - The version ID of the Custom Application Source.
- Use
Case []stringIds - The list of Use Case IDs to add the Custom Application to.
- application
Url String - The URL of the Custom Application.
- external
Access BooleanEnabled - Whether external access is enabled for the Custom Application.
- external
Access List<String>Recipients - The list of external email addresses that have access to the Custom Application.
- name String
- The name of the Custom Application.
- source
Id String - The ID of the Custom Application Source.
- source
Version StringId - The version ID of the Custom Application Source.
- use
Case List<String>Ids - The list of Use Case IDs to add the Custom Application to.
- application
Url string - The URL of the Custom Application.
- external
Access booleanEnabled - Whether external access is enabled for the Custom Application.
- external
Access string[]Recipients - The list of external email addresses that have access to the Custom Application.
- name string
- The name of the Custom Application.
- source
Id string - The ID of the Custom Application Source.
- source
Version stringId - The version ID of the Custom Application Source.
- use
Case string[]Ids - The list of Use Case IDs to add the Custom Application to.
- application_
url str - The URL of the Custom Application.
- external_
access_ boolenabled - Whether external access is enabled for the Custom Application.
- external_
access_ Sequence[str]recipients - The list of external email addresses that have access to the Custom Application.
- name str
- The name of the Custom Application.
- source_
id str - The ID of the Custom Application Source.
- source_
version_ strid - The version ID of the Custom Application Source.
- use_
case_ Sequence[str]ids - The list of Use Case IDs to add the Custom Application to.
- application
Url String - The URL of the Custom Application.
- external
Access BooleanEnabled - Whether external access is enabled for the Custom Application.
- external
Access List<String>Recipients - The list of external email addresses that have access to the Custom Application.
- name String
- The name of the Custom Application.
- source
Id String - The ID of the Custom Application Source.
- source
Version StringId - The version ID of the Custom Application Source.
- use
Case List<String>Ids - The list of Use Case IDs to add the Custom Application to.
Package Details
- Repository
- datarobot datarobot-community/pulumi-datarobot
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
datarobot
Terraform Provider.