pspulumiyaml.azurenative.confidentialledger.psm1
using module pspulumiyaml function Invoke-AzureNativeFunctionConfidentialledgerGetLedger { param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='Name of the Confidential Ledger)')] [string] $ledgerName ) process { $arguments = @{} $arguments["ledgerName"] = $ledgerName $arguments["resourceGroupName"] = $resourceGroupName $functionObject = Invoke-PulumiFunction -Name azure-native:confidentialledger:getLedger -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } class CertBasedSecurityPrincipal { [ValidateSet('Unknown', 'Public', 'Private')] [string] $cert [ValidateSet('Reader', 'Contributor', 'Administrator')] [string] $ledgerRoleName } function New-AzureNativeTypeConfidentialledgerCertBasedSecurityPrincipal { param ( [parameter(mandatory=$False,HelpMessage='Public key of the user cert (.pem or .cer))')] [string] $cert, [parameter(mandatory=$False,HelpMessage='LedgerRole associated with the Security Principal of Ledger)')] [string] [ValidateSet('Reader', 'Contributor', 'Administrator')] $ledgerRoleName ) process { return $([CertBasedSecurityPrincipal]$PSBoundParameters) } } class AADBasedSecurityPrincipal { [ValidateSet('Unknown', 'Public', 'Private')] [string] $tenantId [ValidateSet('Unknown', 'Public', 'Private')] [string] $principalId [ValidateSet('Reader', 'Contributor', 'Administrator')] [string] $ledgerRoleName } function New-AzureNativeTypeConfidentialledgerAADBasedSecurityPrincipal { param ( [parameter(mandatory=$False,HelpMessage='UUID/GUID based Tenant Id of the Security Principal)')] [string] $tenantId, [parameter(mandatory=$False,HelpMessage='UUID/GUID based Principal Id of the Security Principal)')] [string] $principalId, [parameter(mandatory=$False,HelpMessage='LedgerRole associated with the Security Principal of Ledger)')] [string] [ValidateSet('Reader', 'Contributor', 'Administrator')] $ledgerRoleName ) process { return $([AADBasedSecurityPrincipal]$PSBoundParameters) } } class LedgerProperties { [string] $ledgerStorageAccount [ValidateSet('Unknown', 'Public', 'Private')] [string] $ledgerType [ValidateSet('Unknown', 'Public', 'Private')] [CertBasedSecurityPrincipal[]] $certBasedSecurityPrincipals [ValidateSet('Unknown', 'Public', 'Private')] [AADBasedSecurityPrincipal[]] $aadBasedSecurityPrincipals } function New-AzureNativeTypeConfidentialledgerLedgerProperties { param ( [parameter(mandatory=$False,HelpMessage='Name of the Blob Storage Account for saving ledger files)')] [string] $ledgerStorageAccount, [parameter(mandatory=$False,HelpMessage='Type of Confidential Ledger)')] [string] [ValidateSet('Unknown', 'Public', 'Private')] $ledgerType, [parameter(mandatory=$False,HelpMessage='Array of all cert based Security Principals.)')] $certBasedSecurityPrincipals, [parameter(mandatory=$False,HelpMessage='Array of all AAD based Security Principals.)')] $aadBasedSecurityPrincipals ) process { return $([LedgerProperties]$PSBoundParameters) } } function New-AzureNativeConfidentialledgerLedger { [Alias('azure_native_confidentialledger_ledger')] param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='Name of the Confidential Ledger)')] [string] $ledgerName, [parameter(mandatory=$False,HelpMessage='Properties of Confidential Ledger Resource.)')] [LedgerProperties] $properties, [parameter(mandatory=$False,HelpMessage='Additional tags for Confidential Ledger)')] [hashtable] $tags, [parameter(mandatory=$False,HelpMessage='The Azure location where the Confidential Ledger is running.)')] [string] $location, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:confidentialledger:Ledger") $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'ledgerName') { $resource.properties["ledgerName"] = $ledgerName } if($PSBoundParameters.Keys -icontains 'properties') { $resource.properties["properties"] = $properties } if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } $global:pulumiresources += $resource return $resource } } |