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

datarobot.DatasetFromUrl

Explore with Pulumi AI

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

    Data set from file

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as datarobot from "@datarobot/pulumi-datarobot";
    
    const example = new datarobot.DatasetFromUrl("example", {
        url: "[URL to upload from]",
        useCaseIds: [datarobot_use_case.example.id],
    });
    export const exampleId = example.id;
    
    import pulumi
    import pulumi_datarobot as datarobot
    
    example = datarobot.DatasetFromUrl("example",
        url="[URL to upload from]",
        use_case_ids=[datarobot_use_case["example"]["id"]])
    pulumi.export("exampleId", example.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.NewDatasetFromUrl(ctx, "example", &datarobot.DatasetFromUrlArgs{
    			Url: pulumi.String("[URL to upload from]"),
    			UseCaseIds: pulumi.StringArray{
    				datarobot_use_case.Example.Id,
    			},
    		})
    		if err != nil {
    			return err
    		}
    		ctx.Export("exampleId", example.ID())
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Datarobot = DataRobotPulumi.Datarobot;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Datarobot.DatasetFromUrl("example", new()
        {
            Url = "[URL to upload from]",
            UseCaseIds = new[]
            {
                datarobot_use_case.Example.Id,
            },
        });
    
        return new Dictionary<string, object?>
        {
            ["exampleId"] = example.Id,
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.datarobot.DatasetFromUrl;
    import com.pulumi.datarobot.DatasetFromUrlArgs;
    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 DatasetFromUrl("example", DatasetFromUrlArgs.builder()
                .url("[URL to upload from]")
                .useCaseIds(datarobot_use_case.example().id())
                .build());
    
            ctx.export("exampleId", example.id());
        }
    }
    
    resources:
      example:
        type: datarobot:DatasetFromUrl
        properties:
          url: '[URL to upload from]'
          useCaseIds:
            - ${datarobot_use_case.example.id}
    outputs:
      exampleId: ${example.id}
    

    Create DatasetFromUrl Resource

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

    Constructor syntax

    new DatasetFromUrl(name: string, args: DatasetFromUrlArgs, opts?: CustomResourceOptions);
    @overload
    def DatasetFromUrl(resource_name: str,
                       args: DatasetFromUrlArgs,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def DatasetFromUrl(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       url: Optional[str] = None,
                       name: Optional[str] = None,
                       use_case_ids: Optional[Sequence[str]] = None)
    func NewDatasetFromUrl(ctx *Context, name string, args DatasetFromUrlArgs, opts ...ResourceOption) (*DatasetFromUrl, error)
    public DatasetFromUrl(string name, DatasetFromUrlArgs args, CustomResourceOptions? opts = null)
    public DatasetFromUrl(String name, DatasetFromUrlArgs args)
    public DatasetFromUrl(String name, DatasetFromUrlArgs args, CustomResourceOptions options)
    
    type: datarobot:DatasetFromUrl
    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 DatasetFromUrlArgs
    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 DatasetFromUrlArgs
    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 DatasetFromUrlArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DatasetFromUrlArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DatasetFromUrlArgs
    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 datasetFromUrlResource = new Datarobot.DatasetFromUrl("datasetFromUrlResource", new()
    {
        Url = "string",
        Name = "string",
        UseCaseIds = new[]
        {
            "string",
        },
    });
    
    example, err := datarobot.NewDatasetFromUrl(ctx, "datasetFromUrlResource", &datarobot.DatasetFromUrlArgs{
    	Url:  pulumi.String("string"),
    	Name: pulumi.String("string"),
    	UseCaseIds: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    })
    
    var datasetFromUrlResource = new DatasetFromUrl("datasetFromUrlResource", DatasetFromUrlArgs.builder()
        .url("string")
        .name("string")
        .useCaseIds("string")
        .build());
    
    dataset_from_url_resource = datarobot.DatasetFromUrl("datasetFromUrlResource",
        url="string",
        name="string",
        use_case_ids=["string"])
    
    const datasetFromUrlResource = new datarobot.DatasetFromUrl("datasetFromUrlResource", {
        url: "string",
        name: "string",
        useCaseIds: ["string"],
    });
    
    type: datarobot:DatasetFromUrl
    properties:
        name: string
        url: string
        useCaseIds:
            - string
    

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

    Url string
    The URL to upload the Dataset from.
    Name string
    The name of the Dataset.
    UseCaseIds List<string>
    The list of Use Case IDs to add the Dataset to.
    Url string
    The URL to upload the Dataset from.
    Name string
    The name of the Dataset.
    UseCaseIds []string
    The list of Use Case IDs to add the Dataset to.
    url String
    The URL to upload the Dataset from.
    name String
    The name of the Dataset.
    useCaseIds List<String>
    The list of Use Case IDs to add the Dataset to.
    url string
    The URL to upload the Dataset from.
    name string
    The name of the Dataset.
    useCaseIds string[]
    The list of Use Case IDs to add the Dataset to.
    url str
    The URL to upload the Dataset from.
    name str
    The name of the Dataset.
    use_case_ids Sequence[str]
    The list of Use Case IDs to add the Dataset to.
    url String
    The URL to upload the Dataset from.
    name String
    The name of the Dataset.
    useCaseIds List<String>
    The list of Use Case IDs to add the Dataset to.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing DatasetFromUrl Resource

    Get an existing DatasetFromUrl 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?: DatasetFromUrlState, opts?: CustomResourceOptions): DatasetFromUrl
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            name: Optional[str] = None,
            url: Optional[str] = None,
            use_case_ids: Optional[Sequence[str]] = None) -> DatasetFromUrl
    func GetDatasetFromUrl(ctx *Context, name string, id IDInput, state *DatasetFromUrlState, opts ...ResourceOption) (*DatasetFromUrl, error)
    public static DatasetFromUrl Get(string name, Input<string> id, DatasetFromUrlState? state, CustomResourceOptions? opts = null)
    public static DatasetFromUrl get(String name, Output<String> id, DatasetFromUrlState 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:
    Name string
    The name of the Dataset.
    Url string
    The URL to upload the Dataset from.
    UseCaseIds List<string>
    The list of Use Case IDs to add the Dataset to.
    Name string
    The name of the Dataset.
    Url string
    The URL to upload the Dataset from.
    UseCaseIds []string
    The list of Use Case IDs to add the Dataset to.
    name String
    The name of the Dataset.
    url String
    The URL to upload the Dataset from.
    useCaseIds List<String>
    The list of Use Case IDs to add the Dataset to.
    name string
    The name of the Dataset.
    url string
    The URL to upload the Dataset from.
    useCaseIds string[]
    The list of Use Case IDs to add the Dataset to.
    name str
    The name of the Dataset.
    url str
    The URL to upload the Dataset from.
    use_case_ids Sequence[str]
    The list of Use Case IDs to add the Dataset to.
    name String
    The name of the Dataset.
    url String
    The URL to upload the Dataset from.
    useCaseIds List<String>
    The list of Use Case IDs to add the Dataset to.

    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.