Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: adding iam_identity_center_instance_arn attribute #36830

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading