pspulumiyaml.azurenative.customerinsights.psm1
using module @{ ModuleName = "PSPulumiYaml"; ModuleVersion = "0.0.3"; GUID = "909344e0-a08f-45f6-8177-80e36bb2ba58" } function Invoke-AzureNativeFunctionCustomerinsightsGetRelationship { param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the relationship.)')] [string] $relationshipName, [parameter(mandatory=$False,HelpMessage='The name of the hub.)')] [string] $hubName ) process { $arguments = @{} $arguments["hubName"] = $hubName $arguments["relationshipName"] = $relationshipName $arguments["resourceGroupName"] = $resourceGroupName $functionObject = Invoke-PulumiFunction -Name azure-native:customerinsights:getRelationship -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionCustomerinsightsGetLink { param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the hub.)')] [string] $hubName, [parameter(mandatory=$False,HelpMessage='The name of the link.)')] [string] $linkName ) process { $arguments = @{} $arguments["hubName"] = $hubName $arguments["linkName"] = $linkName $arguments["resourceGroupName"] = $resourceGroupName $functionObject = Invoke-PulumiFunction -Name azure-native:customerinsights:getLink -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionCustomerinsightsGetProfile { param ( [parameter(mandatory=$False,HelpMessage='The name of the profile.)')] [string] $profileName, [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='Locale of profile to retrieve, default is en-us.)')] [string] $localeCode, [parameter(mandatory=$False,HelpMessage='The name of the hub.)')] [string] $hubName ) process { $arguments = @{} $arguments["hubName"] = $hubName $arguments["profileName"] = $profileName $arguments["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'localeCode') { $arguments["localeCode"] = $localeCode } $functionObject = Invoke-PulumiFunction -Name azure-native:customerinsights:getProfile -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionCustomerinsightsGetView { param ( [parameter(mandatory=$False,HelpMessage='The user ID. Use * to retrieve hub level view.)')] [string] $userId, [parameter(mandatory=$False,HelpMessage='The name of the view.)')] [string] $viewName, [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the hub.)')] [string] $hubName ) process { $arguments = @{} $arguments["hubName"] = $hubName $arguments["resourceGroupName"] = $resourceGroupName $arguments["userId"] = $userId $arguments["viewName"] = $viewName $functionObject = Invoke-PulumiFunction -Name azure-native:customerinsights:getView -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionCustomerinsightsGetPredictionModelStatus { param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the hub.)')] [string] $hubName, [parameter(mandatory=$False,HelpMessage='The name of the Prediction.)')] [string] $predictionName ) process { $arguments = @{} $arguments["hubName"] = $hubName $arguments["predictionName"] = $predictionName $arguments["resourceGroupName"] = $resourceGroupName $functionObject = Invoke-PulumiFunction -Name azure-native:customerinsights:getPredictionModelStatus -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionCustomerinsightsGetConnectorMapping { param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the hub.)')] [string] $hubName, [parameter(mandatory=$False,HelpMessage='The name of the connector mapping.)')] [string] $mappingName, [parameter(mandatory=$False,HelpMessage='The name of the connector.)')] [string] $connectorName ) process { $arguments = @{} $arguments["connectorName"] = $connectorName $arguments["hubName"] = $hubName $arguments["mappingName"] = $mappingName $arguments["resourceGroupName"] = $resourceGroupName $functionObject = Invoke-PulumiFunction -Name azure-native:customerinsights:getConnectorMapping -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionCustomerinsightsGetHub { param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the hub.)')] [string] $hubName ) process { $arguments = @{} $arguments["hubName"] = $hubName $arguments["resourceGroupName"] = $resourceGroupName $functionObject = Invoke-PulumiFunction -Name azure-native:customerinsights:getHub -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionCustomerinsightsGetKpi { param ( [parameter(mandatory=$False,HelpMessage='The name of the KPI.)')] [string] $kpiName, [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the hub.)')] [string] $hubName ) process { $arguments = @{} $arguments["hubName"] = $hubName $arguments["kpiName"] = $kpiName $arguments["resourceGroupName"] = $resourceGroupName $functionObject = Invoke-PulumiFunction -Name azure-native:customerinsights:getKpi -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionCustomerinsightsGetPrediction { param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the hub.)')] [string] $hubName, [parameter(mandatory=$False,HelpMessage='The name of the Prediction.)')] [string] $predictionName ) process { $arguments = @{} $arguments["hubName"] = $hubName $arguments["predictionName"] = $predictionName $arguments["resourceGroupName"] = $resourceGroupName $functionObject = Invoke-PulumiFunction -Name azure-native:customerinsights:getPrediction -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionCustomerinsightsGetRelationshipLink { param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the hub.)')] [string] $hubName, [parameter(mandatory=$False,HelpMessage='The name of the relationship link.)')] [string] $relationshipLinkName ) process { $arguments = @{} $arguments["hubName"] = $hubName $arguments["relationshipLinkName"] = $relationshipLinkName $arguments["resourceGroupName"] = $resourceGroupName $functionObject = Invoke-PulumiFunction -Name azure-native:customerinsights:getRelationshipLink -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionCustomerinsightsGetImageUploadUrlForData { param ( [parameter(mandatory=$False,HelpMessage='Type of entity. Can be Profile or Interaction.)')] [string] $entityType, [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='Name of the entity type.)')] [string] $entityTypeName, [parameter(mandatory=$False,HelpMessage='The name of the hub.)')] [string] $hubName, [parameter(mandatory=$False,HelpMessage='Relative path of the image.)')] [string] $relativePath ) process { $arguments = @{} $arguments["hubName"] = $hubName $arguments["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'entityType') { $arguments["entityType"] = $entityType } if($PSBoundParameters.Keys -icontains 'entityTypeName') { $arguments["entityTypeName"] = $entityTypeName } if($PSBoundParameters.Keys -icontains 'relativePath') { $arguments["relativePath"] = $relativePath } $functionObject = Invoke-PulumiFunction -Name azure-native:customerinsights:getImageUploadUrlForData -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionCustomerinsightsGetRoleAssignment { param ( [parameter(mandatory=$False,HelpMessage='The name of the role assignment.)')] [string] $assignmentName, [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the hub.)')] [string] $hubName ) process { $arguments = @{} $arguments["assignmentName"] = $assignmentName $arguments["hubName"] = $hubName $arguments["resourceGroupName"] = $resourceGroupName $functionObject = Invoke-PulumiFunction -Name azure-native:customerinsights:getRoleAssignment -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionCustomerinsightsGetPredictionTrainingResults { param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the hub.)')] [string] $hubName, [parameter(mandatory=$False,HelpMessage='The name of the Prediction.)')] [string] $predictionName ) process { $arguments = @{} $arguments["hubName"] = $hubName $arguments["predictionName"] = $predictionName $arguments["resourceGroupName"] = $resourceGroupName $functionObject = Invoke-PulumiFunction -Name azure-native:customerinsights:getPredictionTrainingResults -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionCustomerinsightsGetImageUploadUrlForEntityType { param ( [parameter(mandatory=$False,HelpMessage='Type of entity. Can be Profile or Interaction.)')] [string] $entityType, [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='Name of the entity type.)')] [string] $entityTypeName, [parameter(mandatory=$False,HelpMessage='The name of the hub.)')] [string] $hubName, [parameter(mandatory=$False,HelpMessage='Relative path of the image.)')] [string] $relativePath ) process { $arguments = @{} $arguments["hubName"] = $hubName $arguments["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'entityType') { $arguments["entityType"] = $entityType } if($PSBoundParameters.Keys -icontains 'entityTypeName') { $arguments["entityTypeName"] = $entityTypeName } if($PSBoundParameters.Keys -icontains 'relativePath') { $arguments["relativePath"] = $relativePath } $functionObject = Invoke-PulumiFunction -Name azure-native:customerinsights:getImageUploadUrlForEntityType -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionCustomerinsightsGetConnector { param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the hub.)')] [string] $hubName, [parameter(mandatory=$False,HelpMessage='The name of the connector.)')] [string] $connectorName ) process { $arguments = @{} $arguments["connectorName"] = $connectorName $arguments["hubName"] = $hubName $arguments["resourceGroupName"] = $resourceGroupName $functionObject = Invoke-PulumiFunction -Name azure-native:customerinsights:getConnector -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function New-AzureNativeCustomerinsightsLink { [Alias('azure_native_customerinsights_link')] param ( [parameter(mandatory=$False,HelpMessage='Determines whether this link is supposed to create or delete instances if Link is NOT Reference Only.)')] $operationType, [parameter(mandatory=$False,HelpMessage='Localized display name for the Link.)')] [hashtable] $displayName, [parameter(mandatory=$False,HelpMessage='Name of the target Entity Type.)')] [string] $targetEntityTypeName, [parameter(mandatory=$False,HelpMessage='The name of the hub.)')] [string] $hubName, [parameter(mandatory=$False,HelpMessage='The name of the link.)')] [string] $linkName, [parameter(mandatory=$False,HelpMessage='Type of target entity.)')] $targetEntityType, [parameter(mandatory=$False,HelpMessage='The set of properties mappings between the source and target Types.)')] $mappings, [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='Localized descriptions for the Link.)')] [hashtable] $description, [parameter(mandatory=$False,HelpMessage='Indicating whether the link is reference only link. This flag is ignored if the Mappings are defined. If the mappings are not defined and it is set to true, links processing will not create or update profiles.)')] [bool] $referenceOnly, [parameter(mandatory=$False,HelpMessage='Name of the source Entity Type.)')] [string] $sourceEntityTypeName, [parameter(mandatory=$False,HelpMessage='Type of source entity.)')] $sourceEntityType, [parameter(mandatory=$False,HelpMessage='The properties that represent the participating profile.)')] $participantPropertyReferences, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid, [parameter(HelpMessage='Specifies a list of named output properties that should be treated as secrets, which means they will be encrypted. It augments the list of values that Pulumi detects, based on secret inputs to the resource.')] [string[]] $PulumiSecretOutputs, [parameter(HelpMessage='The aliases parameter provides a list of aliases for a resource or component resource. If youre changing the name, type, or parent path of a resource or component resource, you can add the old name to the list of aliases for a resource to ensure that existing resources will be migrated to the new name instead of being deleted and replaced with the new named resource.')] [string[]] $PulumiAliases, [parameter(HelpMessage='The customTimeouts parameter provides a set of custom timeouts for create, update, and delete operations on a resource. These timeouts are specified using a duration string such as 5m (5 minutes), 40s (40 seconds), or 1d (1 day). Supported duration units are ns, us (or µs), ms, s, m, and h (nanoseconds, microseconds, milliseconds, seconds, minutes, and hours, respectively).')] [pulumicustomtimeouts] $PulumiCustomTimeouts, [parameter(HelpMessage='Setting the PulumiDeleteBeforeReplace parameter to true means that Pulumi will delete the existing resource before creating its replacement. Be aware that this behavior has a cascading impact on dependencies so more resources may be replaced, which can lead to downtime. However, this option may be necessary for some resources that manage scarce resources behind the scenes, and/or resources that cannot exist side-by-side.')] [bool] $PulumiDeleteBeforeReplace, [parameter(HelpMessage='Creates a list of explicit dependencies between resources.The DependsOn parameter ensures that resource creation, update, and deletion operations are done in the correct order.')] [object[]] $PulumiDependsOn, [parameter(HelpMessage='Specifies a list of properties that Pulumi will ignore when it updates existing resources. Any properties specified in this list that are also specified in the resources arguments will only be used when creating the resource.')] [string[]] $PulumiIgnoreChanges, [parameter(HelpMessage='Imports an existing cloud resource so that Pulumi can manage it. To import a resource, first specify the PulumiImport parameter with the resources ID')] [string] $PulumiImport = [NullString]::Value, [parameter(HelpMessage='Specifies a parent for a resource. It is used to associate children with the parents that encapsulate or are responsible for them.')] [object] $PulumiParent = [NullString]::Value, [parameter(HelpMessage='Marks a resource as protected. A protected resource cannot be deleted directly, and it will be an error to do a Pulumi deployment which tries to delete a protected resource for any reason.')] [bool] $PulumiProtect, [parameter(HelpMessage='Sets a provider for the resource. The default is to inherit this value from the parent resource, and to use the ambient provider specified by Pulumi configuration for resources without a parent.')] [object] $PulumiProvider = [NullString]::Value, [parameter(HelpMessage='Sets a list of providers for the resource and its children. This list is combined with resource parents providers lists. If no value is provided, the providers list is identical to the parent. When determining which provider to use for a resource, the providers list is used if provider is not supplied.')] [object[]] $PulumiProviders, [parameter(HelpMessage='Used to indicate that changes to certain properties on a resource should force a replacement of the resource instead of an in-place update. Typically users rely on the resource provider to make this decision based on whether the input property is one that the provider knows how to update in place, or if not, requires a replacement to modify. However, there are cases where users want to replace a resource on a change to an input property even if the resource provider itself doesnt believe it has to replace the resource.')] [string[]] $PulumiReplaceOnChanges, [parameter(HelpMessage='Marks a resource to be retained. If this option is set then Pulumi will not call through to the resource providers Delete method when deleting or replacing the resource during pulumi up or pulumi destroy. As a result, the resource will not be deleted from the backing cloud provider, but will be removed from the Pulumi state.')] [bool] $PulumiRetainOnDelete, [parameter(HelpMessage='Specifies a provider version to use when operating on a resource. This version overrides the version information inferred from the current package. This option should be used rarely.')] [string] $PulumiProviderVersion = [NullString]::Value ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:customerinsights:Link") $resource.options.additionalSecretOutputs = $PulumiSecretOutputs $resource.options.aliases = $PulumiAliases $resource.options.customTimeouts = $PulumiCustomTimeouts $resource.options.deleteBeforeReplace = $PulumiDeleteBeforeReplace $resource.options.ignoreChanges = $PulumiIgnoreChanges $resource.options.import = if([string]::IsNullOrEmpty($PulumiImport)) { [NullString]::Value } else { $PulumiImport } $resource.options.protect = $PulumiProtect $resource.options.replaceOnChanges = $PulumiReplaceOnChanges $resource.options.retainOnDelete = $PulumiRetainOnDelete $resource.options.version = if([string]::IsNullOrEmpty($PulumiProviderVersion)) { [NullString]::Value } else { $PulumiProviderVersion } foreach($Dependency in $DependsOn) { if($Dependency -is [pulumiresource]) { $resource.options.dependson += $Dependency.Reference() } else { $resource.options.dependson += $Dependency } } if($PulumiParent -is [pulumiresource]) { $resource.options.parent = $PulumiParent.Reference() } else { $resource.options.parent = $PulumiParent } foreach($provider in $PulumiProviders) { if($provider -is [pulumiprovider]) { $resource.options.providers += $provider.Reference() } else { $resource.options.providers += $provider } } if($PulumiProvider -is [pulumiprovider]) { $resource.options.provider = $PulumiProvider.Reference() } else { $resource.options.provider = $PulumiProvider } $resource.properties["hubName"] = $hubName $resource.properties["participantPropertyReferences"] = $participantPropertyReferences $resource.properties["resourceGroupName"] = $resourceGroupName $resource.properties["sourceEntityType"] = $sourceEntityType $resource.properties["sourceEntityTypeName"] = $sourceEntityTypeName $resource.properties["targetEntityType"] = $targetEntityType $resource.properties["targetEntityTypeName"] = $targetEntityTypeName if($PSBoundParameters.Keys -icontains 'operationType') { $resource.properties["operationType"] = $operationType } if($PSBoundParameters.Keys -icontains 'displayName') { $resource.properties["displayName"] = $displayName } if($PSBoundParameters.Keys -icontains 'linkName') { $resource.properties["linkName"] = $linkName } if($PSBoundParameters.Keys -icontains 'mappings') { $resource.properties["mappings"] = $mappings } if($PSBoundParameters.Keys -icontains 'description') { $resource.properties["description"] = $description } if($PSBoundParameters.Keys -icontains 'referenceOnly') { $resource.properties["referenceOnly"] = $referenceOnly } $global:pulumiresources += $resource return $resource } } class HubBillingInfoFormat { [int] $maxUnits [int] $minUnits [string] $skuName } function New-AzureNativeTypeCustomerinsightsHubBillingInfoFormat { param ( [parameter(mandatory=$False,HelpMessage='The maximum number of units can be used. One unit is 10,000 Profiles and 100,000 Interactions.)')] [int] $maxUnits, [parameter(mandatory=$False,HelpMessage='The minimum number of units will be billed. One unit is 10,000 Profiles and 100,000 Interactions.)')] [int] $minUnits, [parameter(mandatory=$False,HelpMessage='The sku name.)')] [string] $skuName ) process { return $([HubBillingInfoFormat]$PSBoundParameters) } } function New-AzureNativeCustomerinsightsHub { [Alias('azure_native_customerinsights_hub')] param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='Resource location.)')] [string] $location, [parameter(mandatory=$False,HelpMessage='The bit flags for enabled hub features. Bit 0 is set to 1 indicates graph is enabled, or disabled if set to 0. Bit 1 is set to 1 indicates the hub is disabled, or enabled if set to 0.)')] [int] $tenantFeatures, [parameter(mandatory=$False,HelpMessage='Billing settings of the hub.)')] [HubBillingInfoFormat] $hubBillingInfo, [parameter(mandatory=$False,HelpMessage='Resource tags.)')] [hashtable] $tags, [parameter(mandatory=$False,HelpMessage='The name of the Hub.)')] [string] $hubName, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid, [parameter(HelpMessage='Specifies a list of named output properties that should be treated as secrets, which means they will be encrypted. It augments the list of values that Pulumi detects, based on secret inputs to the resource.')] [string[]] $PulumiSecretOutputs, [parameter(HelpMessage='The aliases parameter provides a list of aliases for a resource or component resource. If youre changing the name, type, or parent path of a resource or component resource, you can add the old name to the list of aliases for a resource to ensure that existing resources will be migrated to the new name instead of being deleted and replaced with the new named resource.')] [string[]] $PulumiAliases, [parameter(HelpMessage='The customTimeouts parameter provides a set of custom timeouts for create, update, and delete operations on a resource. These timeouts are specified using a duration string such as 5m (5 minutes), 40s (40 seconds), or 1d (1 day). Supported duration units are ns, us (or µs), ms, s, m, and h (nanoseconds, microseconds, milliseconds, seconds, minutes, and hours, respectively).')] [pulumicustomtimeouts] $PulumiCustomTimeouts, [parameter(HelpMessage='Setting the PulumiDeleteBeforeReplace parameter to true means that Pulumi will delete the existing resource before creating its replacement. Be aware that this behavior has a cascading impact on dependencies so more resources may be replaced, which can lead to downtime. However, this option may be necessary for some resources that manage scarce resources behind the scenes, and/or resources that cannot exist side-by-side.')] [bool] $PulumiDeleteBeforeReplace, [parameter(HelpMessage='Creates a list of explicit dependencies between resources.The DependsOn parameter ensures that resource creation, update, and deletion operations are done in the correct order.')] [object[]] $PulumiDependsOn, [parameter(HelpMessage='Specifies a list of properties that Pulumi will ignore when it updates existing resources. Any properties specified in this list that are also specified in the resources arguments will only be used when creating the resource.')] [string[]] $PulumiIgnoreChanges, [parameter(HelpMessage='Imports an existing cloud resource so that Pulumi can manage it. To import a resource, first specify the PulumiImport parameter with the resources ID')] [string] $PulumiImport = [NullString]::Value, [parameter(HelpMessage='Specifies a parent for a resource. It is used to associate children with the parents that encapsulate or are responsible for them.')] [object] $PulumiParent = [NullString]::Value, [parameter(HelpMessage='Marks a resource as protected. A protected resource cannot be deleted directly, and it will be an error to do a Pulumi deployment which tries to delete a protected resource for any reason.')] [bool] $PulumiProtect, [parameter(HelpMessage='Sets a provider for the resource. The default is to inherit this value from the parent resource, and to use the ambient provider specified by Pulumi configuration for resources without a parent.')] [object] $PulumiProvider = [NullString]::Value, [parameter(HelpMessage='Sets a list of providers for the resource and its children. This list is combined with resource parents providers lists. If no value is provided, the providers list is identical to the parent. When determining which provider to use for a resource, the providers list is used if provider is not supplied.')] [object[]] $PulumiProviders, [parameter(HelpMessage='Used to indicate that changes to certain properties on a resource should force a replacement of the resource instead of an in-place update. Typically users rely on the resource provider to make this decision based on whether the input property is one that the provider knows how to update in place, or if not, requires a replacement to modify. However, there are cases where users want to replace a resource on a change to an input property even if the resource provider itself doesnt believe it has to replace the resource.')] [string[]] $PulumiReplaceOnChanges, [parameter(HelpMessage='Marks a resource to be retained. If this option is set then Pulumi will not call through to the resource providers Delete method when deleting or replacing the resource during pulumi up or pulumi destroy. As a result, the resource will not be deleted from the backing cloud provider, but will be removed from the Pulumi state.')] [bool] $PulumiRetainOnDelete, [parameter(HelpMessage='Specifies a provider version to use when operating on a resource. This version overrides the version information inferred from the current package. This option should be used rarely.')] [string] $PulumiProviderVersion = [NullString]::Value ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:customerinsights:Hub") $resource.options.additionalSecretOutputs = $PulumiSecretOutputs $resource.options.aliases = $PulumiAliases $resource.options.customTimeouts = $PulumiCustomTimeouts $resource.options.deleteBeforeReplace = $PulumiDeleteBeforeReplace $resource.options.ignoreChanges = $PulumiIgnoreChanges $resource.options.import = if([string]::IsNullOrEmpty($PulumiImport)) { [NullString]::Value } else { $PulumiImport } $resource.options.protect = $PulumiProtect $resource.options.replaceOnChanges = $PulumiReplaceOnChanges $resource.options.retainOnDelete = $PulumiRetainOnDelete $resource.options.version = if([string]::IsNullOrEmpty($PulumiProviderVersion)) { [NullString]::Value } else { $PulumiProviderVersion } foreach($Dependency in $DependsOn) { if($Dependency -is [pulumiresource]) { $resource.options.dependson += $Dependency.Reference() } else { $resource.options.dependson += $Dependency } } if($PulumiParent -is [pulumiresource]) { $resource.options.parent = $PulumiParent.Reference() } else { $resource.options.parent = $PulumiParent } foreach($provider in $PulumiProviders) { if($provider -is [pulumiprovider]) { $resource.options.providers += $provider.Reference() } else { $resource.options.providers += $provider } } if($PulumiProvider -is [pulumiprovider]) { $resource.options.provider = $PulumiProvider.Reference() } else { $resource.options.provider = $PulumiProvider } $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } if($PSBoundParameters.Keys -icontains 'tenantFeatures') { $resource.properties["tenantFeatures"] = $tenantFeatures } if($PSBoundParameters.Keys -icontains 'hubBillingInfo') { $resource.properties["hubBillingInfo"] = $hubBillingInfo } if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } if($PSBoundParameters.Keys -icontains 'hubName') { $resource.properties["hubName"] = $hubName } $global:pulumiresources += $resource return $resource } } class PredictionMappings { [string] $grade [string] $score [string] $reason } function New-AzureNativeTypeCustomerinsightsPredictionMappings { param ( [parameter(mandatory=$False,HelpMessage='The grade of the link mapping.)')] [string] $grade, [parameter(mandatory=$False,HelpMessage='The score of the link mapping.)')] [string] $score, [parameter(mandatory=$False,HelpMessage='The reason of the link mapping.)')] [string] $reason ) process { return $([PredictionMappings]$PSBoundParameters) } } function New-AzureNativeCustomerinsightsPrediction { [Alias('azure_native_customerinsights_prediction')] param ( [parameter(mandatory=$False,HelpMessage='Positive outcome expression.)')] [string] $positiveOutcomeExpression, [parameter(mandatory=$False,HelpMessage='Relationships involved in the prediction.)')] [string[]] $involvedRelationships, [parameter(mandatory=$False,HelpMessage='Primary profile type.)')] [string] $primaryProfileType, [parameter(mandatory=$False,HelpMessage='Display name of the prediction.)')] [hashtable] $displayName, [parameter(mandatory=$False,HelpMessage='The name of the hub.)')] [string] $hubName, [parameter(mandatory=$False,HelpMessage='Negative outcome expression.)')] [string] $negativeOutcomeExpression, [parameter(mandatory=$False,HelpMessage='KPI types involved in the prediction.)')] [string[]] $involvedKpiTypes, [parameter(mandatory=$False,HelpMessage='Interaction types involved in the prediction.)')] [string[]] $involvedInteractionTypes, [parameter(mandatory=$False,HelpMessage='Score label.)')] [string] $scoreLabel, [parameter(mandatory=$False,HelpMessage='Definition of the link mapping of prediction.)')] [PredictionMappings] $mappings, [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='Description of the prediction.)')] [hashtable] $description, [parameter(mandatory=$False,HelpMessage='Scope expression.)')] [string] $scopeExpression, [parameter(mandatory=$False,HelpMessage='Whether do auto analyze.)')] [bool] $autoAnalyze, [parameter(mandatory=$False,HelpMessage='The prediction grades.)')] $grades, [parameter(mandatory=$False,HelpMessage='Name of the prediction.)')] [string] $predictionName, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid, [parameter(HelpMessage='Specifies a list of named output properties that should be treated as secrets, which means they will be encrypted. It augments the list of values that Pulumi detects, based on secret inputs to the resource.')] [string[]] $PulumiSecretOutputs, [parameter(HelpMessage='The aliases parameter provides a list of aliases for a resource or component resource. If youre changing the name, type, or parent path of a resource or component resource, you can add the old name to the list of aliases for a resource to ensure that existing resources will be migrated to the new name instead of being deleted and replaced with the new named resource.')] [string[]] $PulumiAliases, [parameter(HelpMessage='The customTimeouts parameter provides a set of custom timeouts for create, update, and delete operations on a resource. These timeouts are specified using a duration string such as 5m (5 minutes), 40s (40 seconds), or 1d (1 day). Supported duration units are ns, us (or µs), ms, s, m, and h (nanoseconds, microseconds, milliseconds, seconds, minutes, and hours, respectively).')] [pulumicustomtimeouts] $PulumiCustomTimeouts, [parameter(HelpMessage='Setting the PulumiDeleteBeforeReplace parameter to true means that Pulumi will delete the existing resource before creating its replacement. Be aware that this behavior has a cascading impact on dependencies so more resources may be replaced, which can lead to downtime. However, this option may be necessary for some resources that manage scarce resources behind the scenes, and/or resources that cannot exist side-by-side.')] [bool] $PulumiDeleteBeforeReplace, [parameter(HelpMessage='Creates a list of explicit dependencies between resources.The DependsOn parameter ensures that resource creation, update, and deletion operations are done in the correct order.')] [object[]] $PulumiDependsOn, [parameter(HelpMessage='Specifies a list of properties that Pulumi will ignore when it updates existing resources. Any properties specified in this list that are also specified in the resources arguments will only be used when creating the resource.')] [string[]] $PulumiIgnoreChanges, [parameter(HelpMessage='Imports an existing cloud resource so that Pulumi can manage it. To import a resource, first specify the PulumiImport parameter with the resources ID')] [string] $PulumiImport = [NullString]::Value, [parameter(HelpMessage='Specifies a parent for a resource. It is used to associate children with the parents that encapsulate or are responsible for them.')] [object] $PulumiParent = [NullString]::Value, [parameter(HelpMessage='Marks a resource as protected. A protected resource cannot be deleted directly, and it will be an error to do a Pulumi deployment which tries to delete a protected resource for any reason.')] [bool] $PulumiProtect, [parameter(HelpMessage='Sets a provider for the resource. The default is to inherit this value from the parent resource, and to use the ambient provider specified by Pulumi configuration for resources without a parent.')] [object] $PulumiProvider = [NullString]::Value, [parameter(HelpMessage='Sets a list of providers for the resource and its children. This list is combined with resource parents providers lists. If no value is provided, the providers list is identical to the parent. When determining which provider to use for a resource, the providers list is used if provider is not supplied.')] [object[]] $PulumiProviders, [parameter(HelpMessage='Used to indicate that changes to certain properties on a resource should force a replacement of the resource instead of an in-place update. Typically users rely on the resource provider to make this decision based on whether the input property is one that the provider knows how to update in place, or if not, requires a replacement to modify. However, there are cases where users want to replace a resource on a change to an input property even if the resource provider itself doesnt believe it has to replace the resource.')] [string[]] $PulumiReplaceOnChanges, [parameter(HelpMessage='Marks a resource to be retained. If this option is set then Pulumi will not call through to the resource providers Delete method when deleting or replacing the resource during pulumi up or pulumi destroy. As a result, the resource will not be deleted from the backing cloud provider, but will be removed from the Pulumi state.')] [bool] $PulumiRetainOnDelete, [parameter(HelpMessage='Specifies a provider version to use when operating on a resource. This version overrides the version information inferred from the current package. This option should be used rarely.')] [string] $PulumiProviderVersion = [NullString]::Value ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:customerinsights:Prediction") $resource.options.additionalSecretOutputs = $PulumiSecretOutputs $resource.options.aliases = $PulumiAliases $resource.options.customTimeouts = $PulumiCustomTimeouts $resource.options.deleteBeforeReplace = $PulumiDeleteBeforeReplace $resource.options.ignoreChanges = $PulumiIgnoreChanges $resource.options.import = if([string]::IsNullOrEmpty($PulumiImport)) { [NullString]::Value } else { $PulumiImport } $resource.options.protect = $PulumiProtect $resource.options.replaceOnChanges = $PulumiReplaceOnChanges $resource.options.retainOnDelete = $PulumiRetainOnDelete $resource.options.version = if([string]::IsNullOrEmpty($PulumiProviderVersion)) { [NullString]::Value } else { $PulumiProviderVersion } foreach($Dependency in $DependsOn) { if($Dependency -is [pulumiresource]) { $resource.options.dependson += $Dependency.Reference() } else { $resource.options.dependson += $Dependency } } if($PulumiParent -is [pulumiresource]) { $resource.options.parent = $PulumiParent.Reference() } else { $resource.options.parent = $PulumiParent } foreach($provider in $PulumiProviders) { if($provider -is [pulumiprovider]) { $resource.options.providers += $provider.Reference() } else { $resource.options.providers += $provider } } if($PulumiProvider -is [pulumiprovider]) { $resource.options.provider = $PulumiProvider.Reference() } else { $resource.options.provider = $PulumiProvider } $resource.properties["autoAnalyze"] = $autoAnalyze $resource.properties["hubName"] = $hubName $resource.properties["mappings"] = $mappings $resource.properties["negativeOutcomeExpression"] = $negativeOutcomeExpression $resource.properties["positiveOutcomeExpression"] = $positiveOutcomeExpression $resource.properties["primaryProfileType"] = $primaryProfileType $resource.properties["resourceGroupName"] = $resourceGroupName $resource.properties["scopeExpression"] = $scopeExpression $resource.properties["scoreLabel"] = $scoreLabel if($PSBoundParameters.Keys -icontains 'involvedRelationships') { $resource.properties["involvedRelationships"] = $involvedRelationships } if($PSBoundParameters.Keys -icontains 'displayName') { $resource.properties["displayName"] = $displayName } if($PSBoundParameters.Keys -icontains 'involvedKpiTypes') { $resource.properties["involvedKpiTypes"] = $involvedKpiTypes } if($PSBoundParameters.Keys -icontains 'involvedInteractionTypes') { $resource.properties["involvedInteractionTypes"] = $involvedInteractionTypes } if($PSBoundParameters.Keys -icontains 'description') { $resource.properties["description"] = $description } if($PSBoundParameters.Keys -icontains 'grades') { $resource.properties["grades"] = $grades } if($PSBoundParameters.Keys -icontains 'predictionName') { $resource.properties["predictionName"] = $predictionName } $global:pulumiresources += $resource return $resource } } class ResourceSetDescription { [string[]] $elements [string[]] $exceptions } function New-AzureNativeTypeCustomerinsightsResourceSetDescription { param ( [parameter(mandatory=$False,HelpMessage='The elements included in the set.)')] [string[]] $elements, [parameter(mandatory=$False,HelpMessage='The elements that are not included in the set, in case elements contains ''*'' indicating ''all''.)')] [string[]] $exceptions ) process { return $([ResourceSetDescription]$PSBoundParameters) } } function New-AzureNativeCustomerinsightsRoleAssignment { [Alias('azure_native_customerinsights_roleassignment')] param ( [parameter(mandatory=$False,HelpMessage='Views set for the assignment.)')] [ResourceSetDescription] $views, [parameter(mandatory=$False,HelpMessage='Sas Policies set for the assignment.)')] [ResourceSetDescription] $sasPolicies, [parameter(mandatory=$False,HelpMessage='The Role assignments set for the relationship links.)')] [ResourceSetDescription] $relationshipLinks, [parameter(mandatory=$False,HelpMessage='Connectors set for the assignment.)')] [ResourceSetDescription] $connectors, [parameter(mandatory=$False,HelpMessage='Kpis set for the assignment.)')] [ResourceSetDescription] $kpis, [parameter(mandatory=$False,HelpMessage='The assignment name)')] [string] $assignmentName, [parameter(mandatory=$False,HelpMessage='The principals being assigned to.)')] $principals, [parameter(mandatory=$False,HelpMessage='The name of the hub.)')] [string] $hubName, [parameter(mandatory=$False,HelpMessage='The Role assignments set for the relationships.)')] [ResourceSetDescription] $relationships, [parameter(mandatory=$False,HelpMessage='Widget types set for the assignment.)')] [ResourceSetDescription] $conflationPolicies, [parameter(mandatory=$False,HelpMessage='Widget types set for the assignment.)')] [ResourceSetDescription] $widgetTypes, [parameter(mandatory=$False,HelpMessage='Type of roles.)')] $role, [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The Role assignments set for the assignment.)')] [ResourceSetDescription] $roleAssignments, [parameter(mandatory=$False,HelpMessage='Localized display names for the metadata.)')] [hashtable] $displayName, [parameter(mandatory=$False,HelpMessage='The Role assignments set for the assignment.)')] [ResourceSetDescription] $segments, [parameter(mandatory=$False,HelpMessage='Profiles set for the assignment.)')] [ResourceSetDescription] $profiles, [parameter(mandatory=$False,HelpMessage='Localized description for the metadata.)')] [hashtable] $description, [parameter(mandatory=$False,HelpMessage='Interactions set for the assignment.)')] [ResourceSetDescription] $interactions, [parameter(mandatory=$False,HelpMessage='Links set for the assignment.)')] [ResourceSetDescription] $links, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid, [parameter(HelpMessage='Specifies a list of named output properties that should be treated as secrets, which means they will be encrypted. It augments the list of values that Pulumi detects, based on secret inputs to the resource.')] [string[]] $PulumiSecretOutputs, [parameter(HelpMessage='The aliases parameter provides a list of aliases for a resource or component resource. If youre changing the name, type, or parent path of a resource or component resource, you can add the old name to the list of aliases for a resource to ensure that existing resources will be migrated to the new name instead of being deleted and replaced with the new named resource.')] [string[]] $PulumiAliases, [parameter(HelpMessage='The customTimeouts parameter provides a set of custom timeouts for create, update, and delete operations on a resource. These timeouts are specified using a duration string such as 5m (5 minutes), 40s (40 seconds), or 1d (1 day). Supported duration units are ns, us (or µs), ms, s, m, and h (nanoseconds, microseconds, milliseconds, seconds, minutes, and hours, respectively).')] [pulumicustomtimeouts] $PulumiCustomTimeouts, [parameter(HelpMessage='Setting the PulumiDeleteBeforeReplace parameter to true means that Pulumi will delete the existing resource before creating its replacement. Be aware that this behavior has a cascading impact on dependencies so more resources may be replaced, which can lead to downtime. However, this option may be necessary for some resources that manage scarce resources behind the scenes, and/or resources that cannot exist side-by-side.')] [bool] $PulumiDeleteBeforeReplace, [parameter(HelpMessage='Creates a list of explicit dependencies between resources.The DependsOn parameter ensures that resource creation, update, and deletion operations are done in the correct order.')] [object[]] $PulumiDependsOn, [parameter(HelpMessage='Specifies a list of properties that Pulumi will ignore when it updates existing resources. Any properties specified in this list that are also specified in the resources arguments will only be used when creating the resource.')] [string[]] $PulumiIgnoreChanges, [parameter(HelpMessage='Imports an existing cloud resource so that Pulumi can manage it. To import a resource, first specify the PulumiImport parameter with the resources ID')] [string] $PulumiImport = [NullString]::Value, [parameter(HelpMessage='Specifies a parent for a resource. It is used to associate children with the parents that encapsulate or are responsible for them.')] [object] $PulumiParent = [NullString]::Value, [parameter(HelpMessage='Marks a resource as protected. A protected resource cannot be deleted directly, and it will be an error to do a Pulumi deployment which tries to delete a protected resource for any reason.')] [bool] $PulumiProtect, [parameter(HelpMessage='Sets a provider for the resource. The default is to inherit this value from the parent resource, and to use the ambient provider specified by Pulumi configuration for resources without a parent.')] [object] $PulumiProvider = [NullString]::Value, [parameter(HelpMessage='Sets a list of providers for the resource and its children. This list is combined with resource parents providers lists. If no value is provided, the providers list is identical to the parent. When determining which provider to use for a resource, the providers list is used if provider is not supplied.')] [object[]] $PulumiProviders, [parameter(HelpMessage='Used to indicate that changes to certain properties on a resource should force a replacement of the resource instead of an in-place update. Typically users rely on the resource provider to make this decision based on whether the input property is one that the provider knows how to update in place, or if not, requires a replacement to modify. However, there are cases where users want to replace a resource on a change to an input property even if the resource provider itself doesnt believe it has to replace the resource.')] [string[]] $PulumiReplaceOnChanges, [parameter(HelpMessage='Marks a resource to be retained. If this option is set then Pulumi will not call through to the resource providers Delete method when deleting or replacing the resource during pulumi up or pulumi destroy. As a result, the resource will not be deleted from the backing cloud provider, but will be removed from the Pulumi state.')] [bool] $PulumiRetainOnDelete, [parameter(HelpMessage='Specifies a provider version to use when operating on a resource. This version overrides the version information inferred from the current package. This option should be used rarely.')] [string] $PulumiProviderVersion = [NullString]::Value ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:customerinsights:RoleAssignment") $resource.options.additionalSecretOutputs = $PulumiSecretOutputs $resource.options.aliases = $PulumiAliases $resource.options.customTimeouts = $PulumiCustomTimeouts $resource.options.deleteBeforeReplace = $PulumiDeleteBeforeReplace $resource.options.ignoreChanges = $PulumiIgnoreChanges $resource.options.import = if([string]::IsNullOrEmpty($PulumiImport)) { [NullString]::Value } else { $PulumiImport } $resource.options.protect = $PulumiProtect $resource.options.replaceOnChanges = $PulumiReplaceOnChanges $resource.options.retainOnDelete = $PulumiRetainOnDelete $resource.options.version = if([string]::IsNullOrEmpty($PulumiProviderVersion)) { [NullString]::Value } else { $PulumiProviderVersion } foreach($Dependency in $DependsOn) { if($Dependency -is [pulumiresource]) { $resource.options.dependson += $Dependency.Reference() } else { $resource.options.dependson += $Dependency } } if($PulumiParent -is [pulumiresource]) { $resource.options.parent = $PulumiParent.Reference() } else { $resource.options.parent = $PulumiParent } foreach($provider in $PulumiProviders) { if($provider -is [pulumiprovider]) { $resource.options.providers += $provider.Reference() } else { $resource.options.providers += $provider } } if($PulumiProvider -is [pulumiprovider]) { $resource.options.provider = $PulumiProvider.Reference() } else { $resource.options.provider = $PulumiProvider } $resource.properties["hubName"] = $hubName $resource.properties["principals"] = $principals $resource.properties["resourceGroupName"] = $resourceGroupName $resource.properties["role"] = $role if($PSBoundParameters.Keys -icontains 'views') { $resource.properties["views"] = $views } if($PSBoundParameters.Keys -icontains 'sasPolicies') { $resource.properties["sasPolicies"] = $sasPolicies } if($PSBoundParameters.Keys -icontains 'relationshipLinks') { $resource.properties["relationshipLinks"] = $relationshipLinks } if($PSBoundParameters.Keys -icontains 'connectors') { $resource.properties["connectors"] = $connectors } if($PSBoundParameters.Keys -icontains 'kpis') { $resource.properties["kpis"] = $kpis } if($PSBoundParameters.Keys -icontains 'assignmentName') { $resource.properties["assignmentName"] = $assignmentName } if($PSBoundParameters.Keys -icontains 'relationships') { $resource.properties["relationships"] = $relationships } if($PSBoundParameters.Keys -icontains 'conflationPolicies') { $resource.properties["conflationPolicies"] = $conflationPolicies } if($PSBoundParameters.Keys -icontains 'widgetTypes') { $resource.properties["widgetTypes"] = $widgetTypes } if($PSBoundParameters.Keys -icontains 'roleAssignments') { $resource.properties["roleAssignments"] = $roleAssignments } if($PSBoundParameters.Keys -icontains 'displayName') { $resource.properties["displayName"] = $displayName } if($PSBoundParameters.Keys -icontains 'segments') { $resource.properties["segments"] = $segments } if($PSBoundParameters.Keys -icontains 'profiles') { $resource.properties["profiles"] = $profiles } if($PSBoundParameters.Keys -icontains 'description') { $resource.properties["description"] = $description } if($PSBoundParameters.Keys -icontains 'interactions') { $resource.properties["interactions"] = $interactions } if($PSBoundParameters.Keys -icontains 'links') { $resource.properties["links"] = $links } $global:pulumiresources += $resource return $resource } } function New-AzureNativeCustomerinsightsRelationshipLink { [Alias('azure_native_customerinsights_relationshiplink')] param ( [parameter(mandatory=$False,HelpMessage='The property references for the Related Profile of the Relationship.)')] $relatedProfilePropertyReferences, [parameter(mandatory=$False,HelpMessage='The name of the relationship link.)')] [string] $relationshipLinkName, [parameter(mandatory=$False,HelpMessage='Localized descriptions for the Relationship Link.)')] [hashtable] $description, [parameter(mandatory=$False,HelpMessage='Localized display name for the Relationship Link.)')] [hashtable] $displayName, [parameter(mandatory=$False,HelpMessage='The name of the hub.)')] [string] $hubName, [parameter(mandatory=$False,HelpMessage='The Relationship associated with the Link.)')] [string] $relationshipName, [parameter(mandatory=$False,HelpMessage='The property references for the Profile of the Relationship.)')] $profilePropertyReferences, [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The InteractionType associated with the Relationship Link.)')] [string] $interactionType, [parameter(mandatory=$False,HelpMessage='The mappings between Interaction and Relationship fields.)')] $mappings, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid, [parameter(HelpMessage='Specifies a list of named output properties that should be treated as secrets, which means they will be encrypted. It augments the list of values that Pulumi detects, based on secret inputs to the resource.')] [string[]] $PulumiSecretOutputs, [parameter(HelpMessage='The aliases parameter provides a list of aliases for a resource or component resource. If youre changing the name, type, or parent path of a resource or component resource, you can add the old name to the list of aliases for a resource to ensure that existing resources will be migrated to the new name instead of being deleted and replaced with the new named resource.')] [string[]] $PulumiAliases, [parameter(HelpMessage='The customTimeouts parameter provides a set of custom timeouts for create, update, and delete operations on a resource. These timeouts are specified using a duration string such as 5m (5 minutes), 40s (40 seconds), or 1d (1 day). Supported duration units are ns, us (or µs), ms, s, m, and h (nanoseconds, microseconds, milliseconds, seconds, minutes, and hours, respectively).')] [pulumicustomtimeouts] $PulumiCustomTimeouts, [parameter(HelpMessage='Setting the PulumiDeleteBeforeReplace parameter to true means that Pulumi will delete the existing resource before creating its replacement. Be aware that this behavior has a cascading impact on dependencies so more resources may be replaced, which can lead to downtime. However, this option may be necessary for some resources that manage scarce resources behind the scenes, and/or resources that cannot exist side-by-side.')] [bool] $PulumiDeleteBeforeReplace, [parameter(HelpMessage='Creates a list of explicit dependencies between resources.The DependsOn parameter ensures that resource creation, update, and deletion operations are done in the correct order.')] [object[]] $PulumiDependsOn, [parameter(HelpMessage='Specifies a list of properties that Pulumi will ignore when it updates existing resources. Any properties specified in this list that are also specified in the resources arguments will only be used when creating the resource.')] [string[]] $PulumiIgnoreChanges, [parameter(HelpMessage='Imports an existing cloud resource so that Pulumi can manage it. To import a resource, first specify the PulumiImport parameter with the resources ID')] [string] $PulumiImport = [NullString]::Value, [parameter(HelpMessage='Specifies a parent for a resource. It is used to associate children with the parents that encapsulate or are responsible for them.')] [object] $PulumiParent = [NullString]::Value, [parameter(HelpMessage='Marks a resource as protected. A protected resource cannot be deleted directly, and it will be an error to do a Pulumi deployment which tries to delete a protected resource for any reason.')] [bool] $PulumiProtect, [parameter(HelpMessage='Sets a provider for the resource. The default is to inherit this value from the parent resource, and to use the ambient provider specified by Pulumi configuration for resources without a parent.')] [object] $PulumiProvider = [NullString]::Value, [parameter(HelpMessage='Sets a list of providers for the resource and its children. This list is combined with resource parents providers lists. If no value is provided, the providers list is identical to the parent. When determining which provider to use for a resource, the providers list is used if provider is not supplied.')] [object[]] $PulumiProviders, [parameter(HelpMessage='Used to indicate that changes to certain properties on a resource should force a replacement of the resource instead of an in-place update. Typically users rely on the resource provider to make this decision based on whether the input property is one that the provider knows how to update in place, or if not, requires a replacement to modify. However, there are cases where users want to replace a resource on a change to an input property even if the resource provider itself doesnt believe it has to replace the resource.')] [string[]] $PulumiReplaceOnChanges, [parameter(HelpMessage='Marks a resource to be retained. If this option is set then Pulumi will not call through to the resource providers Delete method when deleting or replacing the resource during pulumi up or pulumi destroy. As a result, the resource will not be deleted from the backing cloud provider, but will be removed from the Pulumi state.')] [bool] $PulumiRetainOnDelete, [parameter(HelpMessage='Specifies a provider version to use when operating on a resource. This version overrides the version information inferred from the current package. This option should be used rarely.')] [string] $PulumiProviderVersion = [NullString]::Value ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:customerinsights:RelationshipLink") $resource.options.additionalSecretOutputs = $PulumiSecretOutputs $resource.options.aliases = $PulumiAliases $resource.options.customTimeouts = $PulumiCustomTimeouts $resource.options.deleteBeforeReplace = $PulumiDeleteBeforeReplace $resource.options.ignoreChanges = $PulumiIgnoreChanges $resource.options.import = if([string]::IsNullOrEmpty($PulumiImport)) { [NullString]::Value } else { $PulumiImport } $resource.options.protect = $PulumiProtect $resource.options.replaceOnChanges = $PulumiReplaceOnChanges $resource.options.retainOnDelete = $PulumiRetainOnDelete $resource.options.version = if([string]::IsNullOrEmpty($PulumiProviderVersion)) { [NullString]::Value } else { $PulumiProviderVersion } foreach($Dependency in $DependsOn) { if($Dependency -is [pulumiresource]) { $resource.options.dependson += $Dependency.Reference() } else { $resource.options.dependson += $Dependency } } if($PulumiParent -is [pulumiresource]) { $resource.options.parent = $PulumiParent.Reference() } else { $resource.options.parent = $PulumiParent } foreach($provider in $PulumiProviders) { if($provider -is [pulumiprovider]) { $resource.options.providers += $provider.Reference() } else { $resource.options.providers += $provider } } if($PulumiProvider -is [pulumiprovider]) { $resource.options.provider = $PulumiProvider.Reference() } else { $resource.options.provider = $PulumiProvider } $resource.properties["hubName"] = $hubName $resource.properties["interactionType"] = $interactionType $resource.properties["profilePropertyReferences"] = $profilePropertyReferences $resource.properties["relatedProfilePropertyReferences"] = $relatedProfilePropertyReferences $resource.properties["relationshipName"] = $relationshipName $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'relationshipLinkName') { $resource.properties["relationshipLinkName"] = $relationshipLinkName } if($PSBoundParameters.Keys -icontains 'description') { $resource.properties["description"] = $description } if($PSBoundParameters.Keys -icontains 'displayName') { $resource.properties["displayName"] = $displayName } if($PSBoundParameters.Keys -icontains 'mappings') { $resource.properties["mappings"] = $mappings } $global:pulumiresources += $resource return $resource } } function New-AzureNativeCustomerinsightsConnector { [Alias('azure_native_customerinsights_connector')] param ( [parameter(mandatory=$False,HelpMessage='If this is an internal connector.)')] [bool] $isInternal, [parameter(mandatory=$False,HelpMessage='Description of the connector.)')] [string] $description, [parameter(mandatory=$False,HelpMessage='Display name of the connector.)')] [string] $displayName, [parameter(mandatory=$False,HelpMessage='Name of the connector.)')] [string] $connectorName, [parameter(mandatory=$False,HelpMessage='The name of the hub.)')] [string] $hubName, [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The connector properties.)')] [object] $connectorProperties, [parameter(mandatory=$False,HelpMessage='Type of connector.)')] [string] [ArgumentCompletions('None', 'CRM', 'AzureBlob', 'Salesforce', 'ExchangeOnline', 'Outbound')] $connectorType, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid, [parameter(HelpMessage='Specifies a list of named output properties that should be treated as secrets, which means they will be encrypted. It augments the list of values that Pulumi detects, based on secret inputs to the resource.')] [string[]] $PulumiSecretOutputs, [parameter(HelpMessage='The aliases parameter provides a list of aliases for a resource or component resource. If youre changing the name, type, or parent path of a resource or component resource, you can add the old name to the list of aliases for a resource to ensure that existing resources will be migrated to the new name instead of being deleted and replaced with the new named resource.')] [string[]] $PulumiAliases, [parameter(HelpMessage='The customTimeouts parameter provides a set of custom timeouts for create, update, and delete operations on a resource. These timeouts are specified using a duration string such as 5m (5 minutes), 40s (40 seconds), or 1d (1 day). Supported duration units are ns, us (or µs), ms, s, m, and h (nanoseconds, microseconds, milliseconds, seconds, minutes, and hours, respectively).')] [pulumicustomtimeouts] $PulumiCustomTimeouts, [parameter(HelpMessage='Setting the PulumiDeleteBeforeReplace parameter to true means that Pulumi will delete the existing resource before creating its replacement. Be aware that this behavior has a cascading impact on dependencies so more resources may be replaced, which can lead to downtime. However, this option may be necessary for some resources that manage scarce resources behind the scenes, and/or resources that cannot exist side-by-side.')] [bool] $PulumiDeleteBeforeReplace, [parameter(HelpMessage='Creates a list of explicit dependencies between resources.The DependsOn parameter ensures that resource creation, update, and deletion operations are done in the correct order.')] [object[]] $PulumiDependsOn, [parameter(HelpMessage='Specifies a list of properties that Pulumi will ignore when it updates existing resources. Any properties specified in this list that are also specified in the resources arguments will only be used when creating the resource.')] [string[]] $PulumiIgnoreChanges, [parameter(HelpMessage='Imports an existing cloud resource so that Pulumi can manage it. To import a resource, first specify the PulumiImport parameter with the resources ID')] [string] $PulumiImport = [NullString]::Value, [parameter(HelpMessage='Specifies a parent for a resource. It is used to associate children with the parents that encapsulate or are responsible for them.')] [object] $PulumiParent = [NullString]::Value, [parameter(HelpMessage='Marks a resource as protected. A protected resource cannot be deleted directly, and it will be an error to do a Pulumi deployment which tries to delete a protected resource for any reason.')] [bool] $PulumiProtect, [parameter(HelpMessage='Sets a provider for the resource. The default is to inherit this value from the parent resource, and to use the ambient provider specified by Pulumi configuration for resources without a parent.')] [object] $PulumiProvider = [NullString]::Value, [parameter(HelpMessage='Sets a list of providers for the resource and its children. This list is combined with resource parents providers lists. If no value is provided, the providers list is identical to the parent. When determining which provider to use for a resource, the providers list is used if provider is not supplied.')] [object[]] $PulumiProviders, [parameter(HelpMessage='Used to indicate that changes to certain properties on a resource should force a replacement of the resource instead of an in-place update. Typically users rely on the resource provider to make this decision based on whether the input property is one that the provider knows how to update in place, or if not, requires a replacement to modify. However, there are cases where users want to replace a resource on a change to an input property even if the resource provider itself doesnt believe it has to replace the resource.')] [string[]] $PulumiReplaceOnChanges, [parameter(HelpMessage='Marks a resource to be retained. If this option is set then Pulumi will not call through to the resource providers Delete method when deleting or replacing the resource during pulumi up or pulumi destroy. As a result, the resource will not be deleted from the backing cloud provider, but will be removed from the Pulumi state.')] [bool] $PulumiRetainOnDelete, [parameter(HelpMessage='Specifies a provider version to use when operating on a resource. This version overrides the version information inferred from the current package. This option should be used rarely.')] [string] $PulumiProviderVersion = [NullString]::Value ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:customerinsights:Connector") $resource.options.additionalSecretOutputs = $PulumiSecretOutputs $resource.options.aliases = $PulumiAliases $resource.options.customTimeouts = $PulumiCustomTimeouts $resource.options.deleteBeforeReplace = $PulumiDeleteBeforeReplace $resource.options.ignoreChanges = $PulumiIgnoreChanges $resource.options.import = if([string]::IsNullOrEmpty($PulumiImport)) { [NullString]::Value } else { $PulumiImport } $resource.options.protect = $PulumiProtect $resource.options.replaceOnChanges = $PulumiReplaceOnChanges $resource.options.retainOnDelete = $PulumiRetainOnDelete $resource.options.version = if([string]::IsNullOrEmpty($PulumiProviderVersion)) { [NullString]::Value } else { $PulumiProviderVersion } foreach($Dependency in $DependsOn) { if($Dependency -is [pulumiresource]) { $resource.options.dependson += $Dependency.Reference() } else { $resource.options.dependson += $Dependency } } if($PulumiParent -is [pulumiresource]) { $resource.options.parent = $PulumiParent.Reference() } else { $resource.options.parent = $PulumiParent } foreach($provider in $PulumiProviders) { if($provider -is [pulumiprovider]) { $resource.options.providers += $provider.Reference() } else { $resource.options.providers += $provider } } if($PulumiProvider -is [pulumiprovider]) { $resource.options.provider = $PulumiProvider.Reference() } else { $resource.options.provider = $PulumiProvider } $resource.properties["connectorProperties"] = $connectorProperties $resource.properties["connectorType"] = $connectorType $resource.properties["hubName"] = $hubName $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'isInternal') { $resource.properties["isInternal"] = $isInternal } if($PSBoundParameters.Keys -icontains 'description') { $resource.properties["description"] = $description } if($PSBoundParameters.Keys -icontains 'displayName') { $resource.properties["displayName"] = $displayName } if($PSBoundParameters.Keys -icontains 'connectorName') { $resource.properties["connectorName"] = $connectorName } $global:pulumiresources += $resource return $resource } } class KpiThresholds { [int] $lowerLimit [int] $upperLimit [bool] $increasingKpi } function New-AzureNativeTypeCustomerinsightsKpiThresholds { param ( [parameter(mandatory=$False,HelpMessage='The lower threshold limit.)')] [int] $lowerLimit, [parameter(mandatory=$False,HelpMessage='The upper threshold limit.)')] [int] $upperLimit, [parameter(mandatory=$False,HelpMessage='Whether or not the KPI is an increasing KPI.)')] [bool] $increasingKpi ) process { return $([KpiThresholds]$PSBoundParameters) } } function New-AzureNativeCustomerinsightsKpi { [Alias('azure_native_customerinsights_kpi')] param ( [parameter(mandatory=$False,HelpMessage='Localized description for the KPI.)')] [hashtable] $description, [parameter(mandatory=$False,HelpMessage='The unit of measurement for the KPI.)')] [string] $unit, [parameter(mandatory=$False,HelpMessage='Localized display name for the KPI.)')] [hashtable] $displayName, [parameter(mandatory=$False,HelpMessage='the group by properties for the KPI.)')] [string[]] $groupBy, [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='Name of calculation window field.)')] [string] $calculationWindowFieldName, [parameter(mandatory=$False,HelpMessage='The mapping entity name.)')] [string] $entityTypeName, [parameter(mandatory=$False,HelpMessage='The computation function for the KPI.)')] $function, [parameter(mandatory=$False,HelpMessage='The KPI thresholds.)')] [KpiThresholds] $thresHolds, [parameter(mandatory=$False,HelpMessage='The aliases.)')] $aliases, [parameter(mandatory=$False,HelpMessage='The computation expression for the KPI.)')] [string] $expression, [parameter(mandatory=$False,HelpMessage='The name of the KPI.)')] [string] $kpiName, [parameter(mandatory=$False,HelpMessage='The mapping entity type.)')] $entityType, [parameter(mandatory=$False,HelpMessage='The filter expression for the KPI.)')] [string] $filter, [parameter(mandatory=$False,HelpMessage='The calculation window.)')] $calculationWindow, [parameter(mandatory=$False,HelpMessage='The KPI extracts.)')] $extracts, [parameter(mandatory=$False,HelpMessage='The name of the hub.)')] [string] $hubName, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid, [parameter(HelpMessage='Specifies a list of named output properties that should be treated as secrets, which means they will be encrypted. It augments the list of values that Pulumi detects, based on secret inputs to the resource.')] [string[]] $PulumiSecretOutputs, [parameter(HelpMessage='The aliases parameter provides a list of aliases for a resource or component resource. If youre changing the name, type, or parent path of a resource or component resource, you can add the old name to the list of aliases for a resource to ensure that existing resources will be migrated to the new name instead of being deleted and replaced with the new named resource.')] [string[]] $PulumiAliases, [parameter(HelpMessage='The customTimeouts parameter provides a set of custom timeouts for create, update, and delete operations on a resource. These timeouts are specified using a duration string such as 5m (5 minutes), 40s (40 seconds), or 1d (1 day). Supported duration units are ns, us (or µs), ms, s, m, and h (nanoseconds, microseconds, milliseconds, seconds, minutes, and hours, respectively).')] [pulumicustomtimeouts] $PulumiCustomTimeouts, [parameter(HelpMessage='Setting the PulumiDeleteBeforeReplace parameter to true means that Pulumi will delete the existing resource before creating its replacement. Be aware that this behavior has a cascading impact on dependencies so more resources may be replaced, which can lead to downtime. However, this option may be necessary for some resources that manage scarce resources behind the scenes, and/or resources that cannot exist side-by-side.')] [bool] $PulumiDeleteBeforeReplace, [parameter(HelpMessage='Creates a list of explicit dependencies between resources.The DependsOn parameter ensures that resource creation, update, and deletion operations are done in the correct order.')] [object[]] $PulumiDependsOn, [parameter(HelpMessage='Specifies a list of properties that Pulumi will ignore when it updates existing resources. Any properties specified in this list that are also specified in the resources arguments will only be used when creating the resource.')] [string[]] $PulumiIgnoreChanges, [parameter(HelpMessage='Imports an existing cloud resource so that Pulumi can manage it. To import a resource, first specify the PulumiImport parameter with the resources ID')] [string] $PulumiImport = [NullString]::Value, [parameter(HelpMessage='Specifies a parent for a resource. It is used to associate children with the parents that encapsulate or are responsible for them.')] [object] $PulumiParent = [NullString]::Value, [parameter(HelpMessage='Marks a resource as protected. A protected resource cannot be deleted directly, and it will be an error to do a Pulumi deployment which tries to delete a protected resource for any reason.')] [bool] $PulumiProtect, [parameter(HelpMessage='Sets a provider for the resource. The default is to inherit this value from the parent resource, and to use the ambient provider specified by Pulumi configuration for resources without a parent.')] [object] $PulumiProvider = [NullString]::Value, [parameter(HelpMessage='Sets a list of providers for the resource and its children. This list is combined with resource parents providers lists. If no value is provided, the providers list is identical to the parent. When determining which provider to use for a resource, the providers list is used if provider is not supplied.')] [object[]] $PulumiProviders, [parameter(HelpMessage='Used to indicate that changes to certain properties on a resource should force a replacement of the resource instead of an in-place update. Typically users rely on the resource provider to make this decision based on whether the input property is one that the provider knows how to update in place, or if not, requires a replacement to modify. However, there are cases where users want to replace a resource on a change to an input property even if the resource provider itself doesnt believe it has to replace the resource.')] [string[]] $PulumiReplaceOnChanges, [parameter(HelpMessage='Marks a resource to be retained. If this option is set then Pulumi will not call through to the resource providers Delete method when deleting or replacing the resource during pulumi up or pulumi destroy. As a result, the resource will not be deleted from the backing cloud provider, but will be removed from the Pulumi state.')] [bool] $PulumiRetainOnDelete, [parameter(HelpMessage='Specifies a provider version to use when operating on a resource. This version overrides the version information inferred from the current package. This option should be used rarely.')] [string] $PulumiProviderVersion = [NullString]::Value ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:customerinsights:Kpi") $resource.options.additionalSecretOutputs = $PulumiSecretOutputs $resource.options.aliases = $PulumiAliases $resource.options.customTimeouts = $PulumiCustomTimeouts $resource.options.deleteBeforeReplace = $PulumiDeleteBeforeReplace $resource.options.ignoreChanges = $PulumiIgnoreChanges $resource.options.import = if([string]::IsNullOrEmpty($PulumiImport)) { [NullString]::Value } else { $PulumiImport } $resource.options.protect = $PulumiProtect $resource.options.replaceOnChanges = $PulumiReplaceOnChanges $resource.options.retainOnDelete = $PulumiRetainOnDelete $resource.options.version = if([string]::IsNullOrEmpty($PulumiProviderVersion)) { [NullString]::Value } else { $PulumiProviderVersion } foreach($Dependency in $DependsOn) { if($Dependency -is [pulumiresource]) { $resource.options.dependson += $Dependency.Reference() } else { $resource.options.dependson += $Dependency } } if($PulumiParent -is [pulumiresource]) { $resource.options.parent = $PulumiParent.Reference() } else { $resource.options.parent = $PulumiParent } foreach($provider in $PulumiProviders) { if($provider -is [pulumiprovider]) { $resource.options.providers += $provider.Reference() } else { $resource.options.providers += $provider } } if($PulumiProvider -is [pulumiprovider]) { $resource.options.provider = $PulumiProvider.Reference() } else { $resource.options.provider = $PulumiProvider } $resource.properties["calculationWindow"] = $calculationWindow $resource.properties["entityType"] = $entityType $resource.properties["entityTypeName"] = $entityTypeName $resource.properties["expression"] = $expression $resource.properties["function"] = $function $resource.properties["hubName"] = $hubName $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'description') { $resource.properties["description"] = $description } if($PSBoundParameters.Keys -icontains 'unit') { $resource.properties["unit"] = $unit } if($PSBoundParameters.Keys -icontains 'displayName') { $resource.properties["displayName"] = $displayName } if($PSBoundParameters.Keys -icontains 'groupBy') { $resource.properties["groupBy"] = $groupBy } if($PSBoundParameters.Keys -icontains 'calculationWindowFieldName') { $resource.properties["calculationWindowFieldName"] = $calculationWindowFieldName } if($PSBoundParameters.Keys -icontains 'thresHolds') { $resource.properties["thresHolds"] = $thresHolds } if($PSBoundParameters.Keys -icontains 'aliases') { $resource.properties["aliases"] = $aliases } if($PSBoundParameters.Keys -icontains 'kpiName') { $resource.properties["kpiName"] = $kpiName } if($PSBoundParameters.Keys -icontains 'filter') { $resource.properties["filter"] = $filter } if($PSBoundParameters.Keys -icontains 'extracts') { $resource.properties["extracts"] = $extracts } $global:pulumiresources += $resource return $resource } } function New-AzureNativeCustomerinsightsProfile { [Alias('azure_native_customerinsights_profile')] param ( [parameter(mandatory=$False,HelpMessage='The api entity set name. This becomes the odata entity set name for the entity Type being referred in this object.)')] [string] $apiEntitySetName, [parameter(mandatory=$False,HelpMessage='Type of entity.)')] $entityType, [parameter(mandatory=$False,HelpMessage='The schema org link. This helps ACI identify and suggest semantic models.)')] [string] $schemaItemTypeLink, [parameter(mandatory=$False,HelpMessage='Large Image associated with the Property or EntityType.)')] [string] $largeImage, [parameter(mandatory=$False,HelpMessage='Localized descriptions for the property.)')] [hashtable] $description, [parameter(mandatory=$False,HelpMessage='Small Image associated with the Property or EntityType.)')] [string] $smallImage, [parameter(mandatory=$False,HelpMessage='The name of the hub.)')] [string] $hubName, [parameter(mandatory=$False,HelpMessage='The timestamp property name. Represents the time when the interaction or profile update happened.)')] [string] $timestampFieldName, [parameter(mandatory=$False,HelpMessage='The name of the entity.)')] [string] $typeName, [parameter(mandatory=$False,HelpMessage='The name of the profile.)')] [string] $profileName, [parameter(mandatory=$False,HelpMessage='The attributes for the Type.)')] [object] $attributes, [parameter(mandatory=$False,HelpMessage='Medium Image associated with the Property or EntityType.)')] [string] $mediumImage, [parameter(mandatory=$False,HelpMessage='Localized display names for the property.)')] [hashtable] $displayName, [parameter(mandatory=$False,HelpMessage='The strong IDs.)')] $strongIds, [parameter(mandatory=$False,HelpMessage='The instance count.)')] [int] $instancesCount, [parameter(mandatory=$False,HelpMessage='Any custom localized attributes for the Type.)')] [object] $localizedAttributes, [parameter(mandatory=$False,HelpMessage='The properties of the Profile.)')] $fields, [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')] [string] $resourceGroupName, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid, [parameter(HelpMessage='Specifies a list of named output properties that should be treated as secrets, which means they will be encrypted. It augments the list of values that Pulumi detects, based on secret inputs to the resource.')] [string[]] $PulumiSecretOutputs, [parameter(HelpMessage='The aliases parameter provides a list of aliases for a resource or component resource. If youre changing the name, type, or parent path of a resource or component resource, you can add the old name to the list of aliases for a resource to ensure that existing resources will be migrated to the new name instead of being deleted and replaced with the new named resource.')] [string[]] $PulumiAliases, [parameter(HelpMessage='The customTimeouts parameter provides a set of custom timeouts for create, update, and delete operations on a resource. These timeouts are specified using a duration string such as 5m (5 minutes), 40s (40 seconds), or 1d (1 day). Supported duration units are ns, us (or µs), ms, s, m, and h (nanoseconds, microseconds, milliseconds, seconds, minutes, and hours, respectively).')] [pulumicustomtimeouts] $PulumiCustomTimeouts, [parameter(HelpMessage='Setting the PulumiDeleteBeforeReplace parameter to true means that Pulumi will delete the existing resource before creating its replacement. Be aware that this behavior has a cascading impact on dependencies so more resources may be replaced, which can lead to downtime. However, this option may be necessary for some resources that manage scarce resources behind the scenes, and/or resources that cannot exist side-by-side.')] [bool] $PulumiDeleteBeforeReplace, [parameter(HelpMessage='Creates a list of explicit dependencies between resources.The DependsOn parameter ensures that resource creation, update, and deletion operations are done in the correct order.')] [object[]] $PulumiDependsOn, [parameter(HelpMessage='Specifies a list of properties that Pulumi will ignore when it updates existing resources. Any properties specified in this list that are also specified in the resources arguments will only be used when creating the resource.')] [string[]] $PulumiIgnoreChanges, [parameter(HelpMessage='Imports an existing cloud resource so that Pulumi can manage it. To import a resource, first specify the PulumiImport parameter with the resources ID')] [string] $PulumiImport = [NullString]::Value, [parameter(HelpMessage='Specifies a parent for a resource. It is used to associate children with the parents that encapsulate or are responsible for them.')] [object] $PulumiParent = [NullString]::Value, [parameter(HelpMessage='Marks a resource as protected. A protected resource cannot be deleted directly, and it will be an error to do a Pulumi deployment which tries to delete a protected resource for any reason.')] [bool] $PulumiProtect, [parameter(HelpMessage='Sets a provider for the resource. The default is to inherit this value from the parent resource, and to use the ambient provider specified by Pulumi configuration for resources without a parent.')] [object] $PulumiProvider = [NullString]::Value, [parameter(HelpMessage='Sets a list of providers for the resource and its children. This list is combined with resource parents providers lists. If no value is provided, the providers list is identical to the parent. When determining which provider to use for a resource, the providers list is used if provider is not supplied.')] [object[]] $PulumiProviders, [parameter(HelpMessage='Used to indicate that changes to certain properties on a resource should force a replacement of the resource instead of an in-place update. Typically users rely on the resource provider to make this decision based on whether the input property is one that the provider knows how to update in place, or if not, requires a replacement to modify. However, there are cases where users want to replace a resource on a change to an input property even if the resource provider itself doesnt believe it has to replace the resource.')] [string[]] $PulumiReplaceOnChanges, [parameter(HelpMessage='Marks a resource to be retained. If this option is set then Pulumi will not call through to the resource providers Delete method when deleting or replacing the resource during pulumi up or pulumi destroy. As a result, the resource will not be deleted from the backing cloud provider, but will be removed from the Pulumi state.')] [bool] $PulumiRetainOnDelete, [parameter(HelpMessage='Specifies a provider version to use when operating on a resource. This version overrides the version information inferred from the current package. This option should be used rarely.')] [string] $PulumiProviderVersion = [NullString]::Value ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:customerinsights:Profile") $resource.options.additionalSecretOutputs = $PulumiSecretOutputs $resource.options.aliases = $PulumiAliases $resource.options.customTimeouts = $PulumiCustomTimeouts $resource.options.deleteBeforeReplace = $PulumiDeleteBeforeReplace $resource.options.ignoreChanges = $PulumiIgnoreChanges $resource.options.import = if([string]::IsNullOrEmpty($PulumiImport)) { [NullString]::Value } else { $PulumiImport } $resource.options.protect = $PulumiProtect $resource.options.replaceOnChanges = $PulumiReplaceOnChanges $resource.options.retainOnDelete = $PulumiRetainOnDelete $resource.options.version = if([string]::IsNullOrEmpty($PulumiProviderVersion)) { [NullString]::Value } else { $PulumiProviderVersion } foreach($Dependency in $DependsOn) { if($Dependency -is [pulumiresource]) { $resource.options.dependson += $Dependency.Reference() } else { $resource.options.dependson += $Dependency } } if($PulumiParent -is [pulumiresource]) { $resource.options.parent = $PulumiParent.Reference() } else { $resource.options.parent = $PulumiParent } foreach($provider in $PulumiProviders) { if($provider -is [pulumiprovider]) { $resource.options.providers += $provider.Reference() } else { $resource.options.providers += $provider } } if($PulumiProvider -is [pulumiprovider]) { $resource.options.provider = $PulumiProvider.Reference() } else { $resource.options.provider = $PulumiProvider } $resource.properties["hubName"] = $hubName $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'apiEntitySetName') { $resource.properties["apiEntitySetName"] = $apiEntitySetName } if($PSBoundParameters.Keys -icontains 'entityType') { $resource.properties["entityType"] = $entityType } if($PSBoundParameters.Keys -icontains 'schemaItemTypeLink') { $resource.properties["schemaItemTypeLink"] = $schemaItemTypeLink } if($PSBoundParameters.Keys -icontains 'largeImage') { $resource.properties["largeImage"] = $largeImage } if($PSBoundParameters.Keys -icontains 'description') { $resource.properties["description"] = $description } if($PSBoundParameters.Keys -icontains 'smallImage') { $resource.properties["smallImage"] = $smallImage } if($PSBoundParameters.Keys -icontains 'timestampFieldName') { $resource.properties["timestampFieldName"] = $timestampFieldName } if($PSBoundParameters.Keys -icontains 'typeName') { $resource.properties["typeName"] = $typeName } if($PSBoundParameters.Keys -icontains 'profileName') { $resource.properties["profileName"] = $profileName } if($PSBoundParameters.Keys -icontains 'attributes') { $resource.properties["attributes"] = $attributes } if($PSBoundParameters.Keys -icontains 'mediumImage') { $resource.properties["mediumImage"] = $mediumImage } if($PSBoundParameters.Keys -icontains 'displayName') { $resource.properties["displayName"] = $displayName } if($PSBoundParameters.Keys -icontains 'strongIds') { $resource.properties["strongIds"] = $strongIds } if($PSBoundParameters.Keys -icontains 'instancesCount') { $resource.properties["instancesCount"] = $instancesCount } if($PSBoundParameters.Keys -icontains 'localizedAttributes') { $resource.properties["localizedAttributes"] = $localizedAttributes } if($PSBoundParameters.Keys -icontains 'fields') { $resource.properties["fields"] = $fields } $global:pulumiresources += $resource return $resource } } function New-AzureNativeCustomerinsightsRelationship { [Alias('azure_native_customerinsights_relationship')] param ( [parameter(mandatory=$False,HelpMessage='The name of the hub.)')] [string] $hubName, [parameter(mandatory=$False,HelpMessage='The Relationship Cardinality.)')] $cardinality, [parameter(mandatory=$False,HelpMessage='Related profile being referenced.)')] [string] $relatedProfileType, [parameter(mandatory=$False,HelpMessage='Localized descriptions for the Relationship.)')] [hashtable] $description, [parameter(mandatory=$False,HelpMessage='Localized display name for the Relationship.)')] [hashtable] $displayName, [parameter(mandatory=$False,HelpMessage='The properties of the Relationship.)')] $fields, [parameter(mandatory=$False,HelpMessage='Profile type.)')] [string] $profileType, [parameter(mandatory=$False,HelpMessage='The expiry date time in UTC.)')] [string] $expiryDateTimeUtc, [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='Optional property to be used to map fields in profile to their strong ids in related profile.)')] $lookupMappings, [parameter(mandatory=$False,HelpMessage='The name of the Relationship.)')] [string] $relationshipName, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid, [parameter(HelpMessage='Specifies a list of named output properties that should be treated as secrets, which means they will be encrypted. It augments the list of values that Pulumi detects, based on secret inputs to the resource.')] [string[]] $PulumiSecretOutputs, [parameter(HelpMessage='The aliases parameter provides a list of aliases for a resource or component resource. If youre changing the name, type, or parent path of a resource or component resource, you can add the old name to the list of aliases for a resource to ensure that existing resources will be migrated to the new name instead of being deleted and replaced with the new named resource.')] [string[]] $PulumiAliases, [parameter(HelpMessage='The customTimeouts parameter provides a set of custom timeouts for create, update, and delete operations on a resource. These timeouts are specified using a duration string such as 5m (5 minutes), 40s (40 seconds), or 1d (1 day). Supported duration units are ns, us (or µs), ms, s, m, and h (nanoseconds, microseconds, milliseconds, seconds, minutes, and hours, respectively).')] [pulumicustomtimeouts] $PulumiCustomTimeouts, [parameter(HelpMessage='Setting the PulumiDeleteBeforeReplace parameter to true means that Pulumi will delete the existing resource before creating its replacement. Be aware that this behavior has a cascading impact on dependencies so more resources may be replaced, which can lead to downtime. However, this option may be necessary for some resources that manage scarce resources behind the scenes, and/or resources that cannot exist side-by-side.')] [bool] $PulumiDeleteBeforeReplace, [parameter(HelpMessage='Creates a list of explicit dependencies between resources.The DependsOn parameter ensures that resource creation, update, and deletion operations are done in the correct order.')] [object[]] $PulumiDependsOn, [parameter(HelpMessage='Specifies a list of properties that Pulumi will ignore when it updates existing resources. Any properties specified in this list that are also specified in the resources arguments will only be used when creating the resource.')] [string[]] $PulumiIgnoreChanges, [parameter(HelpMessage='Imports an existing cloud resource so that Pulumi can manage it. To import a resource, first specify the PulumiImport parameter with the resources ID')] [string] $PulumiImport = [NullString]::Value, [parameter(HelpMessage='Specifies a parent for a resource. It is used to associate children with the parents that encapsulate or are responsible for them.')] [object] $PulumiParent = [NullString]::Value, [parameter(HelpMessage='Marks a resource as protected. A protected resource cannot be deleted directly, and it will be an error to do a Pulumi deployment which tries to delete a protected resource for any reason.')] [bool] $PulumiProtect, [parameter(HelpMessage='Sets a provider for the resource. The default is to inherit this value from the parent resource, and to use the ambient provider specified by Pulumi configuration for resources without a parent.')] [object] $PulumiProvider = [NullString]::Value, [parameter(HelpMessage='Sets a list of providers for the resource and its children. This list is combined with resource parents providers lists. If no value is provided, the providers list is identical to the parent. When determining which provider to use for a resource, the providers list is used if provider is not supplied.')] [object[]] $PulumiProviders, [parameter(HelpMessage='Used to indicate that changes to certain properties on a resource should force a replacement of the resource instead of an in-place update. Typically users rely on the resource provider to make this decision based on whether the input property is one that the provider knows how to update in place, or if not, requires a replacement to modify. However, there are cases where users want to replace a resource on a change to an input property even if the resource provider itself doesnt believe it has to replace the resource.')] [string[]] $PulumiReplaceOnChanges, [parameter(HelpMessage='Marks a resource to be retained. If this option is set then Pulumi will not call through to the resource providers Delete method when deleting or replacing the resource during pulumi up or pulumi destroy. As a result, the resource will not be deleted from the backing cloud provider, but will be removed from the Pulumi state.')] [bool] $PulumiRetainOnDelete, [parameter(HelpMessage='Specifies a provider version to use when operating on a resource. This version overrides the version information inferred from the current package. This option should be used rarely.')] [string] $PulumiProviderVersion = [NullString]::Value ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:customerinsights:Relationship") $resource.options.additionalSecretOutputs = $PulumiSecretOutputs $resource.options.aliases = $PulumiAliases $resource.options.customTimeouts = $PulumiCustomTimeouts $resource.options.deleteBeforeReplace = $PulumiDeleteBeforeReplace $resource.options.ignoreChanges = $PulumiIgnoreChanges $resource.options.import = if([string]::IsNullOrEmpty($PulumiImport)) { [NullString]::Value } else { $PulumiImport } $resource.options.protect = $PulumiProtect $resource.options.replaceOnChanges = $PulumiReplaceOnChanges $resource.options.retainOnDelete = $PulumiRetainOnDelete $resource.options.version = if([string]::IsNullOrEmpty($PulumiProviderVersion)) { [NullString]::Value } else { $PulumiProviderVersion } foreach($Dependency in $DependsOn) { if($Dependency -is [pulumiresource]) { $resource.options.dependson += $Dependency.Reference() } else { $resource.options.dependson += $Dependency } } if($PulumiParent -is [pulumiresource]) { $resource.options.parent = $PulumiParent.Reference() } else { $resource.options.parent = $PulumiParent } foreach($provider in $PulumiProviders) { if($provider -is [pulumiprovider]) { $resource.options.providers += $provider.Reference() } else { $resource.options.providers += $provider } } if($PulumiProvider -is [pulumiprovider]) { $resource.options.provider = $PulumiProvider.Reference() } else { $resource.options.provider = $PulumiProvider } $resource.properties["hubName"] = $hubName $resource.properties["profileType"] = $profileType $resource.properties["relatedProfileType"] = $relatedProfileType $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'cardinality') { $resource.properties["cardinality"] = $cardinality } if($PSBoundParameters.Keys -icontains 'description') { $resource.properties["description"] = $description } if($PSBoundParameters.Keys -icontains 'displayName') { $resource.properties["displayName"] = $displayName } if($PSBoundParameters.Keys -icontains 'fields') { $resource.properties["fields"] = $fields } if($PSBoundParameters.Keys -icontains 'expiryDateTimeUtc') { $resource.properties["expiryDateTimeUtc"] = $expiryDateTimeUtc } if($PSBoundParameters.Keys -icontains 'lookupMappings') { $resource.properties["lookupMappings"] = $lookupMappings } if($PSBoundParameters.Keys -icontains 'relationshipName') { $resource.properties["relationshipName"] = $relationshipName } $global:pulumiresources += $resource return $resource } } class ConnectorMappingErrorManagement { [ArgumentCompletions('RejectAndContinue', 'StopImport', 'RejectUntilLimit')] [object] $errorManagementType [int] $errorLimit } function New-AzureNativeTypeCustomerinsightsConnectorMappingErrorManagement { param ( [parameter(mandatory=$False,HelpMessage='The type of error management to use for the mapping.)')] $errorManagementType, [parameter(mandatory=$False,HelpMessage='The error limit allowed while importing data.)')] [int] $errorLimit ) process { return $([ConnectorMappingErrorManagement]$PSBoundParameters) } } class ConnectorMappingCompleteOperation { [ArgumentCompletions('DoNothing', 'DeleteFile', 'MoveFile')] [object] $completionOperationType [string] $destinationFolder } function New-AzureNativeTypeCustomerinsightsConnectorMappingCompleteOperation { param ( [parameter(mandatory=$False,HelpMessage='The type of completion operation.)')] $completionOperationType, [parameter(mandatory=$False,HelpMessage='The destination folder where files will be moved to once the import is done.)')] [string] $destinationFolder ) process { return $([ConnectorMappingCompleteOperation]$PSBoundParameters) } } class ConnectorMappingAvailability { [ArgumentCompletions('Minute', 'Hour', 'Day', 'Week', 'Month')] [object] $frequency [int] $interval } function New-AzureNativeTypeCustomerinsightsConnectorMappingAvailability { param ( [parameter(mandatory=$False,HelpMessage='The frequency to update.)')] $frequency, [parameter(mandatory=$False,HelpMessage='The interval of the given frequency to use.)')] [int] $interval ) process { return $([ConnectorMappingAvailability]$PSBoundParameters) } } class ConnectorMappingStructure { [bool] $isEncrypted [string] $propertyName [string] $columnName [string] $customFormatSpecifier } function New-AzureNativeTypeCustomerinsightsConnectorMappingStructure { param ( [parameter(mandatory=$False,HelpMessage='Indicates if the column is encrypted.)')] [bool] $isEncrypted, [parameter(mandatory=$False,HelpMessage='The property name of the mapping entity.)')] [string] $propertyName, [parameter(mandatory=$False,HelpMessage='The column name of the import file.)')] [string] $columnName, [parameter(mandatory=$False,HelpMessage='Custom format specifier for input parsing.)')] [string] $customFormatSpecifier ) process { return $([ConnectorMappingStructure]$PSBoundParameters) } } class ConnectorMappingFormat { [string] $acceptLanguage [string] $quoteCharacter [string] $quoteEscapeCharacter [string] $arraySeparator [string] $columnDelimiter [ArgumentCompletions('TextFormat')] [object] $formatType } function New-AzureNativeTypeCustomerinsightsConnectorMappingFormat { param ( [parameter(mandatory=$False,HelpMessage='The oData language.)')] [string] $acceptLanguage, [parameter(mandatory=$False,HelpMessage='Quote character, used to indicate enquoted fields.)')] [string] $quoteCharacter, [parameter(mandatory=$False,HelpMessage='Escape character for quotes, can be the same as the quoteCharacter.)')] [string] $quoteEscapeCharacter, [parameter(mandatory=$False,HelpMessage='Character separating array elements.)')] [string] $arraySeparator, [parameter(mandatory=$False,HelpMessage='The character that signifies a break between columns.)')] [string] $columnDelimiter, [parameter(mandatory=$False,HelpMessage='The type mapping format.)')] $formatType ) process { return $([ConnectorMappingFormat]$PSBoundParameters) } } class ConnectorMappingProperties { [ConnectorMappingErrorManagement] $errorManagement [ConnectorMappingCompleteOperation] $completeOperation [ConnectorMappingAvailability] $availability [ConnectorMappingStructure[]] $structure [string] $fileFilter [string] $folderPath [bool] $hasHeader [ConnectorMappingFormat] $format } function New-AzureNativeTypeCustomerinsightsConnectorMappingProperties { param ( [parameter(mandatory=$False,HelpMessage='The error management setting for the mapping.)')] [ConnectorMappingErrorManagement] $errorManagement, [parameter(mandatory=$False,HelpMessage='The operation after import is done.)')] [ConnectorMappingCompleteOperation] $completeOperation, [parameter(mandatory=$False,HelpMessage='The availability of mapping property.)')] [ConnectorMappingAvailability] $availability, [parameter(mandatory=$False,HelpMessage='Ingestion mapping information at property level.)')] $structure, [parameter(mandatory=$False,HelpMessage='The file filter for the mapping.)')] [string] $fileFilter, [parameter(mandatory=$False,HelpMessage='The folder path for the mapping.)')] [string] $folderPath, [parameter(mandatory=$False,HelpMessage='If the file contains a header or not.)')] [bool] $hasHeader, [parameter(mandatory=$False,HelpMessage='The format of mapping property.)')] [ConnectorMappingFormat] $format ) process { return $([ConnectorMappingProperties]$PSBoundParameters) } } function New-AzureNativeCustomerinsightsConnectorMapping { [Alias('azure_native_customerinsights_connectormapping')] param ( [parameter(mandatory=$False,HelpMessage='The properties of the mapping.)')] [ConnectorMappingProperties] $mappingProperties, [parameter(mandatory=$False,HelpMessage='Type of connector.)')] [string] [ArgumentCompletions('None', 'CRM', 'AzureBlob', 'Salesforce', 'ExchangeOnline', 'Outbound')] $connectorType, [parameter(mandatory=$False,HelpMessage='The description of the connector mapping.)')] [string] $description, [parameter(mandatory=$False,HelpMessage='Display name for the connector mapping.)')] [string] $displayName, [parameter(mandatory=$False,HelpMessage='The name of the hub.)')] [string] $hubName, [parameter(mandatory=$False,HelpMessage='The name of the connector.)')] [string] $connectorName, [parameter(mandatory=$False,HelpMessage='The mapping entity name.)')] [string] $entityTypeName, [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='Defines which entity type the file should map to.)')] $entityType, [parameter(mandatory=$False,HelpMessage='The name of the connector mapping.)')] [string] $mappingName, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid, [parameter(HelpMessage='Specifies a list of named output properties that should be treated as secrets, which means they will be encrypted. It augments the list of values that Pulumi detects, based on secret inputs to the resource.')] [string[]] $PulumiSecretOutputs, [parameter(HelpMessage='The aliases parameter provides a list of aliases for a resource or component resource. If youre changing the name, type, or parent path of a resource or component resource, you can add the old name to the list of aliases for a resource to ensure that existing resources will be migrated to the new name instead of being deleted and replaced with the new named resource.')] [string[]] $PulumiAliases, [parameter(HelpMessage='The customTimeouts parameter provides a set of custom timeouts for create, update, and delete operations on a resource. These timeouts are specified using a duration string such as 5m (5 minutes), 40s (40 seconds), or 1d (1 day). Supported duration units are ns, us (or µs), ms, s, m, and h (nanoseconds, microseconds, milliseconds, seconds, minutes, and hours, respectively).')] [pulumicustomtimeouts] $PulumiCustomTimeouts, [parameter(HelpMessage='Setting the PulumiDeleteBeforeReplace parameter to true means that Pulumi will delete the existing resource before creating its replacement. Be aware that this behavior has a cascading impact on dependencies so more resources may be replaced, which can lead to downtime. However, this option may be necessary for some resources that manage scarce resources behind the scenes, and/or resources that cannot exist side-by-side.')] [bool] $PulumiDeleteBeforeReplace, [parameter(HelpMessage='Creates a list of explicit dependencies between resources.The DependsOn parameter ensures that resource creation, update, and deletion operations are done in the correct order.')] [object[]] $PulumiDependsOn, [parameter(HelpMessage='Specifies a list of properties that Pulumi will ignore when it updates existing resources. Any properties specified in this list that are also specified in the resources arguments will only be used when creating the resource.')] [string[]] $PulumiIgnoreChanges, [parameter(HelpMessage='Imports an existing cloud resource so that Pulumi can manage it. To import a resource, first specify the PulumiImport parameter with the resources ID')] [string] $PulumiImport = [NullString]::Value, [parameter(HelpMessage='Specifies a parent for a resource. It is used to associate children with the parents that encapsulate or are responsible for them.')] [object] $PulumiParent = [NullString]::Value, [parameter(HelpMessage='Marks a resource as protected. A protected resource cannot be deleted directly, and it will be an error to do a Pulumi deployment which tries to delete a protected resource for any reason.')] [bool] $PulumiProtect, [parameter(HelpMessage='Sets a provider for the resource. The default is to inherit this value from the parent resource, and to use the ambient provider specified by Pulumi configuration for resources without a parent.')] [object] $PulumiProvider = [NullString]::Value, [parameter(HelpMessage='Sets a list of providers for the resource and its children. This list is combined with resource parents providers lists. If no value is provided, the providers list is identical to the parent. When determining which provider to use for a resource, the providers list is used if provider is not supplied.')] [object[]] $PulumiProviders, [parameter(HelpMessage='Used to indicate that changes to certain properties on a resource should force a replacement of the resource instead of an in-place update. Typically users rely on the resource provider to make this decision based on whether the input property is one that the provider knows how to update in place, or if not, requires a replacement to modify. However, there are cases where users want to replace a resource on a change to an input property even if the resource provider itself doesnt believe it has to replace the resource.')] [string[]] $PulumiReplaceOnChanges, [parameter(HelpMessage='Marks a resource to be retained. If this option is set then Pulumi will not call through to the resource providers Delete method when deleting or replacing the resource during pulumi up or pulumi destroy. As a result, the resource will not be deleted from the backing cloud provider, but will be removed from the Pulumi state.')] [bool] $PulumiRetainOnDelete, [parameter(HelpMessage='Specifies a provider version to use when operating on a resource. This version overrides the version information inferred from the current package. This option should be used rarely.')] [string] $PulumiProviderVersion = [NullString]::Value ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:customerinsights:ConnectorMapping") $resource.options.additionalSecretOutputs = $PulumiSecretOutputs $resource.options.aliases = $PulumiAliases $resource.options.customTimeouts = $PulumiCustomTimeouts $resource.options.deleteBeforeReplace = $PulumiDeleteBeforeReplace $resource.options.ignoreChanges = $PulumiIgnoreChanges $resource.options.import = if([string]::IsNullOrEmpty($PulumiImport)) { [NullString]::Value } else { $PulumiImport } $resource.options.protect = $PulumiProtect $resource.options.replaceOnChanges = $PulumiReplaceOnChanges $resource.options.retainOnDelete = $PulumiRetainOnDelete $resource.options.version = if([string]::IsNullOrEmpty($PulumiProviderVersion)) { [NullString]::Value } else { $PulumiProviderVersion } foreach($Dependency in $DependsOn) { if($Dependency -is [pulumiresource]) { $resource.options.dependson += $Dependency.Reference() } else { $resource.options.dependson += $Dependency } } if($PulumiParent -is [pulumiresource]) { $resource.options.parent = $PulumiParent.Reference() } else { $resource.options.parent = $PulumiParent } foreach($provider in $PulumiProviders) { if($provider -is [pulumiprovider]) { $resource.options.providers += $provider.Reference() } else { $resource.options.providers += $provider } } if($PulumiProvider -is [pulumiprovider]) { $resource.options.provider = $PulumiProvider.Reference() } else { $resource.options.provider = $PulumiProvider } $resource.properties["connectorName"] = $connectorName $resource.properties["entityType"] = $entityType $resource.properties["entityTypeName"] = $entityTypeName $resource.properties["hubName"] = $hubName $resource.properties["mappingProperties"] = $mappingProperties $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'connectorType') { $resource.properties["connectorType"] = $connectorType } if($PSBoundParameters.Keys -icontains 'description') { $resource.properties["description"] = $description } if($PSBoundParameters.Keys -icontains 'displayName') { $resource.properties["displayName"] = $displayName } if($PSBoundParameters.Keys -icontains 'mappingName') { $resource.properties["mappingName"] = $mappingName } $global:pulumiresources += $resource return $resource } } function New-AzureNativeCustomerinsightsView { [Alias('azure_native_customerinsights_view')] param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='the user ID.)')] [string] $userId, [parameter(mandatory=$False,HelpMessage='The name of the view.)')] [string] $viewName, [parameter(mandatory=$False,HelpMessage='Localized display name for the view.)')] [hashtable] $displayName, [parameter(mandatory=$False,HelpMessage='The name of the hub.)')] [string] $hubName, [parameter(mandatory=$False,HelpMessage='View definition.)')] [string] $definition, [parameter(mandatory,HelpMessage='The reference to call when you want to make a dependency to another resource')] [string] $pulumiid, [parameter(HelpMessage='Specifies a list of named output properties that should be treated as secrets, which means they will be encrypted. It augments the list of values that Pulumi detects, based on secret inputs to the resource.')] [string[]] $PulumiSecretOutputs, [parameter(HelpMessage='The aliases parameter provides a list of aliases for a resource or component resource. If youre changing the name, type, or parent path of a resource or component resource, you can add the old name to the list of aliases for a resource to ensure that existing resources will be migrated to the new name instead of being deleted and replaced with the new named resource.')] [string[]] $PulumiAliases, [parameter(HelpMessage='The customTimeouts parameter provides a set of custom timeouts for create, update, and delete operations on a resource. These timeouts are specified using a duration string such as 5m (5 minutes), 40s (40 seconds), or 1d (1 day). Supported duration units are ns, us (or µs), ms, s, m, and h (nanoseconds, microseconds, milliseconds, seconds, minutes, and hours, respectively).')] [pulumicustomtimeouts] $PulumiCustomTimeouts, [parameter(HelpMessage='Setting the PulumiDeleteBeforeReplace parameter to true means that Pulumi will delete the existing resource before creating its replacement. Be aware that this behavior has a cascading impact on dependencies so more resources may be replaced, which can lead to downtime. However, this option may be necessary for some resources that manage scarce resources behind the scenes, and/or resources that cannot exist side-by-side.')] [bool] $PulumiDeleteBeforeReplace, [parameter(HelpMessage='Creates a list of explicit dependencies between resources.The DependsOn parameter ensures that resource creation, update, and deletion operations are done in the correct order.')] [object[]] $PulumiDependsOn, [parameter(HelpMessage='Specifies a list of properties that Pulumi will ignore when it updates existing resources. Any properties specified in this list that are also specified in the resources arguments will only be used when creating the resource.')] [string[]] $PulumiIgnoreChanges, [parameter(HelpMessage='Imports an existing cloud resource so that Pulumi can manage it. To import a resource, first specify the PulumiImport parameter with the resources ID')] [string] $PulumiImport = [NullString]::Value, [parameter(HelpMessage='Specifies a parent for a resource. It is used to associate children with the parents that encapsulate or are responsible for them.')] [object] $PulumiParent = [NullString]::Value, [parameter(HelpMessage='Marks a resource as protected. A protected resource cannot be deleted directly, and it will be an error to do a Pulumi deployment which tries to delete a protected resource for any reason.')] [bool] $PulumiProtect, [parameter(HelpMessage='Sets a provider for the resource. The default is to inherit this value from the parent resource, and to use the ambient provider specified by Pulumi configuration for resources without a parent.')] [object] $PulumiProvider = [NullString]::Value, [parameter(HelpMessage='Sets a list of providers for the resource and its children. This list is combined with resource parents providers lists. If no value is provided, the providers list is identical to the parent. When determining which provider to use for a resource, the providers list is used if provider is not supplied.')] [object[]] $PulumiProviders, [parameter(HelpMessage='Used to indicate that changes to certain properties on a resource should force a replacement of the resource instead of an in-place update. Typically users rely on the resource provider to make this decision based on whether the input property is one that the provider knows how to update in place, or if not, requires a replacement to modify. However, there are cases where users want to replace a resource on a change to an input property even if the resource provider itself doesnt believe it has to replace the resource.')] [string[]] $PulumiReplaceOnChanges, [parameter(HelpMessage='Marks a resource to be retained. If this option is set then Pulumi will not call through to the resource providers Delete method when deleting or replacing the resource during pulumi up or pulumi destroy. As a result, the resource will not be deleted from the backing cloud provider, but will be removed from the Pulumi state.')] [bool] $PulumiRetainOnDelete, [parameter(HelpMessage='Specifies a provider version to use when operating on a resource. This version overrides the version information inferred from the current package. This option should be used rarely.')] [string] $PulumiProviderVersion = [NullString]::Value ) process { $resource = [pulumiresource]::new($pulumiid, "azure-native:customerinsights:View") $resource.options.additionalSecretOutputs = $PulumiSecretOutputs $resource.options.aliases = $PulumiAliases $resource.options.customTimeouts = $PulumiCustomTimeouts $resource.options.deleteBeforeReplace = $PulumiDeleteBeforeReplace $resource.options.ignoreChanges = $PulumiIgnoreChanges $resource.options.import = if([string]::IsNullOrEmpty($PulumiImport)) { [NullString]::Value } else { $PulumiImport } $resource.options.protect = $PulumiProtect $resource.options.replaceOnChanges = $PulumiReplaceOnChanges $resource.options.retainOnDelete = $PulumiRetainOnDelete $resource.options.version = if([string]::IsNullOrEmpty($PulumiProviderVersion)) { [NullString]::Value } else { $PulumiProviderVersion } foreach($Dependency in $DependsOn) { if($Dependency -is [pulumiresource]) { $resource.options.dependson += $Dependency.Reference() } else { $resource.options.dependson += $Dependency } } if($PulumiParent -is [pulumiresource]) { $resource.options.parent = $PulumiParent.Reference() } else { $resource.options.parent = $PulumiParent } foreach($provider in $PulumiProviders) { if($provider -is [pulumiprovider]) { $resource.options.providers += $provider.Reference() } else { $resource.options.providers += $provider } } if($PulumiProvider -is [pulumiprovider]) { $resource.options.provider = $PulumiProvider.Reference() } else { $resource.options.provider = $PulumiProvider } $resource.properties["definition"] = $definition $resource.properties["hubName"] = $hubName $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'userId') { $resource.properties["userId"] = $userId } if($PSBoundParameters.Keys -icontains 'viewName') { $resource.properties["viewName"] = $viewName } if($PSBoundParameters.Keys -icontains 'displayName') { $resource.properties["displayName"] = $displayName } $global:pulumiresources += $resource return $resource } } |