1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. gpdb
  5. Account
Alibaba Cloud v3.52.1 published on Thursday, Apr 4, 2024 by Pulumi

alicloud.gpdb.Account

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.52.1 published on Thursday, Apr 4, 2024 by Pulumi

    Provides a GPDB Account resource.

    For information about GPDB Account and how to use it, see What is Account.

    NOTE: Available since v1.142.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 defaultZones = alicloud.gpdb.getZones({});
    const defaultNetworks = alicloud.vpc.getNetworks({
        nameRegex: "^default-NODELETING$",
    });
    const defaultSwitches = Promise.all([defaultNetworks, defaultZones]).then(([defaultNetworks, defaultZones]) => alicloud.vpc.getSwitches({
        vpcId: defaultNetworks.ids?.[0],
        zoneId: defaultZones.ids?.[0],
    }));
    const defaultInstance = new alicloud.gpdb.Instance("defaultInstance", {
        dbInstanceCategory: "HighAvailability",
        dbInstanceClass: "gpdb.group.segsdx1",
        dbInstanceMode: "StorageElastic",
        description: name,
        engine: "gpdb",
        engineVersion: "6.0",
        zoneId: defaultZones.then(defaultZones => defaultZones.ids?.[0]),
        instanceNetworkType: "VPC",
        instanceSpec: "2C16G",
        masterNodeNum: 1,
        paymentType: "PayAsYouGo",
        privateIpAddress: "1.1.1.1",
        segStorageType: "cloud_essd",
        segNodeNum: 4,
        storageSize: 50,
        vpcId: defaultNetworks.then(defaultNetworks => defaultNetworks.ids?.[0]),
        vswitchId: defaultSwitches.then(defaultSwitches => defaultSwitches.ids?.[0]),
        ipWhitelists: [{
            securityIpList: "127.0.0.1",
        }],
    });
    const defaultAccount = new alicloud.gpdb.Account("defaultAccount", {
        accountName: "tf_example",
        dbInstanceId: defaultInstance.id,
        accountPassword: "Example1234",
        accountDescription: "tf_example",
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "terraform-example"
    default_zones = alicloud.gpdb.get_zones()
    default_networks = alicloud.vpc.get_networks(name_regex="^default-NODELETING$")
    default_switches = alicloud.vpc.get_switches(vpc_id=default_networks.ids[0],
        zone_id=default_zones.ids[0])
    default_instance = alicloud.gpdb.Instance("defaultInstance",
        db_instance_category="HighAvailability",
        db_instance_class="gpdb.group.segsdx1",
        db_instance_mode="StorageElastic",
        description=name,
        engine="gpdb",
        engine_version="6.0",
        zone_id=default_zones.ids[0],
        instance_network_type="VPC",
        instance_spec="2C16G",
        master_node_num=1,
        payment_type="PayAsYouGo",
        private_ip_address="1.1.1.1",
        seg_storage_type="cloud_essd",
        seg_node_num=4,
        storage_size=50,
        vpc_id=default_networks.ids[0],
        vswitch_id=default_switches.ids[0],
        ip_whitelists=[alicloud.gpdb.InstanceIpWhitelistArgs(
            security_ip_list="127.0.0.1",
        )])
    default_account = alicloud.gpdb.Account("defaultAccount",
        account_name="tf_example",
        db_instance_id=default_instance.id,
        account_password="Example1234",
        account_description="tf_example")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/gpdb"
    	"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
    		}
    		defaultZones, err := gpdb.GetZones(ctx, nil, nil)
    		if err != nil {
    			return err
    		}
    		defaultNetworks, err := vpc.GetNetworks(ctx, &vpc.GetNetworksArgs{
    			NameRegex: pulumi.StringRef("^default-NODELETING$"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		defaultSwitches, err := vpc.GetSwitches(ctx, &vpc.GetSwitchesArgs{
    			VpcId:  pulumi.StringRef(defaultNetworks.Ids[0]),
    			ZoneId: pulumi.StringRef(defaultZones.Ids[0]),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		defaultInstance, err := gpdb.NewInstance(ctx, "defaultInstance", &gpdb.InstanceArgs{
    			DbInstanceCategory:  pulumi.String("HighAvailability"),
    			DbInstanceClass:     pulumi.String("gpdb.group.segsdx1"),
    			DbInstanceMode:      pulumi.String("StorageElastic"),
    			Description:         pulumi.String(name),
    			Engine:              pulumi.String("gpdb"),
    			EngineVersion:       pulumi.String("6.0"),
    			ZoneId:              pulumi.String(defaultZones.Ids[0]),
    			InstanceNetworkType: pulumi.String("VPC"),
    			InstanceSpec:        pulumi.String("2C16G"),
    			MasterNodeNum:       pulumi.Int(1),
    			PaymentType:         pulumi.String("PayAsYouGo"),
    			PrivateIpAddress:    pulumi.String("1.1.1.1"),
    			SegStorageType:      pulumi.String("cloud_essd"),
    			SegNodeNum:          pulumi.Int(4),
    			StorageSize:         pulumi.Int(50),
    			VpcId:               pulumi.String(defaultNetworks.Ids[0]),
    			VswitchId:           pulumi.String(defaultSwitches.Ids[0]),
    			IpWhitelists: gpdb.InstanceIpWhitelistArray{
    				&gpdb.InstanceIpWhitelistArgs{
    					SecurityIpList: pulumi.String("127.0.0.1"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = gpdb.NewAccount(ctx, "defaultAccount", &gpdb.AccountArgs{
    			AccountName:        pulumi.String("tf_example"),
    			DbInstanceId:       defaultInstance.ID(),
    			AccountPassword:    pulumi.String("Example1234"),
    			AccountDescription: pulumi.String("tf_example"),
    		})
    		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 defaultZones = AliCloud.Gpdb.GetZones.Invoke();
    
        var defaultNetworks = AliCloud.Vpc.GetNetworks.Invoke(new()
        {
            NameRegex = "^default-NODELETING$",
        });
    
        var defaultSwitches = AliCloud.Vpc.GetSwitches.Invoke(new()
        {
            VpcId = defaultNetworks.Apply(getNetworksResult => getNetworksResult.Ids[0]),
            ZoneId = defaultZones.Apply(getZonesResult => getZonesResult.Ids[0]),
        });
    
        var defaultInstance = new AliCloud.Gpdb.Instance("defaultInstance", new()
        {
            DbInstanceCategory = "HighAvailability",
            DbInstanceClass = "gpdb.group.segsdx1",
            DbInstanceMode = "StorageElastic",
            Description = name,
            Engine = "gpdb",
            EngineVersion = "6.0",
            ZoneId = defaultZones.Apply(getZonesResult => getZonesResult.Ids[0]),
            InstanceNetworkType = "VPC",
            InstanceSpec = "2C16G",
            MasterNodeNum = 1,
            PaymentType = "PayAsYouGo",
            PrivateIpAddress = "1.1.1.1",
            SegStorageType = "cloud_essd",
            SegNodeNum = 4,
            StorageSize = 50,
            VpcId = defaultNetworks.Apply(getNetworksResult => getNetworksResult.Ids[0]),
            VswitchId = defaultSwitches.Apply(getSwitchesResult => getSwitchesResult.Ids[0]),
            IpWhitelists = new[]
            {
                new AliCloud.Gpdb.Inputs.InstanceIpWhitelistArgs
                {
                    SecurityIpList = "127.0.0.1",
                },
            },
        });
    
        var defaultAccount = new AliCloud.Gpdb.Account("defaultAccount", new()
        {
            AccountName = "tf_example",
            DbInstanceId = defaultInstance.Id,
            AccountPassword = "Example1234",
            AccountDescription = "tf_example",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.gpdb.GpdbFunctions;
    import com.pulumi.alicloud.gpdb.inputs.GetZonesArgs;
    import com.pulumi.alicloud.vpc.VpcFunctions;
    import com.pulumi.alicloud.vpc.inputs.GetNetworksArgs;
    import com.pulumi.alicloud.vpc.inputs.GetSwitchesArgs;
    import com.pulumi.alicloud.gpdb.Instance;
    import com.pulumi.alicloud.gpdb.InstanceArgs;
    import com.pulumi.alicloud.gpdb.inputs.InstanceIpWhitelistArgs;
    import com.pulumi.alicloud.gpdb.Account;
    import com.pulumi.alicloud.gpdb.AccountArgs;
    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 defaultZones = GpdbFunctions.getZones();
    
            final var defaultNetworks = VpcFunctions.getNetworks(GetNetworksArgs.builder()
                .nameRegex("^default-NODELETING$")
                .build());
    
            final var defaultSwitches = VpcFunctions.getSwitches(GetSwitchesArgs.builder()
                .vpcId(defaultNetworks.applyValue(getNetworksResult -> getNetworksResult.ids()[0]))
                .zoneId(defaultZones.applyValue(getZonesResult -> getZonesResult.ids()[0]))
                .build());
    
            var defaultInstance = new Instance("defaultInstance", InstanceArgs.builder()        
                .dbInstanceCategory("HighAvailability")
                .dbInstanceClass("gpdb.group.segsdx1")
                .dbInstanceMode("StorageElastic")
                .description(name)
                .engine("gpdb")
                .engineVersion("6.0")
                .zoneId(defaultZones.applyValue(getZonesResult -> getZonesResult.ids()[0]))
                .instanceNetworkType("VPC")
                .instanceSpec("2C16G")
                .masterNodeNum(1)
                .paymentType("PayAsYouGo")
                .privateIpAddress("1.1.1.1")
                .segStorageType("cloud_essd")
                .segNodeNum(4)
                .storageSize(50)
                .vpcId(defaultNetworks.applyValue(getNetworksResult -> getNetworksResult.ids()[0]))
                .vswitchId(defaultSwitches.applyValue(getSwitchesResult -> getSwitchesResult.ids()[0]))
                .ipWhitelists(InstanceIpWhitelistArgs.builder()
                    .securityIpList("127.0.0.1")
                    .build())
                .build());
    
            var defaultAccount = new Account("defaultAccount", AccountArgs.builder()        
                .accountName("tf_example")
                .dbInstanceId(defaultInstance.id())
                .accountPassword("Example1234")
                .accountDescription("tf_example")
                .build());
    
        }
    }
    
    configuration:
      name:
        type: string
        default: terraform-example
    resources:
      defaultInstance:
        type: alicloud:gpdb:Instance
        properties:
          dbInstanceCategory: HighAvailability
          dbInstanceClass: gpdb.group.segsdx1
          dbInstanceMode: StorageElastic
          description: ${name}
          engine: gpdb
          engineVersion: '6.0'
          zoneId: ${defaultZones.ids[0]}
          instanceNetworkType: VPC
          instanceSpec: 2C16G
          masterNodeNum: 1
          paymentType: PayAsYouGo
          privateIpAddress: 1.1.1.1
          segStorageType: cloud_essd
          segNodeNum: 4
          storageSize: 50
          vpcId: ${defaultNetworks.ids[0]}
          vswitchId: ${defaultSwitches.ids[0]}
          ipWhitelists:
            - securityIpList: 127.0.0.1
      defaultAccount:
        type: alicloud:gpdb:Account
        properties:
          accountName: tf_example
          dbInstanceId: ${defaultInstance.id}
          accountPassword: Example1234
          accountDescription: tf_example
    variables:
      defaultZones:
        fn::invoke:
          Function: alicloud:gpdb:getZones
          Arguments: {}
      defaultNetworks:
        fn::invoke:
          Function: alicloud:vpc:getNetworks
          Arguments:
            nameRegex: ^default-NODELETING$
      defaultSwitches:
        fn::invoke:
          Function: alicloud:vpc:getSwitches
          Arguments:
            vpcId: ${defaultNetworks.ids[0]}
            zoneId: ${defaultZones.ids[0]}
    

    Create Account Resource

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

    Constructor syntax

    new Account(name: string, args: AccountArgs, opts?: CustomResourceOptions);
    @overload
    def Account(resource_name: str,
                args: AccountArgs,
                opts: Optional[ResourceOptions] = None)
    
    @overload
    def Account(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                account_name: Optional[str] = None,
                account_password: Optional[str] = None,
                db_instance_id: Optional[str] = None,
                account_description: Optional[str] = None)
    func NewAccount(ctx *Context, name string, args AccountArgs, opts ...ResourceOption) (*Account, error)
    public Account(string name, AccountArgs args, CustomResourceOptions? opts = null)
    public Account(String name, AccountArgs args)
    public Account(String name, AccountArgs args, CustomResourceOptions options)
    
    type: alicloud:gpdb:Account
    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 AccountArgs
    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 AccountArgs
    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 AccountArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AccountArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AccountArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var exampleaccountResourceResourceFromGpdbaccount = new AliCloud.Gpdb.Account("exampleaccountResourceResourceFromGpdbaccount", new()
    {
        AccountName = "string",
        AccountPassword = "string",
        DbInstanceId = "string",
        AccountDescription = "string",
    });
    
    example, err := gpdb.NewAccount(ctx, "exampleaccountResourceResourceFromGpdbaccount", &gpdb.AccountArgs{
    	AccountName:        pulumi.String("string"),
    	AccountPassword:    pulumi.String("string"),
    	DbInstanceId:       pulumi.String("string"),
    	AccountDescription: pulumi.String("string"),
    })
    
    var exampleaccountResourceResourceFromGpdbaccount = new Account("exampleaccountResourceResourceFromGpdbaccount", AccountArgs.builder()        
        .accountName("string")
        .accountPassword("string")
        .dbInstanceId("string")
        .accountDescription("string")
        .build());
    
    exampleaccount_resource_resource_from_gpdbaccount = alicloud.gpdb.Account("exampleaccountResourceResourceFromGpdbaccount",
        account_name="string",
        account_password="string",
        db_instance_id="string",
        account_description="string")
    
    const exampleaccountResourceResourceFromGpdbaccount = new alicloud.gpdb.Account("exampleaccountResourceResourceFromGpdbaccount", {
        accountName: "string",
        accountPassword: "string",
        dbInstanceId: "string",
        accountDescription: "string",
    });
    
    type: alicloud:gpdb:Account
    properties:
        accountDescription: string
        accountName: string
        accountPassword: string
        dbInstanceId: string
    

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

    AccountName string
    The name of the account. The account name must be unique and meet the following requirements:

    • Starts with a letter.
    • Contains only lowercase letters, digits, or underscores (_).
    • Be up to 16 characters in length.
    • Contains no reserved keywords.
    AccountPassword string
    The password of the account. The password must be 8 to 32 characters in length and contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include ! @ # $ %!^(MISSING) & * ( ) _ + - =.
    DbInstanceId string
    The ID of the instance.
    AccountDescription string
    The description of the account.

    • Starts with a letter.
    • Does not start with http:// or https://.
    • Contains letters, underscores (_), hyphens (-), or digits.
    • Be 2 to 256 characters in length.
    AccountName string
    The name of the account. The account name must be unique and meet the following requirements:

    • Starts with a letter.
    • Contains only lowercase letters, digits, or underscores (_).
    • Be up to 16 characters in length.
    • Contains no reserved keywords.
    AccountPassword string
    The password of the account. The password must be 8 to 32 characters in length and contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include ! @ # $ %!^(MISSING) & * ( ) _ + - =.
    DbInstanceId string
    The ID of the instance.
    AccountDescription string
    The description of the account.

    • Starts with a letter.
    • Does not start with http:// or https://.
    • Contains letters, underscores (_), hyphens (-), or digits.
    • Be 2 to 256 characters in length.
    accountName String
    The name of the account. The account name must be unique and meet the following requirements:

    • Starts with a letter.
    • Contains only lowercase letters, digits, or underscores (_).
    • Be up to 16 characters in length.
    • Contains no reserved keywords.
    accountPassword String
    The password of the account. The password must be 8 to 32 characters in length and contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include ! @ # $ %!^(MISSING) & * ( ) _ + - =.
    dbInstanceId String
    The ID of the instance.
    accountDescription String
    The description of the account.

    • Starts with a letter.
    • Does not start with http:// or https://.
    • Contains letters, underscores (_), hyphens (-), or digits.
    • Be 2 to 256 characters in length.
    accountName string
    The name of the account. The account name must be unique and meet the following requirements:

    • Starts with a letter.
    • Contains only lowercase letters, digits, or underscores (_).
    • Be up to 16 characters in length.
    • Contains no reserved keywords.
    accountPassword string
    The password of the account. The password must be 8 to 32 characters in length and contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include ! @ # $ %!^(MISSING) & * ( ) _ + - =.
    dbInstanceId string
    The ID of the instance.
    accountDescription string
    The description of the account.

    • Starts with a letter.
    • Does not start with http:// or https://.
    • Contains letters, underscores (_), hyphens (-), or digits.
    • Be 2 to 256 characters in length.
    account_name str
    The name of the account. The account name must be unique and meet the following requirements:

    • Starts with a letter.
    • Contains only lowercase letters, digits, or underscores (_).
    • Be up to 16 characters in length.
    • Contains no reserved keywords.
    account_password str
    The password of the account. The password must be 8 to 32 characters in length and contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include ! @ # $ %!^(MISSING) & * ( ) _ + - =.
    db_instance_id str
    The ID of the instance.
    account_description str
    The description of the account.

    • Starts with a letter.
    • Does not start with http:// or https://.
    • Contains letters, underscores (_), hyphens (-), or digits.
    • Be 2 to 256 characters in length.
    accountName String
    The name of the account. The account name must be unique and meet the following requirements:

    • Starts with a letter.
    • Contains only lowercase letters, digits, or underscores (_).
    • Be up to 16 characters in length.
    • Contains no reserved keywords.
    accountPassword String
    The password of the account. The password must be 8 to 32 characters in length and contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include ! @ # $ %!^(MISSING) & * ( ) _ + - =.
    dbInstanceId String
    The ID of the instance.
    accountDescription String
    The description of the account.

    • Starts with a letter.
    • Does not start with http:// or https://.
    • Contains letters, underscores (_), hyphens (-), or digits.
    • Be 2 to 256 characters in length.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    The status of the account. Valid values: Active, Creating and Deleting.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    The status of the account. Valid values: Active, Creating and Deleting.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    The status of the account. Valid values: Active, Creating and Deleting.
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    The status of the account. Valid values: Active, Creating and Deleting.
    id str
    The provider-assigned unique ID for this managed resource.
    status str
    The status of the account. Valid values: Active, Creating and Deleting.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    The status of the account. Valid values: Active, Creating and Deleting.

    Look up Existing Account Resource

    Get an existing Account 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?: AccountState, opts?: CustomResourceOptions): Account
    @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,
            db_instance_id: Optional[str] = None,
            status: Optional[str] = None) -> Account
    func GetAccount(ctx *Context, name string, id IDInput, state *AccountState, opts ...ResourceOption) (*Account, error)
    public static Account Get(string name, Input<string> id, AccountState? state, CustomResourceOptions? opts = null)
    public static Account get(String name, Output<String> id, AccountState 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.

    • Starts with a letter.
    • Does not start with http:// or https://.
    • Contains letters, underscores (_), hyphens (-), or digits.
    • Be 2 to 256 characters in length.
    AccountName string
    The name of the account. The account name must be unique and meet the following requirements:

    • Starts with a letter.
    • Contains only lowercase letters, digits, or underscores (_).
    • Be up to 16 characters in length.
    • Contains no reserved keywords.
    AccountPassword string
    The password of the account. The password must be 8 to 32 characters in length and contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include ! @ # $ %!^(MISSING) & * ( ) _ + - =.
    DbInstanceId string
    The ID of the instance.
    Status string
    The status of the account. Valid values: Active, Creating and Deleting.
    AccountDescription string
    The description of the account.

    • Starts with a letter.
    • Does not start with http:// or https://.
    • Contains letters, underscores (_), hyphens (-), or digits.
    • Be 2 to 256 characters in length.
    AccountName string
    The name of the account. The account name must be unique and meet the following requirements:

    • Starts with a letter.
    • Contains only lowercase letters, digits, or underscores (_).
    • Be up to 16 characters in length.
    • Contains no reserved keywords.
    AccountPassword string
    The password of the account. The password must be 8 to 32 characters in length and contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include ! @ # $ %!^(MISSING) & * ( ) _ + - =.
    DbInstanceId string
    The ID of the instance.
    Status string
    The status of the account. Valid values: Active, Creating and Deleting.
    accountDescription String
    The description of the account.

    • Starts with a letter.
    • Does not start with http:// or https://.
    • Contains letters, underscores (_), hyphens (-), or digits.
    • Be 2 to 256 characters in length.
    accountName String
    The name of the account. The account name must be unique and meet the following requirements:

    • Starts with a letter.
    • Contains only lowercase letters, digits, or underscores (_).
    • Be up to 16 characters in length.
    • Contains no reserved keywords.
    accountPassword String
    The password of the account. The password must be 8 to 32 characters in length and contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include ! @ # $ %!^(MISSING) & * ( ) _ + - =.
    dbInstanceId String
    The ID of the instance.
    status String
    The status of the account. Valid values: Active, Creating and Deleting.
    accountDescription string
    The description of the account.

    • Starts with a letter.
    • Does not start with http:// or https://.
    • Contains letters, underscores (_), hyphens (-), or digits.
    • Be 2 to 256 characters in length.
    accountName string
    The name of the account. The account name must be unique and meet the following requirements:

    • Starts with a letter.
    • Contains only lowercase letters, digits, or underscores (_).
    • Be up to 16 characters in length.
    • Contains no reserved keywords.
    accountPassword string
    The password of the account. The password must be 8 to 32 characters in length and contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include ! @ # $ %!^(MISSING) & * ( ) _ + - =.
    dbInstanceId string
    The ID of the instance.
    status string
    The status of the account. Valid values: Active, Creating and Deleting.
    account_description str
    The description of the account.

    • Starts with a letter.
    • Does not start with http:// or https://.
    • Contains letters, underscores (_), hyphens (-), or digits.
    • Be 2 to 256 characters in length.
    account_name str
    The name of the account. The account name must be unique and meet the following requirements:

    • Starts with a letter.
    • Contains only lowercase letters, digits, or underscores (_).
    • Be up to 16 characters in length.
    • Contains no reserved keywords.
    account_password str
    The password of the account. The password must be 8 to 32 characters in length and contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include ! @ # $ %!^(MISSING) & * ( ) _ + - =.
    db_instance_id str
    The ID of the instance.
    status str
    The status of the account. Valid values: Active, Creating and Deleting.
    accountDescription String
    The description of the account.

    • Starts with a letter.
    • Does not start with http:// or https://.
    • Contains letters, underscores (_), hyphens (-), or digits.
    • Be 2 to 256 characters in length.
    accountName String
    The name of the account. The account name must be unique and meet the following requirements:

    • Starts with a letter.
    • Contains only lowercase letters, digits, or underscores (_).
    • Be up to 16 characters in length.
    • Contains no reserved keywords.
    accountPassword String
    The password of the account. The password must be 8 to 32 characters in length and contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include ! @ # $ %!^(MISSING) & * ( ) _ + - =.
    dbInstanceId String
    The ID of the instance.
    status String
    The status of the account. Valid values: Active, Creating and Deleting.

    Import

    GPDB Account can be imported using the id, e.g.

    $ pulumi import alicloud:gpdb/account:Account example <db_instance_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.52.1 published on Thursday, Apr 4, 2024 by Pulumi