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

datarobot.Playground

Explore with Pulumi AI

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

    Playground

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as datarobot from "@datarobot/pulumi-datarobot";
    
    const exampleUseCase = new datarobot.UseCase("exampleUseCase", {});
    const examplePlayground = new datarobot.Playground("examplePlayground", {useCaseId: exampleUseCase.id});
    export const exampleId = examplePlayground.id;
    
    import pulumi
    import pulumi_datarobot as datarobot
    
    example_use_case = datarobot.UseCase("exampleUseCase")
    example_playground = datarobot.Playground("examplePlayground", use_case_id=example_use_case.id)
    pulumi.export("exampleId", example_playground.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 {
    		exampleUseCase, err := datarobot.NewUseCase(ctx, "exampleUseCase", nil)
    		if err != nil {
    			return err
    		}
    		examplePlayground, err := datarobot.NewPlayground(ctx, "examplePlayground", &datarobot.PlaygroundArgs{
    			UseCaseId: exampleUseCase.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		ctx.Export("exampleId", examplePlayground.ID())
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Datarobot = DataRobotPulumi.Datarobot;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleUseCase = new Datarobot.UseCase("exampleUseCase");
    
        var examplePlayground = new Datarobot.Playground("examplePlayground", new()
        {
            UseCaseId = exampleUseCase.Id,
        });
    
        return new Dictionary<string, object?>
        {
            ["exampleId"] = examplePlayground.Id,
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.datarobot.UseCase;
    import com.pulumi.datarobot.Playground;
    import com.pulumi.datarobot.PlaygroundArgs;
    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 exampleUseCase = new UseCase("exampleUseCase");
    
            var examplePlayground = new Playground("examplePlayground", PlaygroundArgs.builder()
                .useCaseId(exampleUseCase.id())
                .build());
    
            ctx.export("exampleId", examplePlayground.id());
        }
    }
    
    resources:
      exampleUseCase:
        type: datarobot:UseCase
      examplePlayground:
        type: datarobot:Playground
        properties:
          useCaseId: ${exampleUseCase.id}
    outputs:
      exampleId: ${examplePlayground.id}
    

    Create Playground Resource

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

    Constructor syntax

    new Playground(name: string, args: PlaygroundArgs, opts?: CustomResourceOptions);
    @overload
    def Playground(resource_name: str,
                   args: PlaygroundArgs,
                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def Playground(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   use_case_id: Optional[str] = None,
                   description: Optional[str] = None,
                   name: Optional[str] = None)
    func NewPlayground(ctx *Context, name string, args PlaygroundArgs, opts ...ResourceOption) (*Playground, error)
    public Playground(string name, PlaygroundArgs args, CustomResourceOptions? opts = null)
    public Playground(String name, PlaygroundArgs args)
    public Playground(String name, PlaygroundArgs args, CustomResourceOptions options)
    
    type: datarobot:Playground
    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 PlaygroundArgs
    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 PlaygroundArgs
    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 PlaygroundArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args PlaygroundArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args PlaygroundArgs
    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 playgroundResource = new Datarobot.Playground("playgroundResource", new()
    {
        UseCaseId = "string",
        Description = "string",
        Name = "string",
    });
    
    example, err := datarobot.NewPlayground(ctx, "playgroundResource", &datarobot.PlaygroundArgs{
    	UseCaseId:   pulumi.String("string"),
    	Description: pulumi.String("string"),
    	Name:        pulumi.String("string"),
    })
    
    var playgroundResource = new Playground("playgroundResource", PlaygroundArgs.builder()
        .useCaseId("string")
        .description("string")
        .name("string")
        .build());
    
    playground_resource = datarobot.Playground("playgroundResource",
        use_case_id="string",
        description="string",
        name="string")
    
    const playgroundResource = new datarobot.Playground("playgroundResource", {
        useCaseId: "string",
        description: "string",
        name: "string",
    });
    
    type: datarobot:Playground
    properties:
        description: string
        name: string
        useCaseId: string
    

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

    UseCaseId string
    The id of the Playground.
    Description string
    The description of the Playground.
    Name string
    The name of the Playground.
    UseCaseId string
    The id of the Playground.
    Description string
    The description of the Playground.
    Name string
    The name of the Playground.
    useCaseId String
    The id of the Playground.
    description String
    The description of the Playground.
    name String
    The name of the Playground.
    useCaseId string
    The id of the Playground.
    description string
    The description of the Playground.
    name string
    The name of the Playground.
    use_case_id str
    The id of the Playground.
    description str
    The description of the Playground.
    name str
    The name of the Playground.
    useCaseId String
    The id of the Playground.
    description String
    The description of the Playground.
    name String
    The name of the Playground.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Playground 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 Playground Resource

    Get an existing Playground 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?: PlaygroundState, opts?: CustomResourceOptions): Playground
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            description: Optional[str] = None,
            name: Optional[str] = None,
            use_case_id: Optional[str] = None) -> Playground
    func GetPlayground(ctx *Context, name string, id IDInput, state *PlaygroundState, opts ...ResourceOption) (*Playground, error)
    public static Playground Get(string name, Input<string> id, PlaygroundState? state, CustomResourceOptions? opts = null)
    public static Playground get(String name, Output<String> id, PlaygroundState 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:
    Description string
    The description of the Playground.
    Name string
    The name of the Playground.
    UseCaseId string
    The id of the Playground.
    Description string
    The description of the Playground.
    Name string
    The name of the Playground.
    UseCaseId string
    The id of the Playground.
    description String
    The description of the Playground.
    name String
    The name of the Playground.
    useCaseId String
    The id of the Playground.
    description string
    The description of the Playground.
    name string
    The name of the Playground.
    useCaseId string
    The id of the Playground.
    description str
    The description of the Playground.
    name str
    The name of the Playground.
    use_case_id str
    The id of the Playground.
    description String
    The description of the Playground.
    name String
    The name of the Playground.
    useCaseId String
    The id of the Playground.

    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.