pspulumiyaml.azurenative.certificateregistration.psm1
using module pspulumiyaml function Invoke-AzureNativeFunctionCertificateregistrationGetAppServiceCertificateOrder { param ( [parameter(mandatory=$False,HelpMessage='Name of the resource group to which the resource belongs.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='Name of the certificate order..)')] [string] $certificateOrderName ) process { $arguments = @{} $arguments["certificateOrderName"] = $certificateOrderName $arguments["resourceGroupName"] = $resourceGroupName $functionObject = Invoke-PulumiFunction -Name azure-native:certificateregistration:getAppServiceCertificateOrder -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionCertificateregistrationGetAppServiceCertificateOrderCertificate { param ( [parameter(mandatory=$False,HelpMessage='Name of the resource group to which the resource belongs.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='Name of the certificate.)')] [string] $name, [parameter(mandatory=$False,HelpMessage='Name of the certificate order.)')] [string] $certificateOrderName ) process { $arguments = @{} $arguments["certificateOrderName"] = $certificateOrderName $arguments["name"] = $name $arguments["resourceGroupName"] = $resourceGroupName $functionObject = Invoke-PulumiFunction -Name azure-native:certificateregistration:getAppServiceCertificateOrderCertificate -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } class AppServiceCertificate { [string] $keyVaultId [string] $keyVaultSecretName } function New-AzureNativeTypeCertificateregistrationAppServiceCertificate { param ( [parameter(mandatory=$False,HelpMessage='Key Vault resource Id.)')] [string] $keyVaultId, [parameter(mandatory=$False,HelpMessage='Key Vault secret name.)')] [string] $keyVaultSecretName ) process { return $([AppServiceCertificate]$PSBoundParameters) } } function New-AzureNativeCertificateregistrationAppServiceCertificateOrder { [Alias('azure_native_certificateregistration_appservicecertificateorder')] param ( [parameter(mandatory=$False,HelpMessage='Name of the certificate order.)')] [string] $certificateOrderName, [parameter(mandatory=$False,HelpMessage='Kind of resource.)')] [string] $kind, [parameter(mandatory=$False,HelpMessage='Last CSR that was created for this order.)')] [string] $csr, [parameter(mandatory=$False,HelpMessage='Certificate distinguished name.)')] [string] $distinguishedName, [parameter(mandatory=$False,HelpMessage='Resource tags.)')] [hashtable] $tags, [parameter(mandatory=$False,HelpMessage='Name of the resource group to which the resource belongs.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='Certificate key size.)')] [int] $keySize, [parameter(mandatory=$False,HelpMessage='Resource Location.)')] [string] $location, [parameter(mandatory=$False,HelpMessage='State of the Key Vault secret.)')] [AppServiceCertificate] $certificates, [parameter(mandatory=$False,HelpMessage='Duration in years (must be between 1 and 3).)')] [int] $validityInYears, [parameter(mandatory=$False,HelpMessage='Certificate product type.)')] $productType, [parameter(mandatory=$False,HelpMessage='<code>true</code> if the certificate should be automatically renewed when it expires; otherwise, <code>false</code>.)')] [bool] $autoRenew, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid, [parameter(mandatory,HelpMessage='Pass in the resources you make to make this resource dependant on')] [object] $DependsOn ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:certificateregistration:AppServiceCertificateOrder") foreach($Dependency in $DependsOn) { if($Dependency -is [pulumiresource]) { $resource.dependson += $Dependency.Reference() } else { $resource.dependson += $Dependency } } $resource.properties["productType"] = $productType $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'certificateOrderName') { $resource.properties["certificateOrderName"] = $certificateOrderName } if($PSBoundParameters.Keys -icontains 'kind') { $resource.properties["kind"] = $kind } if($PSBoundParameters.Keys -icontains 'csr') { $resource.properties["csr"] = $csr } if($PSBoundParameters.Keys -icontains 'distinguishedName') { $resource.properties["distinguishedName"] = $distinguishedName } if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } if($PSBoundParameters.Keys -icontains 'keySize') { $resource.properties["keySize"] = $keySize } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } if($PSBoundParameters.Keys -icontains 'certificates') { $resource.properties["certificates"] = $certificates } if($PSBoundParameters.Keys -icontains 'validityInYears') { $resource.properties["validityInYears"] = $validityInYears } if($PSBoundParameters.Keys -icontains 'autoRenew') { $resource.properties["autoRenew"] = $autoRenew } $global:pulumiresources += $resource return $resource } } function New-AzureNativeCertificateregistrationAppServiceCertificateOrderCertificate { [Alias('azure_native_certificateregistration_appservicecertificateordercertificate')] param ( [parameter(mandatory=$False,HelpMessage='Kind of resource.)')] [string] $kind, [parameter(mandatory=$False,HelpMessage='Name of the certificate.)')] [string] $name, [parameter(mandatory=$False,HelpMessage='Resource tags.)')] [hashtable] $tags, [parameter(mandatory=$False,HelpMessage='Key Vault resource Id.)')] [string] $keyVaultId, [parameter(mandatory=$False,HelpMessage='Name of the certificate order.)')] [string] $certificateOrderName, [parameter(mandatory=$False,HelpMessage='Resource Location.)')] [string] $location, [parameter(mandatory=$False,HelpMessage='Key Vault secret name.)')] [string] $keyVaultSecretName, [parameter(mandatory=$False,HelpMessage='Name of the resource group to which the resource belongs.)')] [string] $resourceGroupName, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid, [parameter(mandatory,HelpMessage='Pass in the resources you make to make this resource dependant on')] [object] $DependsOn ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:certificateregistration:AppServiceCertificateOrderCertificate") foreach($Dependency in $DependsOn) { if($Dependency -is [pulumiresource]) { $resource.dependson += $Dependency.Reference() } else { $resource.dependson += $Dependency } } $resource.properties["certificateOrderName"] = $certificateOrderName $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'kind') { $resource.properties["kind"] = $kind } if($PSBoundParameters.Keys -icontains 'name') { $resource.properties["name"] = $name } if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } if($PSBoundParameters.Keys -icontains 'keyVaultId') { $resource.properties["keyVaultId"] = $keyVaultId } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } if($PSBoundParameters.Keys -icontains 'keyVaultSecretName') { $resource.properties["keyVaultSecretName"] = $keyVaultSecretName } $global:pulumiresources += $resource return $resource } } |