pspulumiyaml.azurenative.botservice.psm1
using module @{ ModuleName = "PSPulumiYaml"; ModuleVersion = "0.0.3"; GUID = "909344e0-a08f-45f6-8177-80e36bb2ba58" } function Invoke-AzureNativeFunctionBotserviceGetBot { param ( [parameter(mandatory=$False,HelpMessage='The name of the Bot resource group in the user subscription.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the Bot resource.)')] [string] $resourceName ) process { $arguments = @{} $arguments["resourceGroupName"] = $resourceGroupName $arguments["resourceName"] = $resourceName $functionObject = Invoke-PulumiFunction -Name azure-native:botservice:getBot -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionBotserviceListBotConnectionWithSecrets { param ( [parameter(mandatory=$False,HelpMessage='The name of the Bot Service Connection Setting resource.)')] [string] $connectionName, [parameter(mandatory=$False,HelpMessage='The name of the Bot resource group in the user subscription.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the Bot resource.)')] [string] $resourceName ) process { $arguments = @{} $arguments["connectionName"] = $connectionName $arguments["resourceGroupName"] = $resourceGroupName $arguments["resourceName"] = $resourceName $functionObject = Invoke-PulumiFunction -Name azure-native:botservice:listBotConnectionWithSecrets -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionBotserviceGetChannel { param ( [parameter(mandatory=$False,HelpMessage='The name of the Bot resource group in the user subscription.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the Bot resource.)')] [string] $channelName, [parameter(mandatory=$False,HelpMessage='The name of the Bot resource.)')] [string] $resourceName ) process { $arguments = @{} $arguments["channelName"] = $channelName $arguments["resourceGroupName"] = $resourceGroupName $arguments["resourceName"] = $resourceName $functionObject = Invoke-PulumiFunction -Name azure-native:botservice:getChannel -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionBotserviceGetEnterpriseChannel { param ( [parameter(mandatory=$False,HelpMessage='The name of the Bot resource group in the user subscription.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the Bot resource.)')] [string] $resourceName ) process { $arguments = @{} $arguments["resourceGroupName"] = $resourceGroupName $arguments["resourceName"] = $resourceName $functionObject = Invoke-PulumiFunction -Name azure-native:botservice:getEnterpriseChannel -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionBotserviceListChannelWithKeys { param ( [parameter(mandatory=$False,HelpMessage='The name of the Bot resource group in the user subscription.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the Channel resource.)')] [string] $channelName, [parameter(mandatory=$False,HelpMessage='The name of the Bot resource.)')] [string] $resourceName ) process { $arguments = @{} $arguments["channelName"] = $channelName $arguments["resourceGroupName"] = $resourceGroupName $arguments["resourceName"] = $resourceName $functionObject = Invoke-PulumiFunction -Name azure-native:botservice:listChannelWithKeys -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionBotserviceGetBotConnection { param ( [parameter(mandatory=$False,HelpMessage='The name of the Bot Service Connection Setting resource.)')] [string] $connectionName, [parameter(mandatory=$False,HelpMessage='The name of the Bot resource group in the user subscription.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the Bot resource.)')] [string] $resourceName ) process { $arguments = @{} $arguments["connectionName"] = $connectionName $arguments["resourceGroupName"] = $resourceGroupName $arguments["resourceName"] = $resourceName $functionObject = Invoke-PulumiFunction -Name azure-native:botservice:getBotConnection -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionBotserviceListBotConnectionServiceProviders { param ( ) process { $arguments = @{} $functionObject = Invoke-PulumiFunction -Name azure-native:botservice:listBotConnectionServiceProviders -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionBotserviceGetPrivateEndpointConnection { param ( [parameter(mandatory=$False,HelpMessage='The name of the Bot resource group in the user subscription.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the private endpoint connection associated with the Azure resource)')] [string] $privateEndpointConnectionName, [parameter(mandatory=$False,HelpMessage='The name of the Bot resource.)')] [string] $resourceName ) process { $arguments = @{} $arguments["privateEndpointConnectionName"] = $privateEndpointConnectionName $arguments["resourceGroupName"] = $resourceGroupName $arguments["resourceName"] = $resourceName $functionObject = Invoke-PulumiFunction -Name azure-native:botservice:getPrivateEndpointConnection -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } class PrivateLinkServiceConnectionState { [string] $description [ArgumentCompletions('Pending', 'Approved', 'Rejected')] [string] $status [string] $actionsRequired } function New-AzureNativeTypeBotservicePrivateLinkServiceConnectionState { param ( [parameter(mandatory=$False,HelpMessage='The reason for approval/rejection of the connection.)')] [string] $description, [parameter(mandatory=$False,HelpMessage='Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service.)')] [string] [ArgumentCompletions('Pending', 'Approved', 'Rejected')] $status, [parameter(mandatory=$False,HelpMessage='A message indicating if changes on the service provider require any updates on the consumer.)')] [string] $actionsRequired ) process { return $([PrivateLinkServiceConnectionState]$PSBoundParameters) } } function New-AzureNativeBotservicePrivateEndpointConnection { [Alias('azure_native_botservice_privateendpointconnection')] param ( [parameter(mandatory=$False,HelpMessage='The name of the Bot resource group in the user subscription.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the Bot resource.)')] [string] $resourceName, [parameter(mandatory=$False,HelpMessage='The name of the private endpoint connection associated with the Azure resource)')] [string] $privateEndpointConnectionName, [parameter(mandatory=$False,HelpMessage='A collection of information about the state of the connection between service consumer and provider.)')] [PrivateLinkServiceConnectionState] $privateLinkServiceConnectionState, [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:botservice:PrivateEndpointConnection") $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["privateLinkServiceConnectionState"] = $privateLinkServiceConnectionState $resource.properties["resourceGroupName"] = $resourceGroupName $resource.properties["resourceName"] = $resourceName if($PSBoundParameters.Keys -icontains 'privateEndpointConnectionName') { $resource.properties["privateEndpointConnectionName"] = $privateEndpointConnectionName } $global:pulumiresources += $resource return $resource } } class Sku { [ArgumentCompletions('F0', 'S1')] [string] $name } function New-AzureNativeTypeBotserviceSku { param ( [parameter(mandatory=$False,HelpMessage='The sku name)')] [string] [ArgumentCompletions('F0', 'S1')] $name ) process { return $([Sku]$PSBoundParameters) } } class WebChatSite { [bool] $isWebchatPreviewEnabled [bool] $isEnabled [string] $siteName } function New-AzureNativeTypeBotserviceWebChatSite { param ( [parameter(mandatory=$False,HelpMessage='Whether this site is enabled for preview versions of Webchat)')] [bool] $isWebchatPreviewEnabled, [parameter(mandatory=$False,HelpMessage='Whether this site is enabled for DirectLine channel)')] [bool] $isEnabled, [parameter(mandatory=$False,HelpMessage='Site name)')] [string] $siteName ) process { return $([WebChatSite]$PSBoundParameters) } } class WebChatChannelProperties { [WebChatSite[]] $sites } function New-AzureNativeTypeBotserviceWebChatChannelProperties { param ( [parameter(mandatory=$False,HelpMessage='The list of Web Chat sites)')] $sites ) process { return $([WebChatChannelProperties]$PSBoundParameters) } } class WebChatChannel { [string] $location [WebChatChannelProperties] $properties [string] $etag [string] $channelName } function New-AzureNativeTypeBotserviceWebChatChannel { param ( [parameter(mandatory=$False,HelpMessage='Specifies the location of the resource.)')] [string] $location, [parameter(mandatory=$False,HelpMessage='The set of properties specific to Web Chat channel resource)')] [WebChatChannelProperties] $properties, [parameter(mandatory=$False,HelpMessage='Entity Tag of the resource)')] [string] $etag, [parameter(mandatory=$False,HelpMessage='The channel name Expected value is ''WebChatChannel''.)')] [string] $channelName ) process { return $([WebChatChannel]$PSBoundParameters) } } function New-AzureNativeBotserviceChannel { [Alias('azure_native_botservice_channel')] param ( [parameter(mandatory=$False,HelpMessage='Gets or sets the SKU of the resource.)')] [Sku] $sku, [parameter(mandatory=$False,HelpMessage='The set of properties specific to bot channel resource)')] [WebChatChannel] $properties, [parameter(mandatory=$False,HelpMessage='Contains resource tags defined as key/value pairs.)')] [hashtable] $tags, [parameter(mandatory=$False,HelpMessage='The name of the Bot resource group in the user subscription.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='Specifies the location of the resource.)')] [string] $location, [parameter(mandatory=$False,HelpMessage='The name of the Bot resource.)')] [string] $resourceName, [parameter(mandatory=$False,HelpMessage='Required. Gets or sets the Kind of the resource.)')] [string] [ArgumentCompletions('sdk', 'designer', 'bot', 'function')] $kind, [parameter(mandatory=$False,HelpMessage='The name of the Channel resource.)')] [string] $channelName, [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:botservice:Channel") $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 $resource.properties["resourceName"] = $resourceName if($PSBoundParameters.Keys -icontains 'sku') { $resource.properties["sku"] = $sku } if($PSBoundParameters.Keys -icontains 'properties') { $resource.properties["properties"] = $properties } if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } if($PSBoundParameters.Keys -icontains 'kind') { $resource.properties["kind"] = $kind } if($PSBoundParameters.Keys -icontains 'channelName') { $resource.properties["channelName"] = $channelName } $global:pulumiresources += $resource return $resource } } class BotProperties { [string] $msaAppId [string] $cmekKeyVaultUrl [bool] $isStreamingSupported [ArgumentCompletions('Enabled', 'Disabled')] [string] $publicNetworkAccess [object] $parameters [string] $endpoint [string] $iconUrl [string[]] $luisAppIds [string] $developerAppInsightsApplicationId [bool] $disableLocalAuth [string] $msaAppTenantId [ArgumentCompletions('UserAssignedMSI', 'SingleTenant', 'MultiTenant')] [string] $msaAppType [string] $openWithHint [string] $developerAppInsightsApiKey [string] $displayName [string] $developerAppInsightKey [string] $description [bool] $isCmekEnabled [string] $msaAppMSIResourceId [string] $schemaTransformationVersion [string] $luisKey [string] $manifestUrl [string] $appPasswordHint [string] $storageResourceId [object] $allSettings [string] $publishingCredentials } function New-AzureNativeTypeBotserviceBotProperties { param ( [parameter(mandatory=$False,HelpMessage='Microsoft App Id for the bot)')] [string] $msaAppId, [parameter(mandatory=$False,HelpMessage='The CMK Url)')] [string] $cmekKeyVaultUrl, [parameter(mandatory=$False,HelpMessage='Whether the bot is streaming supported)')] [bool] $isStreamingSupported, [parameter(mandatory=$False,HelpMessage='Whether the bot is in an isolated network)')] [string] [ArgumentCompletions('Enabled', 'Disabled')] $publicNetworkAccess, [parameter(mandatory=$False,HelpMessage='Contains resource parameters defined as key/value pairs.)')] [hashtable] $parameters, [parameter(mandatory=$False,HelpMessage='The bot''s endpoint)')] [string] $endpoint, [parameter(mandatory=$False,HelpMessage='The Icon Url of the bot)')] [string] $iconUrl, [parameter(mandatory=$False,HelpMessage='Collection of LUIS App Ids)')] [string[]] $luisAppIds, [parameter(mandatory=$False,HelpMessage='The Application Insights App Id)')] [string] $developerAppInsightsApplicationId, [parameter(mandatory=$False,HelpMessage='Opt-out of local authentication and ensure only MSI and AAD can be used exclusively for authentication.)')] [bool] $disableLocalAuth, [parameter(mandatory=$False,HelpMessage='Microsoft App Tenant Id for the bot)')] [string] $msaAppTenantId, [parameter(mandatory=$False,HelpMessage='Microsoft App Type for the bot)')] [string] [ArgumentCompletions('UserAssignedMSI', 'SingleTenant', 'MultiTenant')] $msaAppType, [parameter(mandatory=$False,HelpMessage='The hint to browser (e.g. protocol handler) on how to open the bot for authoring)')] [string] $openWithHint, [parameter(mandatory=$False,HelpMessage='The Application Insights Api Key)')] [string] $developerAppInsightsApiKey, [parameter(mandatory=$False,HelpMessage='The Name of the bot)')] [string] $displayName, [parameter(mandatory=$False,HelpMessage='The Application Insights key)')] [string] $developerAppInsightKey, [parameter(mandatory=$False,HelpMessage='The description of the bot)')] [string] $description, [parameter(mandatory=$False,HelpMessage='Whether Cmek is enabled)')] [bool] $isCmekEnabled, [parameter(mandatory=$False,HelpMessage='Microsoft App Managed Identity Resource Id for the bot)')] [string] $msaAppMSIResourceId, [parameter(mandatory=$False,HelpMessage='The channel schema transformation version for the bot)')] [string] $schemaTransformationVersion, [parameter(mandatory=$False,HelpMessage='The LUIS Key)')] [string] $luisKey, [parameter(mandatory=$False,HelpMessage='The bot''s manifest url)')] [string] $manifestUrl, [parameter(mandatory=$False,HelpMessage='The hint (e.g. keyVault secret resourceId) on how to fetch the app secret)')] [string] $appPasswordHint, [parameter(mandatory=$False,HelpMessage='The storage resourceId for the bot)')] [string] $storageResourceId, [parameter(mandatory=$False,HelpMessage='Contains resource all settings defined as key/value pairs.)')] [hashtable] $allSettings, [parameter(mandatory=$False,HelpMessage='Publishing credentials of the resource)')] [string] $publishingCredentials ) process { return $([BotProperties]$PSBoundParameters) } } function New-AzureNativeBotserviceBot { [Alias('azure_native_botservice_bot')] param ( [parameter(mandatory=$False,HelpMessage='The name of the Bot resource group in the user subscription.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='Specifies the location of the resource.)')] [string] $location, [parameter(mandatory=$False,HelpMessage='Contains resource tags defined as key/value pairs.)')] [hashtable] $tags, [parameter(mandatory=$False,HelpMessage='The name of the Bot resource.)')] [string] $resourceName, [parameter(mandatory=$False,HelpMessage='The set of properties specific to bot resource)')] [BotProperties] $properties, [parameter(mandatory=$False,HelpMessage='Required. Gets or sets the Kind of the resource.)')] [string] [ArgumentCompletions('sdk', 'designer', 'bot', 'function')] $kind, [parameter(mandatory=$False,HelpMessage='Gets or sets the SKU of the resource.)')] [Sku] $sku, [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:botservice:Bot") $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 'tags') { $resource.properties["tags"] = $tags } if($PSBoundParameters.Keys -icontains 'resourceName') { $resource.properties["resourceName"] = $resourceName } if($PSBoundParameters.Keys -icontains 'properties') { $resource.properties["properties"] = $properties } if($PSBoundParameters.Keys -icontains 'kind') { $resource.properties["kind"] = $kind } if($PSBoundParameters.Keys -icontains 'sku') { $resource.properties["sku"] = $sku } $global:pulumiresources += $resource return $resource } } class ConnectionSettingParameter { [string] $value [string] $key } function New-AzureNativeTypeBotserviceConnectionSettingParameter { param ( [parameter(mandatory=$False,HelpMessage='Value associated with the Connection Setting Parameter.)')] [string] $value, [parameter(mandatory=$False,HelpMessage='Key for the Connection Setting Parameter.)')] [string] $key ) process { return $([ConnectionSettingParameter]$PSBoundParameters) } } class ConnectionSettingProperties { [string] $clientSecret [string] $id [ConnectionSettingParameter[]] $parameters [string] $scopes [string] $name [string] $serviceProviderId [string] $serviceProviderDisplayName [string] $clientId [string] $provisioningState } function New-AzureNativeTypeBotserviceConnectionSettingProperties { param ( [parameter(mandatory=$False,HelpMessage='Client Secret associated with the Connection Setting)')] [string] $clientSecret, [parameter(mandatory=$False,HelpMessage='Id associated with the Connection Setting.)')] [string] $id, [parameter(mandatory=$False,HelpMessage='Service Provider Parameters associated with the Connection Setting)')] $parameters, [parameter(mandatory=$False,HelpMessage='Scopes associated with the Connection Setting)')] [string] $scopes, [parameter(mandatory=$False,HelpMessage='Name associated with the Connection Setting.)')] [string] $name, [parameter(mandatory=$False,HelpMessage='Service Provider Id associated with the Connection Setting)')] [string] $serviceProviderId, [parameter(mandatory=$False,HelpMessage='Service Provider Display Name associated with the Connection Setting)')] [string] $serviceProviderDisplayName, [parameter(mandatory=$False,HelpMessage='Client Id associated with the Connection Setting.)')] [string] $clientId, [parameter(mandatory=$False,HelpMessage='Provisioning state of the resource)')] [string] $provisioningState ) process { return $([ConnectionSettingProperties]$PSBoundParameters) } } function New-AzureNativeBotserviceBotConnection { [Alias('azure_native_botservice_botconnection')] param ( [parameter(mandatory=$False,HelpMessage='The set of properties specific to bot channel resource)')] [ConnectionSettingProperties] $properties, [parameter(mandatory=$False,HelpMessage='Gets or sets the SKU of the resource.)')] [Sku] $sku, [parameter(mandatory=$False,HelpMessage='Contains resource tags defined as key/value pairs.)')] [hashtable] $tags, [parameter(mandatory=$False,HelpMessage='Specifies the location of the resource.)')] [string] $location, [parameter(mandatory=$False,HelpMessage='The name of the Bot resource.)')] [string] $resourceName, [parameter(mandatory=$False,HelpMessage='The name of the Bot resource group in the user subscription.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the Bot Service Connection Setting resource.)')] [string] $connectionName, [parameter(mandatory=$False,HelpMessage='Required. Gets or sets the Kind of the resource.)')] [string] [ArgumentCompletions('sdk', 'designer', 'bot', 'function')] $kind, [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:botservice:BotConnection") $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 $resource.properties["resourceName"] = $resourceName if($PSBoundParameters.Keys -icontains 'properties') { $resource.properties["properties"] = $properties } if($PSBoundParameters.Keys -icontains 'sku') { $resource.properties["sku"] = $sku } if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } if($PSBoundParameters.Keys -icontains 'connectionName') { $resource.properties["connectionName"] = $connectionName } if($PSBoundParameters.Keys -icontains 'kind') { $resource.properties["kind"] = $kind } $global:pulumiresources += $resource return $resource } } class EnterpriseChannelNode { [string] $name [string] $azureSku [string] $azureLocation [ArgumentCompletions('Creating', 'CreateFailed', 'Started', 'Starting', 'StartFailed', 'Stopped', 'Stopping', 'StopFailed', 'Deleting', 'DeleteFailed')] [string] $state } function New-AzureNativeTypeBotserviceEnterpriseChannelNode { param ( [parameter(mandatory=$False,HelpMessage='The name of the Enterprise Channel Node.)')] [string] $name, [parameter(mandatory=$False,HelpMessage='The sku of the Enterprise Channel Node.)')] [string] $azureSku, [parameter(mandatory=$False,HelpMessage='The location of the Enterprise Channel Node.)')] [string] $azureLocation, [parameter(mandatory=$False,HelpMessage='The current state of the Enterprise Channel Node.)')] [string] [ArgumentCompletions('Creating', 'CreateFailed', 'Started', 'Starting', 'StartFailed', 'Stopped', 'Stopping', 'StopFailed', 'Deleting', 'DeleteFailed')] $state ) process { return $([EnterpriseChannelNode]$PSBoundParameters) } } class EnterpriseChannelProperties { [EnterpriseChannelNode[]] $nodes [ArgumentCompletions('Creating', 'CreateFailed', 'Started', 'Starting', 'StartFailed', 'Stopped', 'Stopping', 'StopFailed', 'Deleting', 'DeleteFailed')] [string] $state } function New-AzureNativeTypeBotserviceEnterpriseChannelProperties { param ( [parameter(mandatory=$False,HelpMessage='The nodes associated with the Enterprise Channel.)')] $nodes, [parameter(mandatory=$False,HelpMessage='The current state of the Enterprise Channel.)')] [string] [ArgumentCompletions('Creating', 'CreateFailed', 'Started', 'Starting', 'StartFailed', 'Stopped', 'Stopping', 'StopFailed', 'Deleting', 'DeleteFailed')] $state ) process { return $([EnterpriseChannelProperties]$PSBoundParameters) } } function New-AzureNativeBotserviceEnterpriseChannel { [Alias('azure_native_botservice_enterprisechannel')] param ( [parameter(mandatory=$False,HelpMessage='The name of the Bot resource group in the user subscription.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='Specifies the location of the resource.)')] [string] $location, [parameter(mandatory=$False,HelpMessage='Contains resource tags defined as key/value pairs.)')] [hashtable] $tags, [parameter(mandatory=$False,HelpMessage='The name of the Bot resource.)')] [string] $resourceName, [parameter(mandatory=$False,HelpMessage='The set of properties specific to an Enterprise Channel resource.)')] [EnterpriseChannelProperties] $properties, [parameter(mandatory=$False,HelpMessage='Required. Gets or sets the Kind of the resource.)')] [string] [ArgumentCompletions('sdk', 'designer', 'bot', 'function')] $kind, [parameter(mandatory=$False,HelpMessage='Gets or sets the SKU of the resource.)')] [Sku] $sku, [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:botservice:EnterpriseChannel") $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 'tags') { $resource.properties["tags"] = $tags } if($PSBoundParameters.Keys -icontains 'resourceName') { $resource.properties["resourceName"] = $resourceName } if($PSBoundParameters.Keys -icontains 'properties') { $resource.properties["properties"] = $properties } if($PSBoundParameters.Keys -icontains 'kind') { $resource.properties["kind"] = $kind } if($PSBoundParameters.Keys -icontains 'sku') { $resource.properties["sku"] = $sku } $global:pulumiresources += $resource return $resource } } |