pspulumiyaml.azurenative.changeanalysis.psm1

using module pspulumiyaml
function Invoke-AzureNativeFunctionChangeanalysisGetConfigurationProfile
{
    param (
        [parameter(mandatory=$False,HelpMessage='The name of the configuration profile. The profile name should be set to ''default'', all other names will be overwritten.)')]
        [string]
        $profileName
    )

    process
    {
        $arguments = @{}
        $arguments["profileName"] = $profileName

        $functionObject = Invoke-PulumiFunction -Name azure-native:changeanalysis:getConfigurationProfile -variableName $([guid]::NewGuid().Guid) -Arguments $arguments
        return $functionObject
    }
}
class AzureMonitorWorkspaceProperties
{
    [string] $workspaceId
    [ArgumentCompletions('None', 'Include', 'Exclude')]
    [string] $includeChangeDetails
    [string] $workspaceResourceId
}
function New-AzureNativeTypeChangeanalysisAzureMonitorWorkspaceProperties
{
    param (
        [parameter(mandatory=$False,HelpMessage='The Azure Monitor workspace ID - the unique identifier for the Log Analytics workspace.)')]
        [string]
        $workspaceId,
        [parameter(mandatory=$False,HelpMessage='The mode of includeChangeDetails feature. The flag configures whether to include or exclude content of the change before and after values.)')]
        [string]
        [ValidateSet('None', 'Include', 'Exclude')]
        $includeChangeDetails,
        [parameter(mandatory=$False,HelpMessage='The Azure Monitor workspace ARM Resource ID. The resource ID should be in the following format: /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName})')]
        [string]
        $workspaceResourceId
    )

    process
    {
        return $([AzureMonitorWorkspaceProperties]$PSBoundParameters)
    }
}
class NotificationSettings
{
    [ArgumentCompletions('None', 'Enabled', 'Disabled')]
    [string] $activationState
    [AzureMonitorWorkspaceProperties] $azureMonitorWorkspaceProperties
}
function New-AzureNativeTypeChangeanalysisNotificationSettings
{
    param (
        [parameter(mandatory=$False,HelpMessage='The state of notifications feature.)')]
        [string]
        [ValidateSet('None', 'Enabled', 'Disabled')]
        $activationState,
        [parameter(mandatory=$False,HelpMessage='Configuration properties of an Azure Monitor workspace that receives change notifications.)')]
        [AzureMonitorWorkspaceProperties]
        $azureMonitorWorkspaceProperties
    )

    process
    {
        return $([NotificationSettings]$PSBoundParameters)
    }
}
class ConfigurationProfileResourceProperties
{
    [NotificationSettings] $notifications
}
function New-AzureNativeTypeChangeanalysisConfigurationProfileResourceProperties
{
    param (
        [parameter(mandatory=$False,HelpMessage='Settings of change notification configuration for a subscription.)')]
        [NotificationSettings]
        $notifications
    )

    process
    {
        return $([ConfigurationProfileResourceProperties]$PSBoundParameters)
    }
}
class ResourceIdentity
{
    [ArgumentCompletions('None', 'SystemAssigned')]
    [string] $type
}
function New-AzureNativeTypeChangeanalysisResourceIdentity
{
    param (
        [parameter(mandatory=$False,HelpMessage='The type of managed identity used. The type ''SystemAssigned, UserAssigned'' includes both an implicitly created identity and a set of user-assigned identities. The type ''None'' will remove any identities.)')]
        [string]
        [ValidateSet('None', 'SystemAssigned')]
        $type
    )

    process
    {
        return $([ResourceIdentity]$PSBoundParameters)
    }
}
function New-AzureNativeChangeanalysisConfigurationProfile
{
    [Alias('azure_native_changeanalysis_configurationprofile')]
    param (
        [parameter(mandatory=$False,HelpMessage='The location where the resource is to be deployed.)')]
        [string]
        $location,
        [parameter(mandatory=$False,HelpMessage='The properties of a configuration profile.)')]
        [ConfigurationProfileResourceProperties]
        $properties,
        [parameter(mandatory=$False,HelpMessage='The identity block returned by ARM resource that supports managed identity.)')]
        [ResourceIdentity]
        $identity,
        [parameter(mandatory=$False,HelpMessage='The name of the configuration profile. The profile name should be set to ''default'', all other names will be overwritten.)')]
        [string]
        $profileName,
        [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:changeanalysis:ConfigurationProfile")

        foreach($Dependency in $DependsOn)
        {
            if($Dependency -is [pulumiresource])
            {
                $resource.dependson += $Dependency.Reference()
            } else
            {
                $resource.dependson += $Dependency
            }
        }

        if($PSBoundParameters.Keys -icontains 'location')
        {
            $resource.properties["location"] = $location
        }

        if($PSBoundParameters.Keys -icontains 'properties')
        {
            $resource.properties["properties"] = $properties
        }

        if($PSBoundParameters.Keys -icontains 'identity')
        {
            $resource.properties["identity"] = $identity
        }

        if($PSBoundParameters.Keys -icontains 'profileName')
        {
            $resource.properties["profileName"] = $profileName
        }

        $global:pulumiresources += $resource
        return $resource
    }
}