alicloud_resource_manager_resource_directory
更新时间:
Provides a Resource Manager Resource Directory resource.
For information about Resource Manager Resource Directory and how to use it, see What is Resource Directory.
-> NOTE: Available since v1.84.0.
Example Usage
Basic Usage
data "alicloud_resource_manager_resource_directories" "default" {
}
resource "alicloud_resource_manager_resource_directory" "default" {
count = length(data.alicloud_resource_manager_resource_directories.default.directories) > 0 ? 0 : 1
status = "Enabled"
}
Argument Reference
The following arguments are supported:
member_account_display_name_sync_status
- (Optional, Computed, Available since v1.259.0) The status of the Member Display Name Synchronization feature. Valid values:- Enabled
- Disabled
member_deletion_status
- (Optional, Computed) The status of the member deletion feature. Valid values:- Enabled: The feature is enabled. You can call the DeleteAccount operation to delete members of the resource account type.
- Disabled: The feature is disabled. You cannot delete members of the resource account type.
status
- (Optional, Computed, Available since v1.120.0) ScpStatus
Attributes Reference
The following attributes are exported:
id
- The ID of the resource supplied above.create_time
- The time when the resource directory was createdmaster_account_id
- The ID of the master accountmaster_account_name
- The name of the master accountroot_folder_id
- The ID of the root folder
Timeouts
The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 5 mins) Used when create the Resource Directory.delete
- (Defaults to 5 mins) Used when delete the Resource Directory.update
- (Defaults to 5 mins) Used when update the Resource Directory.
Import
Resource Manager Resource Directory can be imported using the id, e.g.
$ terraform import alicloud_resource_manager_resource_directory.example <id>
该文章对您有帮助吗?