From 59a5c534d2c460efdeae28b1fd0536266475f698 Mon Sep 17 00:00:00 2001 From: AlexanderSehr Date: Wed, 20 Nov 2024 10:46:54 +0530 Subject: [PATCH] Updated spec --- .../includes/interfaces/int.cmk.udt.schema1.bicep | 2 +- .../includes/interfaces/int.cmk.udt.schema2.bicep | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/static/includes/interfaces/int.cmk.udt.schema1.bicep b/docs/static/includes/interfaces/int.cmk.udt.schema1.bicep index a68e8bbd..22c901ab 100644 --- a/docs/static/includes/interfaces/int.cmk.udt.schema1.bicep +++ b/docs/static/includes/interfaces/int.cmk.udt.schema1.bicep @@ -2,7 +2,7 @@ // Parameters // // ============== // -import { customerManagedKeyType } from 'br/public:avm/utl/types/avm-common-types:0.3.0' +import { customerManagedKeyType } from 'br/public:avm/utl/types/avm-common-types:0.4.0' @description('Optional. The customer managed key definition.') param customerManagedKey customerManagedKeyType? diff --git a/docs/static/includes/interfaces/int.cmk.udt.schema2.bicep b/docs/static/includes/interfaces/int.cmk.udt.schema2.bicep index e6d89935..79f154c5 100644 --- a/docs/static/includes/interfaces/int.cmk.udt.schema2.bicep +++ b/docs/static/includes/interfaces/int.cmk.udt.schema2.bicep @@ -1,7 +1,7 @@ // ============== // // Parameters // // ============== // -import { customerManagedKeyWithAutoRotateType } from 'br/public:avm/utl/types/avm-common-types:0.3.0' +import { customerManagedKeyWithAutoRotateType } from 'br/public:avm/utl/types/avm-common-types:0.4.0' @description('Optional. The customer managed key definition.') param customerManagedKey customerManagedKeyWithAutoRotateType? @@ -41,14 +41,14 @@ resource >singularMainResourceType< '>providerNamespaceresourceType<@>apiVers keyName: customerManagedKey!.keyName keyVersion: !empty(customerManagedKey.?keyVersion ?? '') ? customerManagedKey!.keyVersion - : (customerManagedKey.?autoRotationDisabled ?? false) - ? last(split(cMKKeyVault::cMKKey.properties.keyUriWithVersion, '/')) - : null + : (customerManagedKey.?autoRotationEnabled ?? true) + ? null + : last(split(cMKKeyVault::cMKKey.properties.keyUriWithVersion, '/')) keyIdentifier: !empty(customerManagedKey.?keyVersion ?? '') ? '${cMKKeyVault::cMKKey.properties.keyUri}/${customerManagedKey!.keyVersion}' - : (customerManagedKey.?autoRotationDisabled ?? false) - ? cMKKeyVault::cMKKey.properties.keyUriWithVersion - : cMKKeyVault::cMKKey.properties.keyUri + : (customerManagedKey.?autoRotationEnabled ?? true) + ? cMKKeyVault::cMKKey.properties.keyUri + : cMKKeyVault::cMKKey.properties.keyUriWithVersion identityClientId: !empty(customerManagedKey.?userAssignedIdentityResourceId ?? '') ? cMKUserAssignedIdentity.properties.clientId : null