Skip to content

Commit 02adf91

Browse files
authored
Merge pull request #36830 from josnabattula/f-aws_quicksight_account_subscription-36782
feat: adding iam_identity_center_instance_arn attribute
2 parents d8b9b21 + 0b5c5dc commit 02adf91

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

.changelog/36830.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:enhancement
2+
resource/aws_quicksight_account_subscription: Add `iam_identity_center_instance_arn` attribute
3+
```

internal/service/quicksight/account_subscription.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,11 @@ func ResourceAccountSubscription() *schema.Resource {
107107
Optional: true,
108108
ForceNew: true,
109109
},
110+
"iam_identity_center_instance_arn": {
111+
Type: schema.TypeString,
112+
Optional: true,
113+
ForceNew: true,
114+
},
110115
"last_name": {
111116
Type: schema.TypeString,
112117
Optional: true,
@@ -187,6 +192,10 @@ func resourceAccountSubscriptionCreate(ctx context.Context, d *schema.ResourceDa
187192
in.FirstName = aws.String(v.(string))
188193
}
189194

195+
if v, ok := d.GetOk("iam_identity_center_instance_arn"); ok {
196+
in.IAMIdentityCenterInstanceArn = aws.String(v.(string))
197+
}
198+
190199
if v, ok := d.GetOk("last_name"); ok {
191200
in.LastName = aws.String(v.(string))
192201
}
@@ -239,6 +248,7 @@ func resourceAccountSubscriptionRead(ctx context.Context, d *schema.ResourceData
239248
d.Set("edition", out.Edition)
240249
d.Set("notification_email", out.NotificationEmail)
241250
d.Set("account_subscription_status", out.AccountSubscriptionStatus)
251+
d.Set("iam_identity_center_instance_arn", out.IAMIdentityCenterInstanceArn)
242252

243253
return diags
244254
}

website/docs/r/quicksight_account_subscription.html.markdown

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ The following arguments are optional:
4040
* `directory_id` - (Optional) Active Directory ID that is associated with your Amazon QuickSight account.
4141
* `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.
4242
* `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.
43+
* `iam_identity_center_instance_arn` - (Optional) The Amazon Resource Name (ARN) for the IAM Identity Center instance.
4344
* `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.
4445
* `reader_group` - (Optional) Reader group associated with your Active Direcrtory.
4546
* `realm` - (Optional) Realm of the Active Directory that is associated with your Amazon QuickSight account.

0 commit comments

Comments
 (0)