From b4ac48a1f3c1ab507626f956b4bbf49e5e516303 Mon Sep 17 00:00:00 2001 From: Adrian Johnson Date: Mon, 12 Jun 2023 15:11:32 -0400 Subject: [PATCH] move idSeparator to const file --- internal/service/opensearchserverless/access_policy.go | 3 +-- internal/service/opensearchserverless/const.go | 3 +++ internal/service/opensearchserverless/security_policy.go | 1 - 3 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 internal/service/opensearchserverless/const.go diff --git a/internal/service/opensearchserverless/access_policy.go b/internal/service/opensearchserverless/access_policy.go index d0cc2ba81e6..bab7267f380 100644 --- a/internal/service/opensearchserverless/access_policy.go +++ b/internal/service/opensearchserverless/access_policy.go @@ -42,8 +42,7 @@ type resourceAccessPolicyData struct { } const ( - ResNameAccessPolicy = "Access Policy" - accessPolicyIDSeparator = "/" + ResNameAccessPolicy = "Access Policy" ) type resourceAccessPolicy struct { diff --git a/internal/service/opensearchserverless/const.go b/internal/service/opensearchserverless/const.go new file mode 100644 index 00000000000..39e0a350e46 --- /dev/null +++ b/internal/service/opensearchserverless/const.go @@ -0,0 +1,3 @@ +package opensearchserverless + +const idSeparator = "/" diff --git a/internal/service/opensearchserverless/security_policy.go b/internal/service/opensearchserverless/security_policy.go index 8ad924a2eeb..37813f3283d 100644 --- a/internal/service/opensearchserverless/security_policy.go +++ b/internal/service/opensearchserverless/security_policy.go @@ -43,7 +43,6 @@ type resourceSecurityPolicyData struct { const ( ResNameSecurityPolicy = "Security Policy" - idSeparator = "/" ) type resourceSecurityPolicy struct {