diff --git a/interfaces/lock.go b/interfaces/lock.go index b14854f..e8a740d 100644 --- a/interfaces/lock.go +++ b/interfaces/lock.go @@ -6,6 +6,9 @@ import ( "github.com/zclconf/go-cty/cty" ) +// LockTypeString is the type constraint string for lock interface. +// When updating the type constraint string, make sure to also update the two +// private endpoint interfaces (the one with subresource and the one without). var LockTypeString = `object({ kind = string name = optional(string, null) diff --git a/interfaces/private_endpoints.go b/interfaces/private_endpoints.go index 0ccbd55..10d3e97 100644 --- a/interfaces/private_endpoints.go +++ b/interfaces/private_endpoints.go @@ -15,6 +15,7 @@ var PrivateEndpointTypeString = `map(object({ condition = optional(string, null) condition_version = optional(string, null) delegated_managed_identity_resource_id = optional(string, null) + principal_type = optional(string, null) })), {}) lock = optional(object({ kind = string diff --git a/interfaces/private_endpoints_with_subresource_name.go b/interfaces/private_endpoints_with_subresource_name.go index 327b084..3314ea8 100644 --- a/interfaces/private_endpoints_with_subresource_name.go +++ b/interfaces/private_endpoints_with_subresource_name.go @@ -15,6 +15,7 @@ var PrivateEndpointWithSubresourceNameTypeString = `map(object({ condition = optional(string, null) condition_version = optional(string, null) delegated_managed_identity_resource_id = optional(string, null) + principal_type = optional(string, null) })), {}) lock = optional(object({ kind = string diff --git a/interfaces/role_assignments.go b/interfaces/role_assignments.go index 123812d..a16472f 100644 --- a/interfaces/role_assignments.go +++ b/interfaces/role_assignments.go @@ -5,6 +5,9 @@ import ( "github.com/zclconf/go-cty/cty" ) +// RoleAssignmentsTypeString is the type constraint string for role assignments. +// When updating the type constraint string, make sure to also update the two +// private endpoint interfaces (the one with subresource and the one without). var RoleAssignmentsTypeString = `map(object({ role_definition_id_or_name = string principal_id = string @@ -13,6 +16,7 @@ var RoleAssignmentsTypeString = `map(object({ condition = optional(string, null) condition_version = optional(string, null) delegated_managed_identity_resource_id = optional(string, null) + principal_type = optional(string, null) }))` var roleAssignmentsType = StringToTypeConstraintWithDefaults(RoleAssignmentsTypeString) diff --git a/interfaces/tags.go b/interfaces/tags.go index e7ecf12..78bea9e 100644 --- a/interfaces/tags.go +++ b/interfaces/tags.go @@ -5,6 +5,9 @@ import ( "github.com/zclconf/go-cty/cty" ) +// TagsTypeString is the type constraint string for tags. +// When updating the type constraint string, make sure to also update the two +// private endpoint interfaces (the one with subresource and the one without). var TagsTypeString = `map(string)` var tagsType = StringToTypeConstraintWithDefaults(TagsTypeString)