All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.alicloud.quickbi.kotlin.UserArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 3.62.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.alicloud.quickbi.kotlin

import com.pulumi.alicloud.quickbi.UserArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * Provides a Quick BI User resource.
 * For information about Quick BI User and how to use it, see [What is User](https://www.alibabacloud.com/help/doc-detail/33813.htm).
 * > **NOTE:** Available in v1.136.0+.
 * ## Example Usage
 * Basic Usage
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as alicloud from "@pulumi/alicloud";
 * const example = new alicloud.quickbi.User("example", {
 *     accountName: "example_value",
 *     adminUser: false,
 *     authAdminUser: false,
 *     nickName: "example_value",
 *     userType: "Analyst",
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_alicloud as alicloud
 * example = alicloud.quickbi.User("example",
 *     account_name="example_value",
 *     admin_user=False,
 *     auth_admin_user=False,
 *     nick_name="example_value",
 *     user_type="Analyst")
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using AliCloud = Pulumi.AliCloud;
 * return await Deployment.RunAsync(() =>
 * {
 *     var example = new AliCloud.QuickBI.User("example", new()
 *     {
 *         AccountName = "example_value",
 *         AdminUser = false,
 *         AuthAdminUser = false,
 *         NickName = "example_value",
 *         UserType = "Analyst",
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/quickbi"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := quickbi.NewUser(ctx, "example", &quickbi.UserArgs{
 * 			AccountName:   pulumi.String("example_value"),
 * 			AdminUser:     pulumi.Bool(false),
 * 			AuthAdminUser: pulumi.Bool(false),
 * 			NickName:      pulumi.String("example_value"),
 * 			UserType:      pulumi.String("Analyst"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		return nil
 * 	})
 * }
 * ```
 * ```java
 * package generated_program;
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.alicloud.quickbi.User;
 * import com.pulumi.alicloud.quickbi.UserArgs;
 * 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 User("example", UserArgs.builder()
 *             .accountName("example_value")
 *             .adminUser(false)
 *             .authAdminUser(false)
 *             .nickName("example_value")
 *             .userType("Analyst")
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   example:
 *     type: alicloud:quickbi:User
 *     properties:
 *       accountName: example_value
 *       adminUser: false
 *       authAdminUser: false
 *       nickName: example_value
 *       userType: Analyst
 * ```
 * 
 * ## Import
 * Quick BI User can be imported using the id, e.g.
 * ```sh
 * $ pulumi import alicloud:quickbi/user:User example 
 * ```
 * @property accountId Alibaba Cloud account ID.
 * @property accountName An Alibaba Cloud account, Alibaba Cloud name.
 * @property adminUser Whether it is the administrator. Valid values: `true` and `false`.
 * @property authAdminUser Whether this is a permissions administrator. Valid values: `false`, `true`.
 * @property nickName The nickname of the user.
 * @property userType The members of the organization of the type of role separately. Valid values: `Analyst`, `Developer` and `Visitor`.
 */
public data class UserArgs(
    public val accountId: Output? = null,
    public val accountName: Output? = null,
    public val adminUser: Output? = null,
    public val authAdminUser: Output? = null,
    public val nickName: Output? = null,
    public val userType: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.alicloud.quickbi.UserArgs =
        com.pulumi.alicloud.quickbi.UserArgs.builder()
            .accountId(accountId?.applyValue({ args0 -> args0 }))
            .accountName(accountName?.applyValue({ args0 -> args0 }))
            .adminUser(adminUser?.applyValue({ args0 -> args0 }))
            .authAdminUser(authAdminUser?.applyValue({ args0 -> args0 }))
            .nickName(nickName?.applyValue({ args0 -> args0 }))
            .userType(userType?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [UserArgs].
 */
@PulumiTagMarker
public class UserArgsBuilder internal constructor() {
    private var accountId: Output? = null

    private var accountName: Output? = null

    private var adminUser: Output? = null

    private var authAdminUser: Output? = null

    private var nickName: Output? = null

    private var userType: Output? = null

    /**
     * @param value Alibaba Cloud account ID.
     */
    @JvmName("nvebpvwkrdyeunmr")
    public suspend fun accountId(`value`: Output) {
        this.accountId = value
    }

    /**
     * @param value An Alibaba Cloud account, Alibaba Cloud name.
     */
    @JvmName("smshexahpknauowt")
    public suspend fun accountName(`value`: Output) {
        this.accountName = value
    }

    /**
     * @param value Whether it is the administrator. Valid values: `true` and `false`.
     */
    @JvmName("gjqcrtftjjohigdt")
    public suspend fun adminUser(`value`: Output) {
        this.adminUser = value
    }

    /**
     * @param value Whether this is a permissions administrator. Valid values: `false`, `true`.
     */
    @JvmName("bnwybbwhwfjcbmtg")
    public suspend fun authAdminUser(`value`: Output) {
        this.authAdminUser = value
    }

    /**
     * @param value The nickname of the user.
     */
    @JvmName("waagooujrcgcarqm")
    public suspend fun nickName(`value`: Output) {
        this.nickName = value
    }

    /**
     * @param value The members of the organization of the type of role separately. Valid values: `Analyst`, `Developer` and `Visitor`.
     */
    @JvmName("qfktmbrmsiuloiyb")
    public suspend fun userType(`value`: Output) {
        this.userType = value
    }

    /**
     * @param value Alibaba Cloud account ID.
     */
    @JvmName("vhudstydmwssratf")
    public suspend fun accountId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.accountId = mapped
    }

    /**
     * @param value An Alibaba Cloud account, Alibaba Cloud name.
     */
    @JvmName("tgkupcdfvvyfqgys")
    public suspend fun accountName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.accountName = mapped
    }

    /**
     * @param value Whether it is the administrator. Valid values: `true` and `false`.
     */
    @JvmName("tstbquwbysrwqohp")
    public suspend fun adminUser(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.adminUser = mapped
    }

    /**
     * @param value Whether this is a permissions administrator. Valid values: `false`, `true`.
     */
    @JvmName("efnneqrxbjdcmmer")
    public suspend fun authAdminUser(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.authAdminUser = mapped
    }

    /**
     * @param value The nickname of the user.
     */
    @JvmName("qhfxasuiewmenlhe")
    public suspend fun nickName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.nickName = mapped
    }

    /**
     * @param value The members of the organization of the type of role separately. Valid values: `Analyst`, `Developer` and `Visitor`.
     */
    @JvmName("ybamfwatgjoygnnf")
    public suspend fun userType(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.userType = mapped
    }

    internal fun build(): UserArgs = UserArgs(
        accountId = accountId,
        accountName = accountName,
        adminUser = adminUser,
        authAdminUser = authAdminUser,
        nickName = nickName,
        userType = userType,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy