Skip to content

Commit

Permalink
Rename Quick Sight in output to QuickSight.
Browse files Browse the repository at this point in the history
This makes things consistent with
hashicorp#10401
and the AWS documentation.
  • Loading branch information
mjgpy3 committed Oct 22, 2019
1 parent 5d4d446 commit 4549152
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
12 changes: 6 additions & 6 deletions aws/resource_aws_quicksight_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func resourceAwsQuickSightGroupCreate(d *schema.ResourceData, meta interface{})

resp, err := conn.CreateGroup(createOpts)
if err != nil {
return fmt.Errorf("Error creating Quick Sight Group: %s", err)
return fmt.Errorf("Error creating QuickSight Group: %s", err)
}

d.SetId(fmt.Sprintf("%s/%s/%s", awsAccountID, namespace, aws.StringValue(resp.Group.GroupName)))
Expand All @@ -106,12 +106,12 @@ func resourceAwsQuickSightGroupRead(d *schema.ResourceData, meta interface{}) er

resp, err := conn.DescribeGroup(descOpts)
if isAWSErr(err, quicksight.ErrCodeResourceNotFoundException, "") {
log.Printf("[WARN] Quick Sight Group %s is already gone", d.Id())
log.Printf("[WARN] QuickSight Group %s is already gone", d.Id())
d.SetId("")
return nil
}
if err != nil {
return fmt.Errorf("Error describing Quick Sight Group (%s): %s", d.Id(), err)
return fmt.Errorf("Error describing QuickSight Group (%s): %s", d.Id(), err)
}

d.Set("arn", resp.Group.Arn)
Expand Down Expand Up @@ -143,12 +143,12 @@ func resourceAwsQuickSightGroupUpdate(d *schema.ResourceData, meta interface{})

_, err = conn.UpdateGroup(updateOpts)
if isAWSErr(err, quicksight.ErrCodeResourceNotFoundException, "") {
log.Printf("[WARN] Quick Sight Group %s is already gone", d.Id())
log.Printf("[WARN] QuickSight Group %s is already gone", d.Id())
d.SetId("")
return nil
}
if err != nil {
return fmt.Errorf("Error updating Quick Sight Group %s: %s", d.Id(), err)
return fmt.Errorf("Error updating QuickSight Group %s: %s", d.Id(), err)
}

return resourceAwsQuickSightGroupRead(d, meta)
Expand All @@ -172,7 +172,7 @@ func resourceAwsQuickSightGroupDelete(d *schema.ResourceData, meta interface{})
if isAWSErr(err, quicksight.ErrCodeResourceNotFoundException, "") {
return nil
}
return fmt.Errorf("Error deleting Quick Sight Group %s: %s", d.Id(), err)
return fmt.Errorf("Error deleting QuickSight Group %s: %s", d.Id(), err)
}

return nil
Expand Down
4 changes: 2 additions & 2 deletions aws/resource_aws_quicksight_group_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ func testAccCheckQuickSightGroupExists(resourceName string, group *quicksight.Gr
}

if output == nil || output.Group == nil {
return fmt.Errorf("Quick Sight Group (%s) not found", rs.Primary.ID)
return fmt.Errorf("QuickSight Group (%s) not found", rs.Primary.ID)
}

*group = *output.Group
Expand Down Expand Up @@ -166,7 +166,7 @@ func testAccCheckQuickSightGroupDestroy(s *terraform.State) error {
return err
}

return fmt.Errorf("Quick Sight Group '%s' was not deleted properly", rs.Primary.ID)
return fmt.Errorf("QuickSight Group '%s' was not deleted properly", rs.Primary.ID)
}

return nil
Expand Down
6 changes: 3 additions & 3 deletions website/docs/r/quicksight_group.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
layout: "aws"
page_title: "AWS: aws_quicksight_group"
description: |-
Manages a Resource Quick Sight Group.
Manages a Resource QuickSight Group.
---

# Resource: aws_quicksight_group

Resource for managing Quick Sight Group
Resource for managing QuickSight Group

## Example Usage

Expand All @@ -34,7 +34,7 @@ In addition to all arguments above, the following attributes are exported:

## Import

Quick Sight Group can be imported using the aws account id, namespace and group name separated by `/`.
QuickSight Group can be imported using the aws account id, namespace and group name separated by `/`.

```
$ terraform import aws_quicksight_group.example 123456789123/default/tf-example
Expand Down

0 comments on commit 4549152

Please sign in to comment.