1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. governance
  5. Account
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi

alicloud.governance.Account

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 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,
                account_tags: Optional[Sequence[AccountAccountTagArgs]] = None,
                default_domain_name: 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",
        AccountTags = new[]
        {
            new AliCloud.Governance.Inputs.AccountAccountTagArgs
            {
                TagKey = "string",
                TagValue = "string",
            },
        },
        DefaultDomainName = "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"),
    	AccountTags: governance.AccountAccountTagArray{
    		&governance.AccountAccountTagArgs{
    			TagKey:   pulumi.String("string"),
    			TagValue: pulumi.String("string"),
    		},
    	},
    	DefaultDomainName: 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")
        .accountTags(AccountAccountTagArgs.builder()
            .tagKey("string")
            .tagValue("string")
            .build())
        .defaultDomainName("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",
        account_tags=[{
            "tag_key": "string",
            "tag_value": "string",
        }],
        default_domain_name="string",
        display_name="string",
        folder_id="string",
        payer_account_id=0)
    
    const exampleaccountResourceResourceFromGovernanceaccount = new alicloud.governance.Account("exampleaccountResourceResourceFromGovernanceaccount", {
        baselineId: "string",
        accountId: 0,
        accountNamePrefix: "string",
        accountTags: [{
            tagKey: "string",
            tagValue: "string",
        }],
        defaultDomainName: "string",
        displayName: "string",
        folderId: "string",
        payerAccountId: 0,
    });
    
    type: alicloud:governance:Account
    properties:
        accountId: 0
        accountNamePrefix: string
        accountTags:
            - tagKey: string
              tagValue: string
        baselineId: string
        defaultDomainName: 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

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    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.
    AccountTags List<Pulumi.AliCloud.Governance.Inputs.AccountAccountTag>
    The tags of the account See account_tags below.
    DefaultDomainName string
    The domain name is used to qualify the login name of RAM users and RAM roles.
    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.
    AccountTags []AccountAccountTagArgs
    The tags of the account See account_tags below.
    DefaultDomainName string
    The domain name is used to qualify the login name of RAM users and RAM roles.
    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.
    accountTags List<AccountAccountTag>
    The tags of the account See account_tags below.
    defaultDomainName String
    The domain name is used to qualify the login name of RAM users and RAM roles.
    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.
    accountTags AccountAccountTag[]
    The tags of the account See account_tags below.
    defaultDomainName string
    The domain name is used to qualify the login name of RAM users and RAM roles.
    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.
    account_tags Sequence[AccountAccountTagArgs]
    The tags of the account See account_tags below.
    default_domain_name str
    The domain name is used to qualify the login name of RAM users and RAM roles.
    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.
    accountTags List<Property Map>
    The tags of the account See account_tags below.
    defaultDomainName String
    The domain name is used to qualify the login name of RAM users and RAM roles.
    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,
            account_tags: Optional[Sequence[AccountAccountTagArgs]] = None,
            baseline_id: Optional[str] = None,
            default_domain_name: 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.
    AccountTags List<Pulumi.AliCloud.Governance.Inputs.AccountAccountTag>
    The tags of the account See account_tags below.
    BaselineId string

    The baseline ID.

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

    DefaultDomainName string
    The domain name is used to qualify the login name of RAM users and RAM roles.
    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.
    AccountTags []AccountAccountTagArgs
    The tags of the account See account_tags below.
    BaselineId string

    The baseline ID.

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

    DefaultDomainName string
    The domain name is used to qualify the login name of RAM users and RAM roles.
    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.
    accountTags List<AccountAccountTag>
    The tags of the account See account_tags below.
    baselineId String

    The baseline ID.

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

    defaultDomainName String
    The domain name is used to qualify the login name of RAM users and RAM roles.
    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.
    accountTags AccountAccountTag[]
    The tags of the account See account_tags below.
    baselineId string

    The baseline ID.

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

    defaultDomainName string
    The domain name is used to qualify the login name of RAM users and RAM roles.
    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.
    account_tags Sequence[AccountAccountTagArgs]
    The tags of the account See account_tags below.
    baseline_id str

    The baseline ID.

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

    default_domain_name str
    The domain name is used to qualify the login name of RAM users and RAM roles.
    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.
    accountTags List<Property Map>
    The tags of the account See account_tags below.
    baselineId String

    The baseline ID.

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

    defaultDomainName String
    The domain name is used to qualify the login name of RAM users and RAM roles.
    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:

    Supporting Types

    AccountAccountTag, AccountAccountTagArgs

    TagKey string
    The key of the tags
    TagValue string
    The value of the tags
    TagKey string
    The key of the tags
    TagValue string
    The value of the tags
    tagKey String
    The key of the tags
    tagValue String
    The value of the tags
    tagKey string
    The key of the tags
    tagValue string
    The value of the tags
    tag_key str
    The key of the tags
    tag_value str
    The value of the tags
    tagKey String
    The key of the tags
    tagValue String
    The value of the tags

    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.66.0 published on Friday, Nov 15, 2024 by Pulumi