1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. adb
  5. LakeAccount
Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi

alicloud.adb.LakeAccount

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi

    Provides a ADB Lake Account resource. Account of the DBClusterLakeVesion.

    For information about ADB Lake Account and how to use it, see What is Lake Account. For information about ADB Lake Account Privileges and how to use it, see What are Lake Account Privileges.

    NOTE: Available since v1.214.0.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const config = new pulumi.Config();
    const name = config.get("name") || "terraform-example";
    const default = alicloud.getZones({
        availableResourceCreation: "VSwitch",
    });
    const VPCID = new alicloud.vpc.Network("VPCID", {
        vpcName: name,
        cidrBlock: "172.16.0.0/12",
    });
    const VSWITCHID = new alicloud.vpc.Switch("VSWITCHID", {
        vpcId: VPCID.id,
        zoneId: "cn-hangzhou-k",
        vswitchName: name,
        cidrBlock: "172.16.0.0/24",
    });
    const createInstance = new alicloud.adb.DBClusterLakeVersion("CreateInstance", {
        storageResource: "0ACU",
        zoneId: "cn-hangzhou-k",
        vpcId: VPCID.id,
        vswitchId: VSWITCHID.id,
        dbClusterDescription: name,
        computeResource: "16ACU",
        dbClusterVersion: "5.0",
        paymentType: "PayAsYouGo",
        securityIps: "127.0.0.1",
    });
    const defaultLakeAccount = new alicloud.adb.LakeAccount("default", {
        dbClusterId: createInstance.id,
        accountType: "Super",
        accountName: "tfnormal",
        accountPassword: "normal@2023",
        accountPrivileges: [
            {
                privilegeType: "Database",
                privilegeObject: {
                    database: "MYSQL",
                },
                privileges: [
                    "select",
                    "update",
                ],
            },
            {
                privilegeType: "Table",
                privilegeObject: {
                    database: "INFORMATION_SCHEMA",
                    table: "ENGINES",
                },
                privileges: ["update"],
            },
            {
                privilegeType: "Column",
                privilegeObject: {
                    table: "COLUMNS",
                    column: "PRIVILEGES",
                    database: "INFORMATION_SCHEMA",
                },
                privileges: ["update"],
            },
        ],
        accountDescription: name,
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "terraform-example"
    default = alicloud.get_zones(available_resource_creation="VSwitch")
    vpcid = alicloud.vpc.Network("VPCID",
        vpc_name=name,
        cidr_block="172.16.0.0/12")
    vswitchid = alicloud.vpc.Switch("VSWITCHID",
        vpc_id=vpcid.id,
        zone_id="cn-hangzhou-k",
        vswitch_name=name,
        cidr_block="172.16.0.0/24")
    create_instance = alicloud.adb.DBClusterLakeVersion("CreateInstance",
        storage_resource="0ACU",
        zone_id="cn-hangzhou-k",
        vpc_id=vpcid.id,
        vswitch_id=vswitchid.id,
        db_cluster_description=name,
        compute_resource="16ACU",
        db_cluster_version="5.0",
        payment_type="PayAsYouGo",
        security_ips="127.0.0.1")
    default_lake_account = alicloud.adb.LakeAccount("default",
        db_cluster_id=create_instance.id,
        account_type="Super",
        account_name="tfnormal",
        account_password="normal@2023",
        account_privileges=[
            alicloud.adb.LakeAccountAccountPrivilegeArgs(
                privilege_type="Database",
                privilege_object=alicloud.adb.LakeAccountAccountPrivilegePrivilegeObjectArgs(
                    database="MYSQL",
                ),
                privileges=[
                    "select",
                    "update",
                ],
            ),
            alicloud.adb.LakeAccountAccountPrivilegeArgs(
                privilege_type="Table",
                privilege_object=alicloud.adb.LakeAccountAccountPrivilegePrivilegeObjectArgs(
                    database="INFORMATION_SCHEMA",
                    table="ENGINES",
                ),
                privileges=["update"],
            ),
            alicloud.adb.LakeAccountAccountPrivilegeArgs(
                privilege_type="Column",
                privilege_object=alicloud.adb.LakeAccountAccountPrivilegePrivilegeObjectArgs(
                    table="COLUMNS",
                    column="PRIVILEGES",
                    database="INFORMATION_SCHEMA",
                ),
                privileges=["update"],
            ),
        ],
        account_description=name)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/adb"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		name := "terraform-example"
    		if param := cfg.Get("name"); param != "" {
    			name = param
    		}
    		_, err := alicloud.GetZones(ctx, &alicloud.GetZonesArgs{
    			AvailableResourceCreation: pulumi.StringRef("VSwitch"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		VPCID, err := vpc.NewNetwork(ctx, "VPCID", &vpc.NetworkArgs{
    			VpcName:   pulumi.String(name),
    			CidrBlock: pulumi.String("172.16.0.0/12"),
    		})
    		if err != nil {
    			return err
    		}
    		VSWITCHID, err := vpc.NewSwitch(ctx, "VSWITCHID", &vpc.SwitchArgs{
    			VpcId:       VPCID.ID(),
    			ZoneId:      pulumi.String("cn-hangzhou-k"),
    			VswitchName: pulumi.String(name),
    			CidrBlock:   pulumi.String("172.16.0.0/24"),
    		})
    		if err != nil {
    			return err
    		}
    		createInstance, err := adb.NewDBClusterLakeVersion(ctx, "CreateInstance", &adb.DBClusterLakeVersionArgs{
    			StorageResource:      pulumi.String("0ACU"),
    			ZoneId:               pulumi.String("cn-hangzhou-k"),
    			VpcId:                VPCID.ID(),
    			VswitchId:            VSWITCHID.ID(),
    			DbClusterDescription: pulumi.String(name),
    			ComputeResource:      pulumi.String("16ACU"),
    			DbClusterVersion:     pulumi.String("5.0"),
    			PaymentType:          pulumi.String("PayAsYouGo"),
    			SecurityIps:          pulumi.String("127.0.0.1"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = adb.NewLakeAccount(ctx, "default", &adb.LakeAccountArgs{
    			DbClusterId:     createInstance.ID(),
    			AccountType:     pulumi.String("Super"),
    			AccountName:     pulumi.String("tfnormal"),
    			AccountPassword: pulumi.String("normal@2023"),
    			AccountPrivileges: adb.LakeAccountAccountPrivilegeArray{
    				&adb.LakeAccountAccountPrivilegeArgs{
    					PrivilegeType: pulumi.String("Database"),
    					PrivilegeObject: &adb.LakeAccountAccountPrivilegePrivilegeObjectArgs{
    						Database: pulumi.String("MYSQL"),
    					},
    					Privileges: pulumi.StringArray{
    						pulumi.String("select"),
    						pulumi.String("update"),
    					},
    				},
    				&adb.LakeAccountAccountPrivilegeArgs{
    					PrivilegeType: pulumi.String("Table"),
    					PrivilegeObject: &adb.LakeAccountAccountPrivilegePrivilegeObjectArgs{
    						Database: pulumi.String("INFORMATION_SCHEMA"),
    						Table:    pulumi.String("ENGINES"),
    					},
    					Privileges: pulumi.StringArray{
    						pulumi.String("update"),
    					},
    				},
    				&adb.LakeAccountAccountPrivilegeArgs{
    					PrivilegeType: pulumi.String("Column"),
    					PrivilegeObject: &adb.LakeAccountAccountPrivilegePrivilegeObjectArgs{
    						Table:    pulumi.String("COLUMNS"),
    						Column:   pulumi.String("PRIVILEGES"),
    						Database: pulumi.String("INFORMATION_SCHEMA"),
    					},
    					Privileges: pulumi.StringArray{
    						pulumi.String("update"),
    					},
    				},
    			},
    			AccountDescription: pulumi.String(name),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var name = config.Get("name") ?? "terraform-example";
        var @default = AliCloud.GetZones.Invoke(new()
        {
            AvailableResourceCreation = "VSwitch",
        });
    
        var VPCID = new AliCloud.Vpc.Network("VPCID", new()
        {
            VpcName = name,
            CidrBlock = "172.16.0.0/12",
        });
    
        var VSWITCHID = new AliCloud.Vpc.Switch("VSWITCHID", new()
        {
            VpcId = VPCID.Id,
            ZoneId = "cn-hangzhou-k",
            VswitchName = name,
            CidrBlock = "172.16.0.0/24",
        });
    
        var createInstance = new AliCloud.Adb.DBClusterLakeVersion("CreateInstance", new()
        {
            StorageResource = "0ACU",
            ZoneId = "cn-hangzhou-k",
            VpcId = VPCID.Id,
            VswitchId = VSWITCHID.Id,
            DbClusterDescription = name,
            ComputeResource = "16ACU",
            DbClusterVersion = "5.0",
            PaymentType = "PayAsYouGo",
            SecurityIps = "127.0.0.1",
        });
    
        var defaultLakeAccount = new AliCloud.Adb.LakeAccount("default", new()
        {
            DbClusterId = createInstance.Id,
            AccountType = "Super",
            AccountName = "tfnormal",
            AccountPassword = "normal@2023",
            AccountPrivileges = new[]
            {
                new AliCloud.Adb.Inputs.LakeAccountAccountPrivilegeArgs
                {
                    PrivilegeType = "Database",
                    PrivilegeObject = new AliCloud.Adb.Inputs.LakeAccountAccountPrivilegePrivilegeObjectArgs
                    {
                        Database = "MYSQL",
                    },
                    Privileges = new[]
                    {
                        "select",
                        "update",
                    },
                },
                new AliCloud.Adb.Inputs.LakeAccountAccountPrivilegeArgs
                {
                    PrivilegeType = "Table",
                    PrivilegeObject = new AliCloud.Adb.Inputs.LakeAccountAccountPrivilegePrivilegeObjectArgs
                    {
                        Database = "INFORMATION_SCHEMA",
                        Table = "ENGINES",
                    },
                    Privileges = new[]
                    {
                        "update",
                    },
                },
                new AliCloud.Adb.Inputs.LakeAccountAccountPrivilegeArgs
                {
                    PrivilegeType = "Column",
                    PrivilegeObject = new AliCloud.Adb.Inputs.LakeAccountAccountPrivilegePrivilegeObjectArgs
                    {
                        Table = "COLUMNS",
                        Column = "PRIVILEGES",
                        Database = "INFORMATION_SCHEMA",
                    },
                    Privileges = new[]
                    {
                        "update",
                    },
                },
            },
            AccountDescription = name,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.AlicloudFunctions;
    import com.pulumi.alicloud.inputs.GetZonesArgs;
    import com.pulumi.alicloud.vpc.Network;
    import com.pulumi.alicloud.vpc.NetworkArgs;
    import com.pulumi.alicloud.vpc.Switch;
    import com.pulumi.alicloud.vpc.SwitchArgs;
    import com.pulumi.alicloud.adb.DBClusterLakeVersion;
    import com.pulumi.alicloud.adb.DBClusterLakeVersionArgs;
    import com.pulumi.alicloud.adb.LakeAccount;
    import com.pulumi.alicloud.adb.LakeAccountArgs;
    import com.pulumi.alicloud.adb.inputs.LakeAccountAccountPrivilegeArgs;
    import com.pulumi.alicloud.adb.inputs.LakeAccountAccountPrivilegePrivilegeObjectArgs;
    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) {
            final var config = ctx.config();
            final var name = config.get("name").orElse("terraform-example");
            final var default = AlicloudFunctions.getZones(GetZonesArgs.builder()
                .availableResourceCreation("VSwitch")
                .build());
    
            var vPCID = new Network("VPCID", NetworkArgs.builder()
                .vpcName(name)
                .cidrBlock("172.16.0.0/12")
                .build());
    
            var vSWITCHID = new Switch("VSWITCHID", SwitchArgs.builder()
                .vpcId(VPCID.id())
                .zoneId("cn-hangzhou-k")
                .vswitchName(name)
                .cidrBlock("172.16.0.0/24")
                .build());
    
            var createInstance = new DBClusterLakeVersion("createInstance", DBClusterLakeVersionArgs.builder()
                .storageResource("0ACU")
                .zoneId("cn-hangzhou-k")
                .vpcId(VPCID.id())
                .vswitchId(VSWITCHID.id())
                .dbClusterDescription(name)
                .computeResource("16ACU")
                .dbClusterVersion("5.0")
                .paymentType("PayAsYouGo")
                .securityIps("127.0.0.1")
                .build());
    
            var defaultLakeAccount = new LakeAccount("defaultLakeAccount", LakeAccountArgs.builder()
                .dbClusterId(createInstance.id())
                .accountType("Super")
                .accountName("tfnormal")
                .accountPassword("normal@2023")
                .accountPrivileges(            
                    LakeAccountAccountPrivilegeArgs.builder()
                        .privilegeType("Database")
                        .privilegeObject(LakeAccountAccountPrivilegePrivilegeObjectArgs.builder()
                            .database("MYSQL")
                            .build())
                        .privileges(                    
                            "select",
                            "update")
                        .build(),
                    LakeAccountAccountPrivilegeArgs.builder()
                        .privilegeType("Table")
                        .privilegeObject(LakeAccountAccountPrivilegePrivilegeObjectArgs.builder()
                            .database("INFORMATION_SCHEMA")
                            .table("ENGINES")
                            .build())
                        .privileges("update")
                        .build(),
                    LakeAccountAccountPrivilegeArgs.builder()
                        .privilegeType("Column")
                        .privilegeObject(LakeAccountAccountPrivilegePrivilegeObjectArgs.builder()
                            .table("COLUMNS")
                            .column("PRIVILEGES")
                            .database("INFORMATION_SCHEMA")
                            .build())
                        .privileges("update")
                        .build())
                .accountDescription(name)
                .build());
    
        }
    }
    
    configuration:
      name:
        type: string
        default: terraform-example
    resources:
      VPCID:
        type: alicloud:vpc:Network
        properties:
          vpcName: ${name}
          cidrBlock: 172.16.0.0/12
      VSWITCHID:
        type: alicloud:vpc:Switch
        properties:
          vpcId: ${VPCID.id}
          zoneId: cn-hangzhou-k
          vswitchName: ${name}
          cidrBlock: 172.16.0.0/24
      createInstance:
        type: alicloud:adb:DBClusterLakeVersion
        name: CreateInstance
        properties:
          storageResource: 0ACU
          zoneId: cn-hangzhou-k
          vpcId: ${VPCID.id}
          vswitchId: ${VSWITCHID.id}
          dbClusterDescription: ${name}
          computeResource: 16ACU
          dbClusterVersion: '5.0'
          paymentType: PayAsYouGo
          securityIps: 127.0.0.1
      defaultLakeAccount:
        type: alicloud:adb:LakeAccount
        name: default
        properties:
          dbClusterId: ${createInstance.id}
          accountType: Super
          accountName: tfnormal
          accountPassword: normal@2023
          accountPrivileges:
            - privilegeType: Database
              privilegeObject:
                database: MYSQL
              privileges:
                - select
                - update
            - privilegeType: Table
              privilegeObject:
                database: INFORMATION_SCHEMA
                table: ENGINES
              privileges:
                - update
            - privilegeType: Column
              privilegeObject:
                table: COLUMNS
                column: PRIVILEGES
                database: INFORMATION_SCHEMA
              privileges:
                - update
          accountDescription: ${name}
    variables:
      default:
        fn::invoke:
          Function: alicloud:getZones
          Arguments:
            availableResourceCreation: VSwitch
    

    Create LakeAccount Resource

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

    Constructor syntax

    new LakeAccount(name: string, args: LakeAccountArgs, opts?: CustomResourceOptions);
    @overload
    def LakeAccount(resource_name: str,
                    args: LakeAccountArgs,
                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def LakeAccount(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    account_name: Optional[str] = None,
                    account_password: Optional[str] = None,
                    db_cluster_id: Optional[str] = None,
                    account_description: Optional[str] = None,
                    account_privileges: Optional[Sequence[LakeAccountAccountPrivilegeArgs]] = None,
                    account_type: Optional[str] = None)
    func NewLakeAccount(ctx *Context, name string, args LakeAccountArgs, opts ...ResourceOption) (*LakeAccount, error)
    public LakeAccount(string name, LakeAccountArgs args, CustomResourceOptions? opts = null)
    public LakeAccount(String name, LakeAccountArgs args)
    public LakeAccount(String name, LakeAccountArgs args, CustomResourceOptions options)
    
    type: alicloud:adb:LakeAccount
    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 LakeAccountArgs
    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 LakeAccountArgs
    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 LakeAccountArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args LakeAccountArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args LakeAccountArgs
    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 lakeAccountResource = new AliCloud.Adb.LakeAccount("lakeAccountResource", new()
    {
        AccountName = "string",
        AccountPassword = "string",
        DbClusterId = "string",
        AccountDescription = "string",
        AccountPrivileges = new[]
        {
            new AliCloud.Adb.Inputs.LakeAccountAccountPrivilegeArgs
            {
                PrivilegeObject = new AliCloud.Adb.Inputs.LakeAccountAccountPrivilegePrivilegeObjectArgs
                {
                    Column = "string",
                    Database = "string",
                    Table = "string",
                },
                PrivilegeType = "string",
                Privileges = new[]
                {
                    "string",
                },
            },
        },
        AccountType = "string",
    });
    
    example, err := adb.NewLakeAccount(ctx, "lakeAccountResource", &adb.LakeAccountArgs{
    	AccountName:        pulumi.String("string"),
    	AccountPassword:    pulumi.String("string"),
    	DbClusterId:        pulumi.String("string"),
    	AccountDescription: pulumi.String("string"),
    	AccountPrivileges: adb.LakeAccountAccountPrivilegeArray{
    		&adb.LakeAccountAccountPrivilegeArgs{
    			PrivilegeObject: &adb.LakeAccountAccountPrivilegePrivilegeObjectArgs{
    				Column:   pulumi.String("string"),
    				Database: pulumi.String("string"),
    				Table:    pulumi.String("string"),
    			},
    			PrivilegeType: pulumi.String("string"),
    			Privileges: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    		},
    	},
    	AccountType: pulumi.String("string"),
    })
    
    var lakeAccountResource = new LakeAccount("lakeAccountResource", LakeAccountArgs.builder()
        .accountName("string")
        .accountPassword("string")
        .dbClusterId("string")
        .accountDescription("string")
        .accountPrivileges(LakeAccountAccountPrivilegeArgs.builder()
            .privilegeObject(LakeAccountAccountPrivilegePrivilegeObjectArgs.builder()
                .column("string")
                .database("string")
                .table("string")
                .build())
            .privilegeType("string")
            .privileges("string")
            .build())
        .accountType("string")
        .build());
    
    lake_account_resource = alicloud.adb.LakeAccount("lakeAccountResource",
        account_name="string",
        account_password="string",
        db_cluster_id="string",
        account_description="string",
        account_privileges=[alicloud.adb.LakeAccountAccountPrivilegeArgs(
            privilege_object=alicloud.adb.LakeAccountAccountPrivilegePrivilegeObjectArgs(
                column="string",
                database="string",
                table="string",
            ),
            privilege_type="string",
            privileges=["string"],
        )],
        account_type="string")
    
    const lakeAccountResource = new alicloud.adb.LakeAccount("lakeAccountResource", {
        accountName: "string",
        accountPassword: "string",
        dbClusterId: "string",
        accountDescription: "string",
        accountPrivileges: [{
            privilegeObject: {
                column: "string",
                database: "string",
                table: "string",
            },
            privilegeType: "string",
            privileges: ["string"],
        }],
        accountType: "string",
    });
    
    type: alicloud:adb:LakeAccount
    properties:
        accountDescription: string
        accountName: string
        accountPassword: string
        accountPrivileges:
            - privilegeObject:
                column: string
                database: string
                table: string
              privilegeType: string
              privileges:
                - string
        accountType: string
        dbClusterId: string
    

    LakeAccount Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The LakeAccount resource accepts the following input properties:

    AccountName string
    The name of the account.
    AccountPassword string
    AccountPassword.
    DbClusterId string
    The DBCluster ID.
    AccountDescription string
    The description of the account.
    AccountPrivileges List<Pulumi.AliCloud.Adb.Inputs.LakeAccountAccountPrivilege>
    List of permissions granted. See account_privileges below.
    AccountType string
    The type of the account.
    AccountName string
    The name of the account.
    AccountPassword string
    AccountPassword.
    DbClusterId string
    The DBCluster ID.
    AccountDescription string
    The description of the account.
    AccountPrivileges []LakeAccountAccountPrivilegeArgs
    List of permissions granted. See account_privileges below.
    AccountType string
    The type of the account.
    accountName String
    The name of the account.
    accountPassword String
    AccountPassword.
    dbClusterId String
    The DBCluster ID.
    accountDescription String
    The description of the account.
    accountPrivileges List<LakeAccountAccountPrivilege>
    List of permissions granted. See account_privileges below.
    accountType String
    The type of the account.
    accountName string
    The name of the account.
    accountPassword string
    AccountPassword.
    dbClusterId string
    The DBCluster ID.
    accountDescription string
    The description of the account.
    accountPrivileges LakeAccountAccountPrivilege[]
    List of permissions granted. See account_privileges below.
    accountType string
    The type of the account.
    account_name str
    The name of the account.
    account_password str
    AccountPassword.
    db_cluster_id str
    The DBCluster ID.
    account_description str
    The description of the account.
    account_privileges Sequence[LakeAccountAccountPrivilegeArgs]
    List of permissions granted. See account_privileges below.
    account_type str
    The type of the account.
    accountName String
    The name of the account.
    accountPassword String
    AccountPassword.
    dbClusterId String
    The DBCluster ID.
    accountDescription String
    The description of the account.
    accountPrivileges List<Property Map>
    List of permissions granted. See account_privileges below.
    accountType String
    The type of the account.

    Outputs

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

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

    Look up Existing LakeAccount Resource

    Get an existing LakeAccount 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?: LakeAccountState, opts?: CustomResourceOptions): LakeAccount
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            account_description: Optional[str] = None,
            account_name: Optional[str] = None,
            account_password: Optional[str] = None,
            account_privileges: Optional[Sequence[LakeAccountAccountPrivilegeArgs]] = None,
            account_type: Optional[str] = None,
            db_cluster_id: Optional[str] = None,
            status: Optional[str] = None) -> LakeAccount
    func GetLakeAccount(ctx *Context, name string, id IDInput, state *LakeAccountState, opts ...ResourceOption) (*LakeAccount, error)
    public static LakeAccount Get(string name, Input<string> id, LakeAccountState? state, CustomResourceOptions? opts = null)
    public static LakeAccount get(String name, Output<String> id, LakeAccountState 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:
    AccountDescription string
    The description of the account.
    AccountName string
    The name of the account.
    AccountPassword string
    AccountPassword.
    AccountPrivileges List<Pulumi.AliCloud.Adb.Inputs.LakeAccountAccountPrivilege>
    List of permissions granted. See account_privileges below.
    AccountType string
    The type of the account.
    DbClusterId string
    The DBCluster ID.
    Status string
    The status of the resource.
    AccountDescription string
    The description of the account.
    AccountName string
    The name of the account.
    AccountPassword string
    AccountPassword.
    AccountPrivileges []LakeAccountAccountPrivilegeArgs
    List of permissions granted. See account_privileges below.
    AccountType string
    The type of the account.
    DbClusterId string
    The DBCluster ID.
    Status string
    The status of the resource.
    accountDescription String
    The description of the account.
    accountName String
    The name of the account.
    accountPassword String
    AccountPassword.
    accountPrivileges List<LakeAccountAccountPrivilege>
    List of permissions granted. See account_privileges below.
    accountType String
    The type of the account.
    dbClusterId String
    The DBCluster ID.
    status String
    The status of the resource.
    accountDescription string
    The description of the account.
    accountName string
    The name of the account.
    accountPassword string
    AccountPassword.
    accountPrivileges LakeAccountAccountPrivilege[]
    List of permissions granted. See account_privileges below.
    accountType string
    The type of the account.
    dbClusterId string
    The DBCluster ID.
    status string
    The status of the resource.
    account_description str
    The description of the account.
    account_name str
    The name of the account.
    account_password str
    AccountPassword.
    account_privileges Sequence[LakeAccountAccountPrivilegeArgs]
    List of permissions granted. See account_privileges below.
    account_type str
    The type of the account.
    db_cluster_id str
    The DBCluster ID.
    status str
    The status of the resource.
    accountDescription String
    The description of the account.
    accountName String
    The name of the account.
    accountPassword String
    AccountPassword.
    accountPrivileges List<Property Map>
    List of permissions granted. See account_privileges below.
    accountType String
    The type of the account.
    dbClusterId String
    The DBCluster ID.
    status String
    The status of the resource.

    Supporting Types

    LakeAccountAccountPrivilege, LakeAccountAccountPrivilegeArgs

    PrivilegeObject Pulumi.AliCloud.Adb.Inputs.LakeAccountAccountPrivilegePrivilegeObject
    Object associated to privileges. See privilege_object below.
    PrivilegeType string
    The type of privileges.
    Privileges List<string>
    privilege list.
    PrivilegeObject LakeAccountAccountPrivilegePrivilegeObject
    Object associated to privileges. See privilege_object below.
    PrivilegeType string
    The type of privileges.
    Privileges []string
    privilege list.
    privilegeObject LakeAccountAccountPrivilegePrivilegeObject
    Object associated to privileges. See privilege_object below.
    privilegeType String
    The type of privileges.
    privileges List<String>
    privilege list.
    privilegeObject LakeAccountAccountPrivilegePrivilegeObject
    Object associated to privileges. See privilege_object below.
    privilegeType string
    The type of privileges.
    privileges string[]
    privilege list.
    privilege_object LakeAccountAccountPrivilegePrivilegeObject
    Object associated to privileges. See privilege_object below.
    privilege_type str
    The type of privileges.
    privileges Sequence[str]
    privilege list.
    privilegeObject Property Map
    Object associated to privileges. See privilege_object below.
    privilegeType String
    The type of privileges.
    privileges List<String>
    privilege list.

    LakeAccountAccountPrivilegePrivilegeObject, LakeAccountAccountPrivilegePrivilegeObjectArgs

    Column string
    Database string
    Table string
    Column string
    Database string
    Table string
    column String
    database String
    table String
    column string
    database string
    table string
    column String
    database String
    table String

    Import

    ADB Lake Account can be imported using the id, e.g.

    $ pulumi import alicloud:adb/lakeAccount:LakeAccount example <db_cluster_id>:<account_name>
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi