Skip to content

Commit

Permalink
Convert to plugin framework
Browse files Browse the repository at this point in the history
  • Loading branch information
mattburgess committed Mar 18, 2023
1 parent 35928c4 commit c04a386
Show file tree
Hide file tree
Showing 5 changed files with 208 additions and 145 deletions.
6 changes: 6 additions & 0 deletions internal/service/opensearchserverless/exports_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package opensearchserverless

// Exports for use in tests only.
var (
ResourceSecurityPolicy = newResourceSecurityPolicy
)
4 changes: 2 additions & 2 deletions internal/service/opensearchserverless/find.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import (
"github.com/hashicorp/terraform-provider-aws/internal/tfresource"
)

func findSecurityPolicyByNameAndType(ctx context.Context, conn *opensearchserverless.Client, id string, policyType string) (*types.SecurityPolicyDetail, error) {
func findSecurityPolicyByNameAndType(ctx context.Context, conn *opensearchserverless.Client, name string, policyType string) (*types.SecurityPolicyDetail, error) {
in := &opensearchserverless.GetSecurityPolicyInput{
Name: aws.String(id),
Name: aws.String(name),
Type: types.SecurityPolicyType(policyType),
}
out, err := conn.GetSecurityPolicy(ctx, in)
Expand Down
Loading

0 comments on commit c04a386

Please sign in to comment.