oci_usage_proxy_subscription_redeemable_user
This resource provides the Subscription Redeemable User resource in Oracle Cloud Infrastructure Usage Proxy service.
Adds the list of redeemable user summary for a subscription ID.
Example Usage
resource "oci_usage_proxy_subscription_redeemable_user" "test_subscription_redeemable_user" {
#Required
subscription_id = oci_ons_subscription.test_subscription.id
tenancy_id = oci_identity_tenancy.test_tenancy.id
#Optional
items {
#Required
email_id = oci_usage_proxy_email.test_email.id
#Optional
first_name = var.subscription_redeemable_user_items_first_name
last_name = var.subscription_redeemable_user_items_last_name
}
user_id = oci_identity_user.test_user.id
}
Argument Reference
The following arguments are supported:
items
- (Optional) The list of new user to be added to the list of user that can redeem rewards.email_id
- (Required) The email ID for a user that can redeem rewards.first_name
- (Optional) The first name of the user that can redeem rewards.last_name
- (Optional) The last name of the user that can redeem rewards.
subscription_id
- (Required) The subscription ID for which rewards information is requested for.tenancy_id
- (Required) The OCID of the tenancy.user_id
- (Optional) The user ID of the person to send a copy of an email.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
Attributes Reference
The following attributes are exported:
items
- The list of user summary that can redeem rewards.email_id
- The email ID of the user that can redeem rewards.first_name
- The first name of the user that can redeem rewards.last_name
- The last name of the user that can redeem rewards.
Timeouts
The timeouts
block allows you to specify timeouts for certain operations:
* create
- (Defaults to 20 minutes), when creating the Subscription Redeemable User
* update
- (Defaults to 20 minutes), when updating the Subscription Redeemable User
* delete
- (Defaults to 20 minutes), when destroying the Subscription Redeemable User
Import
SubscriptionRedeemableUsers can be imported using the id
, e.g.
$ terraform import oci_usage_proxy_subscription_redeemable_user.test_subscription_redeemable_user "subscriptions/{subscriptionId}/redeemableUsers/tenancyId/{tenancyId}"