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,
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:
- 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.
- List<Pulumi.
Ali Cloud. Governance. Inputs. Account Account Tag> - The tags of the account See
account_tags
below. - Default
Domain stringName - The domain name is used to qualify the login name of RAM users and RAM roles.
- 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.
- []Account
Account Tag Args - The tags of the account See
account_tags
below. - Default
Domain stringName - The domain name is used to qualify the login name of RAM users and RAM roles.
- 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.
- List<Account
Account Tag> - The tags of the account See
account_tags
below. - default
Domain StringName - The domain name is used to qualify the login name of RAM users and RAM roles.
- 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.
- Account
Account Tag[] - The tags of the account See
account_tags
below. - default
Domain stringName - The domain name is used to qualify the login name of RAM users and RAM roles.
- 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.
- Sequence[Account
Account Tag Args] - The tags of the account See
account_tags
below. - default_
domain_ strname - 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_ 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.
- List<Property Map>
- The tags of the account See
account_tags
below. - default
Domain StringName - The domain name is used to qualify the login name of RAM users and RAM roles.
- 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,
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.
- 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.
- List<Pulumi.
Ali Cloud. Governance. Inputs. Account Account Tag> - The tags of the account See
account_tags
below. - Baseline
Id string The baseline ID.
If it is left blank, the system default baseline is used by default.
- Default
Domain stringName - The domain name is used to qualify the login name of RAM users and RAM roles.
- 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.
- []Account
Account Tag Args - The tags of the account See
account_tags
below. - Baseline
Id string The baseline ID.
If it is left blank, the system default baseline is used by default.
- Default
Domain stringName - The domain name is used to qualify the login name of RAM users and RAM roles.
- 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.
- List<Account
Account Tag> - The tags of the account See
account_tags
below. - baseline
Id String The baseline ID.
If it is left blank, the system default baseline is used by default.
- default
Domain StringName - The domain name is used to qualify the login name of RAM users and RAM roles.
- 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.
- Account
Account Tag[] - The tags of the account See
account_tags
below. - baseline
Id string The baseline ID.
If it is left blank, the system default baseline is used by default.
- default
Domain stringName - The domain name is used to qualify the login name of RAM users and RAM roles.
- 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.
- Sequence[Account
Account Tag Args] - 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_ strname - 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_ 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.
- List<Property Map>
- The tags of the account See
account_tags
below. - baseline
Id String The baseline ID.
If it is left blank, the system default baseline is used by default.
- default
Domain StringName - The domain name is used to qualify the login name of RAM users and RAM roles.
- 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:
Supporting Types
AccountAccountTag, AccountAccountTagArgs
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.