diff --git a/.changelog/36830.txt b/.changelog/36830.txt new file mode 100644 index 00000000000..99fe1b698e2 --- /dev/null +++ b/.changelog/36830.txt @@ -0,0 +1,3 @@ +```release-note:enhancement +resource/aws_quicksight_account_subscription: Add `iam_identity_center_instance_arn` attribute +``` diff --git a/internal/service/quicksight/account_subscription.go b/internal/service/quicksight/account_subscription.go index 8dee6e088dd..3b64c93c645 100644 --- a/internal/service/quicksight/account_subscription.go +++ b/internal/service/quicksight/account_subscription.go @@ -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, @@ -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)) } @@ -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 } diff --git a/website/docs/r/quicksight_account_subscription.html.markdown b/website/docs/r/quicksight_account_subscription.html.markdown index 8b880d2570b..2ed3e96cbe5 100644 --- a/website/docs/r/quicksight_account_subscription.html.markdown +++ b/website/docs/r/quicksight_account_subscription.html.markdown @@ -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.