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

datarobot.BasicCredential

Explore with Pulumi AI

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

    Basic Credential

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as datarobot from "@datarobot/pulumi-datarobot";
    
    const example = new datarobot.BasicCredential("example", {
        description: "Description for the example basic credential",
        password: "example_password",
        user: "example_user",
    });
    
    import pulumi
    import pulumi_datarobot as datarobot
    
    example = datarobot.BasicCredential("example",
        description="Description for the example basic credential",
        password="example_password",
        user="example_user")
    
    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 {
    		_, err := datarobot.NewBasicCredential(ctx, "example", &datarobot.BasicCredentialArgs{
    			Description: pulumi.String("Description for the example basic credential"),
    			Password:    pulumi.String("example_password"),
    			User:        pulumi.String("example_user"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Datarobot = DataRobotPulumi.Datarobot;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Datarobot.BasicCredential("example", new()
        {
            Description = "Description for the example basic credential",
            Password = "example_password",
            User = "example_user",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.datarobot.BasicCredential;
    import com.pulumi.datarobot.BasicCredentialArgs;
    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 BasicCredential("example", BasicCredentialArgs.builder()
                .description("Description for the example basic credential")
                .password("example_password")
                .user("example_user")
                .build());
    
        }
    }
    
    resources:
      example:
        type: datarobot:BasicCredential
        properties:
          description: Description for the example basic credential
          password: example_password
          user: example_user
    

    Create BasicCredential Resource

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

    Constructor syntax

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

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

    Password string
    The password of the Basic Credential.
    User string
    The user of the Basic Credential.
    Description string
    The description of the Basic Credential.
    Name string
    The name of the Basic Credential.
    Password string
    The password of the Basic Credential.
    User string
    The user of the Basic Credential.
    Description string
    The description of the Basic Credential.
    Name string
    The name of the Basic Credential.
    password String
    The password of the Basic Credential.
    user String
    The user of the Basic Credential.
    description String
    The description of the Basic Credential.
    name String
    The name of the Basic Credential.
    password string
    The password of the Basic Credential.
    user string
    The user of the Basic Credential.
    description string
    The description of the Basic Credential.
    name string
    The name of the Basic Credential.
    password str
    The password of the Basic Credential.
    user str
    The user of the Basic Credential.
    description str
    The description of the Basic Credential.
    name str
    The name of the Basic Credential.
    password String
    The password of the Basic Credential.
    user String
    The user of the Basic Credential.
    description String
    The description of the Basic Credential.
    name String
    The name of the Basic Credential.

    Outputs

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

    Get an existing BasicCredential 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?: BasicCredentialState, opts?: CustomResourceOptions): BasicCredential
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            description: Optional[str] = None,
            name: Optional[str] = None,
            password: Optional[str] = None,
            user: Optional[str] = None) -> BasicCredential
    func GetBasicCredential(ctx *Context, name string, id IDInput, state *BasicCredentialState, opts ...ResourceOption) (*BasicCredential, error)
    public static BasicCredential Get(string name, Input<string> id, BasicCredentialState? state, CustomResourceOptions? opts = null)
    public static BasicCredential get(String name, Output<String> id, BasicCredentialState 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 Basic Credential.
    Name string
    The name of the Basic Credential.
    Password string
    The password of the Basic Credential.
    User string
    The user of the Basic Credential.
    Description string
    The description of the Basic Credential.
    Name string
    The name of the Basic Credential.
    Password string
    The password of the Basic Credential.
    User string
    The user of the Basic Credential.
    description String
    The description of the Basic Credential.
    name String
    The name of the Basic Credential.
    password String
    The password of the Basic Credential.
    user String
    The user of the Basic Credential.
    description string
    The description of the Basic Credential.
    name string
    The name of the Basic Credential.
    password string
    The password of the Basic Credential.
    user string
    The user of the Basic Credential.
    description str
    The description of the Basic Credential.
    name str
    The name of the Basic Credential.
    password str
    The password of the Basic Credential.
    user str
    The user of the Basic Credential.
    description String
    The description of the Basic Credential.
    name String
    The name of the Basic Credential.
    password String
    The password of the Basic Credential.
    user String
    The user of the Basic Credential.

    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.