Provides a Private Zone User Vpc Authorization resource.
Basic Usage
variable "authorized_user_id" {
default = 123456789
}
resource "alicloud_pvtz_user_vpc_authorization" "example" {
authorized_user_id = var.authorized_user_id
auth_channel = "RESOURCE_DIRECTORY"
}
The following arguments are supported:
auth_channel
- (Optional) The auth channel. Valid values: RESOURCE_DIRECTORY
.authorized_user_id
- (Required, ForceNew) The primary account ID of the user who authorizes the resource.auth_type
- (Optional, ForceNew) The type of Authorization. Valid values: NORMAL
and CLOUD_PRODUCT
.The following attributes are exported:
id
- The resource ID of User Vpc Authorization. The value formats as <authorized_user_id>:<auth_type>
.The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 2 mins) Used when create the User Vpc Authorization.delete
- (Defaults to 2 mins) Used when delete the User Vpc Authorization.Private Zone User Vpc Authorization can be imported using the id, e.g.
$ terraform import alicloud_pvtz_user_vpc_authorization.example <authorized_user_id>:<auth_type>