Provides a MHUB App resource.
For information about MHUB App and how to use it, see What is App.
Basic Usage
provider "alicloud" {
region = "cn-shanghai"
}
variable "name" {
default = "example_value"
}
resource "alicloud_mhub_product" "default" {
product_name = var.name
}
resource "alicloud_mhub_app" "default" {
app_name = var.name
product_id = alicloud_mhub_product.default.id
package_name = "com.example.android"
type = "Android"
}
The following arguments are supported:
app_name
- (Required) AppName.bundle_id
- (Optional) The app id of iOS. NOTE: Either bundle_id
or package_name
must be set.encoded_icon
- (Optional) Base64 string of picture.product_id
- (Required) The ID of the Product.type
- (Required) The type of the Product. Valid values: Android
and iOS
. industry_id
- (Optional) The Industry ID of the app. For information about Industry and how to use it, MHUBIndustry.package_name
- (Optional) Android App package name. NOTE: Either bundle_id
or package_name
must be set.The following attributes are exported:
id
- The resource ID in terraform of App. The value formats as <product_id>:<app_key>
MHUB App can be imported using the id, e.g.
$ terraform import alicloud_mhub_app.example <product_id>:<app_key>