alicloud.governance.Account
Explore with Pulumi AI
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:
- Baseline
Id string 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 stringPrefix - 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 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.
- Folder
Id 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.
- Payer
Account intId - The ID of the billing account. If you leave this parameter empty, the current account is used as the billing account.
- Baseline
Id string 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 stringPrefix - 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 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.
- Folder
Id 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.
- Payer
Account intId - The ID of the billing account. If you leave this parameter empty, the current account is used as the billing account.
- baseline
Id String The baseline ID.
If it is left blank, the system default baseline is used by default.
- account
Id 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.
- account
Name StringPrefix - 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 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.
- folder
Id 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.
- payer
Account IntegerId - The ID of the billing account. If you leave this parameter empty, the current account is used as the billing account.
- baseline
Id string The baseline ID.
If it is left blank, the system default baseline is used by default.
- account
Id 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.
- account
Name stringPrefix - 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 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.
- folder
Id 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.
- payer
Account numberId - 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_ strprefix - 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_ intid - The ID of the billing account. If you leave this parameter empty, the current account is used as the billing account.
- baseline
Id String The baseline ID.
If it is left blank, the system default baseline is used by default.
- account
Id 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.
- account
Name StringPrefix - 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 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.
- folder
Id 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.
- payer
Account NumberId - 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:
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.
- 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 stringPrefix - 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 string The baseline ID.
If it is left blank, the system default baseline is used by default.
- Display
Name 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.
- Folder
Id 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.
- Payer
Account intId - 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 stringPrefix - 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 string The baseline ID.
If it is left blank, the system default baseline is used by default.
- Display
Name 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.
- Folder
Id 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.
- Payer
Account intId - 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 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.
- account
Name StringPrefix - 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 String The baseline ID.
If it is left blank, the system default baseline is used by default.
- display
Name 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.
- folder
Id 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.
- payer
Account IntegerId - 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 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.
- account
Name stringPrefix - 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 string The baseline ID.
If it is left blank, the system default baseline is used by default.
- display
Name 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.
- folder
Id 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.
- payer
Account numberId - 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_ strprefix - 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_ intid - 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:
- account
Id 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.
- account
Name StringPrefix - 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 String The baseline ID.
If it is left blank, the system default baseline is used by default.
- display
Name 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.
- folder
Id 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.
- payer
Account NumberId - 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.