Skip to content

Commit

Permalink
Merge pull request hashicorp#36830 from josnabattula/f-aws_quicksight…
Browse files Browse the repository at this point in the history
…_account_subscription-36782

feat: adding iam_identity_center_instance_arn attribute
  • Loading branch information
nam054 authored Jun 26, 2024
2 parents d8b9b21 + 0b5c5dc commit 02adf91
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .changelog/36830.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:enhancement
resource/aws_quicksight_account_subscription: Add `iam_identity_center_instance_arn` attribute
```
10 changes: 10 additions & 0 deletions internal/service/quicksight/account_subscription.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,11 @@ func ResourceAccountSubscription() *schema.Resource {
Optional: true,
ForceNew: true,
},
"iam_identity_center_instance_arn": {
Type: schema.TypeString,
Optional: true,
ForceNew: true,
},
"last_name": {
Type: schema.TypeString,
Optional: true,
Expand Down Expand Up @@ -187,6 +192,10 @@ func resourceAccountSubscriptionCreate(ctx context.Context, d *schema.ResourceDa
in.FirstName = aws.String(v.(string))
}

if v, ok := d.GetOk("iam_identity_center_instance_arn"); ok {
in.IAMIdentityCenterInstanceArn = aws.String(v.(string))
}

if v, ok := d.GetOk("last_name"); ok {
in.LastName = aws.String(v.(string))
}
Expand Down Expand Up @@ -239,6 +248,7 @@ func resourceAccountSubscriptionRead(ctx context.Context, d *schema.ResourceData
d.Set("edition", out.Edition)
d.Set("notification_email", out.NotificationEmail)
d.Set("account_subscription_status", out.AccountSubscriptionStatus)
d.Set("iam_identity_center_instance_arn", out.IAMIdentityCenterInstanceArn)

return diags
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ The following arguments are optional:
* `directory_id` - (Optional) Active Directory ID that is associated with your Amazon QuickSight account.
* `email_address` - (Optional) Email address of the author of the Amazon QuickSight account to use for future communications. This field is required if `ENTERPPRISE_AND_Q` is the selected edition of the new Amazon QuickSight account.
* `first_name` - (Optional) First name of the author of the Amazon QuickSight account to use for future communications. This field is required if `ENTERPPRISE_AND_Q` is the selected edition of the new Amazon QuickSight account.
* `iam_identity_center_instance_arn` - (Optional) The Amazon Resource Name (ARN) for the IAM Identity Center instance.
* `last_name` - (Optional) Last name of the author of the Amazon QuickSight account to use for future communications. This field is required if `ENTERPPRISE_AND_Q` is the selected edition of the new Amazon QuickSight account.
* `reader_group` - (Optional) Reader group associated with your Active Direcrtory.
* `realm` - (Optional) Realm of the Active Directory that is associated with your Amazon QuickSight account.
Expand Down

0 comments on commit 02adf91

Please sign in to comment.