pspulumiyaml.azurenative.documentdb.psm1
using module @{ ModuleName = "PSPulumiYaml"; ModuleVersion = "0.0.3"; GUID = "909344e0-a08f-45f6-8177-80e36bb2ba58" } function Invoke-AzureNativeFunctionDocumentdbGetService { param ( [parameter(mandatory=$False,HelpMessage='Cosmos DB database account name.)')] [string] $accountName, [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='Cosmos DB service name.)')] [string] $serviceName ) process { $arguments = @{} $arguments["accountName"] = $accountName $arguments["resourceGroupName"] = $resourceGroupName $arguments["serviceName"] = $serviceName $functionObject = Invoke-PulumiFunction -Name azure-native:documentdb:getService -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionDocumentdbGetSqlResourceSqlRoleAssignment { param ( [parameter(mandatory=$False,HelpMessage='Cosmos DB database account name.)')] [string] $accountName, [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The GUID for the Role Assignment.)')] [string] $roleAssignmentId ) process { $arguments = @{} $arguments["accountName"] = $accountName $arguments["resourceGroupName"] = $resourceGroupName $arguments["roleAssignmentId"] = $roleAssignmentId $functionObject = Invoke-PulumiFunction -Name azure-native:documentdb:getSqlResourceSqlRoleAssignment -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionDocumentdbGetCassandraCluster { param ( [parameter(mandatory=$False,HelpMessage='Managed Cassandra cluster name.)')] [string] $clusterName, [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName ) process { $arguments = @{} $arguments["clusterName"] = $clusterName $arguments["resourceGroupName"] = $resourceGroupName $functionObject = Invoke-PulumiFunction -Name azure-native:documentdb:getCassandraCluster -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionDocumentdbGetSqlResourceSqlContainer { param ( [parameter(mandatory=$False,HelpMessage='Cosmos DB database account name.)')] [string] $accountName, [parameter(mandatory=$False,HelpMessage='Cosmos DB container name.)')] [string] $containerName, [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='Cosmos DB database name.)')] [string] $databaseName ) process { $arguments = @{} $arguments["accountName"] = $accountName $arguments["containerName"] = $containerName $arguments["databaseName"] = $databaseName $arguments["resourceGroupName"] = $resourceGroupName $functionObject = Invoke-PulumiFunction -Name azure-native:documentdb:getSqlResourceSqlContainer -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionDocumentdbGetGremlinResourceGremlinDatabase { param ( [parameter(mandatory=$False,HelpMessage='Cosmos DB database account name.)')] [string] $accountName, [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='Cosmos DB database name.)')] [string] $databaseName ) process { $arguments = @{} $arguments["accountName"] = $accountName $arguments["databaseName"] = $databaseName $arguments["resourceGroupName"] = $resourceGroupName $functionObject = Invoke-PulumiFunction -Name azure-native:documentdb:getGremlinResourceGremlinDatabase -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionDocumentdbGetGraphResourceGraph { param ( [parameter(mandatory=$False,HelpMessage='Cosmos DB database account name.)')] [string] $accountName, [parameter(mandatory=$False,HelpMessage='Cosmos DB graph resource name.)')] [string] $graphName, [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName ) process { $arguments = @{} $arguments["accountName"] = $accountName $arguments["graphName"] = $graphName $arguments["resourceGroupName"] = $resourceGroupName $functionObject = Invoke-PulumiFunction -Name azure-native:documentdb:getGraphResourceGraph -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionDocumentdbGetCassandraResourceCassandraKeyspace { param ( [parameter(mandatory=$False,HelpMessage='Cosmos DB database account name.)')] [string] $accountName, [parameter(mandatory=$False,HelpMessage='Cosmos DB keyspace name.)')] [string] $keyspaceName, [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName ) process { $arguments = @{} $arguments["accountName"] = $accountName $arguments["keyspaceName"] = $keyspaceName $arguments["resourceGroupName"] = $resourceGroupName $functionObject = Invoke-PulumiFunction -Name azure-native:documentdb:getCassandraResourceCassandraKeyspace -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionDocumentdbGetSqlResourceSqlTrigger { param ( [parameter(mandatory=$False,HelpMessage='Cosmos DB database account name.)')] [string] $accountName, [parameter(mandatory=$False,HelpMessage='Cosmos DB container name.)')] [string] $containerName, [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='Cosmos DB trigger name.)')] [string] $triggerName, [parameter(mandatory=$False,HelpMessage='Cosmos DB database name.)')] [string] $databaseName ) process { $arguments = @{} $arguments["accountName"] = $accountName $arguments["containerName"] = $containerName $arguments["databaseName"] = $databaseName $arguments["resourceGroupName"] = $resourceGroupName $arguments["triggerName"] = $triggerName $functionObject = Invoke-PulumiFunction -Name azure-native:documentdb:getSqlResourceSqlTrigger -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionDocumentdbGetSqlResourceSqlDatabase { param ( [parameter(mandatory=$False,HelpMessage='Cosmos DB database account name.)')] [string] $accountName, [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='Cosmos DB database name.)')] [string] $databaseName ) process { $arguments = @{} $arguments["accountName"] = $accountName $arguments["databaseName"] = $databaseName $arguments["resourceGroupName"] = $resourceGroupName $functionObject = Invoke-PulumiFunction -Name azure-native:documentdb:getSqlResourceSqlDatabase -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionDocumentdbGetNotebookWorkspace { param ( [parameter(mandatory=$False,HelpMessage='Cosmos DB database account name.)')] [string] $accountName, [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the notebook workspace resource.)')] [string] $notebookWorkspaceName ) process { $arguments = @{} $arguments["accountName"] = $accountName $arguments["notebookWorkspaceName"] = $notebookWorkspaceName $arguments["resourceGroupName"] = $resourceGroupName $functionObject = Invoke-PulumiFunction -Name azure-native:documentdb:getNotebookWorkspace -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionDocumentdbGetSqlResourceSqlStoredProcedure { param ( [parameter(mandatory=$False,HelpMessage='Cosmos DB database account name.)')] [string] $accountName, [parameter(mandatory=$False,HelpMessage='Cosmos DB container name.)')] [string] $containerName, [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='Cosmos DB database name.)')] [string] $databaseName, [parameter(mandatory=$False,HelpMessage='Cosmos DB storedProcedure name.)')] [string] $storedProcedureName ) process { $arguments = @{} $arguments["accountName"] = $accountName $arguments["containerName"] = $containerName $arguments["databaseName"] = $databaseName $arguments["resourceGroupName"] = $resourceGroupName $arguments["storedProcedureName"] = $storedProcedureName $functionObject = Invoke-PulumiFunction -Name azure-native:documentdb:getSqlResourceSqlStoredProcedure -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionDocumentdbGetMongoDBResourceMongoRoleDefinition { param ( [parameter(mandatory=$False,HelpMessage='Cosmos DB database account name.)')] [string] $accountName, [parameter(mandatory=$False,HelpMessage='The ID for the Role Definition {dbName.roleName}.)')] [string] $mongoRoleDefinitionId, [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName ) process { $arguments = @{} $arguments["accountName"] = $accountName $arguments["mongoRoleDefinitionId"] = $mongoRoleDefinitionId $arguments["resourceGroupName"] = $resourceGroupName $functionObject = Invoke-PulumiFunction -Name azure-native:documentdb:getMongoDBResourceMongoRoleDefinition -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionDocumentdbListDatabaseAccountConnectionStrings { param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='Cosmos DB database account name.)')] [string] $accountName ) process { $arguments = @{} $arguments["accountName"] = $accountName $arguments["resourceGroupName"] = $resourceGroupName $functionObject = Invoke-PulumiFunction -Name azure-native:documentdb:listDatabaseAccountConnectionStrings -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionDocumentdbGetDatabaseAccount { param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='Cosmos DB database account name.)')] [string] $accountName ) process { $arguments = @{} $arguments["accountName"] = $accountName $arguments["resourceGroupName"] = $resourceGroupName $functionObject = Invoke-PulumiFunction -Name azure-native:documentdb:getDatabaseAccount -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionDocumentdbGetSqlResourceSqlRoleDefinition { param ( [parameter(mandatory=$False,HelpMessage='Cosmos DB database account name.)')] [string] $accountName, [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The GUID for the Role Definition.)')] [string] $roleDefinitionId ) process { $arguments = @{} $arguments["accountName"] = $accountName $arguments["resourceGroupName"] = $resourceGroupName $arguments["roleDefinitionId"] = $roleDefinitionId $functionObject = Invoke-PulumiFunction -Name azure-native:documentdb:getSqlResourceSqlRoleDefinition -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionDocumentdbGetMongoDBResourceMongoUserDefinition { param ( [parameter(mandatory=$False,HelpMessage='Cosmos DB database account name.)')] [string] $accountName, [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The ID for the User Definition {dbName.userName}.)')] [string] $mongoUserDefinitionId ) process { $arguments = @{} $arguments["accountName"] = $accountName $arguments["mongoUserDefinitionId"] = $mongoUserDefinitionId $arguments["resourceGroupName"] = $resourceGroupName $functionObject = Invoke-PulumiFunction -Name azure-native:documentdb:getMongoDBResourceMongoUserDefinition -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionDocumentdbGetMongoDBResourceMongoDBCollection { param ( [parameter(mandatory=$False,HelpMessage='Cosmos DB database account name.)')] [string] $accountName, [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='Cosmos DB collection name.)')] [string] $collectionName, [parameter(mandatory=$False,HelpMessage='Cosmos DB database name.)')] [string] $databaseName ) process { $arguments = @{} $arguments["accountName"] = $accountName $arguments["collectionName"] = $collectionName $arguments["databaseName"] = $databaseName $arguments["resourceGroupName"] = $resourceGroupName $functionObject = Invoke-PulumiFunction -Name azure-native:documentdb:getMongoDBResourceMongoDBCollection -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionDocumentdbGetPrivateEndpointConnection { param ( [parameter(mandatory=$False,HelpMessage='Cosmos DB database account name.)')] [string] $accountName, [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the private endpoint connection.)')] [string] $privateEndpointConnectionName ) process { $arguments = @{} $arguments["accountName"] = $accountName $arguments["privateEndpointConnectionName"] = $privateEndpointConnectionName $arguments["resourceGroupName"] = $resourceGroupName $functionObject = Invoke-PulumiFunction -Name azure-native:documentdb:getPrivateEndpointConnection -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionDocumentdbGetCassandraResourceCassandraTable { param ( [parameter(mandatory=$False,HelpMessage='Cosmos DB database account name.)')] [string] $accountName, [parameter(mandatory=$False,HelpMessage='Cosmos DB keyspace name.)')] [string] $keyspaceName, [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='Cosmos DB table name.)')] [string] $tableName ) process { $arguments = @{} $arguments["accountName"] = $accountName $arguments["keyspaceName"] = $keyspaceName $arguments["resourceGroupName"] = $resourceGroupName $arguments["tableName"] = $tableName $functionObject = Invoke-PulumiFunction -Name azure-native:documentdb:getCassandraResourceCassandraTable -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionDocumentdbGetMongoDBResourceMongoDBDatabase { param ( [parameter(mandatory=$False,HelpMessage='Cosmos DB database account name.)')] [string] $accountName, [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='Cosmos DB database name.)')] [string] $databaseName ) process { $arguments = @{} $arguments["accountName"] = $accountName $arguments["databaseName"] = $databaseName $arguments["resourceGroupName"] = $resourceGroupName $functionObject = Invoke-PulumiFunction -Name azure-native:documentdb:getMongoDBResourceMongoDBDatabase -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionDocumentdbListDatabaseAccountKeys { param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='Cosmos DB database account name.)')] [string] $accountName ) process { $arguments = @{} $arguments["accountName"] = $accountName $arguments["resourceGroupName"] = $resourceGroupName $functionObject = Invoke-PulumiFunction -Name azure-native:documentdb:listDatabaseAccountKeys -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionDocumentdbGetGremlinResourceGremlinGraph { param ( [parameter(mandatory=$False,HelpMessage='Cosmos DB database account name.)')] [string] $accountName, [parameter(mandatory=$False,HelpMessage='Cosmos DB graph name.)')] [string] $graphName, [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='Cosmos DB database name.)')] [string] $databaseName ) process { $arguments = @{} $arguments["accountName"] = $accountName $arguments["databaseName"] = $databaseName $arguments["graphName"] = $graphName $arguments["resourceGroupName"] = $resourceGroupName $functionObject = Invoke-PulumiFunction -Name azure-native:documentdb:getGremlinResourceGremlinGraph -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionDocumentdbGetTableResourceTable { param ( [parameter(mandatory=$False,HelpMessage='Cosmos DB database account name.)')] [string] $accountName, [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='Cosmos DB table name.)')] [string] $tableName ) process { $arguments = @{} $arguments["accountName"] = $accountName $arguments["resourceGroupName"] = $resourceGroupName $arguments["tableName"] = $tableName $functionObject = Invoke-PulumiFunction -Name azure-native:documentdb:getTableResourceTable -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionDocumentdbGetCassandraDataCenter { param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='Data center name in a managed Cassandra cluster.)')] [string] $dataCenterName, [parameter(mandatory=$False,HelpMessage='Managed Cassandra cluster name.)')] [string] $clusterName ) process { $arguments = @{} $arguments["clusterName"] = $clusterName $arguments["dataCenterName"] = $dataCenterName $arguments["resourceGroupName"] = $resourceGroupName $functionObject = Invoke-PulumiFunction -Name azure-native:documentdb:getCassandraDataCenter -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionDocumentdbGetSqlResourceSqlUserDefinedFunction { param ( [parameter(mandatory=$False,HelpMessage='Cosmos DB database account name.)')] [string] $accountName, [parameter(mandatory=$False,HelpMessage='Cosmos DB container name.)')] [string] $containerName, [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='Cosmos DB database name.)')] [string] $databaseName, [parameter(mandatory=$False,HelpMessage='Cosmos DB userDefinedFunction name.)')] [string] $userDefinedFunctionName ) process { $arguments = @{} $arguments["accountName"] = $accountName $arguments["containerName"] = $containerName $arguments["databaseName"] = $databaseName $arguments["resourceGroupName"] = $resourceGroupName $arguments["userDefinedFunctionName"] = $userDefinedFunctionName $functionObject = Invoke-PulumiFunction -Name azure-native:documentdb:getSqlResourceSqlUserDefinedFunction -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionDocumentdbGetCassandraResourceCassandraView { param ( [parameter(mandatory=$False,HelpMessage='Cosmos DB database account name.)')] [string] $accountName, [parameter(mandatory=$False,HelpMessage='Cosmos DB keyspace name.)')] [string] $keyspaceName, [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='Cosmos DB view name.)')] [string] $viewName ) process { $arguments = @{} $arguments["accountName"] = $accountName $arguments["keyspaceName"] = $keyspaceName $arguments["resourceGroupName"] = $resourceGroupName $arguments["viewName"] = $viewName $functionObject = Invoke-PulumiFunction -Name azure-native:documentdb:getCassandraResourceCassandraView -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function Invoke-AzureNativeFunctionDocumentdbListNotebookWorkspaceConnectionInfo { param ( [parameter(mandatory=$False,HelpMessage='Cosmos DB database account name.)')] [string] $accountName, [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the notebook workspace resource.)')] [string] $notebookWorkspaceName ) process { $arguments = @{} $arguments["accountName"] = $accountName $arguments["notebookWorkspaceName"] = $notebookWorkspaceName $arguments["resourceGroupName"] = $resourceGroupName $functionObject = Invoke-PulumiFunction -Name azure-native:documentdb:listNotebookWorkspaceConnectionInfo -variableName $([guid]::NewGuid().Guid) -Arguments $arguments return $functionObject } } function New-AzureNativeDocumentdbSqlResourceSqlRoleDefinition { [Alias('azure_native_documentdb_sqlresourcesqlroledefinition')] param ( [parameter(mandatory=$False,HelpMessage='A set of fully qualified Scopes at or below which Role Assignments may be created using this Role Definition. This will allow application of this Role Definition on the entire database account or any underlying Database / Collection. Must have at least one element. Scopes higher than Database account are not enforceable as assignable Scopes. Note that resources referenced in assignable Scopes need not exist.)')] [string[]] $assignableScopes, [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The GUID for the Role Definition.)')] [string] $roleDefinitionId, [parameter(mandatory=$False,HelpMessage='A user-friendly name for the Role Definition. Must be unique for the database account.)')] [string] $roleName, [parameter(mandatory=$False,HelpMessage='Cosmos DB database account name.)')] [string] $accountName, [parameter(mandatory=$False,HelpMessage='The set of operations allowed through this Role Definition.)')] $permissions, [parameter(mandatory=$False,HelpMessage='Indicates whether the Role Definition was built-in or user created.)')] $type, [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:documentdb:SqlResourceSqlRoleDefinition") $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["accountName"] = $accountName $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'assignableScopes') { $resource.properties["assignableScopes"] = $assignableScopes } if($PSBoundParameters.Keys -icontains 'roleDefinitionId') { $resource.properties["roleDefinitionId"] = $roleDefinitionId } if($PSBoundParameters.Keys -icontains 'roleName') { $resource.properties["roleName"] = $roleName } if($PSBoundParameters.Keys -icontains 'permissions') { $resource.properties["permissions"] = $permissions } if($PSBoundParameters.Keys -icontains 'type') { $resource.properties["type"] = $type } $global:pulumiresources += $resource return $resource } } class SqlStoredProcedureResource { [string] $id [string] $body } function New-AzureNativeTypeDocumentdbSqlStoredProcedureResource { param ( [parameter(mandatory=$False,HelpMessage='Name of the Cosmos DB SQL storedProcedure)')] [string] $id, [parameter(mandatory=$False,HelpMessage='Body of the Stored Procedure)')] [string] $body ) process { return $([SqlStoredProcedureResource]$PSBoundParameters) } } class AutoscaleSettings { [int] $maxThroughput } function New-AzureNativeTypeDocumentdbAutoscaleSettings { param ( [parameter(mandatory=$False,HelpMessage='Represents maximum throughput, the resource can scale up to.)')] [int] $maxThroughput ) process { return $([AutoscaleSettings]$PSBoundParameters) } } class CreateUpdateOptions { [int] $throughput [AutoscaleSettings] $autoscaleSettings } function New-AzureNativeTypeDocumentdbCreateUpdateOptions { param ( [parameter(mandatory=$False,HelpMessage='Request Units per second. For example, "throughput": 10000.)')] [int] $throughput, [parameter(mandatory=$False,HelpMessage='Specifies the Autoscale settings.)')] [AutoscaleSettings] $autoscaleSettings ) process { return $([CreateUpdateOptions]$PSBoundParameters) } } function New-AzureNativeDocumentdbSqlResourceSqlStoredProcedure { [Alias('azure_native_documentdb_sqlresourcesqlstoredprocedure')] param ( [parameter(mandatory=$False,HelpMessage='Cosmos DB database account name.)')] [string] $accountName, [parameter(mandatory=$False,HelpMessage='Cosmos DB storedProcedure name.)')] [string] $storedProcedureName, [parameter(mandatory=$False,HelpMessage='Tags are a list of key-value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater than 128 characters and value no greater than 256 characters. For example, the default experience for a template type is set with "defaultExperience": "Cassandra". Current "defaultExperience" values also include "Table", "Graph", "DocumentDB", and "MongoDB".)')] [hashtable] $tags, [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The standard JSON format of a storedProcedure)')] [SqlStoredProcedureResource] $resource, [parameter(mandatory=$False,HelpMessage='A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.)')] [CreateUpdateOptions] $options, [parameter(mandatory=$False,HelpMessage='Cosmos DB container name.)')] [string] $containerName, [parameter(mandatory=$False,HelpMessage='Cosmos DB database name.)')] [string] $databaseName, [parameter(mandatory=$False,HelpMessage='The location of the resource group to which the resource belongs.)')] [string] $location, [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:documentdb:SqlResourceSqlStoredProcedure") $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["accountName"] = $accountName $resource.properties["containerName"] = $containerName $resource.properties["databaseName"] = $databaseName $resource.properties["resource"] = $resource $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'storedProcedureName') { $resource.properties["storedProcedureName"] = $storedProcedureName } if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } if($PSBoundParameters.Keys -icontains 'options') { $resource.properties["options"] = $options } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } $global:pulumiresources += $resource return $resource } } class GraphResource { [string] $id } function New-AzureNativeTypeDocumentdbGraphResource { param ( [parameter(mandatory=$False,HelpMessage='Name of the Cosmos DB Graph)')] [string] $id ) process { return $([GraphResource]$PSBoundParameters) } } class ManagedServiceIdentity { [ArgumentCompletions('SystemAssigned', 'UserAssigned', 'SystemAssigned,UserAssigned', 'None')] [object] $type [object] $userAssignedIdentities } function New-AzureNativeTypeDocumentdbManagedServiceIdentity { param ( [parameter(mandatory=$False,HelpMessage='The type of identity used for the resource. The type ''SystemAssigned,UserAssigned'' includes both an implicitly created identity and a set of user assigned identities. The type ''None'' will remove any identities from the service.)')] $type, [parameter(mandatory=$False,HelpMessage='The list of user identities associated with resource. The user identity dictionary key references will be ARM resource ids in the form: ''/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}''.)')] [object] $userAssignedIdentities ) process { return $([ManagedServiceIdentity]$PSBoundParameters) } } function New-AzureNativeDocumentdbGraphResourceGraph { [Alias('azure_native_documentdb_graphresourcegraph')] param ( [parameter(mandatory=$False,HelpMessage='The standard JSON format of a Graph resource)')] [GraphResource] $resource, [parameter(mandatory=$False,HelpMessage='A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.)')] [CreateUpdateOptions] $options, [parameter(mandatory=$False,HelpMessage='The location of the resource group to which the resource belongs.)')] [string] $location, [parameter(mandatory=$False,HelpMessage='Tags are a list of key-value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater than 128 characters and value no greater than 256 characters. For example, the default experience for a template type is set with "defaultExperience": "Cassandra". Current "defaultExperience" values also include "Table", "Graph", "DocumentDB", and "MongoDB".)')] [hashtable] $tags, [parameter(mandatory=$False,HelpMessage='Cosmos DB database account name.)')] [string] $accountName, [parameter(mandatory=$False,HelpMessage='Cosmos DB graph resource name.)')] [string] $graphName, [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='Identity for the resource.)')] [ManagedServiceIdentity] $identity, [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:documentdb:GraphResourceGraph") $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["accountName"] = $accountName $resource.properties["resource"] = $resource $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'options') { $resource.properties["options"] = $options } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } if($PSBoundParameters.Keys -icontains 'graphName') { $resource.properties["graphName"] = $graphName } if($PSBoundParameters.Keys -icontains 'identity') { $resource.properties["identity"] = $identity } $global:pulumiresources += $resource return $resource } } class GremlinDatabaseResource { [string] $id } function New-AzureNativeTypeDocumentdbGremlinDatabaseResource { param ( [parameter(mandatory=$False,HelpMessage='Name of the Cosmos DB Gremlin database)')] [string] $id ) process { return $([GremlinDatabaseResource]$PSBoundParameters) } } function New-AzureNativeDocumentdbGremlinResourceGremlinDatabase { [Alias('azure_native_documentdb_gremlinresourcegremlindatabase')] param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.)')] [CreateUpdateOptions] $options, [parameter(mandatory=$False,HelpMessage='The location of the resource group to which the resource belongs.)')] [string] $location, [parameter(mandatory=$False,HelpMessage='Cosmos DB database name.)')] [string] $databaseName, [parameter(mandatory=$False,HelpMessage='Cosmos DB database account name.)')] [string] $accountName, [parameter(mandatory=$False,HelpMessage='The standard JSON format of a Gremlin database)')] [GremlinDatabaseResource] $resource, [parameter(mandatory=$False,HelpMessage='Tags are a list of key-value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater than 128 characters and value no greater than 256 characters. For example, the default experience for a template type is set with "defaultExperience": "Cassandra". Current "defaultExperience" values also include "Table", "Graph", "DocumentDB", and "MongoDB".)')] [hashtable] $tags, [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:documentdb:GremlinResourceGremlinDatabase") $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["accountName"] = $accountName $resource.properties["resource"] = $resource $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'options') { $resource.properties["options"] = $options } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } if($PSBoundParameters.Keys -icontains 'databaseName') { $resource.properties["databaseName"] = $databaseName } if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } $global:pulumiresources += $resource return $resource } } function New-AzureNativeDocumentdbNotebookWorkspace { [Alias('azure_native_documentdb_notebookworkspace')] param ( [parameter(mandatory=$False,HelpMessage='Cosmos DB database account name.)')] [string] $accountName, [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The name of the notebook workspace resource.)')] [string] $notebookWorkspaceName, [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:documentdb:NotebookWorkspace") $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["accountName"] = $accountName $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'notebookWorkspaceName') { $resource.properties["notebookWorkspaceName"] = $notebookWorkspaceName } $global:pulumiresources += $resource return $resource } } class Indexes { [ArgumentCompletions('String', 'Number', 'Point', 'Polygon', 'LineString', 'MultiPolygon')] [string] $dataType [ArgumentCompletions('Hash', 'Range', 'Spatial')] [string] $kind [int] $precision } function New-AzureNativeTypeDocumentdbIndexes { param ( [parameter(mandatory=$False,HelpMessage='The datatype for which the indexing behavior is applied to.)')] [string] [ArgumentCompletions('String', 'Number', 'Point', 'Polygon', 'LineString', 'MultiPolygon')] $dataType, [parameter(mandatory=$False,HelpMessage='Indicates the type of index.)')] [string] [ArgumentCompletions('Hash', 'Range', 'Spatial')] $kind, [parameter(mandatory=$False,HelpMessage='The precision of the index. -1 is maximum precision.)')] [int] $precision ) process { return $([Indexes]$PSBoundParameters) } } class IncludedPath { [string] $path [Indexes[]] $indexes } function New-AzureNativeTypeDocumentdbIncludedPath { param ( [parameter(mandatory=$False,HelpMessage='The path for which the indexing behavior applies to. Index paths typically start with root and end with wildcard (/path/*))')] [string] $path, [parameter(mandatory=$False,HelpMessage='List of indexes for this path)')] $indexes ) process { return $([IncludedPath]$PSBoundParameters) } } class SpatialSpec { [string] $path [string[]] $types } function New-AzureNativeTypeDocumentdbSpatialSpec { param ( [parameter(mandatory=$False,HelpMessage='The path for which the indexing behavior applies to. Index paths typically start with root and end with wildcard (/path/*))')] [string] $path, [parameter(mandatory=$False,HelpMessage='List of path''s spatial type)')] $types ) process { return $([SpatialSpec]$PSBoundParameters) } } class ExcludedPath { [string] $path } function New-AzureNativeTypeDocumentdbExcludedPath { param ( [parameter(mandatory=$False,HelpMessage='The path for which the indexing behavior applies to. Index paths typically start with root and end with wildcard (/path/*))')] [string] $path ) process { return $([ExcludedPath]$PSBoundParameters) } } class IndexingPolicy { [IncludedPath[]] $includedPaths [ArgumentCompletions('consistent', 'lazy', 'none')] [string] $indexingMode [SpatialSpec[]] $spatialIndexes [array[]] $compositeIndexes [bool] $automatic [ExcludedPath[]] $excludedPaths } function New-AzureNativeTypeDocumentdbIndexingPolicy { param ( [parameter(mandatory=$False,HelpMessage='List of paths to include in the indexing)')] $includedPaths, [parameter(mandatory=$False,HelpMessage='Indicates the indexing mode.)')] [string] [ArgumentCompletions('consistent', 'lazy', 'none')] $indexingMode, [parameter(mandatory=$False,HelpMessage='List of spatial specifics)')] $spatialIndexes, [parameter(mandatory=$False,HelpMessage='List of composite path list)')] [array[]] $compositeIndexes, [parameter(mandatory=$False,HelpMessage='Indicates if the indexing policy is automatic)')] [bool] $automatic, [parameter(mandatory=$False,HelpMessage='List of paths to exclude from indexing)')] $excludedPaths ) process { return $([IndexingPolicy]$PSBoundParameters) } } class ContainerPartitionKey { [int] $version [ArgumentCompletions('Hash', 'Range', 'MultiHash')] [string] $kind [string[]] $paths } function New-AzureNativeTypeDocumentdbContainerPartitionKey { param ( [parameter(mandatory=$False,HelpMessage='Indicates the version of the partition key definition)')] [int] $version, [parameter(mandatory=$False,HelpMessage='Indicates the kind of algorithm used for partitioning. For MultiHash, multiple partition keys (upto three maximum) are supported for container create)')] [string] [ArgumentCompletions('Hash', 'Range', 'MultiHash')] $kind, [parameter(mandatory=$False,HelpMessage='List of paths using which data within the container can be partitioned)')] [string[]] $paths ) process { return $([ContainerPartitionKey]$PSBoundParameters) } } class UniqueKey { [string[]] $paths } function New-AzureNativeTypeDocumentdbUniqueKey { param ( [parameter(mandatory=$False,HelpMessage='List of paths must be unique for each document in the Azure Cosmos DB service)')] [string[]] $paths ) process { return $([UniqueKey]$PSBoundParameters) } } class UniqueKeyPolicy { [UniqueKey[]] $uniqueKeys } function New-AzureNativeTypeDocumentdbUniqueKeyPolicy { param ( [parameter(mandatory=$False,HelpMessage='List of unique keys on that enforces uniqueness constraint on documents in the collection in the Azure Cosmos DB service.)')] $uniqueKeys ) process { return $([UniqueKeyPolicy]$PSBoundParameters) } } class ConflictResolutionPolicy { [string] $conflictResolutionProcedure [ArgumentCompletions('LastWriterWins', 'Custom')] [string] $mode [string] $conflictResolutionPath } function New-AzureNativeTypeDocumentdbConflictResolutionPolicy { param ( [parameter(mandatory=$False,HelpMessage='The procedure to resolve conflicts in the case of custom mode.)')] [string] $conflictResolutionProcedure, [parameter(mandatory=$False,HelpMessage='Indicates the conflict resolution mode.)')] [string] [ArgumentCompletions('LastWriterWins', 'Custom')] $mode, [parameter(mandatory=$False,HelpMessage='The conflict resolution path in the case of LastWriterWins mode.)')] [string] $conflictResolutionPath ) process { return $([ConflictResolutionPolicy]$PSBoundParameters) } } class SqlContainerResource { [IndexingPolicy] $indexingPolicy [ContainerPartitionKey] $partitionKey [UniqueKeyPolicy] $uniqueKeyPolicy [string] $id [ConflictResolutionPolicy] $conflictResolutionPolicy [int] $analyticalStorageTtl [int] $defaultTtl } function New-AzureNativeTypeDocumentdbSqlContainerResource { param ( [parameter(mandatory=$False,HelpMessage='The configuration of the indexing policy. By default, the indexing is automatic for all document paths within the container)')] [IndexingPolicy] $indexingPolicy, [parameter(mandatory=$False,HelpMessage='The configuration of the partition key to be used for partitioning data into multiple partitions)')] [ContainerPartitionKey] $partitionKey, [parameter(mandatory=$False,HelpMessage='The unique key policy configuration for specifying uniqueness constraints on documents in the collection in the Azure Cosmos DB service.)')] [UniqueKeyPolicy] $uniqueKeyPolicy, [parameter(mandatory=$False,HelpMessage='Name of the Cosmos DB SQL container)')] [string] $id, [parameter(mandatory=$False,HelpMessage='The conflict resolution policy for the container.)')] [ConflictResolutionPolicy] $conflictResolutionPolicy, [parameter(mandatory=$False,HelpMessage='Analytical TTL.)')] [int] $analyticalStorageTtl, [parameter(mandatory=$False,HelpMessage='Default time to live)')] [int] $defaultTtl ) process { return $([SqlContainerResource]$PSBoundParameters) } } function New-AzureNativeDocumentdbSqlResourceSqlContainer { [Alias('azure_native_documentdb_sqlresourcesqlcontainer')] param ( [parameter(mandatory=$False,HelpMessage='The standard JSON format of a container)')] [SqlContainerResource] $resource, [parameter(mandatory=$False,HelpMessage='Cosmos DB container name.)')] [string] $containerName, [parameter(mandatory=$False,HelpMessage='The location of the resource group to which the resource belongs.)')] [string] $location, [parameter(mandatory=$False,HelpMessage='Tags are a list of key-value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater than 128 characters and value no greater than 256 characters. For example, the default experience for a template type is set with "defaultExperience": "Cassandra". Current "defaultExperience" values also include "Table", "Graph", "DocumentDB", and "MongoDB".)')] [hashtable] $tags, [parameter(mandatory=$False,HelpMessage='Cosmos DB database account name.)')] [string] $accountName, [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.)')] [CreateUpdateOptions] $options, [parameter(mandatory=$False,HelpMessage='Cosmos DB database name.)')] [string] $databaseName, [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:documentdb:SqlResourceSqlContainer") $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["accountName"] = $accountName $resource.properties["databaseName"] = $databaseName $resource.properties["resource"] = $resource $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'containerName') { $resource.properties["containerName"] = $containerName } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } if($PSBoundParameters.Keys -icontains 'options') { $resource.properties["options"] = $options } $global:pulumiresources += $resource return $resource } } function New-AzureNativeDocumentdbMongoDBResourceMongoRoleDefinition { [Alias('azure_native_documentdb_mongodbresourcemongoroledefinition')] param ( [parameter(mandatory=$False,HelpMessage='The database name for which access is being granted for this Role Definition.)')] [string] $databaseName, [parameter(mandatory=$False,HelpMessage='A user-friendly name for the Role Definition. Must be unique for the database account.)')] [string] $roleName, [parameter(mandatory=$False,HelpMessage='Indicates whether the Role Definition was built-in or user created.)')] $type, [parameter(mandatory=$False,HelpMessage='The set of roles inherited by this Role Definition.)')] $roles, [parameter(mandatory=$False,HelpMessage='Cosmos DB database account name.)')] [string] $accountName, [parameter(mandatory=$False,HelpMessage='The ID for the Role Definition {dbName.roleName}.)')] [string] $mongoRoleDefinitionId, [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='A set of privileges contained by the Role Definition. This will allow application of this Role Definition on the entire database account or any underlying Database / Collection. Scopes higher than Database are not enforceable as privilege.)')] $privileges, [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:documentdb:MongoDBResourceMongoRoleDefinition") $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["accountName"] = $accountName $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'databaseName') { $resource.properties["databaseName"] = $databaseName } if($PSBoundParameters.Keys -icontains 'roleName') { $resource.properties["roleName"] = $roleName } if($PSBoundParameters.Keys -icontains 'type') { $resource.properties["type"] = $type } if($PSBoundParameters.Keys -icontains 'roles') { $resource.properties["roles"] = $roles } if($PSBoundParameters.Keys -icontains 'mongoRoleDefinitionId') { $resource.properties["mongoRoleDefinitionId"] = $mongoRoleDefinitionId } if($PSBoundParameters.Keys -icontains 'privileges') { $resource.properties["privileges"] = $privileges } $global:pulumiresources += $resource return $resource } } class SqlDatabaseResource { [string] $id } function New-AzureNativeTypeDocumentdbSqlDatabaseResource { param ( [parameter(mandatory=$False,HelpMessage='Name of the Cosmos DB SQL database)')] [string] $id ) process { return $([SqlDatabaseResource]$PSBoundParameters) } } function New-AzureNativeDocumentdbSqlResourceSqlDatabase { [Alias('azure_native_documentdb_sqlresourcesqldatabase')] param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.)')] [CreateUpdateOptions] $options, [parameter(mandatory=$False,HelpMessage='The location of the resource group to which the resource belongs.)')] [string] $location, [parameter(mandatory=$False,HelpMessage='Cosmos DB database name.)')] [string] $databaseName, [parameter(mandatory=$False,HelpMessage='Cosmos DB database account name.)')] [string] $accountName, [parameter(mandatory=$False,HelpMessage='The standard JSON format of a SQL database)')] [SqlDatabaseResource] $resource, [parameter(mandatory=$False,HelpMessage='Tags are a list of key-value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater than 128 characters and value no greater than 256 characters. For example, the default experience for a template type is set with "defaultExperience": "Cassandra". Current "defaultExperience" values also include "Table", "Graph", "DocumentDB", and "MongoDB".)')] [hashtable] $tags, [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:documentdb:SqlResourceSqlDatabase") $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["accountName"] = $accountName $resource.properties["resource"] = $resource $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'options') { $resource.properties["options"] = $options } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } if($PSBoundParameters.Keys -icontains 'databaseName') { $resource.properties["databaseName"] = $databaseName } if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } $global:pulumiresources += $resource return $resource } } function New-AzureNativeDocumentdbService { [Alias('azure_native_documentdb_service')] param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='Instance count for the service.)')] [int] $instanceCount, [parameter(mandatory=$False,HelpMessage='Cosmos DB service name.)')] [string] $serviceName, [parameter(mandatory=$False,HelpMessage='Cosmos DB database account name.)')] [string] $accountName, [parameter(mandatory=$False,HelpMessage='ServiceType for the service.)')] [string] [ArgumentCompletions('SqlDedicatedGateway', 'DataTransfer')] $serviceType, [parameter(mandatory=$False,HelpMessage='Instance type for the service.)')] [string] [ArgumentCompletions('Cosmos.D4s', 'Cosmos.D8s', 'Cosmos.D16s')] $instanceSize, [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:documentdb:Service") $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["accountName"] = $accountName $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'instanceCount') { $resource.properties["instanceCount"] = $instanceCount } if($PSBoundParameters.Keys -icontains 'serviceName') { $resource.properties["serviceName"] = $serviceName } if($PSBoundParameters.Keys -icontains 'serviceType') { $resource.properties["serviceType"] = $serviceType } if($PSBoundParameters.Keys -icontains 'instanceSize') { $resource.properties["instanceSize"] = $instanceSize } $global:pulumiresources += $resource return $resource } } class TableResource { [string] $id } function New-AzureNativeTypeDocumentdbTableResource { param ( [parameter(mandatory=$False,HelpMessage='Name of the Cosmos DB table)')] [string] $id ) process { return $([TableResource]$PSBoundParameters) } } function New-AzureNativeDocumentdbTableResourceTable { [Alias('azure_native_documentdb_tableresourcetable')] param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.)')] [CreateUpdateOptions] $options, [parameter(mandatory=$False,HelpMessage='The location of the resource group to which the resource belongs.)')] [string] $location, [parameter(mandatory=$False,HelpMessage='Cosmos DB table name.)')] [string] $tableName, [parameter(mandatory=$False,HelpMessage='Cosmos DB database account name.)')] [string] $accountName, [parameter(mandatory=$False,HelpMessage='The standard JSON format of a Table)')] [TableResource] $resource, [parameter(mandatory=$False,HelpMessage='Tags are a list of key-value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater than 128 characters and value no greater than 256 characters. For example, the default experience for a template type is set with "defaultExperience": "Cassandra". Current "defaultExperience" values also include "Table", "Graph", "DocumentDB", and "MongoDB".)')] [hashtable] $tags, [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:documentdb:TableResourceTable") $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["accountName"] = $accountName $resource.properties["resource"] = $resource $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'options') { $resource.properties["options"] = $options } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } if($PSBoundParameters.Keys -icontains 'tableName') { $resource.properties["tableName"] = $tableName } if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } $global:pulumiresources += $resource return $resource } } class SeedNode { [string] $ipAddress } function New-AzureNativeTypeDocumentdbSeedNode { param ( [parameter(mandatory=$False,HelpMessage='IP address of this seed node.)')] [string] $ipAddress ) process { return $([SeedNode]$PSBoundParameters) } } class Certificate { [string] $pem } function New-AzureNativeTypeDocumentdbCertificate { param ( [parameter(mandatory=$False,HelpMessage='PEM formatted public key.)')] [string] $pem ) process { return $([Certificate]$PSBoundParameters) } } class ClusterResourceProperties { [SeedNode] $prometheusEndpoint [bool] $repairEnabled [Certificate[]] $clientCertificates [SeedNode[]] $externalSeedNodes [int] $hoursBetweenBackups [string] $initialCassandraAdminPassword [Certificate[]] $externalGossipCertificates [string] $delegatedManagementSubnetId [string] $restoreFromBackupId [ArgumentCompletions('None', 'Cassandra')] [string] $authenticationMethod [string] $cassandraVersion [string] $clusterNameOverride [ArgumentCompletions('Creating', 'Updating', 'Deleting', 'Succeeded', 'Failed', 'Canceled')] [string] $provisioningState } function New-AzureNativeTypeDocumentdbClusterResourceProperties { param ( [parameter(mandatory=$False,HelpMessage='Hostname or IP address where the Prometheus endpoint containing data about the managed Cassandra nodes can be reached.)')] [SeedNode] $prometheusEndpoint, [parameter(mandatory=$False,HelpMessage='Should automatic repairs run on this cluster? If omitted, this is true, and should stay true unless you are running a hybrid cluster where you are already doing your own repairs.)')] [bool] $repairEnabled, [parameter(mandatory=$False,HelpMessage='List of TLS certificates used to authorize clients connecting to the cluster. All connections are TLS encrypted whether clientCertificates is set or not, but if clientCertificates is set, the managed Cassandra cluster will reject all connections not bearing a TLS client certificate that can be validated from one or more of the public certificates in this property.)')] $clientCertificates, [parameter(mandatory=$False,HelpMessage='List of IP addresses of seed nodes in unmanaged data centers. These will be added to the seed node lists of all managed nodes.)')] $externalSeedNodes, [parameter(mandatory=$False,HelpMessage='Number of hours to wait between taking a backup of the cluster. To disable backups, set this property to 0.)')] [int] $hoursBetweenBackups, [parameter(mandatory=$False,HelpMessage='Initial password for clients connecting as admin to the cluster. Should be changed after cluster creation. Returns null on GET. This field only applies when the authenticationMethod field is ''Cassandra''.)')] [string] $initialCassandraAdminPassword, [parameter(mandatory=$False,HelpMessage='List of TLS certificates used to authorize gossip from unmanaged data centers. The TLS certificates of all nodes in unmanaged data centers must be verifiable using one of the certificates provided in this property.)')] $externalGossipCertificates, [parameter(mandatory=$False,HelpMessage='Resource id of a subnet that this cluster''s management service should have its network interface attached to. The subnet must be routable to all subnets that will be delegated to data centers. The resource id must be of the form ''/subscriptions/<subscription id>/resourceGroups/<resource group>/providers/Microsoft.Network/virtualNetworks/<virtual network>/subnets/<subnet>'')')] [string] $delegatedManagementSubnetId, [parameter(mandatory=$False,HelpMessage='To create an empty cluster, omit this field or set it to null. To restore a backup into a new cluster, set this field to the resource id of the backup.)')] [string] $restoreFromBackupId, [parameter(mandatory=$False,HelpMessage='Which authentication method Cassandra should use to authenticate clients. ''None'' turns off authentication, so should not be used except in emergencies. ''Cassandra'' is the default password based authentication. The default is ''Cassandra''.)')] [string] [ArgumentCompletions('None', 'Cassandra')] $authenticationMethod, [parameter(mandatory=$False,HelpMessage='Which version of Cassandra should this cluster converge to running (e.g., 3.11). When updated, the cluster may take some time to migrate to the new version.)')] [string] $cassandraVersion, [parameter(mandatory=$False,HelpMessage='If you need to set the clusterName property in cassandra.yaml to something besides the resource name of the cluster, set the value to use on this property.)')] [string] $clusterNameOverride, [parameter(mandatory=$False,HelpMessage='The status of the resource at the time the operation was called.)')] [string] [ArgumentCompletions('Creating', 'Updating', 'Deleting', 'Succeeded', 'Failed', 'Canceled')] $provisioningState ) process { return $([ClusterResourceProperties]$PSBoundParameters) } } function New-AzureNativeDocumentdbCassandraCluster { [Alias('azure_native_documentdb_cassandracluster')] param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='Identity for the resource.)')] [ManagedServiceIdentity] $identity, [parameter(mandatory=$False,HelpMessage='The location of the resource group to which the resource belongs.)')] [string] $location, [parameter(mandatory=$False,HelpMessage='Managed Cassandra cluster name.)')] [string] $clusterName, [parameter(mandatory=$False,HelpMessage='Properties of a managed Cassandra cluster.)')] [ClusterResourceProperties] $properties, [parameter(mandatory=$False,HelpMessage='Tags are a list of key-value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater than 128 characters and value no greater than 256 characters. For example, the default experience for a template type is set with "defaultExperience": "Cassandra". Current "defaultExperience" values also include "Table", "Graph", "DocumentDB", and "MongoDB".)')] [hashtable] $tags, [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:documentdb:CassandraCluster") $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 'identity') { $resource.properties["identity"] = $identity } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } if($PSBoundParameters.Keys -icontains 'clusterName') { $resource.properties["clusterName"] = $clusterName } if($PSBoundParameters.Keys -icontains 'properties') { $resource.properties["properties"] = $properties } if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } $global:pulumiresources += $resource return $resource } } class PeriodicModeProperties { [int] $backupIntervalInMinutes [int] $backupRetentionIntervalInHours } function New-AzureNativeTypeDocumentdbPeriodicModeProperties { param ( [parameter(mandatory=$False,HelpMessage='An integer representing the interval in minutes between two backups)')] [int] $backupIntervalInMinutes, [parameter(mandatory=$False,HelpMessage='An integer representing the time (in hours) that each backup is retained)')] [int] $backupRetentionIntervalInHours ) process { return $([PeriodicModeProperties]$PSBoundParameters) } } class PeriodicModeBackupPolicy { [PeriodicModeProperties] $periodicModeProperties [string] $type } function New-AzureNativeTypeDocumentdbPeriodicModeBackupPolicy { param ( [parameter(mandatory=$False,HelpMessage='Configuration values for periodic mode backup)')] [PeriodicModeProperties] $periodicModeProperties, [parameter(mandatory=$False,HelpMessage='Describes the mode of backups. Expected value is ''Periodic''.)')] [string] $type ) process { return $([PeriodicModeBackupPolicy]$PSBoundParameters) } } class ApiProperties { [ArgumentCompletions('3.2', '3.6', '4.0')] [string] $serverVersion } function New-AzureNativeTypeDocumentdbApiProperties { param ( [parameter(mandatory=$False,HelpMessage='Describes the ServerVersion of an a MongoDB account.)')] [string] [ArgumentCompletions('3.2', '3.6', '4.0')] $serverVersion ) process { return $([ApiProperties]$PSBoundParameters) } } class ConsistencyPolicy { [ArgumentCompletions('Eventual', 'Session', 'BoundedStaleness', 'Strong', 'ConsistentPrefix')] [object] $defaultConsistencyLevel [int] $maxStalenessPrefix [int] $maxIntervalInSeconds } function New-AzureNativeTypeDocumentdbConsistencyPolicy { param ( [parameter(mandatory=$False,HelpMessage='The default consistency level and configuration settings of the Cosmos DB account.)')] $defaultConsistencyLevel, [parameter(mandatory=$False,HelpMessage='When used with the Bounded Staleness consistency level, this value represents the number of stale requests tolerated. Accepted range for this value is 1 – 2,147,483,647. Required when defaultConsistencyPolicy is set to ''BoundedStaleness''.)')] [int] $maxStalenessPrefix, [parameter(mandatory=$False,HelpMessage='When used with the Bounded Staleness consistency level, this value represents the time amount of staleness (in seconds) tolerated. Accepted range for this value is 5 - 86400. Required when defaultConsistencyPolicy is set to ''BoundedStaleness''.)')] [int] $maxIntervalInSeconds ) process { return $([ConsistencyPolicy]$PSBoundParameters) } } function New-AzureNativeDocumentdbDatabaseAccount { [Alias('azure_native_documentdb_databaseaccount')] param ( [parameter(mandatory=$False,HelpMessage='The cassandra connector offer type for the Cosmos DB database C* account.)')] [string] [ArgumentCompletions('Small')] $connectorOffer, [parameter(mandatory=$False,HelpMessage='The object representing the policy for taking backups on an account.)')] [PeriodicModeBackupPolicy] $backupPolicy, [parameter(mandatory=$False,HelpMessage='Enables the cassandra connector on the Cosmos DB C* account)')] [bool] $enableCassandraConnector, [parameter(mandatory=$False,HelpMessage='Tags are a list of key-value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater than 128 characters and value no greater than 256 characters. For example, the default experience for a template type is set with "defaultExperience": "Cassandra". Current "defaultExperience" values also include "Table", "Graph", "DocumentDB", and "MongoDB".)')] [hashtable] $tags, [parameter(mandatory=$False,HelpMessage='The URI of the key vault)')] [string] $keyVaultKeyUri, [parameter(mandatory=$False,HelpMessage='The default identity for accessing key vault used in features like customer managed keys. The default identity needs to be explicitly set by the users. It can be "FirstPartyIdentity", "SystemAssignedIdentity" and more.)')] [string] $defaultIdentity, [parameter(mandatory=$False,HelpMessage='Flag to indicate whether to enable/disable Virtual Network ACL rules.)')] [bool] $isVirtualNetworkFilterEnabled, [parameter(mandatory=$False,HelpMessage='List of Virtual Network ACL rules configured for the Cosmos DB account.)')] $virtualNetworkRules, [parameter(mandatory=$False,HelpMessage='Enables the account to write in multiple locations)')] [bool] $enableMultipleWriteLocations, [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='API specific properties. Currently, supported only for MongoDB API.)')] [ApiProperties] $apiProperties, [parameter(mandatory=$False,HelpMessage='Flag to indicate whether to enable storage analytics.)')] [bool] $enableAnalyticalStorage, [parameter(mandatory=$False,HelpMessage='Flag to indicate whether Free Tier is enabled.)')] [bool] $enableFreeTier, [parameter(mandatory=$False,HelpMessage='An array that contains the georeplication locations enabled for the Cosmos DB account.)')] $locations, [parameter(mandatory=$False,HelpMessage='Disable write operations on metadata resources (databases, containers, throughput) via account keys)')] [bool] $disableKeyBasedMetadataWriteAccess, [parameter(mandatory=$False,HelpMessage='The CORS policy for the Cosmos DB database account.)')] $cors, [parameter(mandatory=$False,HelpMessage='Whether requests from Public Network are allowed)')] [string] [ArgumentCompletions('Enabled', 'Disabled')] $publicNetworkAccess, [parameter(mandatory=$False,HelpMessage='Identity for the resource.)')] [ManagedServiceIdentity] $identity, [parameter(mandatory=$False,HelpMessage='List of IpRules.)')] $ipRules, [parameter(mandatory=$False,HelpMessage='Enables automatic failover of the write region in the rare event that the region is unavailable due to an outage. Automatic failover will result in a new write region for the account and is chosen based on the failover priorities configured for the account.)')] [bool] $enableAutomaticFailover, [parameter(mandatory=$False,HelpMessage='Indicates what services are allowed to bypass firewall checks.)')] $networkAclBypass, [parameter(mandatory=$False,HelpMessage='List of Cosmos DB capabilities for the account)')] $capabilities, [parameter(mandatory=$False,HelpMessage='The consistency policy for the Cosmos DB account.)')] [ConsistencyPolicy] $consistencyPolicy, [parameter(mandatory=$False,HelpMessage='Indicates the type of database account. This can only be set at database account creation.)')] [string] [ArgumentCompletions('GlobalDocumentDB', 'MongoDB', 'Parse')] $kind, [parameter(mandatory=$False,HelpMessage='The location of the resource group to which the resource belongs.)')] [string] $location, [parameter(mandatory=$False,HelpMessage='An array that contains the Resource Ids for Network Acl Bypass for the Cosmos DB account.)')] [string[]] $networkAclBypassResourceIds, [parameter(mandatory=$False,HelpMessage='Cosmos DB database account name.)')] [string] $accountName, [parameter(mandatory=$False,HelpMessage='The offer type for the database)')] $databaseAccountOfferType, [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:documentdb:DatabaseAccount") $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["databaseAccountOfferType"] = $databaseAccountOfferType $resource.properties["locations"] = $locations $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'connectorOffer') { $resource.properties["connectorOffer"] = $connectorOffer } if($PSBoundParameters.Keys -icontains 'backupPolicy') { $resource.properties["backupPolicy"] = $backupPolicy } if($PSBoundParameters.Keys -icontains 'enableCassandraConnector') { $resource.properties["enableCassandraConnector"] = $enableCassandraConnector } if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } if($PSBoundParameters.Keys -icontains 'keyVaultKeyUri') { $resource.properties["keyVaultKeyUri"] = $keyVaultKeyUri } if($PSBoundParameters.Keys -icontains 'defaultIdentity') { $resource.properties["defaultIdentity"] = $defaultIdentity } if($PSBoundParameters.Keys -icontains 'isVirtualNetworkFilterEnabled') { $resource.properties["isVirtualNetworkFilterEnabled"] = $isVirtualNetworkFilterEnabled } if($PSBoundParameters.Keys -icontains 'virtualNetworkRules') { $resource.properties["virtualNetworkRules"] = $virtualNetworkRules } if($PSBoundParameters.Keys -icontains 'enableMultipleWriteLocations') { $resource.properties["enableMultipleWriteLocations"] = $enableMultipleWriteLocations } if($PSBoundParameters.Keys -icontains 'apiProperties') { $resource.properties["apiProperties"] = $apiProperties } if($PSBoundParameters.Keys -icontains 'enableAnalyticalStorage') { $resource.properties["enableAnalyticalStorage"] = $enableAnalyticalStorage } if($PSBoundParameters.Keys -icontains 'enableFreeTier') { $resource.properties["enableFreeTier"] = $enableFreeTier } if($PSBoundParameters.Keys -icontains 'disableKeyBasedMetadataWriteAccess') { $resource.properties["disableKeyBasedMetadataWriteAccess"] = $disableKeyBasedMetadataWriteAccess } if($PSBoundParameters.Keys -icontains 'cors') { $resource.properties["cors"] = $cors } if($PSBoundParameters.Keys -icontains 'publicNetworkAccess') { $resource.properties["publicNetworkAccess"] = $publicNetworkAccess } if($PSBoundParameters.Keys -icontains 'identity') { $resource.properties["identity"] = $identity } if($PSBoundParameters.Keys -icontains 'ipRules') { $resource.properties["ipRules"] = $ipRules } if($PSBoundParameters.Keys -icontains 'enableAutomaticFailover') { $resource.properties["enableAutomaticFailover"] = $enableAutomaticFailover } if($PSBoundParameters.Keys -icontains 'networkAclBypass') { $resource.properties["networkAclBypass"] = $networkAclBypass } if($PSBoundParameters.Keys -icontains 'capabilities') { $resource.properties["capabilities"] = $capabilities } if($PSBoundParameters.Keys -icontains 'consistencyPolicy') { $resource.properties["consistencyPolicy"] = $consistencyPolicy } if($PSBoundParameters.Keys -icontains 'kind') { $resource.properties["kind"] = $kind } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } if($PSBoundParameters.Keys -icontains 'networkAclBypassResourceIds') { $resource.properties["networkAclBypassResourceIds"] = $networkAclBypassResourceIds } if($PSBoundParameters.Keys -icontains 'accountName') { $resource.properties["accountName"] = $accountName } $global:pulumiresources += $resource return $resource } } class MongoDBDatabaseResource { [string] $id } function New-AzureNativeTypeDocumentdbMongoDBDatabaseResource { param ( [parameter(mandatory=$False,HelpMessage='Name of the Cosmos DB MongoDB database)')] [string] $id ) process { return $([MongoDBDatabaseResource]$PSBoundParameters) } } function New-AzureNativeDocumentdbMongoDBResourceMongoDBDatabase { [Alias('azure_native_documentdb_mongodbresourcemongodbdatabase')] param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.)')] [CreateUpdateOptions] $options, [parameter(mandatory=$False,HelpMessage='The location of the resource group to which the resource belongs.)')] [string] $location, [parameter(mandatory=$False,HelpMessage='Cosmos DB database name.)')] [string] $databaseName, [parameter(mandatory=$False,HelpMessage='Cosmos DB database account name.)')] [string] $accountName, [parameter(mandatory=$False,HelpMessage='The standard JSON format of a MongoDB database)')] [MongoDBDatabaseResource] $resource, [parameter(mandatory=$False,HelpMessage='Tags are a list of key-value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater than 128 characters and value no greater than 256 characters. For example, the default experience for a template type is set with "defaultExperience": "Cassandra". Current "defaultExperience" values also include "Table", "Graph", "DocumentDB", and "MongoDB".)')] [hashtable] $tags, [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:documentdb:MongoDBResourceMongoDBDatabase") $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["accountName"] = $accountName $resource.properties["resource"] = $resource $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'options') { $resource.properties["options"] = $options } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } if($PSBoundParameters.Keys -icontains 'databaseName') { $resource.properties["databaseName"] = $databaseName } if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } $global:pulumiresources += $resource return $resource } } class CassandraKeyspaceResource { [string] $id } function New-AzureNativeTypeDocumentdbCassandraKeyspaceResource { param ( [parameter(mandatory=$False,HelpMessage='Name of the Cosmos DB Cassandra keyspace)')] [string] $id ) process { return $([CassandraKeyspaceResource]$PSBoundParameters) } } function New-AzureNativeDocumentdbCassandraResourceCassandraKeyspace { [Alias('azure_native_documentdb_cassandraresourcecassandrakeyspace')] param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.)')] [CreateUpdateOptions] $options, [parameter(mandatory=$False,HelpMessage='The location of the resource group to which the resource belongs.)')] [string] $location, [parameter(mandatory=$False,HelpMessage='The standard JSON format of a Cassandra keyspace)')] [CassandraKeyspaceResource] $resource, [parameter(mandatory=$False,HelpMessage='Cosmos DB database account name.)')] [string] $accountName, [parameter(mandatory=$False,HelpMessage='Cosmos DB keyspace name.)')] [string] $keyspaceName, [parameter(mandatory=$False,HelpMessage='Tags are a list of key-value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater than 128 characters and value no greater than 256 characters. For example, the default experience for a template type is set with "defaultExperience": "Cassandra". Current "defaultExperience" values also include "Table", "Graph", "DocumentDB", and "MongoDB".)')] [hashtable] $tags, [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:documentdb:CassandraResourceCassandraKeyspace") $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["accountName"] = $accountName $resource.properties["resource"] = $resource $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'options') { $resource.properties["options"] = $options } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } if($PSBoundParameters.Keys -icontains 'keyspaceName') { $resource.properties["keyspaceName"] = $keyspaceName } if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } $global:pulumiresources += $resource return $resource } } class SqlUserDefinedFunctionResource { [string] $id [string] $body } function New-AzureNativeTypeDocumentdbSqlUserDefinedFunctionResource { param ( [parameter(mandatory=$False,HelpMessage='Name of the Cosmos DB SQL userDefinedFunction)')] [string] $id, [parameter(mandatory=$False,HelpMessage='Body of the User Defined Function)')] [string] $body ) process { return $([SqlUserDefinedFunctionResource]$PSBoundParameters) } } function New-AzureNativeDocumentdbSqlResourceSqlUserDefinedFunction { [Alias('azure_native_documentdb_sqlresourcesqluserdefinedfunction')] param ( [parameter(mandatory=$False,HelpMessage='Cosmos DB database account name.)')] [string] $accountName, [parameter(mandatory=$False,HelpMessage='Cosmos DB userDefinedFunction name.)')] [string] $userDefinedFunctionName, [parameter(mandatory=$False,HelpMessage='Tags are a list of key-value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater than 128 characters and value no greater than 256 characters. For example, the default experience for a template type is set with "defaultExperience": "Cassandra". Current "defaultExperience" values also include "Table", "Graph", "DocumentDB", and "MongoDB".)')] [hashtable] $tags, [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The standard JSON format of a userDefinedFunction)')] [SqlUserDefinedFunctionResource] $resource, [parameter(mandatory=$False,HelpMessage='A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.)')] [CreateUpdateOptions] $options, [parameter(mandatory=$False,HelpMessage='Cosmos DB container name.)')] [string] $containerName, [parameter(mandatory=$False,HelpMessage='Cosmos DB database name.)')] [string] $databaseName, [parameter(mandatory=$False,HelpMessage='The location of the resource group to which the resource belongs.)')] [string] $location, [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:documentdb:SqlResourceSqlUserDefinedFunction") $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["accountName"] = $accountName $resource.properties["containerName"] = $containerName $resource.properties["databaseName"] = $databaseName $resource.properties["resource"] = $resource $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'userDefinedFunctionName') { $resource.properties["userDefinedFunctionName"] = $userDefinedFunctionName } if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } if($PSBoundParameters.Keys -icontains 'options') { $resource.properties["options"] = $options } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } $global:pulumiresources += $resource return $resource } } class PrivateLinkServiceConnectionStateProperty { [string] $description [string] $status } function New-AzureNativeTypeDocumentdbPrivateLinkServiceConnectionStateProperty { param ( [parameter(mandatory=$False,HelpMessage='The private link service connection description.)')] [string] $description, [parameter(mandatory=$False,HelpMessage='The private link service connection status.)')] [string] $status ) process { return $([PrivateLinkServiceConnectionStateProperty]$PSBoundParameters) } } class PrivateEndpointProperty { [string] $id } function New-AzureNativeTypeDocumentdbPrivateEndpointProperty { param ( [parameter(mandatory=$False,HelpMessage='Resource id of the private endpoint.)')] [string] $id ) process { return $([PrivateEndpointProperty]$PSBoundParameters) } } function New-AzureNativeDocumentdbPrivateEndpointConnection { [Alias('azure_native_documentdb_privateendpointconnection')] param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='Group id of the private endpoint.)')] [string] $groupId, [parameter(mandatory=$False,HelpMessage='Provisioning state of the private endpoint.)')] [string] $provisioningState, [parameter(mandatory=$False,HelpMessage='Cosmos DB database account name.)')] [string] $accountName, [parameter(mandatory=$False,HelpMessage='The name of the private endpoint connection.)')] [string] $privateEndpointConnectionName, [parameter(mandatory=$False,HelpMessage='Connection State of the Private Endpoint Connection.)')] [PrivateLinkServiceConnectionStateProperty] $privateLinkServiceConnectionState, [parameter(mandatory=$False,HelpMessage='Private endpoint which the connection belongs to.)')] [PrivateEndpointProperty] $privateEndpoint, [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:documentdb: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["accountName"] = $accountName $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'groupId') { $resource.properties["groupId"] = $groupId } if($PSBoundParameters.Keys -icontains 'provisioningState') { $resource.properties["provisioningState"] = $provisioningState } if($PSBoundParameters.Keys -icontains 'privateEndpointConnectionName') { $resource.properties["privateEndpointConnectionName"] = $privateEndpointConnectionName } if($PSBoundParameters.Keys -icontains 'privateLinkServiceConnectionState') { $resource.properties["privateLinkServiceConnectionState"] = $privateLinkServiceConnectionState } if($PSBoundParameters.Keys -icontains 'privateEndpoint') { $resource.properties["privateEndpoint"] = $privateEndpoint } $global:pulumiresources += $resource return $resource } } function New-AzureNativeDocumentdbMongoDBResourceMongoUserDefinition { [Alias('azure_native_documentdb_mongodbresourcemongouserdefinition')] param ( [parameter(mandatory=$False,HelpMessage='Cosmos DB database account name.)')] [string] $accountName, [parameter(mandatory=$False,HelpMessage='The set of roles inherited by the User Definition.)')] $roles, [parameter(mandatory=$False,HelpMessage='A custom definition for the USer Definition.)')] [string] $customData, [parameter(mandatory=$False,HelpMessage='The password for User Definition. Response does not contain user password.)')] [string] $password, [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The ID for the User Definition {dbName.userName}.)')] [string] $mongoUserDefinitionId, [parameter(mandatory=$False,HelpMessage='The user name for User Definition.)')] [string] $userName, [parameter(mandatory=$False,HelpMessage='The database name for which access is being granted for this User Definition.)')] [string] $databaseName, [parameter(mandatory=$False,HelpMessage='The Mongo Auth mechanism. For now, we only support auth mechanism SCRAM-SHA-256.)')] [string] $mechanisms, [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:documentdb:MongoDBResourceMongoUserDefinition") $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["accountName"] = $accountName $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'roles') { $resource.properties["roles"] = $roles } if($PSBoundParameters.Keys -icontains 'customData') { $resource.properties["customData"] = $customData } if($PSBoundParameters.Keys -icontains 'password') { $resource.properties["password"] = $password } if($PSBoundParameters.Keys -icontains 'mongoUserDefinitionId') { $resource.properties["mongoUserDefinitionId"] = $mongoUserDefinitionId } if($PSBoundParameters.Keys -icontains 'userName') { $resource.properties["userName"] = $userName } if($PSBoundParameters.Keys -icontains 'databaseName') { $resource.properties["databaseName"] = $databaseName } if($PSBoundParameters.Keys -icontains 'mechanisms') { $resource.properties["mechanisms"] = $mechanisms } $global:pulumiresources += $resource return $resource } } class MongoIndexOptions { [int] $expireAfterSeconds [bool] $unique } function New-AzureNativeTypeDocumentdbMongoIndexOptions { param ( [parameter(mandatory=$False,HelpMessage='Expire after seconds)')] [int] $expireAfterSeconds, [parameter(mandatory=$False,HelpMessage='Is unique or not)')] [bool] $unique ) process { return $([MongoIndexOptions]$PSBoundParameters) } } class MongoIndexKeys { [string[]] $keys } function New-AzureNativeTypeDocumentdbMongoIndexKeys { param ( [parameter(mandatory=$False,HelpMessage='List of keys for each MongoDB collection in the Azure Cosmos DB service)')] [string[]] $keys ) process { return $([MongoIndexKeys]$PSBoundParameters) } } class MongoIndex { [MongoIndexOptions] $options [MongoIndexKeys] $key } function New-AzureNativeTypeDocumentdbMongoIndex { param ( [parameter(mandatory=$False,HelpMessage='Cosmos DB MongoDB collection index key options)')] [MongoIndexOptions] $options, [parameter(mandatory=$False,HelpMessage='Cosmos DB MongoDB collection index keys)')] [MongoIndexKeys] $key ) process { return $([MongoIndex]$PSBoundParameters) } } class MongoDBCollectionResource { [object] $shardKey [string] $id [MongoIndex[]] $indexes [int] $analyticalStorageTtl } function New-AzureNativeTypeDocumentdbMongoDBCollectionResource { param ( [parameter(mandatory=$False,HelpMessage='A key-value pair of shard keys to be applied for the request.)')] [hashtable] $shardKey, [parameter(mandatory=$False,HelpMessage='Name of the Cosmos DB MongoDB collection)')] [string] $id, [parameter(mandatory=$False,HelpMessage='List of index keys)')] $indexes, [parameter(mandatory=$False,HelpMessage='Analytical TTL.)')] [int] $analyticalStorageTtl ) process { return $([MongoDBCollectionResource]$PSBoundParameters) } } function New-AzureNativeDocumentdbMongoDBResourceMongoDBCollection { [Alias('azure_native_documentdb_mongodbresourcemongodbcollection')] param ( [parameter(mandatory=$False,HelpMessage='Cosmos DB database name.)')] [string] $databaseName, [parameter(mandatory=$False,HelpMessage='Cosmos DB database account name.)')] [string] $accountName, [parameter(mandatory=$False,HelpMessage='Tags are a list of key-value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater than 128 characters and value no greater than 256 characters. For example, the default experience for a template type is set with "defaultExperience": "Cassandra". Current "defaultExperience" values also include "Table", "Graph", "DocumentDB", and "MongoDB".)')] [hashtable] $tags, [parameter(mandatory=$False,HelpMessage='The location of the resource group to which the resource belongs.)')] [string] $location, [parameter(mandatory=$False,HelpMessage='A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.)')] [CreateUpdateOptions] $options, [parameter(mandatory=$False,HelpMessage='The standard JSON format of a MongoDB collection)')] [MongoDBCollectionResource] $resource, [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='Cosmos DB collection name.)')] [string] $collectionName, [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:documentdb:MongoDBResourceMongoDBCollection") $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["accountName"] = $accountName $resource.properties["databaseName"] = $databaseName $resource.properties["resource"] = $resource $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } if($PSBoundParameters.Keys -icontains 'options') { $resource.properties["options"] = $options } if($PSBoundParameters.Keys -icontains 'collectionName') { $resource.properties["collectionName"] = $collectionName } $global:pulumiresources += $resource return $resource } } class DataCenterResourceProperties { [int] $nodeCount [string] $base64EncodedCassandraYamlFragment [string] $dataCenterLocation [ArgumentCompletions('Creating', 'Updating', 'Deleting', 'Succeeded', 'Failed', 'Canceled')] [string] $provisioningState [string] $delegatedSubnetId } function New-AzureNativeTypeDocumentdbDataCenterResourceProperties { param ( [parameter(mandatory=$False,HelpMessage='The number of nodes the data center should have. This is the desired number. After it is set, it may take some time for the data center to be scaled to match. To monitor the number of nodes and their status, use the fetchNodeStatus method on the cluster.)')] [int] $nodeCount, [parameter(mandatory=$False,HelpMessage='A fragment of a cassandra.yaml configuration file to be included in the cassandra.yaml for all nodes in this data center. The fragment should be Base64 encoded, and only a subset of keys are allowed.)')] [string] $base64EncodedCassandraYamlFragment, [parameter(mandatory=$False,HelpMessage='The region this data center should be created in.)')] [string] $dataCenterLocation, [parameter(mandatory=$False,HelpMessage='The status of the resource at the time the operation was called.)')] [string] [ArgumentCompletions('Creating', 'Updating', 'Deleting', 'Succeeded', 'Failed', 'Canceled')] $provisioningState, [parameter(mandatory=$False,HelpMessage='Resource id of a subnet the nodes in this data center should have their network interfaces connected to. The subnet must be in the same region specified in ''dataCenterLocation'' and must be able to route to the subnet specified in the cluster''s ''delegatedManagementSubnetId'' property. This resource id will be of the form ''/subscriptions/<subscription id>/resourceGroups/<resource group>/providers/Microsoft.Network/virtualNetworks/<virtual network>/subnets/<subnet>''.)')] [string] $delegatedSubnetId ) process { return $([DataCenterResourceProperties]$PSBoundParameters) } } function New-AzureNativeDocumentdbCassandraDataCenter { [Alias('azure_native_documentdb_cassandradatacenter')] param ( [parameter(mandatory=$False,HelpMessage='Properties of a managed Cassandra data center.)')] [DataCenterResourceProperties] $properties, [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='Data center name in a managed Cassandra cluster.)')] [string] $dataCenterName, [parameter(mandatory=$False,HelpMessage='Managed Cassandra cluster name.)')] [string] $clusterName, [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:documentdb:CassandraDataCenter") $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["clusterName"] = $clusterName $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'properties') { $resource.properties["properties"] = $properties } if($PSBoundParameters.Keys -icontains 'dataCenterName') { $resource.properties["dataCenterName"] = $dataCenterName } $global:pulumiresources += $resource return $resource } } class GremlinGraphResource { [ContainerPartitionKey] $partitionKey [UniqueKeyPolicy] $uniqueKeyPolicy [string] $id [ConflictResolutionPolicy] $conflictResolutionPolicy [IndexingPolicy] $indexingPolicy [int] $defaultTtl } function New-AzureNativeTypeDocumentdbGremlinGraphResource { param ( [parameter(mandatory=$False,HelpMessage='The configuration of the partition key to be used for partitioning data into multiple partitions)')] [ContainerPartitionKey] $partitionKey, [parameter(mandatory=$False,HelpMessage='The unique key policy configuration for specifying uniqueness constraints on documents in the collection in the Azure Cosmos DB service.)')] [UniqueKeyPolicy] $uniqueKeyPolicy, [parameter(mandatory=$False,HelpMessage='Name of the Cosmos DB Gremlin graph)')] [string] $id, [parameter(mandatory=$False,HelpMessage='The conflict resolution policy for the graph.)')] [ConflictResolutionPolicy] $conflictResolutionPolicy, [parameter(mandatory=$False,HelpMessage='The configuration of the indexing policy. By default, the indexing is automatic for all document paths within the graph)')] [IndexingPolicy] $indexingPolicy, [parameter(mandatory=$False,HelpMessage='Default time to live)')] [int] $defaultTtl ) process { return $([GremlinGraphResource]$PSBoundParameters) } } function New-AzureNativeDocumentdbGremlinResourceGremlinGraph { [Alias('azure_native_documentdb_gremlinresourcegremlingraph')] param ( [parameter(mandatory=$False,HelpMessage='The standard JSON format of a Gremlin graph)')] [GremlinGraphResource] $resource, [parameter(mandatory=$False,HelpMessage='The location of the resource group to which the resource belongs.)')] [string] $location, [parameter(mandatory=$False,HelpMessage='Tags are a list of key-value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater than 128 characters and value no greater than 256 characters. For example, the default experience for a template type is set with "defaultExperience": "Cassandra". Current "defaultExperience" values also include "Table", "Graph", "DocumentDB", and "MongoDB".)')] [hashtable] $tags, [parameter(mandatory=$False,HelpMessage='Cosmos DB database account name.)')] [string] $accountName, [parameter(mandatory=$False,HelpMessage='Cosmos DB graph name.)')] [string] $graphName, [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.)')] [CreateUpdateOptions] $options, [parameter(mandatory=$False,HelpMessage='Cosmos DB database name.)')] [string] $databaseName, [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:documentdb:GremlinResourceGremlinGraph") $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["accountName"] = $accountName $resource.properties["databaseName"] = $databaseName $resource.properties["resource"] = $resource $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 'graphName') { $resource.properties["graphName"] = $graphName } if($PSBoundParameters.Keys -icontains 'options') { $resource.properties["options"] = $options } $global:pulumiresources += $resource return $resource } } function New-AzureNativeDocumentdbSqlResourceSqlRoleAssignment { [Alias('azure_native_documentdb_sqlresourcesqlroleassignment')] param ( [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The unique identifier for the associated Role Definition.)')] [string] $roleDefinitionId, [parameter(mandatory=$False,HelpMessage='Cosmos DB database account name.)')] [string] $accountName, [parameter(mandatory=$False,HelpMessage='The GUID for the Role Assignment.)')] [string] $roleAssignmentId, [parameter(mandatory=$False,HelpMessage='The unique identifier for the associated AAD principal in the AAD graph to which access is being granted through this Role Assignment. Tenant ID for the principal is inferred using the tenant associated with the subscription.)')] [string] $principalId, [parameter(mandatory=$False,HelpMessage='The data plane resource path for which access is being granted through this Role Assignment.)')] [string] $scope, [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:documentdb:SqlResourceSqlRoleAssignment") $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["accountName"] = $accountName $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'roleDefinitionId') { $resource.properties["roleDefinitionId"] = $roleDefinitionId } if($PSBoundParameters.Keys -icontains 'roleAssignmentId') { $resource.properties["roleAssignmentId"] = $roleAssignmentId } if($PSBoundParameters.Keys -icontains 'principalId') { $resource.properties["principalId"] = $principalId } if($PSBoundParameters.Keys -icontains 'scope') { $resource.properties["scope"] = $scope } $global:pulumiresources += $resource return $resource } } class SqlTriggerResource { [ArgumentCompletions('Pre', 'Post')] [string] $triggerType [ArgumentCompletions('All', 'Create', 'Update', 'Delete', 'Replace')] [string] $triggerOperation [string] $body [string] $id } function New-AzureNativeTypeDocumentdbSqlTriggerResource { param ( [parameter(mandatory=$False,HelpMessage='Type of the Trigger)')] [string] [ArgumentCompletions('Pre', 'Post')] $triggerType, [parameter(mandatory=$False,HelpMessage='The operation the trigger is associated with)')] [string] [ArgumentCompletions('All', 'Create', 'Update', 'Delete', 'Replace')] $triggerOperation, [parameter(mandatory=$False,HelpMessage='Body of the Trigger)')] [string] $body, [parameter(mandatory=$False,HelpMessage='Name of the Cosmos DB SQL trigger)')] [string] $id ) process { return $([SqlTriggerResource]$PSBoundParameters) } } function New-AzureNativeDocumentdbSqlResourceSqlTrigger { [Alias('azure_native_documentdb_sqlresourcesqltrigger')] param ( [parameter(mandatory=$False,HelpMessage='Cosmos DB database account name.)')] [string] $accountName, [parameter(mandatory=$False,HelpMessage='Cosmos DB trigger name.)')] [string] $triggerName, [parameter(mandatory=$False,HelpMessage='Tags are a list of key-value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater than 128 characters and value no greater than 256 characters. For example, the default experience for a template type is set with "defaultExperience": "Cassandra". Current "defaultExperience" values also include "Table", "Graph", "DocumentDB", and "MongoDB".)')] [hashtable] $tags, [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='The standard JSON format of a trigger)')] [SqlTriggerResource] $resource, [parameter(mandatory=$False,HelpMessage='A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.)')] [CreateUpdateOptions] $options, [parameter(mandatory=$False,HelpMessage='Cosmos DB container name.)')] [string] $containerName, [parameter(mandatory=$False,HelpMessage='Cosmos DB database name.)')] [string] $databaseName, [parameter(mandatory=$False,HelpMessage='The location of the resource group to which the resource belongs.)')] [string] $location, [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:documentdb:SqlResourceSqlTrigger") $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["accountName"] = $accountName $resource.properties["containerName"] = $containerName $resource.properties["databaseName"] = $databaseName $resource.properties["resource"] = $resource $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'triggerName') { $resource.properties["triggerName"] = $triggerName } if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } if($PSBoundParameters.Keys -icontains 'options') { $resource.properties["options"] = $options } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } $global:pulumiresources += $resource return $resource } } class CassandraViewResource { [string] $id [string] $viewDefinition } function New-AzureNativeTypeDocumentdbCassandraViewResource { param ( [parameter(mandatory=$False,HelpMessage='Name of the Cosmos DB Cassandra view)')] [string] $id, [parameter(mandatory=$False,HelpMessage='View Definition of the Cosmos DB Cassandra view)')] [string] $viewDefinition ) process { return $([CassandraViewResource]$PSBoundParameters) } } function New-AzureNativeDocumentdbCassandraResourceCassandraView { [Alias('azure_native_documentdb_cassandraresourcecassandraview')] param ( [parameter(mandatory=$False,HelpMessage='Cosmos DB database account name.)')] [string] $accountName, [parameter(mandatory=$False,HelpMessage='Tags are a list of key-value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater than 128 characters and value no greater than 256 characters. For example, the default experience for a template type is set with "defaultExperience": "Cassandra". Current "defaultExperience" values also include "Table", "Graph", "DocumentDB", and "MongoDB".)')] [hashtable] $tags, [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='Cosmos DB view name.)')] [string] $viewName, [parameter(mandatory=$False,HelpMessage='Cosmos DB keyspace name.)')] [string] $keyspaceName, [parameter(mandatory=$False,HelpMessage='Identity for the resource.)')] [ManagedServiceIdentity] $identity, [parameter(mandatory=$False,HelpMessage='The standard JSON format of a Cassandra view)')] [CassandraViewResource] $resource, [parameter(mandatory=$False,HelpMessage='A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.)')] [CreateUpdateOptions] $options, [parameter(mandatory=$False,HelpMessage='The location of the resource group to which the resource belongs.)')] [string] $location, [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:documentdb:CassandraResourceCassandraView") $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["accountName"] = $accountName $resource.properties["keyspaceName"] = $keyspaceName $resource.properties["resource"] = $resource $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } if($PSBoundParameters.Keys -icontains 'viewName') { $resource.properties["viewName"] = $viewName } if($PSBoundParameters.Keys -icontains 'identity') { $resource.properties["identity"] = $identity } if($PSBoundParameters.Keys -icontains 'options') { $resource.properties["options"] = $options } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } $global:pulumiresources += $resource return $resource } } class Column { [string] $type [string] $name } function New-AzureNativeTypeDocumentdbColumn { param ( [parameter(mandatory=$False,HelpMessage='Type of the Cosmos DB Cassandra table column)')] [string] $type, [parameter(mandatory=$False,HelpMessage='Name of the Cosmos DB Cassandra table column)')] [string] $name ) process { return $([Column]$PSBoundParameters) } } class ClusterKey { [string] $name [string] $orderBy } function New-AzureNativeTypeDocumentdbClusterKey { param ( [parameter(mandatory=$False,HelpMessage='Name of the Cosmos DB Cassandra table cluster key)')] [string] $name, [parameter(mandatory=$False,HelpMessage='Order of the Cosmos DB Cassandra table cluster key, only support "Asc" and "Desc")')] [string] $orderBy ) process { return $([ClusterKey]$PSBoundParameters) } } class CassandraPartitionKey { [string] $name } function New-AzureNativeTypeDocumentdbCassandraPartitionKey { param ( [parameter(mandatory=$False,HelpMessage='Name of the Cosmos DB Cassandra table partition key)')] [string] $name ) process { return $([CassandraPartitionKey]$PSBoundParameters) } } class CassandraSchema { [Column[]] $columns [ClusterKey[]] $clusterKeys [CassandraPartitionKey[]] $partitionKeys } function New-AzureNativeTypeDocumentdbCassandraSchema { param ( [parameter(mandatory=$False,HelpMessage='List of Cassandra table columns.)')] $columns, [parameter(mandatory=$False,HelpMessage='List of cluster key.)')] $clusterKeys, [parameter(mandatory=$False,HelpMessage='List of partition key.)')] $partitionKeys ) process { return $([CassandraSchema]$PSBoundParameters) } } class CassandraTableResource { [CassandraSchema] $schema [int] $defaultTtl [string] $id [int] $analyticalStorageTtl } function New-AzureNativeTypeDocumentdbCassandraTableResource { param ( [parameter(mandatory=$False,HelpMessage='Schema of the Cosmos DB Cassandra table)')] [CassandraSchema] $schema, [parameter(mandatory=$False,HelpMessage='Time to live of the Cosmos DB Cassandra table)')] [int] $defaultTtl, [parameter(mandatory=$False,HelpMessage='Name of the Cosmos DB Cassandra table)')] [string] $id, [parameter(mandatory=$False,HelpMessage='Analytical TTL.)')] [int] $analyticalStorageTtl ) process { return $([CassandraTableResource]$PSBoundParameters) } } function New-AzureNativeDocumentdbCassandraResourceCassandraTable { [Alias('azure_native_documentdb_cassandraresourcecassandratable')] param ( [parameter(mandatory=$False,HelpMessage='The standard JSON format of a Cassandra table)')] [CassandraTableResource] $resource, [parameter(mandatory=$False,HelpMessage='Cosmos DB table name.)')] [string] $tableName, [parameter(mandatory=$False,HelpMessage='The location of the resource group to which the resource belongs.)')] [string] $location, [parameter(mandatory=$False,HelpMessage='Cosmos DB keyspace name.)')] [string] $keyspaceName, [parameter(mandatory=$False,HelpMessage='Cosmos DB database account name.)')] [string] $accountName, [parameter(mandatory=$False,HelpMessage='Tags are a list of key-value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater than 128 characters and value no greater than 256 characters. For example, the default experience for a template type is set with "defaultExperience": "Cassandra". Current "defaultExperience" values also include "Table", "Graph", "DocumentDB", and "MongoDB".)')] [hashtable] $tags, [parameter(mandatory=$False,HelpMessage='The name of the resource group. The name is case insensitive.)')] [string] $resourceGroupName, [parameter(mandatory=$False,HelpMessage='A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.)')] [CreateUpdateOptions] $options, [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:documentdb:CassandraResourceCassandraTable") $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["accountName"] = $accountName $resource.properties["keyspaceName"] = $keyspaceName $resource.properties["resource"] = $resource $resource.properties["resourceGroupName"] = $resourceGroupName if($PSBoundParameters.Keys -icontains 'tableName') { $resource.properties["tableName"] = $tableName } if($PSBoundParameters.Keys -icontains 'location') { $resource.properties["location"] = $location } if($PSBoundParameters.Keys -icontains 'tags') { $resource.properties["tags"] = $tags } if($PSBoundParameters.Keys -icontains 'options') { $resource.properties["options"] = $options } $global:pulumiresources += $resource return $resource } } |