1. Packages
  2. Alicloud Provider
  3. API Docs
  4. governance
  5. Account
Alibaba Cloud v3.62.1 published on Monday, Sep 16, 2024 by Pulumi

alicloud.governance.Account

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.62.1 published on Monday, Sep 16, 2024 by Pulumi

    Import

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

    $ pulumi import alicloud:governance/account:Account example <id>
    

    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,
                baseline_id: Optional[str] = None,
                account_id: Optional[int] = None,
                account_name_prefix: Optional[str] = None,
                display_name: Optional[str] = None,
                folder_id: Optional[str] = None,
                payer_account_id: Optional[int] = 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:governance: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.

    Constructor example

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

    var exampleaccountResourceResourceFromGovernanceaccount = new AliCloud.Governance.Account("exampleaccountResourceResourceFromGovernanceaccount", new()
    {
        BaselineId = "string",
        AccountId = 0,
        AccountNamePrefix = "string",
        DisplayName = "string",
        FolderId = "string",
        PayerAccountId = 0,
    });
    
    example, err := governance.NewAccount(ctx, "exampleaccountResourceResourceFromGovernanceaccount", &governance.AccountArgs{
    	BaselineId:        pulumi.String("string"),
    	AccountId:         pulumi.Int(0),
    	AccountNamePrefix: pulumi.String("string"),
    	DisplayName:       pulumi.String("string"),
    	FolderId:          pulumi.String("string"),
    	PayerAccountId:    pulumi.Int(0),
    })
    
    var exampleaccountResourceResourceFromGovernanceaccount = new Account("exampleaccountResourceResourceFromGovernanceaccount", AccountArgs.builder()
        .baselineId("string")
        .accountId(0)
        .accountNamePrefix("string")
        .displayName("string")
        .folderId("string")
        .payerAccountId(0)
        .build());
    
    exampleaccount_resource_resource_from_governanceaccount = alicloud.governance.Account("exampleaccountResourceResourceFromGovernanceaccount",
        baseline_id="string",
        account_id=0,
        account_name_prefix="string",
        display_name="string",
        folder_id="string",
        payer_account_id=0)
    
    const exampleaccountResourceResourceFromGovernanceaccount = new alicloud.governance.Account("exampleaccountResourceResourceFromGovernanceaccount", {
        baselineId: "string",
        accountId: 0,
        accountNamePrefix: "string",
        displayName: "string",
        folderId: "string",
        payerAccountId: 0,
    });
    
    type: alicloud:governance:Account
    properties:
        accountId: 0
        accountNamePrefix: string
        baselineId: string
        displayName: string
        folderId: string
        payerAccountId: 0
    

    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:

    BaselineId string

    The baseline ID.

    If it is left blank, the system default baseline is used by default.

    AccountId int
    The ID of the enrolled account.

    • If you are creating a new resource account, this parameter is not required.
    • If you are enrolling a existing account to account factory, this parameter is required.
    AccountNamePrefix string
    Account name prefix.

    • This parameter is required if you are creating a new resource account.
    • If the registration application is applied to an existing account, this parameter does not need to be filled in.
    DisplayName string
    The account display name.

    • This parameter is required if you are creating a new resource account.
    • If the registration application is applied to an existing account, this parameter does not need to be filled in.
    FolderId string

    The ID of the parent resource folder.

    If you want to create a new resource account and leave this parameter blank, the account is created in the Root folder by default.

    If the registration application is applied to an existing account, this parameter does not need to be filled in.

    PayerAccountId int
    The ID of the billing account. If you leave this parameter empty, the current account is used as the billing account.
    BaselineId string

    The baseline ID.

    If it is left blank, the system default baseline is used by default.

    AccountId int
    The ID of the enrolled account.

    • If you are creating a new resource account, this parameter is not required.
    • If you are enrolling a existing account to account factory, this parameter is required.
    AccountNamePrefix string
    Account name prefix.

    • This parameter is required if you are creating a new resource account.
    • If the registration application is applied to an existing account, this parameter does not need to be filled in.
    DisplayName string
    The account display name.

    • This parameter is required if you are creating a new resource account.
    • If the registration application is applied to an existing account, this parameter does not need to be filled in.
    FolderId string

    The ID of the parent resource folder.

    If you want to create a new resource account and leave this parameter blank, the account is created in the Root folder by default.

    If the registration application is applied to an existing account, this parameter does not need to be filled in.

    PayerAccountId int
    The ID of the billing account. If you leave this parameter empty, the current account is used as the billing account.
    baselineId String

    The baseline ID.

    If it is left blank, the system default baseline is used by default.

    accountId Integer
    The ID of the enrolled account.

    • If you are creating a new resource account, this parameter is not required.
    • If you are enrolling a existing account to account factory, this parameter is required.
    accountNamePrefix String
    Account name prefix.

    • This parameter is required if you are creating a new resource account.
    • If the registration application is applied to an existing account, this parameter does not need to be filled in.
    displayName String
    The account display name.

    • This parameter is required if you are creating a new resource account.
    • If the registration application is applied to an existing account, this parameter does not need to be filled in.
    folderId String

    The ID of the parent resource folder.

    If you want to create a new resource account and leave this parameter blank, the account is created in the Root folder by default.

    If the registration application is applied to an existing account, this parameter does not need to be filled in.

    payerAccountId Integer
    The ID of the billing account. If you leave this parameter empty, the current account is used as the billing account.
    baselineId string

    The baseline ID.

    If it is left blank, the system default baseline is used by default.

    accountId number
    The ID of the enrolled account.

    • If you are creating a new resource account, this parameter is not required.
    • If you are enrolling a existing account to account factory, this parameter is required.
    accountNamePrefix string
    Account name prefix.

    • This parameter is required if you are creating a new resource account.
    • If the registration application is applied to an existing account, this parameter does not need to be filled in.
    displayName string
    The account display name.

    • This parameter is required if you are creating a new resource account.
    • If the registration application is applied to an existing account, this parameter does not need to be filled in.
    folderId string

    The ID of the parent resource folder.

    If you want to create a new resource account and leave this parameter blank, the account is created in the Root folder by default.

    If the registration application is applied to an existing account, this parameter does not need to be filled in.

    payerAccountId number
    The ID of the billing account. If you leave this parameter empty, the current account is used as the billing account.
    baseline_id str

    The baseline ID.

    If it is left blank, the system default baseline is used by default.

    account_id int
    The ID of the enrolled account.

    • If you are creating a new resource account, this parameter is not required.
    • If you are enrolling a existing account to account factory, this parameter is required.
    account_name_prefix str
    Account name prefix.

    • This parameter is required if you are creating a new resource account.
    • If the registration application is applied to an existing account, this parameter does not need to be filled in.
    display_name str
    The account display name.

    • This parameter is required if you are creating a new resource account.
    • If the registration application is applied to an existing account, this parameter does not need to be filled in.
    folder_id str

    The ID of the parent resource folder.

    If you want to create a new resource account and leave this parameter blank, the account is created in the Root folder by default.

    If the registration application is applied to an existing account, this parameter does not need to be filled in.

    payer_account_id int
    The ID of the billing account. If you leave this parameter empty, the current account is used as the billing account.
    baselineId String

    The baseline ID.

    If it is left blank, the system default baseline is used by default.

    accountId Number
    The ID of the enrolled account.

    • If you are creating a new resource account, this parameter is not required.
    • If you are enrolling a existing account to account factory, this parameter is required.
    accountNamePrefix String
    Account name prefix.

    • This parameter is required if you are creating a new resource account.
    • If the registration application is applied to an existing account, this parameter does not need to be filled in.
    displayName String
    The account display name.

    • This parameter is required if you are creating a new resource account.
    • If the registration application is applied to an existing account, this parameter does not need to be filled in.
    folderId String

    The ID of the parent resource folder.

    If you want to create a new resource account and leave this parameter blank, the account is created in the Root folder by default.

    If the registration application is applied to an existing account, this parameter does not need to be filled in.

    payerAccountId Number
    The ID of the billing account. If you leave this parameter empty, the current account is used as the billing account.

    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
    Account registration status. Value:
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    Account registration status. Value:
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    Account registration status. Value:
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    Account registration status. Value:
    id str
    The provider-assigned unique ID for this managed resource.
    status str
    Account registration status. Value:
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    Account registration status. Value:

    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_id: Optional[int] = None,
            account_name_prefix: Optional[str] = None,
            baseline_id: Optional[str] = None,
            display_name: Optional[str] = None,
            folder_id: Optional[str] = None,
            payer_account_id: Optional[int] = 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:
    AccountId int
    The ID of the enrolled account.

    • If you are creating a new resource account, this parameter is not required.
    • If you are enrolling a existing account to account factory, this parameter is required.
    AccountNamePrefix string
    Account name prefix.

    • This parameter is required if you are creating a new resource account.
    • If the registration application is applied to an existing account, this parameter does not need to be filled in.
    BaselineId string

    The baseline ID.

    If it is left blank, the system default baseline is used by default.

    DisplayName string
    The account display name.

    • This parameter is required if you are creating a new resource account.
    • If the registration application is applied to an existing account, this parameter does not need to be filled in.
    FolderId string

    The ID of the parent resource folder.

    If you want to create a new resource account and leave this parameter blank, the account is created in the Root folder by default.

    If the registration application is applied to an existing account, this parameter does not need to be filled in.

    PayerAccountId int
    The ID of the billing account. If you leave this parameter empty, the current account is used as the billing account.
    Status string
    Account registration status. Value:
    AccountId int
    The ID of the enrolled account.

    • If you are creating a new resource account, this parameter is not required.
    • If you are enrolling a existing account to account factory, this parameter is required.
    AccountNamePrefix string
    Account name prefix.

    • This parameter is required if you are creating a new resource account.
    • If the registration application is applied to an existing account, this parameter does not need to be filled in.
    BaselineId string

    The baseline ID.

    If it is left blank, the system default baseline is used by default.

    DisplayName string
    The account display name.

    • This parameter is required if you are creating a new resource account.
    • If the registration application is applied to an existing account, this parameter does not need to be filled in.
    FolderId string

    The ID of the parent resource folder.

    If you want to create a new resource account and leave this parameter blank, the account is created in the Root folder by default.

    If the registration application is applied to an existing account, this parameter does not need to be filled in.

    PayerAccountId int
    The ID of the billing account. If you leave this parameter empty, the current account is used as the billing account.
    Status string
    Account registration status. Value:
    accountId Integer
    The ID of the enrolled account.

    • If you are creating a new resource account, this parameter is not required.
    • If you are enrolling a existing account to account factory, this parameter is required.
    accountNamePrefix String
    Account name prefix.

    • This parameter is required if you are creating a new resource account.
    • If the registration application is applied to an existing account, this parameter does not need to be filled in.
    baselineId String

    The baseline ID.

    If it is left blank, the system default baseline is used by default.

    displayName String
    The account display name.

    • This parameter is required if you are creating a new resource account.
    • If the registration application is applied to an existing account, this parameter does not need to be filled in.
    folderId String

    The ID of the parent resource folder.

    If you want to create a new resource account and leave this parameter blank, the account is created in the Root folder by default.

    If the registration application is applied to an existing account, this parameter does not need to be filled in.

    payerAccountId Integer
    The ID of the billing account. If you leave this parameter empty, the current account is used as the billing account.
    status String
    Account registration status. Value:
    accountId number
    The ID of the enrolled account.

    • If you are creating a new resource account, this parameter is not required.
    • If you are enrolling a existing account to account factory, this parameter is required.
    accountNamePrefix string
    Account name prefix.

    • This parameter is required if you are creating a new resource account.
    • If the registration application is applied to an existing account, this parameter does not need to be filled in.
    baselineId string

    The baseline ID.

    If it is left blank, the system default baseline is used by default.

    displayName string
    The account display name.

    • This parameter is required if you are creating a new resource account.
    • If the registration application is applied to an existing account, this parameter does not need to be filled in.
    folderId string

    The ID of the parent resource folder.

    If you want to create a new resource account and leave this parameter blank, the account is created in the Root folder by default.

    If the registration application is applied to an existing account, this parameter does not need to be filled in.

    payerAccountId number
    The ID of the billing account. If you leave this parameter empty, the current account is used as the billing account.
    status string
    Account registration status. Value:
    account_id int
    The ID of the enrolled account.

    • If you are creating a new resource account, this parameter is not required.
    • If you are enrolling a existing account to account factory, this parameter is required.
    account_name_prefix str
    Account name prefix.

    • This parameter is required if you are creating a new resource account.
    • If the registration application is applied to an existing account, this parameter does not need to be filled in.
    baseline_id str

    The baseline ID.

    If it is left blank, the system default baseline is used by default.

    display_name str
    The account display name.

    • This parameter is required if you are creating a new resource account.
    • If the registration application is applied to an existing account, this parameter does not need to be filled in.
    folder_id str

    The ID of the parent resource folder.

    If you want to create a new resource account and leave this parameter blank, the account is created in the Root folder by default.

    If the registration application is applied to an existing account, this parameter does not need to be filled in.

    payer_account_id int
    The ID of the billing account. If you leave this parameter empty, the current account is used as the billing account.
    status str
    Account registration status. Value:
    accountId Number
    The ID of the enrolled account.

    • If you are creating a new resource account, this parameter is not required.
    • If you are enrolling a existing account to account factory, this parameter is required.
    accountNamePrefix String
    Account name prefix.

    • This parameter is required if you are creating a new resource account.
    • If the registration application is applied to an existing account, this parameter does not need to be filled in.
    baselineId String

    The baseline ID.

    If it is left blank, the system default baseline is used by default.

    displayName String
    The account display name.

    • This parameter is required if you are creating a new resource account.
    • If the registration application is applied to an existing account, this parameter does not need to be filled in.
    folderId String

    The ID of the parent resource folder.

    If you want to create a new resource account and leave this parameter blank, the account is created in the Root folder by default.

    If the registration application is applied to an existing account, this parameter does not need to be filled in.

    payerAccountId Number
    The ID of the billing account. If you leave this parameter empty, the current account is used as the billing account.
    status String
    Account registration status. Value:

    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.62.1 published on Monday, Sep 16, 2024 by Pulumi