Skip to content

Commit

Permalink
Update to latest
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderSehr committed Oct 24, 2024
1 parent 6015341 commit 956ed39
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 29 deletions.
6 changes: 3 additions & 3 deletions avm/utl/types/avm-common-types/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ import {
privateEndpointMultiServiceType
privateEndpointSingleServiceType
secretToSetType
secretSetType
secretSetOutputType
} from '../../../main.bicep' // Would be: br/public:avm/utl/types/avm-common-types:<version>
// ====================== //
Expand Down Expand Up @@ -309,14 +309,14 @@ param secretToSet secretToSetType[] = [
#disable-next-line outputs-should-not-contain-secrets // Does not contain a secret
output secretToSetOutput secretToSetType[] = secretToSet
param secretSet secretSetType[] = [
param secretSet secretSetOutputType[] = [
{
secretResourceId: '/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRg/providers/Microsoft.KeyVault/vaults/myVault/secrets/mySecret'
secretUri: 'https://myVault.${az.environment().suffixes.keyvaultDns}/secrets/mySecret'
secretUriWithVersion: 'https://myVault.${az.environment().suffixes.keyvaultDns}/secrets/mySecret/2f4783701d724537a4e0c2d473c31846'
}
]
output secretSetOutput secretSetType[] = secretSet
output secretSetOutput secretSetOutputType[] = secretSet
```

</details>
Expand Down
1 change: 1 addition & 0 deletions avm/utl/types/avm-common-types/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,7 @@ type secretSetOutputType = {
}

@export()
@description('A map of the exported secrets')
type secretsOutputType = {
@description('An exported secret\'s references.')
*: secretSetOutputType
Expand Down
47 changes: 24 additions & 23 deletions avm/utl/types/avm-common-types/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"_generator": {
"name": "bicep",
"version": "0.30.23.60470",
"templateHash": "582259741550098970"
"templateHash": "16862752319174543465"
},
"name": "Default interface types for AVM modules",
"description": "This module provides you with all common variants for AVM interfaces to be used in AVM modules.\n\nDetails for how to implement these interfaces can be found in the AVM documentation [here](https://azure.github.io/Azure-Verified-Modules/specs/shared/interfaces).\n",
Expand Down Expand Up @@ -885,65 +885,66 @@
"description": "An AVM-aligned type for a customer-managed key."
}
},
"secretSetType": {
"secretToSetType": {
"type": "object",
"properties": {
"secretResourceId": {
"type": "string",
"metadata": {
"description": "The resourceId of the exported secret."
}
},
"secretUri": {
"name": {
"type": "string",
"metadata": {
"description": "The secret URI of the exported secret."
"description": "Required. The name of the secret to set."
}
},
"secretUriWithVersion": {
"type": "string",
"value": {
"type": "securestring",
"metadata": {
"description": "The secret URI with version of the exported secret."
"description": "Required. The value of the secret to set."
}
}
},
"metadata": {
"__bicep_export!": true,
"description": "An AVM-aligned type for the output of the secret set via the secrets export feature."
"description": "An AVM-aligned type for the secret to set via the secrets export feature."
}
},
"secretToSetType": {
"secretSetOutputType": {
"type": "object",
"properties": {
"name": {
"secretResourceId": {
"type": "string",
"metadata": {
"description": "Required. The name of the secret to set."
"description": "The resourceId of the exported secret."
}
},
"value": {
"type": "securestring",
"secretUri": {
"type": "string",
"metadata": {
"description": "Required. The value of the secret to set."
"description": "The secret URI of the exported secret."
}
},
"secretUriWithVersion": {
"type": "string",
"metadata": {
"description": "The secret URI with version of the exported secret."
}
}
},
"metadata": {
"__bicep_export!": true,
"description": "An AVM-aligned type for the secret to set via the secrets export feature."
"description": "An AVM-aligned type for the output of the secret set via the secrets export feature."
}
},
"secretsOutputType": {
"type": "object",
"properties": {},
"additionalProperties": {
"$ref": "#/definitions/secretSetType",
"$ref": "#/definitions/secretSetOutputType",
"metadata": {
"description": "An exported secret's references."
}
},
"metadata": {
"__bicep_export!": true
"__bicep_export!": true,
"description": "A map of the exported secrets"
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import {
privateEndpointMultiServiceType
privateEndpointSingleServiceType
secretToSetType
secretSetType
secretSetOutputType
} from '../../../main.bicep' // Would be: br/public:avm/utl/types/avm-common-types:<version>

// ====================== //
Expand Down Expand Up @@ -268,11 +268,11 @@ param secretToSet secretToSetType[] = [
#disable-next-line outputs-should-not-contain-secrets // Does not contain a secret
output secretToSetOutput secretToSetType[] = secretToSet

param secretSet secretSetType[] = [
param secretSet secretSetOutputType[] = [
{
secretResourceId: '/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRg/providers/Microsoft.KeyVault/vaults/myVault/secrets/mySecret'
secretUri: 'https://myVault.${az.environment().suffixes.keyvaultDns}/secrets/mySecret'
secretUriWithVersion: 'https://myVault.${az.environment().suffixes.keyvaultDns}/secrets/mySecret/2f4783701d724537a4e0c2d473c31846'
}
]
output secretSetOutput secretSetType[] = secretSet
output secretSetOutput secretSetOutputType[] = secretSet

0 comments on commit 956ed39

Please sign in to comment.