Skip to content

Commit

Permalink
Updated spec
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderSehr committed Nov 20, 2024
1 parent 081c98e commit 59a5c53
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion docs/static/includes/interfaces/int.cmk.udt.schema1.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -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?

Expand Down
14 changes: 7 additions & 7 deletions docs/static/includes/interfaces/int.cmk.udt.schema2.bicep
Original file line number Diff line number Diff line change
@@ -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?

Expand Down Expand Up @@ -41,14 +41,14 @@ resource >singularMainResourceType< '>providerNamespace</>resourceType<@>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
Expand Down

0 comments on commit 59a5c53

Please sign in to comment.