Skip to content

Commit

Permalink
PR feedback tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
fatbasstard committed Mar 8, 2024
1 parent 594f582 commit 3374025
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 15 deletions.
8 changes: 0 additions & 8 deletions internal/service/servicecatalogappregistry/application.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@ func (r *resourceApplication) Update(ctx context.Context, req resource.UpdateReq

if !plan.Name.Equal(state.Name) ||
!plan.Description.Equal(state.Description) {

in := &servicecatalogappregistry.UpdateApplicationInput{
Application: aws.String(plan.ID.ValueString()),
}
Expand Down Expand Up @@ -201,13 +200,6 @@ func (r *resourceApplication) ImportState(ctx context.Context, req resource.Impo
resource.ImportStatePassthroughID(ctx, path.Root("id"), req, resp)
}

const (
statusChangePending = "Pending"
statusDeleting = "Deleting"
statusNormal = "Normal"
statusUpdated = "Updated"
)

func findApplicationByID(ctx context.Context, conn *servicecatalogappregistry.Client, id string) (*servicecatalogappregistry.GetApplicationOutput, error) {
in := &servicecatalogappregistry.GetApplicationInput{
Application: aws.String(id),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,11 +128,8 @@ func testAccCheckApplicationExists(ctx context.Context, name string) resource.Te
conn := acctest.Provider.Meta().(*conns.AWSClient).ServiceCatalogAppRegistryClient(ctx)

_, err := servicecatalogappregistry.FindApplicationByID(ctx, conn, rs.Primary.ID)
if err != nil {
return err
}

return nil
return err
}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
---
subcategory: "Service Catalog"
subcategory: "Service Catalog AppRegistry"
layout: "aws"
page_title: "AWS: aws_servicecatalogappregistry_application"
description: |-
Terraform resource for managing an AWS Service Catalog AppRegistry Application.
---
# Resource: aws_servicecatalogappregistry_application

Terraform resource for managing an AWS Service Catalog AppRegistry Application.
Terraform resource for managing an AWS Service Catalog AppRegistry Application.

~> **NOTE: ** An AWS Service Catalog AppRegistry Application is also available in the AWS Console as "MyApplications"
~> **NOTE:** An AWS Service Catalog AppRegistry Application is also available in the AWS Console as "MyApplications"

## Example Usage

Expand Down

0 comments on commit 3374025

Please sign in to comment.