diff --git a/patches/0005-Set-frontdoor-backend_pool_settings-to-computed.patch b/patches/0005-Set-frontdoor-backend_pool_settings-to-computed.patch index 0e255d9ef1..d977e7f813 100644 --- a/patches/0005-Set-frontdoor-backend_pool_settings-to-computed.patch +++ b/patches/0005-Set-frontdoor-backend_pool_settings-to-computed.patch @@ -5,10 +5,10 @@ Subject: [PATCH] Set frontdoor backend_pool_settings to computed diff --git a/internal/services/frontdoor/frontdoor_resource.go b/internal/services/frontdoor/frontdoor_resource.go -index 35a5a39145..23b8a243df 100644 +index 79700285a8..93eb8dd23f 100644 --- a/internal/services/frontdoor/frontdoor_resource.go +++ b/internal/services/frontdoor/frontdoor_resource.go -@@ -2072,6 +2072,7 @@ func resourceFrontDoorSchema() map[string]*pluginsdk.Schema { +@@ -2067,6 +2067,7 @@ func resourceFrontDoorSchema() map[string]*pluginsdk.Schema { "backend_pool_settings": { Type: pluginsdk.TypeList, Optional: true, diff --git a/patches/0006-Make-shared-features-config-optional.patch b/patches/0006-Make-shared-features-config-optional.patch index 67a4450635..4783bf3e11 100644 --- a/patches/0006-Make-shared-features-config-optional.patch +++ b/patches/0006-Make-shared-features-config-optional.patch @@ -9,10 +9,10 @@ Modified in fork in https://github.com/pulumi/terraform-provider-azurerm/commit/ This originally included a conditional block to only set the SharedFeatures config if it had a value but this seems to have been lost during the provider config being refactored in https://github.com/hashicorp/terraform-provider-azurerm/commit/57bcf134131514ffcc962f20b12f993fad7d6060#diff-58d6a027753b50994deb7e11e4a99dde423f35844986019bd9cea5e0c94aba22 diff --git a/internal/provider/features.go b/internal/provider/features.go -index e39c3ce0c7..aac9b65f19 100644 +index 0becb67ac8..f43ffd2766 100644 --- a/internal/provider/features.go +++ b/internal/provider/features.go -@@ -403,7 +403,7 @@ func schemaFeatures(supportLegacyTestSuite bool) *pluginsdk.Schema { +@@ -425,7 +425,7 @@ func schemaFeatures(supportLegacyTestSuite bool) *pluginsdk.Schema { return &pluginsdk.Schema{ Type: pluginsdk.TypeList, diff --git a/patches/0007-Make-storage-account-resource_group_name-optional-in.patch b/patches/0007-Make-storage-account-resource_group_name-optional-in.patch index 02a5146885..6cafbc3220 100644 --- a/patches/0007-Make-storage-account-resource_group_name-optional-in.patch +++ b/patches/0007-Make-storage-account-resource_group_name-optional-in.patch @@ -7,7 +7,7 @@ Subject: [PATCH] Make storage account resource_group_name optional in data Look up resource_group_name by using `storageClient.FindAccount` as storage account names should be unique, and resolve back to the resource group it belongs to. diff --git a/internal/services/storage/storage_account_data_source.go b/internal/services/storage/storage_account_data_source.go -index 8376b0c938..c9a4aca0ff 100644 +index efac78a79d..4eec1fae57 100644 --- a/internal/services/storage/storage_account_data_source.go +++ b/internal/services/storage/storage_account_data_source.go @@ -39,7 +39,8 @@ func dataSourceStorageAccount() *pluginsdk.Resource { diff --git a/patches/0009-Remove-vm-platform_fault_domain-required_with.patch b/patches/0009-Remove-vm-platform_fault_domain-required_with.patch index 668ced7464..9d6aaa4c89 100644 --- a/patches/0009-Remove-vm-platform_fault_domain-required_with.patch +++ b/patches/0009-Remove-vm-platform_fault_domain-required_with.patch @@ -6,7 +6,7 @@ Subject: [PATCH] Remove vm platform_fault_domain required_with Applies to both Windows and Linux. diff --git a/internal/services/compute/linux_virtual_machine_resource.go b/internal/services/compute/linux_virtual_machine_resource.go -index a92e1ec8bd..a5f7996bdc 100644 +index 3c4cde6ea2..433b20b500 100644 --- a/internal/services/compute/linux_virtual_machine_resource.go +++ b/internal/services/compute/linux_virtual_machine_resource.go @@ -372,7 +372,6 @@ func resourceLinuxVirtualMachine() *pluginsdk.Resource { diff --git a/patches/0010-Remove-function_app_schema-use_dotnet_isolated_runti.patch b/patches/0010-Remove-function_app_schema-use_dotnet_isolated_runti.patch index 854a7fc9b9..ed406b4d7c 100644 --- a/patches/0010-Remove-function_app_schema-use_dotnet_isolated_runti.patch +++ b/patches/0010-Remove-function_app_schema-use_dotnet_isolated_runti.patch @@ -6,11 +6,11 @@ Subject: [PATCH] Remove function_app_schema use_dotnet_isolated_runtime diff --git a/internal/services/appservice/helpers/function_app_schema.go b/internal/services/appservice/helpers/function_app_schema.go -index ca7d021db9..7ca516bf9c 100644 +index d0380954e9..fb9daddb26 100644 --- a/internal/services/appservice/helpers/function_app_schema.go +++ b/internal/services/appservice/helpers/function_app_schema.go -@@ -1084,10 +1084,11 @@ func linuxFunctionAppStackSchema() *pluginsdk.Schema { - Description: "The version of .Net. Possible values are `3.1`, `6.0` and `7.0`", +@@ -1085,10 +1085,11 @@ func linuxFunctionAppStackSchema() *pluginsdk.Schema { + Description: "The version of .Net. Possible values are `3.1`, `6.0`, `7.0`, `8.0` and `9.0`", }, + // FORK: Removed default value due to pulumi-azure#1227 diff --git a/patches/0011-Avoid-ordering-container-registry-georeplications.patch b/patches/0011-Avoid-ordering-container-registry-georeplications.patch index 0d00050fbd..d4dcbd863e 100644 --- a/patches/0011-Avoid-ordering-container-registry-georeplications.patch +++ b/patches/0011-Avoid-ordering-container-registry-georeplications.patch @@ -6,7 +6,7 @@ Subject: [PATCH] Avoid ordering container registry georeplications This looks like it might have been removed in error due to a bad merge at some point. diff --git a/internal/services/containers/container_registry_resource.go b/internal/services/containers/container_registry_resource.go -index 1623d7f838..dc11e3ed26 100644 +index 6e83d72960..aa6c65567e 100644 --- a/internal/services/containers/container_registry_resource.go +++ b/internal/services/containers/container_registry_resource.go @@ -7,7 +7,6 @@ import ( @@ -17,7 +17,7 @@ index 1623d7f838..dc11e3ed26 100644 "strings" "time" -@@ -770,11 +769,6 @@ func resourceContainerRegistryRead(d *pluginsdk.ResourceData, meta interface{}) +@@ -711,11 +710,6 @@ func resourceContainerRegistryRead(d *pluginsdk.ResourceData, meta interface{}) } } diff --git a/patches/0012-Ensure-servicebus-queue-topic-have-namespaces-and-RG.patch b/patches/0012-Ensure-servicebus-queue-topic-have-namespaces-and-RG.patch index ae6160b566..0c6861a80e 100644 --- a/patches/0012-Ensure-servicebus-queue-topic-have-namespaces-and-RG.patch +++ b/patches/0012-Ensure-servicebus-queue-topic-have-namespaces-and-RG.patch @@ -46,7 +46,7 @@ index b4df3f33be..fc4838204d 100644 if model := resp.Model; model != nil { if props := model.Properties; props != nil { diff --git a/internal/services/servicebus/servicebus_topic_resource.go b/internal/services/servicebus/servicebus_topic_resource.go -index 164a0ac21d..17aab56f03 100644 +index 0c7c4b4fb2..bedc1f1795 100644 --- a/internal/services/servicebus/servicebus_topic_resource.go +++ b/internal/services/servicebus/servicebus_topic_resource.go @@ -45,6 +45,8 @@ func resourceServiceBusTopic() *pluginsdk.Resource { @@ -58,7 +58,7 @@ index 164a0ac21d..17aab56f03 100644 func resourceServiceBusTopicSchema() map[string]*pluginsdk.Schema { schema := map[string]*pluginsdk.Schema{ "name": { -@@ -138,6 +140,16 @@ func resourceServiceBusTopicSchema() map[string]*pluginsdk.Schema { +@@ -135,6 +137,16 @@ func resourceServiceBusTopicSchema() map[string]*pluginsdk.Schema { Type: pluginsdk.TypeBool, Optional: true, }, @@ -74,8 +74,8 @@ index 164a0ac21d..17aab56f03 100644 + }, } - if !features.FourPointOhBeta() { -@@ -310,6 +322,10 @@ func resourceServiceBusTopicRead(d *pluginsdk.ResourceData, meta interface{}) er + return schema +@@ -259,6 +271,10 @@ func resourceServiceBusTopicRead(d *pluginsdk.ResourceData, meta interface{}) er d.Set("name", id.TopicName) d.Set("namespace_id", topics.NewNamespaceID(id.SubscriptionId, id.ResourceGroupName, id.NamespaceName).ID()) diff --git a/patches/0013-Update-documentation.patch b/patches/0013-Update-documentation.patch index c7c611e33b..4820f241a2 100644 --- a/patches/0013-Update-documentation.patch +++ b/patches/0013-Update-documentation.patch @@ -638,7 +638,7 @@ index e9013a8f1a..f3f07aa79a 100644 To find the Analytics Item ID you can query the REST API using the [`az rest` CLI command](https://docs.microsoft.com/cli/azure/reference-index?view=azure-cli-latest#az-rest), e.g. diff --git a/website/docs/r/automation_job_schedule.html.markdown b/website/docs/r/automation_job_schedule.html.markdown -index cf1fbfa577..42f3ef7f89 100644 +index 3eb1e84dd0..e2cfe213d7 100644 --- a/website/docs/r/automation_job_schedule.html.markdown +++ b/website/docs/r/automation_job_schedule.html.markdown @@ -14,7 +14,7 @@ Links an Automation Runbook and Schedule. diff --git a/provider/cmd/pulumi-resource-azure/bridge-metadata.json b/provider/cmd/pulumi-resource-azure/bridge-metadata.json index 0ae69537ba..4fe0d3f0d3 100644 --- a/provider/cmd/pulumi-resource-azure/bridge-metadata.json +++ b/provider/cmd/pulumi-resource-azure/bridge-metadata.json @@ -2472,6 +2472,9 @@ "fields": { "ip_configuration": { "maxItemsOne": true + }, + "zones": { + "maxItemsOne": false } } }, @@ -14923,6 +14926,14 @@ "current": "azure:netapp/accountEncryption:AccountEncryption", "majorVersion": 6 }, + "azurerm_netapp_backup_policy": { + "current": "azure:netapp/backupPolicy:BackupPolicy", + "majorVersion": 6 + }, + "azurerm_netapp_backup_vault": { + "current": "azure:netapp/backupVault:BackupVault", + "majorVersion": 6 + }, "azurerm_netapp_pool": { "current": "azure:netapp/pool:Pool", "majorVersion": 6 @@ -14967,6 +14978,9 @@ "current": "azure:netapp/volume:Volume", "majorVersion": 6, "fields": { + "data_protection_backup_policy": { + "maxItemsOne": true + }, "data_protection_replication": { "maxItemsOne": true }, @@ -24141,6 +24155,9 @@ "fields": { "ip_configuration": { "maxItemsOne": false + }, + "zones": { + "maxItemsOne": false } } }, @@ -25934,6 +25951,15 @@ } } }, + "azurerm_key_vault_managed_hardware_security_module_key": { + "current": "azure:keyvault/getManagedHardwareSecurityModuleKey:getManagedHardwareSecurityModuleKey", + "majorVersion": 6, + "fields": { + "key_opts": { + "maxItemsOne": false + } + } + }, "azurerm_key_vault_managed_hardware_security_module_role_definition": { "current": "azure:keyvault/getManagedHardwareSecurityModuleRoleDefinition:getManagedHardwareSecurityModuleRoleDefinition", "majorVersion": 6, @@ -27841,6 +27867,14 @@ "current": "azure:netapp/getAccountEncryption:getAccountEncryption", "majorVersion": 6 }, + "azurerm_netapp_backup_policy": { + "current": "azure:netapp/getBackupPolicy:getBackupPolicy", + "majorVersion": 6 + }, + "azurerm_netapp_backup_vault": { + "current": "azure:netapp/getBackupVault:getBackupVault", + "majorVersion": 6 + }, "azurerm_netapp_pool": { "current": "azure:netapp/getPool:getPool", "majorVersion": 6 @@ -27885,6 +27919,9 @@ "current": "azure:netapp/getVolume:getVolume", "majorVersion": 6, "fields": { + "data_protection_backup_policy": { + "maxItemsOne": false + }, "data_protection_replication": { "maxItemsOne": false }, diff --git a/provider/cmd/pulumi-resource-azure/schema.json b/provider/cmd/pulumi-resource-azure/schema.json index 79b448eeb9..3c60d2f3af 100644 --- a/provider/cmd/pulumi-resource-azure/schema.json +++ b/provider/cmd/pulumi-resource-azure/schema.json @@ -8734,7 +8734,7 @@ }, "dotnetVersion": { "type": "string", - "description": "The version of .NET to use. Possible values include `3.1`, `6.0`, `7.0` and `8.0`.\n" + "description": "The version of .NET to use. Possible values include `3.1`, `6.0`, `7.0`, `8.0` and `9.0`.\n" }, "javaVersion": { "type": "string", @@ -10058,7 +10058,7 @@ }, "dotnetVersion": { "type": "string", - "description": "The version of .Net. Possible values are `3.1`, `6.0`, `7.0` and `8.0`.\n" + "description": "The version of .Net. Possible values are `3.1`, `6.0`, `7.0`, `8.0` and `9.0`.\n" }, "javaVersion": { "type": "string", @@ -11545,7 +11545,7 @@ }, "dotnetVersion": { "type": "string", - "description": "The version of .NET to use. Possible values include `3.1`, `5.0`, `6.0`, `7.0` and `8.0`.\n" + "description": "The version of .NET to use. Possible values include `3.1`, `5.0`, `6.0`, `7.0`, `8.0` and `9.0`.\n" }, "goVersion": { "type": "string", @@ -13082,7 +13082,7 @@ }, "dotnetVersion": { "type": "string", - "description": "The version of .NET to use. Possible values include `3.1`, `5.0`, `6.0`, `7.0` and `8.0`.\n" + "description": "The version of .NET to use. Possible values include `3.1`, `5.0`, `6.0`, `7.0`, `8.0` and `9.0`.\n" }, "goVersion": { "type": "string", @@ -15631,7 +15631,7 @@ "properties": { "dotnetVersion": { "type": "string", - "description": "The version of .NET to use. Possible values include `v3.0`, `v4.0` `v6.0`, `v7.0` and `v8.0`. Defaults to `v4.0`.\n" + "description": "The version of .NET to use. Possible values include `v3.0`, `v4.0` `v6.0`, `v7.0`, `v8.0` and `v9.0`. Defaults to `v4.0`.\n" }, "javaVersion": { "type": "string", @@ -16913,7 +16913,7 @@ "properties": { "dotnetVersion": { "type": "string", - "description": "The version of .Net. Possible values are `v3.0`, `v4.0`, `v6.0`, `v7.0` and `v8.0`. Defaults to `v4.0`.\n" + "description": "The version of .Net. Possible values are `v3.0`, `v4.0`, `v6.0`, `v7.0`, `v8.0` and `v9.0`. Defaults to `v4.0`.\n" }, "javaVersion": { "type": "string", @@ -18398,7 +18398,7 @@ }, "dotnetVersion": { "type": "string", - "description": "The version of .NET to use when `current_stack` is set to `dotnet`. Possible values include `v2.0`,`v3.0`, `v4.0`, `v5.0`, `v6.0`, `v7.0` and `v8.0`.\n\n\u003e **NOTE:** The Portal displayed values and the actual underlying API values differ for this setting, as follows:\nPortal Value | API value\n:--|--:\nASP.NET V3.5 | v2.0\nASP.NET V4.8 | v4.0\n.NET 6 (LTS) | v6.0\n.NET 7 (STS) | v7.0\n.NET 8 (LTS) | v8.0\n" + "description": "The version of .NET to use when `current_stack` is set to `dotnet`. Possible values include `v2.0`,`v3.0`, `v4.0`, `v5.0`, `v6.0`, `v7.0`, `v8.0` and `v9.0`.\n\n\u003e **NOTE:** The Portal displayed values and the actual underlying API values differ for this setting, as follows:\nPortal Value | API value\n:--|--:\nASP.NET V3.5 | v2.0\nASP.NET V4.8 | v4.0\n.NET 6 (LTS) | v6.0\n.NET 7 (STS) | v7.0\n.NET 8 (LTS) | v8.0\n.NET 9 (STS) | v9.0\n" }, "javaContainer": { "type": "string", @@ -20059,7 +20059,7 @@ }, "dotnetVersion": { "type": "string", - "description": "The version of .NET to use when `current_stack` is set to `dotnet`. Possible values include `v2.0`,`v3.0`, `v4.0`, `v5.0`, `v6.0`, `v7.0` and `v8.0`.\n" + "description": "The version of .NET to use when `current_stack` is set to `dotnet`. Possible values include `v2.0`,`v3.0`, `v4.0`, `v5.0`, `v6.0`, `v7.0`, `v8.0` and `v9.0`.\n" }, "javaContainer": { "type": "string", @@ -42854,6 +42854,9 @@ "managedDisk": { "$ref": "#/types/azure:config/featuresManagedDisk:featuresManagedDisk" }, + "netapp": { + "$ref": "#/types/azure:config/featuresNetapp:featuresNetapp" + }, "postgresqlFlexibleServer": { "$ref": "#/types/azure:config/featuresPostgresqlFlexibleServer:featuresPostgresqlFlexibleServer" }, @@ -42995,6 +42998,19 @@ }, "type": "object" }, + "azure:config/featuresNetapp:featuresNetapp": { + "properties": { + "deleteBackupsOnBackupVaultDestroy": { + "type": "boolean", + "description": "When enabled, backups will be deleted when the `azure.netapp.BackupVault` resource is destroyed\n" + }, + "preventVolumeDestruction": { + "type": "boolean", + "description": "When enabled, the volume will not be destroyed, safeguarding from severe data loss\n" + } + }, + "type": "object" + }, "azure:config/featuresPostgresqlFlexibleServer:featuresPostgresqlFlexibleServer": { "properties": { "restartServerOnConfigurationValueChange": { @@ -68060,6 +68076,9 @@ "managedDisk": { "$ref": "#/types/azure:index/ProviderFeaturesManagedDisk:ProviderFeaturesManagedDisk" }, + "netapp": { + "$ref": "#/types/azure:index/ProviderFeaturesNetapp:ProviderFeaturesNetapp" + }, "postgresqlFlexibleServer": { "$ref": "#/types/azure:index/ProviderFeaturesPostgresqlFlexibleServer:ProviderFeaturesPostgresqlFlexibleServer" }, @@ -68201,6 +68220,19 @@ }, "type": "object" }, + "azure:index/ProviderFeaturesNetapp:ProviderFeaturesNetapp": { + "properties": { + "deleteBackupsOnBackupVaultDestroy": { + "type": "boolean", + "description": "When enabled, backups will be deleted when the `azure.netapp.BackupVault` resource is destroyed\n" + }, + "preventVolumeDestruction": { + "type": "boolean", + "description": "When enabled, the volume will not be destroyed, safeguarding from severe data loss\n" + } + }, + "type": "object" + }, "azure:index/ProviderFeaturesPostgresqlFlexibleServer:ProviderFeaturesPostgresqlFlexibleServer": { "properties": { "restartServerOnConfigurationValueChange": { @@ -78904,9 +78936,12 @@ }, "azure:mssql/DatabaseLongTermRetentionPolicy:DatabaseLongTermRetentionPolicy": { "properties": { + "immutableBackupsEnabled": { + "type": "boolean" + }, "monthlyRetention": { "type": "string", - "description": "The monthly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 120 months. e.g. `P1Y`, `P1M`, `P4W` or `P30D`.\n" + "description": "The monthly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 120 months. e.g. `P1Y`, `P1M`, `P4W` or `P30D`. Defaults to `PT0S`.\n" }, "weekOfYear": { "type": "integer", @@ -78914,11 +78949,11 @@ }, "weeklyRetention": { "type": "string", - "description": "The weekly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 520 weeks. e.g. `P1Y`, `P1M`, `P1W` or `P7D`.\n" + "description": "The weekly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 520 weeks. e.g. `P1Y`, `P1M`, `P1W` or `P7D`. Defaults to `PT0S`.\n" }, "yearlyRetention": { "type": "string", - "description": "The yearly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 10 years. e.g. `P1Y`, `P12M`, `P52W` or `P365D`.\n" + "description": "The yearly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 10 years. e.g. `P1Y`, `P12M`, `P52W` or `P365D`. Defaults to `PT0S`.\n" } }, "type": "object", @@ -79102,9 +79137,12 @@ }, "azure:mssql/ManagedDatabaseLongTermRetentionPolicy:ManagedDatabaseLongTermRetentionPolicy": { "properties": { + "immutableBackupsEnabled": { + "type": "boolean" + }, "monthlyRetention": { "type": "string", - "description": "The monthly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 120 months. e.g. `P1Y`, `P1M`, `P4W` or `P30D`.\n" + "description": "The monthly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 120 months. e.g. `P1Y`, `P1M`, `P4W` or `P30D`. Defaults to `PT0S`.\n" }, "weekOfYear": { "type": "integer", @@ -79112,11 +79150,11 @@ }, "weeklyRetention": { "type": "string", - "description": "The weekly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 520 weeks. e.g. `P1Y`, `P1M`, `P1W` or `P7D`.\n" + "description": "The weekly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 520 weeks. e.g. `P1Y`, `P1M`, `P1W` or `P7D`. Defaults to `PT0S`.\n" }, "yearlyRetention": { "type": "string", - "description": "The yearly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 10 years. e.g. `P1Y`, `P12M`, `P52W` or `P365D`.\n" + "description": "The yearly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 10 years. e.g. `P1Y`, `P12M`, `P52W` or `P365D`. Defaults to `PT0S`.\n" } }, "type": "object", @@ -80341,6 +80379,27 @@ "snapshotsToKeep" ] }, + "azure:netapp/VolumeDataProtectionBackupPolicy:VolumeDataProtectionBackupPolicy": { + "properties": { + "backupPolicyId": { + "type": "string", + "description": "Resource ID of the backup policy to apply to the volume.\n" + }, + "backupVaultId": { + "type": "string", + "description": "Resource ID of the backup backup vault to associate this volume to.\n" + }, + "policyEnabled": { + "type": "boolean", + "description": "Enables the backup policy on the volume, defaults to `true`.\n\nFor more information on Azure NetApp Files Backup feature please see [Understand Azure NetApp Files backup](https://learn.microsoft.com/en-us/azure/azure-netapp-files/backup-introduction)\n" + } + }, + "type": "object", + "required": [ + "backupPolicyId", + "backupVaultId" + ] + }, "azure:netapp/VolumeDataProtectionReplication:VolumeDataProtectionReplication": { "properties": { "endpointType": { @@ -80797,6 +80856,33 @@ } } }, + "azure:netapp/getVolumeDataProtectionBackupPolicy:getVolumeDataProtectionBackupPolicy": { + "properties": { + "backupPolicyId": { + "type": "string", + "description": "The Resource ID of the backup policy.\n" + }, + "backupVaultId": { + "type": "string", + "description": "The Resource ID of the backup backup vault.\n" + }, + "policyEnabled": { + "type": "boolean", + "description": "Backup policy is enabled or not.\n" + } + }, + "type": "object", + "required": [ + "backupPolicyId", + "backupVaultId", + "policyEnabled" + ], + "language": { + "nodejs": { + "requiredInputs": [] + } + } + }, "azure:netapp/getVolumeDataProtectionReplication:getVolumeDataProtectionReplication": { "properties": { "endpointType": { @@ -81272,7 +81358,7 @@ }, "statusCode": { "type": "string", - "description": "Status code of the application gateway customer error. Possible values are `HttpStatus403` and `HttpStatus502`\n" + "description": "Status code of the application gateway customer error. Possible values are `HttpStatus400`, `HttpStatus403`, `HttpStatus404`, `HttpStatus405`, `HttpStatus408`, `HttpStatus500`, `HttpStatus502`, `HttpStatus503` and `HttpStatus504`\n" } }, "type": "object", @@ -81525,7 +81611,7 @@ }, "statusCode": { "type": "string", - "description": "Status code of the application gateway customer error. Possible values are `HttpStatus403` and `HttpStatus502`\n" + "description": "Status code of the application gateway customer error. Possible values are `HttpStatus400`, `HttpStatus403`, `HttpStatus404`, `HttpStatus405`, `HttpStatus408`, `HttpStatus500`, `HttpStatus502`, `HttpStatus503` and `HttpStatus504`\n" } }, "type": "object", @@ -129155,7 +129241,7 @@ } }, "azure:automation/jobSchedule:JobSchedule": { - "description": "Links an Automation Runbook and Schedule.\n\n\u003e **NOTE** AzureRM provides this stand-alone azure.automation.JobSchedule and an inlined `job_schdule` property in azurerm_runbook to manage the job schedules. You can only make use of one of these methods to manage a job schedule.\n\n## Example Usage\n\nThis is an example of just the Job Schedule.\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azure from \"@pulumi/azure\";\n\nconst example = new azure.automation.JobSchedule(\"example\", {\n resourceGroupName: \"tf-rgr-automation\",\n automationAccountName: \"tf-automation-account\",\n scheduleName: \"hour\",\n runbookName: \"Get-VirtualMachine\",\n parameters: {\n resourcegroup: \"tf-rgr-vm\",\n vmname: \"TF-VM-01\",\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_azure as azure\n\nexample = azure.automation.JobSchedule(\"example\",\n resource_group_name=\"tf-rgr-automation\",\n automation_account_name=\"tf-automation-account\",\n schedule_name=\"hour\",\n runbook_name=\"Get-VirtualMachine\",\n parameters={\n \"resourcegroup\": \"tf-rgr-vm\",\n \"vmname\": \"TF-VM-01\",\n })\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Azure = Pulumi.Azure;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Azure.Automation.JobSchedule(\"example\", new()\n {\n ResourceGroupName = \"tf-rgr-automation\",\n AutomationAccountName = \"tf-automation-account\",\n ScheduleName = \"hour\",\n RunbookName = \"Get-VirtualMachine\",\n Parameters = \n {\n { \"resourcegroup\", \"tf-rgr-vm\" },\n { \"vmname\", \"TF-VM-01\" },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/automation\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := automation.NewJobSchedule(ctx, \"example\", \u0026automation.JobScheduleArgs{\n\t\t\tResourceGroupName: pulumi.String(\"tf-rgr-automation\"),\n\t\t\tAutomationAccountName: pulumi.String(\"tf-automation-account\"),\n\t\t\tScheduleName: pulumi.String(\"hour\"),\n\t\t\tRunbookName: pulumi.String(\"Get-VirtualMachine\"),\n\t\t\tParameters: pulumi.StringMap{\n\t\t\t\t\"resourcegroup\": pulumi.String(\"tf-rgr-vm\"),\n\t\t\t\t\"vmname\": pulumi.String(\"TF-VM-01\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azure.automation.JobSchedule;\nimport com.pulumi.azure.automation.JobScheduleArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new JobSchedule(\"example\", JobScheduleArgs.builder()\n .resourceGroupName(\"tf-rgr-automation\")\n .automationAccountName(\"tf-automation-account\")\n .scheduleName(\"hour\")\n .runbookName(\"Get-VirtualMachine\")\n .parameters(Map.ofEntries(\n Map.entry(\"resourcegroup\", \"tf-rgr-vm\"),\n Map.entry(\"vmname\", \"TF-VM-01\")\n ))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: azure:automation:JobSchedule\n properties:\n resourceGroupName: tf-rgr-automation\n automationAccountName: tf-automation-account\n scheduleName: hour\n runbookName: Get-VirtualMachine\n parameters:\n resourcegroup: tf-rgr-vm\n vmname: TF-VM-01\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nAutomation Job Schedules can be imported using the `resource id`, e.g.\n\n```sh\n$ pulumi import azure:automation/jobSchedule:JobSchedule example \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Automation/automationAccounts/account1/schedules/schedule1|/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Automation/automationAccounts/account1/runbooks/runbook1\"\n```\n\n", + "description": "Links an Automation Runbook and Schedule.\n\n\u003e **NOTE** AzureRM provides this stand-alone azure.automation.JobSchedule and an inlined `job_schedule` property in azurerm_runbook to manage the job schedules. You can only make use of one of these methods to manage a job schedule.\n\n## Example Usage\n\nThis is an example of just the Job Schedule.\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azure from \"@pulumi/azure\";\n\nconst example = new azure.automation.JobSchedule(\"example\", {\n resourceGroupName: \"tf-rgr-automation\",\n automationAccountName: \"tf-automation-account\",\n scheduleName: \"hour\",\n runbookName: \"Get-VirtualMachine\",\n parameters: {\n resourcegroup: \"tf-rgr-vm\",\n vmname: \"TF-VM-01\",\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_azure as azure\n\nexample = azure.automation.JobSchedule(\"example\",\n resource_group_name=\"tf-rgr-automation\",\n automation_account_name=\"tf-automation-account\",\n schedule_name=\"hour\",\n runbook_name=\"Get-VirtualMachine\",\n parameters={\n \"resourcegroup\": \"tf-rgr-vm\",\n \"vmname\": \"TF-VM-01\",\n })\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Azure = Pulumi.Azure;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Azure.Automation.JobSchedule(\"example\", new()\n {\n ResourceGroupName = \"tf-rgr-automation\",\n AutomationAccountName = \"tf-automation-account\",\n ScheduleName = \"hour\",\n RunbookName = \"Get-VirtualMachine\",\n Parameters = \n {\n { \"resourcegroup\", \"tf-rgr-vm\" },\n { \"vmname\", \"TF-VM-01\" },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/automation\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := automation.NewJobSchedule(ctx, \"example\", \u0026automation.JobScheduleArgs{\n\t\t\tResourceGroupName: pulumi.String(\"tf-rgr-automation\"),\n\t\t\tAutomationAccountName: pulumi.String(\"tf-automation-account\"),\n\t\t\tScheduleName: pulumi.String(\"hour\"),\n\t\t\tRunbookName: pulumi.String(\"Get-VirtualMachine\"),\n\t\t\tParameters: pulumi.StringMap{\n\t\t\t\t\"resourcegroup\": pulumi.String(\"tf-rgr-vm\"),\n\t\t\t\t\"vmname\": pulumi.String(\"TF-VM-01\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azure.automation.JobSchedule;\nimport com.pulumi.azure.automation.JobScheduleArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new JobSchedule(\"example\", JobScheduleArgs.builder()\n .resourceGroupName(\"tf-rgr-automation\")\n .automationAccountName(\"tf-automation-account\")\n .scheduleName(\"hour\")\n .runbookName(\"Get-VirtualMachine\")\n .parameters(Map.ofEntries(\n Map.entry(\"resourcegroup\", \"tf-rgr-vm\"),\n Map.entry(\"vmname\", \"TF-VM-01\")\n ))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: azure:automation:JobSchedule\n properties:\n resourceGroupName: tf-rgr-automation\n automationAccountName: tf-automation-account\n scheduleName: hour\n runbookName: Get-VirtualMachine\n parameters:\n resourcegroup: tf-rgr-vm\n vmname: TF-VM-01\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nAutomation Job Schedules can be imported using the `resource id`, e.g.\n\n```sh\n$ pulumi import azure:automation/jobSchedule:JobSchedule example \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Automation/automationAccounts/account1/schedules/schedule1|/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Automation/automationAccounts/account1/runbooks/runbook1\"\n```\n\n", "properties": { "automationAccountName": { "type": "string", @@ -129624,7 +129710,7 @@ "items": { "$ref": "#/types/azure:automation/RunBookJobSchedule:RunBookJobSchedule" }, - "description": "One or more `job_schedule` block as defined below.\n\n\u003e **NOTE** AzureRM provides a stand-alone azure.automation.JobSchedule and this inlined `job_schdule` property to manage the job schedules. At this time you should choose one of them to manage the job schedule resources.\n" + "description": "One or more `job_schedule` block as defined below.\n\n\u003e **NOTE** AzureRM provides a stand-alone azure.automation.JobSchedule and this inlined `job_schedule` property to manage the job schedules. At this time you should choose one of them to manage the job schedule resources.\n" }, "location": { "type": "string", @@ -129700,7 +129786,7 @@ "items": { "$ref": "#/types/azure:automation/RunBookJobSchedule:RunBookJobSchedule" }, - "description": "One or more `job_schedule` block as defined below.\n\n\u003e **NOTE** AzureRM provides a stand-alone azure.automation.JobSchedule and this inlined `job_schdule` property to manage the job schedules. At this time you should choose one of them to manage the job schedule resources.\n" + "description": "One or more `job_schedule` block as defined below.\n\n\u003e **NOTE** AzureRM provides a stand-alone azure.automation.JobSchedule and this inlined `job_schedule` property to manage the job schedules. At this time you should choose one of them to manage the job schedule resources.\n" }, "location": { "type": "string", @@ -129778,7 +129864,7 @@ "items": { "$ref": "#/types/azure:automation/RunBookJobSchedule:RunBookJobSchedule" }, - "description": "One or more `job_schedule` block as defined below.\n\n\u003e **NOTE** AzureRM provides a stand-alone azure.automation.JobSchedule and this inlined `job_schdule` property to manage the job schedules. At this time you should choose one of them to manage the job schedule resources.\n" + "description": "One or more `job_schedule` block as defined below.\n\n\u003e **NOTE** AzureRM provides a stand-alone azure.automation.JobSchedule and this inlined `job_schedule` property to manage the job schedules. At this time you should choose one of them to manage the job schedule resources.\n" }, "location": { "type": "string", @@ -138575,7 +138661,7 @@ "properties": { "dataLocation": { "type": "string", - "description": "The location where the Email Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` and `United States`. Changing this forces a new Email Communication Service to be created.\n" + "description": "The location where the Email Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` `usgov` and `United States`. Changing this forces a new Email Communication Service to be created.\n" }, "name": { "type": "string", @@ -138601,7 +138687,7 @@ "inputProperties": { "dataLocation": { "type": "string", - "description": "The location where the Email Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` and `United States`. Changing this forces a new Email Communication Service to be created.\n", + "description": "The location where the Email Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` `usgov` and `United States`. Changing this forces a new Email Communication Service to be created.\n", "willReplaceOnChanges": true }, "name": { @@ -138631,7 +138717,7 @@ "properties": { "dataLocation": { "type": "string", - "description": "The location where the Email Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` and `United States`. Changing this forces a new Email Communication Service to be created.\n", + "description": "The location where the Email Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` `usgov` and `United States`. Changing this forces a new Email Communication Service to be created.\n", "willReplaceOnChanges": true }, "name": { @@ -138790,7 +138876,7 @@ "properties": { "dataLocation": { "type": "string", - "description": "The location where the Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` and `United States`. Defaults to `United States`. Changing this forces a new Communication Service to be created.\n" + "description": "The location where the Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK`, `usgov` and `United States`. Defaults to `United States`. Changing this forces a new Communication Service to be created.\n" }, "name": { "type": "string", @@ -138839,7 +138925,7 @@ "inputProperties": { "dataLocation": { "type": "string", - "description": "The location where the Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` and `United States`. Defaults to `United States`. Changing this forces a new Communication Service to be created.\n", + "description": "The location where the Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK`, `usgov` and `United States`. Defaults to `United States`. Changing this forces a new Communication Service to be created.\n", "willReplaceOnChanges": true }, "name": { @@ -138868,7 +138954,7 @@ "properties": { "dataLocation": { "type": "string", - "description": "The location where the Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` and `United States`. Defaults to `United States`. Changing this forces a new Communication Service to be created.\n", + "description": "The location where the Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK`, `usgov` and `United States`. Defaults to `United States`. Changing this forces a new Communication Service to be created.\n", "willReplaceOnChanges": true }, "name": { @@ -139219,6 +139305,13 @@ "virtualNetworkId": { "type": "string", "description": "The ID of the Virtual Network for the Developer Bastion Host. Changing this forces a new resource to be created.\n" + }, + "zones": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Specifies a list of Availability Zones in which this Public Bastion Host should be located. Changing this forces a new resource to be created.\n" } }, "required": [ @@ -139295,6 +139388,14 @@ "type": "string", "description": "The ID of the Virtual Network for the Developer Bastion Host. Changing this forces a new resource to be created.\n", "willReplaceOnChanges": true + }, + "zones": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Specifies a list of Availability Zones in which this Public Bastion Host should be located. Changing this forces a new resource to be created.\n", + "willReplaceOnChanges": true } }, "requiredInputs": [ @@ -139374,6 +139475,14 @@ "type": "string", "description": "The ID of the Virtual Network for the Developer Bastion Host. Changing this forces a new resource to be created.\n", "willReplaceOnChanges": true + }, + "zones": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Specifies a list of Availability Zones in which this Public Bastion Host should be located. Changing this forces a new resource to be created.\n", + "willReplaceOnChanges": true } }, "type": "object" @@ -187623,7 +187732,8 @@ "description": "Manages a Fluid Relay Server.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azure from \"@pulumi/azure\";\n\nconst example = new azure.core.ResourceGroup(\"example\", {\n name: \"example-resources\",\n location: \"West Europe\",\n});\nconst exampleServer = new azure.fluidrelay.Server(\"example\", {\n name: \"example\",\n resourceGroupName: example.name,\n location: example.location,\n});\n```\n```python\nimport pulumi\nimport pulumi_azure as azure\n\nexample = azure.core.ResourceGroup(\"example\",\n name=\"example-resources\",\n location=\"West Europe\")\nexample_server = azure.fluidrelay.Server(\"example\",\n name=\"example\",\n resource_group_name=example.name,\n location=example.location)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Azure = Pulumi.Azure;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Azure.Core.ResourceGroup(\"example\", new()\n {\n Name = \"example-resources\",\n Location = \"West Europe\",\n });\n\n var exampleServer = new Azure.FluidRelay.Server(\"example\", new()\n {\n Name = \"example\",\n ResourceGroupName = example.Name,\n Location = example.Location,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core\"\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/fluidrelay\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texample, err := core.NewResourceGroup(ctx, \"example\", \u0026core.ResourceGroupArgs{\n\t\t\tName: pulumi.String(\"example-resources\"),\n\t\t\tLocation: pulumi.String(\"West Europe\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = fluidrelay.NewServer(ctx, \"example\", \u0026fluidrelay.ServerArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tResourceGroupName: example.Name,\n\t\t\tLocation: example.Location,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azure.core.ResourceGroup;\nimport com.pulumi.azure.core.ResourceGroupArgs;\nimport com.pulumi.azure.fluidrelay.Server;\nimport com.pulumi.azure.fluidrelay.ServerArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new ResourceGroup(\"example\", ResourceGroupArgs.builder()\n .name(\"example-resources\")\n .location(\"West Europe\")\n .build());\n\n var exampleServer = new Server(\"exampleServer\", ServerArgs.builder()\n .name(\"example\")\n .resourceGroupName(example.name())\n .location(example.location())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: azure:core:ResourceGroup\n properties:\n name: example-resources\n location: West Europe\n exampleServer:\n type: azure:fluidrelay:Server\n name: example\n properties:\n name: example\n resourceGroupName: ${example.name}\n location: ${example.location}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nFluid Relay Servers can be imported using the `resource id`, e.g.\n\n```sh\n$ pulumi import azure:fluidrelay/server:Server example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.FluidRelay/fluidRelayServers/server1\n```\n\n", "properties": { "customerManagedKey": { - "$ref": "#/types/azure:fluidrelay/ServerCustomerManagedKey:ServerCustomerManagedKey" + "$ref": "#/types/azure:fluidrelay/ServerCustomerManagedKey:ServerCustomerManagedKey", + "description": "A `customer_managed_key` block as defined below. Changing this forces a new resource to be created.\n" }, "frsTenantId": { "type": "string", @@ -187703,6 +187813,7 @@ "inputProperties": { "customerManagedKey": { "$ref": "#/types/azure:fluidrelay/ServerCustomerManagedKey:ServerCustomerManagedKey", + "description": "A `customer_managed_key` block as defined below. Changing this forces a new resource to be created.\n", "willReplaceOnChanges": true }, "identity": { @@ -187745,6 +187856,7 @@ "properties": { "customerManagedKey": { "$ref": "#/types/azure:fluidrelay/ServerCustomerManagedKey:ServerCustomerManagedKey", + "description": "A `customer_managed_key` block as defined below. Changing this forces a new resource to be created.\n", "willReplaceOnChanges": true }, "frsTenantId": { @@ -218974,6 +219086,254 @@ "type": "object" } }, + "azure:netapp/backupPolicy:BackupPolicy": { + "description": "Manages a NetApp Backup Policy.\n\n## NetApp Backup Policy Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azure from \"@pulumi/azure\";\n\nconst example = new azure.core.ResourceGroup(\"example\", {\n name: \"example-resources\",\n location: \"West Europe\",\n});\nconst exampleAccount = new azure.netapp.Account(\"example\", {\n name: \"example-netappaccount\",\n location: example.location,\n resourceGroupName: example.name,\n});\nconst exampleBackupPolicy = new azure.netapp.BackupPolicy(\"example\", {\n name: \"example-netappbackuppolicy\",\n resourceGroupName: example.name,\n location: example.location,\n accountName: exampleAccount.name,\n enabled: true,\n});\n```\n```python\nimport pulumi\nimport pulumi_azure as azure\n\nexample = azure.core.ResourceGroup(\"example\",\n name=\"example-resources\",\n location=\"West Europe\")\nexample_account = azure.netapp.Account(\"example\",\n name=\"example-netappaccount\",\n location=example.location,\n resource_group_name=example.name)\nexample_backup_policy = azure.netapp.BackupPolicy(\"example\",\n name=\"example-netappbackuppolicy\",\n resource_group_name=example.name,\n location=example.location,\n account_name=example_account.name,\n enabled=True)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Azure = Pulumi.Azure;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Azure.Core.ResourceGroup(\"example\", new()\n {\n Name = \"example-resources\",\n Location = \"West Europe\",\n });\n\n var exampleAccount = new Azure.NetApp.Account(\"example\", new()\n {\n Name = \"example-netappaccount\",\n Location = example.Location,\n ResourceGroupName = example.Name,\n });\n\n var exampleBackupPolicy = new Azure.NetApp.BackupPolicy(\"example\", new()\n {\n Name = \"example-netappbackuppolicy\",\n ResourceGroupName = example.Name,\n Location = example.Location,\n AccountName = exampleAccount.Name,\n Enabled = true,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core\"\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/netapp\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texample, err := core.NewResourceGroup(ctx, \"example\", \u0026core.ResourceGroupArgs{\n\t\t\tName: pulumi.String(\"example-resources\"),\n\t\t\tLocation: pulumi.String(\"West Europe\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleAccount, err := netapp.NewAccount(ctx, \"example\", \u0026netapp.AccountArgs{\n\t\t\tName: pulumi.String(\"example-netappaccount\"),\n\t\t\tLocation: example.Location,\n\t\t\tResourceGroupName: example.Name,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = netapp.NewBackupPolicy(ctx, \"example\", \u0026netapp.BackupPolicyArgs{\n\t\t\tName: pulumi.String(\"example-netappbackuppolicy\"),\n\t\t\tResourceGroupName: example.Name,\n\t\t\tLocation: example.Location,\n\t\t\tAccountName: exampleAccount.Name,\n\t\t\tEnabled: pulumi.Bool(true),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azure.core.ResourceGroup;\nimport com.pulumi.azure.core.ResourceGroupArgs;\nimport com.pulumi.azure.netapp.Account;\nimport com.pulumi.azure.netapp.AccountArgs;\nimport com.pulumi.azure.netapp.BackupPolicy;\nimport com.pulumi.azure.netapp.BackupPolicyArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new ResourceGroup(\"example\", ResourceGroupArgs.builder()\n .name(\"example-resources\")\n .location(\"West Europe\")\n .build());\n\n var exampleAccount = new Account(\"exampleAccount\", AccountArgs.builder()\n .name(\"example-netappaccount\")\n .location(example.location())\n .resourceGroupName(example.name())\n .build());\n\n var exampleBackupPolicy = new BackupPolicy(\"exampleBackupPolicy\", BackupPolicyArgs.builder()\n .name(\"example-netappbackuppolicy\")\n .resourceGroupName(example.name())\n .location(example.location())\n .accountName(exampleAccount.name())\n .enabled(true)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: azure:core:ResourceGroup\n properties:\n name: example-resources\n location: West Europe\n exampleAccount:\n type: azure:netapp:Account\n name: example\n properties:\n name: example-netappaccount\n location: ${example.location}\n resourceGroupName: ${example.name}\n exampleBackupPolicy:\n type: azure:netapp:BackupPolicy\n name: example\n properties:\n name: example-netappbackuppolicy\n resourceGroupName: ${example.name}\n location: ${example.location}\n accountName: ${exampleAccount.name}\n enabled: true\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nNetApp Backup Policy can be imported using the `resource id`, e.g.\n\n```sh\n$ pulumi import azure:netapp/backupPolicy:BackupPolicy example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.NetApp/netAppAccounts/account1/backupPolicies/backuppolicy1\n```\n\n", + "properties": { + "accountName": { + "type": "string", + "description": "The name of the NetApp account in which the NetApp Policy should be created under. Changing this forces a new resource to be created.\n" + }, + "dailyBackupsToKeep": { + "type": "integer", + "description": "Provides the number of daily backups to keep, defaults to `2` which is the minimum, maximum is 1019.\n" + }, + "enabled": { + "type": "boolean", + "description": "Whether the Backup Policy is enabled. Defaults to `true`.\n" + }, + "location": { + "type": "string", + "description": "Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.\n" + }, + "monthlyBackupsToKeep": { + "type": "integer", + "description": "Provides the number of monthly backups to keep, defaults to `1` which is the minimum, maximum is 1019.\n\n\u003e **Note:** Currently, the combined (daily + weekly + monthy) retention counts cannot exceed 1019.\n" + }, + "name": { + "type": "string", + "description": "The name of the NetApp Backup Policy. Changing this forces a new resource to be created.\n" + }, + "resourceGroupName": { + "type": "string", + "description": "The name of the resource group where the NetApp Backup Policy should be created. Changing this forces a new resource to be created.\n" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "A mapping of tags to assign to the resource.\n" + }, + "weeklyBackupsToKeep": { + "type": "integer", + "description": "Provides the number of weekly backups to keep, defaults to `1` which is the minimum, maximum is 1019.\n" + } + }, + "required": [ + "accountName", + "location", + "name", + "resourceGroupName" + ], + "inputProperties": { + "accountName": { + "type": "string", + "description": "The name of the NetApp account in which the NetApp Policy should be created under. Changing this forces a new resource to be created.\n", + "willReplaceOnChanges": true + }, + "dailyBackupsToKeep": { + "type": "integer", + "description": "Provides the number of daily backups to keep, defaults to `2` which is the minimum, maximum is 1019.\n" + }, + "enabled": { + "type": "boolean", + "description": "Whether the Backup Policy is enabled. Defaults to `true`.\n" + }, + "location": { + "type": "string", + "description": "Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.\n", + "willReplaceOnChanges": true + }, + "monthlyBackupsToKeep": { + "type": "integer", + "description": "Provides the number of monthly backups to keep, defaults to `1` which is the minimum, maximum is 1019.\n\n\u003e **Note:** Currently, the combined (daily + weekly + monthy) retention counts cannot exceed 1019.\n" + }, + "name": { + "type": "string", + "description": "The name of the NetApp Backup Policy. Changing this forces a new resource to be created.\n", + "willReplaceOnChanges": true + }, + "resourceGroupName": { + "type": "string", + "description": "The name of the resource group where the NetApp Backup Policy should be created. Changing this forces a new resource to be created.\n", + "willReplaceOnChanges": true + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "A mapping of tags to assign to the resource.\n" + }, + "weeklyBackupsToKeep": { + "type": "integer", + "description": "Provides the number of weekly backups to keep, defaults to `1` which is the minimum, maximum is 1019.\n" + } + }, + "requiredInputs": [ + "accountName", + "resourceGroupName" + ], + "stateInputs": { + "description": "Input properties used for looking up and filtering BackupPolicy resources.\n", + "properties": { + "accountName": { + "type": "string", + "description": "The name of the NetApp account in which the NetApp Policy should be created under. Changing this forces a new resource to be created.\n", + "willReplaceOnChanges": true + }, + "dailyBackupsToKeep": { + "type": "integer", + "description": "Provides the number of daily backups to keep, defaults to `2` which is the minimum, maximum is 1019.\n" + }, + "enabled": { + "type": "boolean", + "description": "Whether the Backup Policy is enabled. Defaults to `true`.\n" + }, + "location": { + "type": "string", + "description": "Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.\n", + "willReplaceOnChanges": true + }, + "monthlyBackupsToKeep": { + "type": "integer", + "description": "Provides the number of monthly backups to keep, defaults to `1` which is the minimum, maximum is 1019.\n\n\u003e **Note:** Currently, the combined (daily + weekly + monthy) retention counts cannot exceed 1019.\n" + }, + "name": { + "type": "string", + "description": "The name of the NetApp Backup Policy. Changing this forces a new resource to be created.\n", + "willReplaceOnChanges": true + }, + "resourceGroupName": { + "type": "string", + "description": "The name of the resource group where the NetApp Backup Policy should be created. Changing this forces a new resource to be created.\n", + "willReplaceOnChanges": true + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "A mapping of tags to assign to the resource.\n" + }, + "weeklyBackupsToKeep": { + "type": "integer", + "description": "Provides the number of weekly backups to keep, defaults to `1` which is the minimum, maximum is 1019.\n" + } + }, + "type": "object" + } + }, + "azure:netapp/backupVault:BackupVault": { + "description": "Manages a NetApp Backup Vault.\n\n## NetApp Backup Vault Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azure from \"@pulumi/azure\";\n\nconst example = new azure.core.ResourceGroup(\"example\", {\n name: \"example-resources\",\n location: \"West Europe\",\n});\nconst exampleAccount = new azure.netapp.Account(\"example\", {\n name: \"example-netappaccount\",\n location: example.location,\n resourceGroupName: example.name,\n});\nconst exampleBackupVault = new azure.netapp.BackupVault(\"example\", {\n name: \"example-netappbackupvault\",\n resourceGroupName: example.name,\n location: example.location,\n accountName: exampleAccount.name,\n});\n```\n```python\nimport pulumi\nimport pulumi_azure as azure\n\nexample = azure.core.ResourceGroup(\"example\",\n name=\"example-resources\",\n location=\"West Europe\")\nexample_account = azure.netapp.Account(\"example\",\n name=\"example-netappaccount\",\n location=example.location,\n resource_group_name=example.name)\nexample_backup_vault = azure.netapp.BackupVault(\"example\",\n name=\"example-netappbackupvault\",\n resource_group_name=example.name,\n location=example.location,\n account_name=example_account.name)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Azure = Pulumi.Azure;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Azure.Core.ResourceGroup(\"example\", new()\n {\n Name = \"example-resources\",\n Location = \"West Europe\",\n });\n\n var exampleAccount = new Azure.NetApp.Account(\"example\", new()\n {\n Name = \"example-netappaccount\",\n Location = example.Location,\n ResourceGroupName = example.Name,\n });\n\n var exampleBackupVault = new Azure.NetApp.BackupVault(\"example\", new()\n {\n Name = \"example-netappbackupvault\",\n ResourceGroupName = example.Name,\n Location = example.Location,\n AccountName = exampleAccount.Name,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core\"\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/netapp\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texample, err := core.NewResourceGroup(ctx, \"example\", \u0026core.ResourceGroupArgs{\n\t\t\tName: pulumi.String(\"example-resources\"),\n\t\t\tLocation: pulumi.String(\"West Europe\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleAccount, err := netapp.NewAccount(ctx, \"example\", \u0026netapp.AccountArgs{\n\t\t\tName: pulumi.String(\"example-netappaccount\"),\n\t\t\tLocation: example.Location,\n\t\t\tResourceGroupName: example.Name,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = netapp.NewBackupVault(ctx, \"example\", \u0026netapp.BackupVaultArgs{\n\t\t\tName: pulumi.String(\"example-netappbackupvault\"),\n\t\t\tResourceGroupName: example.Name,\n\t\t\tLocation: example.Location,\n\t\t\tAccountName: exampleAccount.Name,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azure.core.ResourceGroup;\nimport com.pulumi.azure.core.ResourceGroupArgs;\nimport com.pulumi.azure.netapp.Account;\nimport com.pulumi.azure.netapp.AccountArgs;\nimport com.pulumi.azure.netapp.BackupVault;\nimport com.pulumi.azure.netapp.BackupVaultArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new ResourceGroup(\"example\", ResourceGroupArgs.builder()\n .name(\"example-resources\")\n .location(\"West Europe\")\n .build());\n\n var exampleAccount = new Account(\"exampleAccount\", AccountArgs.builder()\n .name(\"example-netappaccount\")\n .location(example.location())\n .resourceGroupName(example.name())\n .build());\n\n var exampleBackupVault = new BackupVault(\"exampleBackupVault\", BackupVaultArgs.builder()\n .name(\"example-netappbackupvault\")\n .resourceGroupName(example.name())\n .location(example.location())\n .accountName(exampleAccount.name())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: azure:core:ResourceGroup\n properties:\n name: example-resources\n location: West Europe\n exampleAccount:\n type: azure:netapp:Account\n name: example\n properties:\n name: example-netappaccount\n location: ${example.location}\n resourceGroupName: ${example.name}\n exampleBackupVault:\n type: azure:netapp:BackupVault\n name: example\n properties:\n name: example-netappbackupvault\n resourceGroupName: ${example.name}\n location: ${example.location}\n accountName: ${exampleAccount.name}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nNetApp Backup Vault can be imported using the `resource id`, e.g.\n\n```sh\n$ pulumi import azure:netapp/backupVault:BackupVault example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.NetApp/netAppAccounts/account1/backupVaults/backupVault1\n```\n\n", + "properties": { + "accountName": { + "type": "string", + "description": "The name of the NetApp account in which the NetApp Vault should be created under. Changing this forces a new resource to be created.\n" + }, + "location": { + "type": "string", + "description": "Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.\n" + }, + "name": { + "type": "string", + "description": "The name of the NetApp Backup Vault. Changing this forces a new resource to be created.\n" + }, + "resourceGroupName": { + "type": "string", + "description": "The name of the resource group where the NetApp Backup Vault should be created. Changing this forces a new resource to be created.\n" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "A mapping of tags to assign to the resource.\n" + } + }, + "required": [ + "accountName", + "location", + "name", + "resourceGroupName" + ], + "inputProperties": { + "accountName": { + "type": "string", + "description": "The name of the NetApp account in which the NetApp Vault should be created under. Changing this forces a new resource to be created.\n", + "willReplaceOnChanges": true + }, + "location": { + "type": "string", + "description": "Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.\n", + "willReplaceOnChanges": true + }, + "name": { + "type": "string", + "description": "The name of the NetApp Backup Vault. Changing this forces a new resource to be created.\n", + "willReplaceOnChanges": true + }, + "resourceGroupName": { + "type": "string", + "description": "The name of the resource group where the NetApp Backup Vault should be created. Changing this forces a new resource to be created.\n", + "willReplaceOnChanges": true + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "A mapping of tags to assign to the resource.\n" + } + }, + "requiredInputs": [ + "accountName", + "resourceGroupName" + ], + "stateInputs": { + "description": "Input properties used for looking up and filtering BackupVault resources.\n", + "properties": { + "accountName": { + "type": "string", + "description": "The name of the NetApp account in which the NetApp Vault should be created under. Changing this forces a new resource to be created.\n", + "willReplaceOnChanges": true + }, + "location": { + "type": "string", + "description": "Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.\n", + "willReplaceOnChanges": true + }, + "name": { + "type": "string", + "description": "The name of the NetApp Backup Vault. Changing this forces a new resource to be created.\n", + "willReplaceOnChanges": true + }, + "resourceGroupName": { + "type": "string", + "description": "The name of the resource group where the NetApp Backup Vault should be created. Changing this forces a new resource to be created.\n", + "willReplaceOnChanges": true + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "A mapping of tags to assign to the resource.\n" + } + }, + "type": "object" + } + }, "azure:netapp/pool:Pool": { "description": "Manages a Pool within a NetApp Account.\n\n## NetApp Pool Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azure from \"@pulumi/azure\";\n\nconst example = new azure.core.ResourceGroup(\"example\", {\n name: \"example-resources\",\n location: \"West Europe\",\n});\nconst exampleAccount = new azure.netapp.Account(\"example\", {\n name: \"example-netappaccount\",\n location: example.location,\n resourceGroupName: example.name,\n});\nconst examplePool = new azure.netapp.Pool(\"example\", {\n name: \"example-netapppool\",\n accountName: exampleAccount.name,\n location: example.location,\n resourceGroupName: example.name,\n serviceLevel: \"Premium\",\n sizeInTb: 4,\n});\n```\n```python\nimport pulumi\nimport pulumi_azure as azure\n\nexample = azure.core.ResourceGroup(\"example\",\n name=\"example-resources\",\n location=\"West Europe\")\nexample_account = azure.netapp.Account(\"example\",\n name=\"example-netappaccount\",\n location=example.location,\n resource_group_name=example.name)\nexample_pool = azure.netapp.Pool(\"example\",\n name=\"example-netapppool\",\n account_name=example_account.name,\n location=example.location,\n resource_group_name=example.name,\n service_level=\"Premium\",\n size_in_tb=4)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Azure = Pulumi.Azure;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Azure.Core.ResourceGroup(\"example\", new()\n {\n Name = \"example-resources\",\n Location = \"West Europe\",\n });\n\n var exampleAccount = new Azure.NetApp.Account(\"example\", new()\n {\n Name = \"example-netappaccount\",\n Location = example.Location,\n ResourceGroupName = example.Name,\n });\n\n var examplePool = new Azure.NetApp.Pool(\"example\", new()\n {\n Name = \"example-netapppool\",\n AccountName = exampleAccount.Name,\n Location = example.Location,\n ResourceGroupName = example.Name,\n ServiceLevel = \"Premium\",\n SizeInTb = 4,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core\"\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/netapp\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texample, err := core.NewResourceGroup(ctx, \"example\", \u0026core.ResourceGroupArgs{\n\t\t\tName: pulumi.String(\"example-resources\"),\n\t\t\tLocation: pulumi.String(\"West Europe\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleAccount, err := netapp.NewAccount(ctx, \"example\", \u0026netapp.AccountArgs{\n\t\t\tName: pulumi.String(\"example-netappaccount\"),\n\t\t\tLocation: example.Location,\n\t\t\tResourceGroupName: example.Name,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = netapp.NewPool(ctx, \"example\", \u0026netapp.PoolArgs{\n\t\t\tName: pulumi.String(\"example-netapppool\"),\n\t\t\tAccountName: exampleAccount.Name,\n\t\t\tLocation: example.Location,\n\t\t\tResourceGroupName: example.Name,\n\t\t\tServiceLevel: pulumi.String(\"Premium\"),\n\t\t\tSizeInTb: pulumi.Int(4),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azure.core.ResourceGroup;\nimport com.pulumi.azure.core.ResourceGroupArgs;\nimport com.pulumi.azure.netapp.Account;\nimport com.pulumi.azure.netapp.AccountArgs;\nimport com.pulumi.azure.netapp.Pool;\nimport com.pulumi.azure.netapp.PoolArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new ResourceGroup(\"example\", ResourceGroupArgs.builder()\n .name(\"example-resources\")\n .location(\"West Europe\")\n .build());\n\n var exampleAccount = new Account(\"exampleAccount\", AccountArgs.builder()\n .name(\"example-netappaccount\")\n .location(example.location())\n .resourceGroupName(example.name())\n .build());\n\n var examplePool = new Pool(\"examplePool\", PoolArgs.builder()\n .name(\"example-netapppool\")\n .accountName(exampleAccount.name())\n .location(example.location())\n .resourceGroupName(example.name())\n .serviceLevel(\"Premium\")\n .sizeInTb(4)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: azure:core:ResourceGroup\n properties:\n name: example-resources\n location: West Europe\n exampleAccount:\n type: azure:netapp:Account\n name: example\n properties:\n name: example-netappaccount\n location: ${example.location}\n resourceGroupName: ${example.name}\n examplePool:\n type: azure:netapp:Pool\n name: example\n properties:\n name: example-netapppool\n accountName: ${exampleAccount.name}\n location: ${example.location}\n resourceGroupName: ${example.name}\n serviceLevel: Premium\n sizeInTb: 4\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nNetApp Pool can be imported using the `resource id`, e.g.\n\n```sh\n$ pulumi import azure:netapp/pool:Pool example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1\n```\n\n", "properties": { @@ -219404,7 +219764,7 @@ } }, "azure:netapp/volume:Volume": { - "description": "\n\n## Import\n\nNetApp Volumes can be imported using the `resource id`, e.g.\n\n```sh\n$ pulumi import azure:netapp/volume:Volume example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/volume1\n```\n\n", + "description": "Manages a NetApp Volume.\n\n!\u003e**IMPORTANT:** This resource uses a feature to prevent deletion called `prevent_volume_destruction`, defaulting to `true`. It is intentionally set to `true` to prevent the possibility of accidental data loss. The example in this page shows all possible protection options you can apply, it is using same values as the defaults.\n\n## Import\n\nNetApp Volumes can be imported using the `resource id`, e.g.\n\n```sh\n$ pulumi import azure:netapp/volume:Volume example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/volume1\n```\n\n", "properties": { "accountName": { "type": "string", @@ -219418,6 +219778,10 @@ "type": "string", "description": "Creates volume from snapshot. Following properties must be the same as the original volume where the snapshot was taken from: `protocols`, `subnet_id`, `location`, `service_level`, `resource_group_name`, `account_name` and `pool_name`. Changing this forces a new resource to be created.\n" }, + "dataProtectionBackupPolicy": { + "$ref": "#/types/azure:netapp/VolumeDataProtectionBackupPolicy:VolumeDataProtectionBackupPolicy", + "description": "A `data_protection_backup_policy` block as defined below.\n" + }, "dataProtectionReplication": { "$ref": "#/types/azure:netapp/VolumeDataProtectionReplication:VolumeDataProtectionReplication", "description": "A `data_protection_replication` block as defined below. Changing this forces a new resource to be created.\n" @@ -219547,7 +219911,6 @@ "resourceGroupName", "securityStyle", "serviceLevel", - "snapshotDirectoryVisible", "storageQuotaInGb", "subnetId", "throughputInMibps", @@ -219569,6 +219932,10 @@ "description": "Creates volume from snapshot. Following properties must be the same as the original volume where the snapshot was taken from: `protocols`, `subnet_id`, `location`, `service_level`, `resource_group_name`, `account_name` and `pool_name`. Changing this forces a new resource to be created.\n", "willReplaceOnChanges": true }, + "dataProtectionBackupPolicy": { + "$ref": "#/types/azure:netapp/VolumeDataProtectionBackupPolicy:VolumeDataProtectionBackupPolicy", + "description": "A `data_protection_backup_policy` block as defined below.\n" + }, "dataProtectionReplication": { "$ref": "#/types/azure:netapp/VolumeDataProtectionReplication:VolumeDataProtectionReplication", "description": "A `data_protection_replication` block as defined below. Changing this forces a new resource to be created.\n", @@ -219722,6 +220089,10 @@ "description": "Creates volume from snapshot. Following properties must be the same as the original volume where the snapshot was taken from: `protocols`, `subnet_id`, `location`, `service_level`, `resource_group_name`, `account_name` and `pool_name`. Changing this forces a new resource to be created.\n", "willReplaceOnChanges": true }, + "dataProtectionBackupPolicy": { + "$ref": "#/types/azure:netapp/VolumeDataProtectionBackupPolicy:VolumeDataProtectionBackupPolicy", + "description": "A `data_protection_backup_policy` block as defined below.\n" + }, "dataProtectionReplication": { "$ref": "#/types/azure:netapp/VolumeDataProtectionReplication:VolumeDataProtectionReplication", "description": "A `data_protection_replication` block as defined below. Changing this forces a new resource to be created.\n", @@ -228399,7 +228770,7 @@ }, "priority": { "type": "integer", - "description": "Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. Defaults to `1`.\n" + "description": "Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation.\n" }, "profileId": { "type": "string", @@ -228423,6 +228794,7 @@ }, "required": [ "name", + "priority", "profileId", "targetResourceId" ], @@ -228456,7 +228828,7 @@ }, "priority": { "type": "integer", - "description": "Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. Defaults to `1`.\n" + "description": "Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation.\n" }, "profileId": { "type": "string", @@ -228516,7 +228888,7 @@ }, "priority": { "type": "integer", - "description": "Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. Defaults to `1`.\n" + "description": "Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation.\n" }, "profileId": { "type": "string", @@ -228578,7 +228950,7 @@ }, "priority": { "type": "integer", - "description": "Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. Defaults to `1`.\n" + "description": "Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation.\n" }, "profileId": { "type": "string", @@ -228603,6 +228975,7 @@ "required": [ "endpointLocation", "name", + "priority", "profileId", "target" ], @@ -228640,7 +229013,7 @@ }, "priority": { "type": "integer", - "description": "Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. Defaults to `1`.\n" + "description": "Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation.\n" }, "profileId": { "type": "string", @@ -228704,7 +229077,7 @@ }, "priority": { "type": "integer", - "description": "Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. Defaults to `1`.\n" + "description": "Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation.\n" }, "profileId": { "type": "string", @@ -275787,6 +276160,10 @@ "description": "The kind of the Cognitive Services Account\n", "type": "string" }, + "localAuthEnabled": { + "description": "Whether local authentication methods is enabled for the Cognitive Account.\n", + "type": "boolean" + }, "location": { "description": "The Azure location where the Cognitive Services Account exists\n", "type": "string" @@ -275827,6 +276204,7 @@ "endpoint", "identities", "kind", + "localAuthEnabled", "location", "name", "primaryAccessKey", @@ -276075,6 +276453,13 @@ "tunnelingEnabled": { "description": "Is Tunneling feature enabled for the Bastion Host.\n", "type": "boolean" + }, + "zones": { + "description": "A list of Availability Zones in which this Bastion Host is located.\n", + "items": { + "type": "string" + }, + "type": "array" } }, "required": [ @@ -276092,6 +276477,7 @@ "sku", "tags", "tunnelingEnabled", + "zones", "id" ], "type": "object" @@ -286074,6 +286460,99 @@ "type": "object" } }, + "azure:keyvault/getManagedHardwareSecurityModuleKey:getManagedHardwareSecurityModuleKey": { + "description": "Use this data source to access information about an existing Managed Hardware Security Module Key.\n\n\u003e **Note:** All arguments including the secret value will be stored in the raw state as plain-text.\n[Read more about sensitive data in state](https://www.terraform.io/docs/state/sensitive-data.html).\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azure from \"@pulumi/azure\";\n\nexport = async () =\u003e {\n const example = await azure.keyvault.getManagedHardwareSecurityModuleKey({\n managedHsmId: exampleAzurermKeyVaultManagedHardwareSecurityModule.id,\n name: exampleAzurermKeyVaultManagedHardwareSecurityModuleKey.name,\n });\n return {\n \"hsm-key-vesrion\": example.version,\n };\n}\n```\n```python\nimport pulumi\nimport pulumi_azure as azure\n\nexample = azure.keyvault.get_managed_hardware_security_module_key(managed_hsm_id=example_azurerm_key_vault_managed_hardware_security_module[\"id\"],\n name=example_azurerm_key_vault_managed_hardware_security_module_key[\"name\"])\npulumi.export(\"hsm-key-vesrion\", example.version)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Azure = Pulumi.Azure;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = Azure.KeyVault.GetManagedHardwareSecurityModuleKey.Invoke(new()\n {\n ManagedHsmId = exampleAzurermKeyVaultManagedHardwareSecurityModule.Id,\n Name = exampleAzurermKeyVaultManagedHardwareSecurityModuleKey.Name,\n });\n\n return new Dictionary\u003cstring, object?\u003e\n {\n [\"hsm-key-vesrion\"] = example.Apply(getManagedHardwareSecurityModuleKeyResult =\u003e getManagedHardwareSecurityModuleKeyResult.Version),\n };\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/keyvault\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texample, err := keyvault.LookupManagedHardwareSecurityModuleKey(ctx, \u0026keyvault.LookupManagedHardwareSecurityModuleKeyArgs{\n\t\t\tManagedHsmId: exampleAzurermKeyVaultManagedHardwareSecurityModule.Id,\n\t\t\tName: exampleAzurermKeyVaultManagedHardwareSecurityModuleKey.Name,\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tctx.Export(\"hsm-key-vesrion\", example.Version)\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azure.keyvault.KeyvaultFunctions;\nimport com.pulumi.azure.keyvault.inputs.GetManagedHardwareSecurityModuleKeyArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = KeyvaultFunctions.getManagedHardwareSecurityModuleKey(GetManagedHardwareSecurityModuleKeyArgs.builder()\n .managedHsmId(exampleAzurermKeyVaultManagedHardwareSecurityModule.id())\n .name(exampleAzurermKeyVaultManagedHardwareSecurityModuleKey.name())\n .build());\n\n ctx.export(\"hsm-key-vesrion\", example.applyValue(getManagedHardwareSecurityModuleKeyResult -\u003e getManagedHardwareSecurityModuleKeyResult.version()));\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n Function: azure:keyvault:getManagedHardwareSecurityModuleKey\n Arguments:\n managedHsmId: ${exampleAzurermKeyVaultManagedHardwareSecurityModule.id}\n name: ${exampleAzurermKeyVaultManagedHardwareSecurityModuleKey.name}\noutputs:\n hsm-key-vesrion: ${example.version}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "inputs": { + "description": "A collection of arguments for invoking getManagedHardwareSecurityModuleKey.\n", + "properties": { + "managedHsmId": { + "type": "string", + "description": "Specifies the ID of the Managed Hardware Security Module instance where the Secret resides, available on the `azure.keyvault.ManagedHardwareSecurityModuleKey` Data Source / Resource.\n\n**NOTE:** The Managed Hardware Security Module must be in the same subscription as the provider. If the Managed Hardware Security Module is in another subscription, you must create an aliased provider for that subscription.\n", + "willReplaceOnChanges": true + }, + "name": { + "type": "string", + "description": "Specifies the name of the Managed Hardware Security Module Key.\n", + "willReplaceOnChanges": true + } + }, + "type": "object", + "required": [ + "managedHsmId", + "name" + ] + }, + "outputs": { + "description": "A collection of values returned by getManagedHardwareSecurityModuleKey.\n", + "properties": { + "curve": { + "description": "The EC Curve name of this Managed Hardware Security Module Key.\n", + "type": "string" + }, + "expirationDate": { + "type": "string" + }, + "id": { + "description": "The provider-assigned unique ID for this managed resource.\n", + "type": "string" + }, + "keyOpts": { + "description": "A list of JSON web key operations assigned to this Managed Hardware Security Module Key\n", + "items": { + "type": "string" + }, + "type": "array" + }, + "keySize": { + "description": "Specifies the Size of this Managed Hardware Security Module Key.\n", + "type": "integer" + }, + "keyType": { + "description": "Specifies the Key Type of this Managed Hardware Security Module Key\n", + "type": "string" + }, + "managedHsmId": { + "type": "string" + }, + "name": { + "type": "string" + }, + "notBeforeDate": { + "type": "string" + }, + "tags": { + "additionalProperties": { + "type": "string" + }, + "description": "A mapping of tags assigned to this Managed Hardware Security Module Key.\n", + "type": "object" + }, + "version": { + "description": "The current version of the Managed Hardware Security Module Key.\n", + "type": "string" + }, + "versionedId": { + "description": "The versioned ID of the Managed Hardware Security Module Key.\n", + "type": "string" + } + }, + "required": [ + "curve", + "expirationDate", + "keyOpts", + "keySize", + "keyType", + "managedHsmId", + "name", + "notBeforeDate", + "tags", + "version", + "versionedId", + "id" + ], + "type": "object" + } + }, "azure:keyvault/getManagedHardwareSecurityModuleRoleDefinition:getManagedHardwareSecurityModuleRoleDefinition": { "description": "Use this data source to access information about an existing KeyVault Role Definition.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azure.keyvault.KeyvaultFunctions;\nimport com.pulumi.azure.keyvault.inputs.GetManagedHardwareSecurityModuleRoleDefinitionArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = KeyvaultFunctions.getManagedHardwareSecurityModuleRoleDefinition(GetManagedHardwareSecurityModuleRoleDefinitionArgs.builder()\n .vaultBaseUrl(test.hsmUri())\n .name(\"21dbd100-6940-42c2-9190-5d6cb909625b\")\n .build());\n\n ctx.export(\"id\", example.applyValue(getManagedHardwareSecurityModuleRoleDefinitionResult -\u003e getManagedHardwareSecurityModuleRoleDefinitionResult.resourceManagerId()));\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n Function: azure:keyvault:getManagedHardwareSecurityModuleRoleDefinition\n Arguments:\n vaultBaseUrl: ${test.hsmUri}\n name: 21dbd100-6940-42c2-9190-5d6cb909625b\noutputs:\n id: ${example.resourceManagerId}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { @@ -290108,21 +290587,9 @@ "inputs": { "description": "A collection of arguments for invoking getAccountEncryption.\n", "properties": { - "encryptionKey": { - "type": "string", - "description": "The key vault encryption key.\n" - }, "netappAccountId": { "type": "string", "description": "The ID of the NetApp account where customer managed keys-based encryption is enabled.\n" - }, - "systemAssignedIdentityPrincipalId": { - "type": "string", - "description": "The ID of the System Assigned Manged Identity.\n" - }, - "userAssignedIdentityId": { - "type": "string", - "description": "The ID of the User Assigned Managed Identity.\n" } }, "type": "object", @@ -290151,7 +290618,159 @@ } }, "required": [ + "encryptionKey", "netappAccountId", + "systemAssignedIdentityPrincipalId", + "userAssignedIdentityId", + "id" + ], + "type": "object" + } + }, + "azure:netapp/getBackupPolicy:getBackupPolicy": { + "description": "Use this data source to access information about an existing NetApp Backup Vault.\n\n## NetApp Backup Policy Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azure from \"@pulumi/azure\";\n\nconst example = azure.netapp.getBackupPolicy({\n resourceGroupName: \"example-resource-group\",\n accountName: \"example-netappaccount\",\n name: \"example-backuppolicy\",\n});\nexport const backupPolicyId = example.then(example =\u003e example.id);\n```\n```python\nimport pulumi\nimport pulumi_azure as azure\n\nexample = azure.netapp.get_backup_policy(resource_group_name=\"example-resource-group\",\n account_name=\"example-netappaccount\",\n name=\"example-backuppolicy\")\npulumi.export(\"backupPolicyId\", example.id)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Azure = Pulumi.Azure;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = Azure.NetApp.GetBackupPolicy.Invoke(new()\n {\n ResourceGroupName = \"example-resource-group\",\n AccountName = \"example-netappaccount\",\n Name = \"example-backuppolicy\",\n });\n\n return new Dictionary\u003cstring, object?\u003e\n {\n [\"backupPolicyId\"] = example.Apply(getBackupPolicyResult =\u003e getBackupPolicyResult.Id),\n };\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/netapp\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texample, err := netapp.LookupBackupPolicy(ctx, \u0026netapp.LookupBackupPolicyArgs{\n\t\t\tResourceGroupName: \"example-resource-group\",\n\t\t\tAccountName: \"example-netappaccount\",\n\t\t\tName: \"example-backuppolicy\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tctx.Export(\"backupPolicyId\", example.Id)\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azure.netapp.NetappFunctions;\nimport com.pulumi.azure.netapp.inputs.GetBackupPolicyArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = NetappFunctions.getBackupPolicy(GetBackupPolicyArgs.builder()\n .resourceGroupName(\"example-resource-group\")\n .accountName(\"example-netappaccount\")\n .name(\"example-backuppolicy\")\n .build());\n\n ctx.export(\"backupPolicyId\", example.applyValue(getBackupPolicyResult -\u003e getBackupPolicyResult.id()));\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n Function: azure:netapp:getBackupPolicy\n Arguments:\n resourceGroupName: example-resource-group\n accountName: example-netappaccount\n name: example-backuppolicy\noutputs:\n backupPolicyId: ${example.id}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "inputs": { + "description": "A collection of arguments for invoking getBackupPolicy.\n", + "properties": { + "accountName": { + "type": "string", + "description": "The name of the NetApp Account in which the NetApp Policy exists.\n" + }, + "name": { + "type": "string", + "description": "The name of the NetApp Backup Policy.\n" + }, + "resourceGroupName": { + "type": "string", + "description": "The name of the resource group where the NetApp Backup Policy exists.\n", + "willReplaceOnChanges": true + } + }, + "type": "object", + "required": [ + "accountName", + "name", + "resourceGroupName" + ] + }, + "outputs": { + "description": "A collection of values returned by getBackupPolicy.\n", + "properties": { + "accountName": { + "description": "The name of the NetApp account in which the NetApp Policy exists.\n", + "type": "string" + }, + "dailyBackupsToKeep": { + "description": "The number of daily backups to keep.\n", + "type": "integer" + }, + "enabled": { + "description": "Whether the Backup Policy is enabled.\n", + "type": "boolean" + }, + "id": { + "description": "The provider-assigned unique ID for this managed resource.\n", + "type": "string" + }, + "location": { + "description": "NetApp Backup Policy location.\n", + "type": "string" + }, + "monthlyBackupsToKeep": { + "description": "The number of monthly backups to keep.\n", + "type": "integer" + }, + "name": { + "type": "string" + }, + "resourceGroupName": { + "type": "string" + }, + "tags": { + "additionalProperties": { + "type": "string" + }, + "description": "List of tags assigned to the resource.\n", + "type": "object" + }, + "weeklyBackupsToKeep": { + "description": "The number of weekly backups to keep.\n", + "type": "integer" + } + }, + "required": [ + "accountName", + "dailyBackupsToKeep", + "enabled", + "location", + "monthlyBackupsToKeep", + "name", + "resourceGroupName", + "tags", + "weeklyBackupsToKeep", + "id" + ], + "type": "object" + } + }, + "azure:netapp/getBackupVault:getBackupVault": { + "description": "Use this data source to access information about an existing NetApp Backup Vault.\n\n## NetApp Backup Vault Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azure from \"@pulumi/azure\";\n\nconst example = azure.netapp.getBackupVault({\n resourceGroupName: \"example-resource-group\",\n accountName: \"example-netappaccount\",\n name: \"example-backupvault\",\n});\nexport const backupVaultId = example.then(example =\u003e example.id);\n```\n```python\nimport pulumi\nimport pulumi_azure as azure\n\nexample = azure.netapp.get_backup_vault(resource_group_name=\"example-resource-group\",\n account_name=\"example-netappaccount\",\n name=\"example-backupvault\")\npulumi.export(\"backupVaultId\", example.id)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Azure = Pulumi.Azure;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = Azure.NetApp.GetBackupVault.Invoke(new()\n {\n ResourceGroupName = \"example-resource-group\",\n AccountName = \"example-netappaccount\",\n Name = \"example-backupvault\",\n });\n\n return new Dictionary\u003cstring, object?\u003e\n {\n [\"backupVaultId\"] = example.Apply(getBackupVaultResult =\u003e getBackupVaultResult.Id),\n };\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/netapp\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texample, err := netapp.LookupBackupVault(ctx, \u0026netapp.LookupBackupVaultArgs{\n\t\t\tResourceGroupName: \"example-resource-group\",\n\t\t\tAccountName: \"example-netappaccount\",\n\t\t\tName: \"example-backupvault\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tctx.Export(\"backupVaultId\", example.Id)\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azure.netapp.NetappFunctions;\nimport com.pulumi.azure.netapp.inputs.GetBackupVaultArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = NetappFunctions.getBackupVault(GetBackupVaultArgs.builder()\n .resourceGroupName(\"example-resource-group\")\n .accountName(\"example-netappaccount\")\n .name(\"example-backupvault\")\n .build());\n\n ctx.export(\"backupVaultId\", example.applyValue(getBackupVaultResult -\u003e getBackupVaultResult.id()));\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n Function: azure:netapp:getBackupVault\n Arguments:\n resourceGroupName: example-resource-group\n accountName: example-netappaccount\n name: example-backupvault\noutputs:\n backupVaultId: ${example.id}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "inputs": { + "description": "A collection of arguments for invoking getBackupVault.\n", + "properties": { + "accountName": { + "type": "string", + "description": "The name of the NetApp Account in which the NetApp Vault exists.\n" + }, + "name": { + "type": "string", + "description": "The name of the NetApp Backup Vault.\n" + }, + "resourceGroupName": { + "type": "string", + "description": "The name of the resource group where the NetApp Backup Vault exists.\n", + "willReplaceOnChanges": true + } + }, + "type": "object", + "required": [ + "accountName", + "name", + "resourceGroupName" + ] + }, + "outputs": { + "description": "A collection of values returned by getBackupVault.\n", + "properties": { + "accountName": { + "type": "string" + }, + "id": { + "description": "The provider-assigned unique ID for this managed resource.\n", + "type": "string" + }, + "location": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resourceGroupName": { + "type": "string" + }, + "tags": { + "additionalProperties": { + "type": "string" + }, + "type": "object" + } + }, + "required": [ + "accountName", + "location", + "name", + "resourceGroupName", + "tags", "id" ], "type": "object" @@ -290445,8 +291064,15 @@ "accountName": { "type": "string" }, + "dataProtectionBackupPolicies": { + "description": "A data protecion backup policy block\n", + "items": { + "$ref": "#/types/azure:netapp/getVolumeDataProtectionBackupPolicy:getVolumeDataProtectionBackupPolicy" + }, + "type": "array" + }, "dataProtectionReplications": { - "description": "Volume data protection block\n", + "description": "Volume data protection replication block\n", "items": { "$ref": "#/types/azure:netapp/getVolumeDataProtectionReplication:getVolumeDataProtectionReplication" }, @@ -290528,6 +291154,7 @@ }, "required": [ "accountName", + "dataProtectionBackupPolicies", "dataProtectionReplications", "encryptionKeySource", "keyVaultPrivateEndpointId", diff --git a/provider/go.mod b/provider/go.mod index fcc0b1df3f..c6e2ec6cec 100644 --- a/provider/go.mod +++ b/provider/go.mod @@ -7,7 +7,7 @@ toolchain go1.22.7 require ( github.com/Azure/go-autorest/autorest/azure/cli v0.4.6 github.com/hashicorp/go-azure-sdk/sdk v0.20241104.1140654 - github.com/hashicorp/terraform-plugin-sdk/v2 v2.33.0 + github.com/hashicorp/terraform-plugin-sdk/v2 v2.35.0 github.com/hashicorp/terraform-provider-azurerm v1.44.1-0.20220923005104-eaa801c358ff github.com/pulumi/providertest v0.1.3 github.com/pulumi/pulumi-terraform-bridge/v3 v3.95.0 @@ -136,14 +136,15 @@ require ( github.com/hashicorp/go-secure-stdlib/strutil v0.1.2 // indirect github.com/hashicorp/go-sockaddr v1.0.6 // indirect github.com/hashicorp/go-uuid v1.0.3 // indirect - github.com/hashicorp/go-version v1.6.0 // indirect - github.com/hashicorp/hc-install v0.6.4 // indirect + github.com/hashicorp/go-version v1.7.0 // indirect + github.com/hashicorp/hc-install v0.9.0 // indirect github.com/hashicorp/hcl v1.0.0 // indirect - github.com/hashicorp/hcl/v2 v2.20.1 // indirect + github.com/hashicorp/hcl/v2 v2.22.0 // indirect github.com/hashicorp/hil v0.0.0-20190212132231-97b3a9cdfa93 // indirect github.com/hashicorp/logutils v1.0.0 // indirect github.com/hashicorp/terraform-exec v0.21.0 // indirect - github.com/hashicorp/terraform-json v0.22.1 // indirect + github.com/hashicorp/terraform-json v0.23.0 // indirect + github.com/hashicorp/terraform-plugin-framework v1.13.0 // indirect github.com/hashicorp/terraform-plugin-go v0.25.0 // indirect github.com/hashicorp/terraform-plugin-log v0.9.0 // indirect github.com/hashicorp/terraform-plugin-testing v1.8.0 // indirect @@ -236,7 +237,7 @@ require ( github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 // indirect github.com/xeipuuv/gojsonschema v1.2.0 // indirect github.com/yuin/goldmark v1.7.4 // indirect - github.com/zclconf/go-cty v1.14.4 // indirect + github.com/zclconf/go-cty v1.15.0 // indirect go.opencensus.io v0.24.0 // indirect go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.49.0 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0 // indirect @@ -246,15 +247,15 @@ require ( go.uber.org/atomic v1.9.0 // indirect gocloud.dev v0.37.0 // indirect gocloud.dev/secrets/hashivault v0.37.0 // indirect - golang.org/x/crypto v0.26.0 // indirect + golang.org/x/crypto v0.28.0 // indirect golang.org/x/exp v0.0.0-20240604190554-fc45aab8b7f8 // indirect - golang.org/x/mod v0.18.0 // indirect + golang.org/x/mod v0.21.0 // indirect golang.org/x/net v0.28.0 // indirect golang.org/x/oauth2 v0.22.0 // indirect golang.org/x/sync v0.8.0 // indirect - golang.org/x/sys v0.24.0 // indirect - golang.org/x/term v0.23.0 // indirect - golang.org/x/text v0.17.0 // indirect + golang.org/x/sys v0.26.0 // indirect + golang.org/x/term v0.25.0 // indirect + golang.org/x/text v0.19.0 // indirect golang.org/x/time v0.5.0 // indirect golang.org/x/tools v0.22.0 // indirect golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028 // indirect diff --git a/provider/go.sum b/provider/go.sum index ca88b3d322..32a078fe9f 100644 --- a/provider/go.sum +++ b/provider/go.sum @@ -1675,21 +1675,22 @@ github.com/hashicorp/go-uuid v1.0.3 h1:2gKiV6YVmrJ1i2CKKa9obLvRieoRGviZFL26PcT/C github.com/hashicorp/go-uuid v1.0.3/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= github.com/hashicorp/go-version v1.1.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= github.com/hashicorp/go-version v1.2.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= -github.com/hashicorp/go-version v1.6.0 h1:feTTfFNnjP967rlCxM/I9g701jU+RN74YKx2mOkIeek= github.com/hashicorp/go-version v1.6.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= +github.com/hashicorp/go-version v1.7.0 h1:5tqGy27NaOTB8yJKUZELlFAS/LTKJkrmONwQKeRZfjY= +github.com/hashicorp/go-version v1.7.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= github.com/hashicorp/hc-install v0.6.2/go.mod h1:2JBpd+NCFKiHiu/yYCGaPyPHhZLxXTpz8oreHa/a3Ps= github.com/hashicorp/hc-install v0.6.3/go.mod h1:KamGdbodYzlufbWh4r9NRo8y6GLHWZP2GBtdnms1Ln0= -github.com/hashicorp/hc-install v0.6.4 h1:QLqlM56/+SIIGvGcfFiwMY3z5WGXT066suo/v9Km8e0= -github.com/hashicorp/hc-install v0.6.4/go.mod h1:05LWLy8TD842OtgcfBbOT0WMoInBMUSHjmDx10zuBIA= +github.com/hashicorp/hc-install v0.9.0 h1:2dIk8LcvANwtv3QZLckxcjyF5w8KVtiMxu6G6eLhghE= +github.com/hashicorp/hc-install v0.9.0/go.mod h1:+6vOP+mf3tuGgMApVYtmsnDoKWMDcFXeTxCACYZ8SFg= github.com/hashicorp/hcl v0.0.0-20170504190234-a4b07c25de5f/go.mod h1:oZtUIOe8dh44I2q6ScRibXws4Ajl+d+nod3AaR9vL5w= github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4= github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ= github.com/hashicorp/hcl/v2 v2.0.0/go.mod h1:oVVDG71tEinNGYCxinCYadcmKU9bglqW9pV3txagJ90= github.com/hashicorp/hcl/v2 v2.19.1/go.mod h1:ThLC89FV4p9MPW804KVbe/cEXoQ8NZEh+JtMeeGErHE= -github.com/hashicorp/hcl/v2 v2.20.1 h1:M6hgdyz7HYt1UN9e61j+qKJBqR3orTWbI1HKBJEdxtc= -github.com/hashicorp/hcl/v2 v2.20.1/go.mod h1:TZDqQ4kNKCbh1iJp99FdPiUaVDDUPivbqxZulxDYqL4= +github.com/hashicorp/hcl/v2 v2.22.0 h1:hkZ3nCtqeJsDhPRFz5EA9iwcG1hNWGePOTw6oyul12M= +github.com/hashicorp/hcl/v2 v2.22.0/go.mod h1:62ZYHrXgPoX8xBnzl8QzbWq4dyDsDtfCRgIq1rbJEvA= github.com/hashicorp/hil v0.0.0-20190212132231-97b3a9cdfa93 h1:T1Q6ag9tCwun16AW+XK3tAql24P4uTGUMIn1/92WsQQ= github.com/hashicorp/hil v0.0.0-20190212132231-97b3a9cdfa93/go.mod h1:n2TSygSNwsLJ76m8qFXTSc7beTb+auJxYdqrnoqwZWE= github.com/hashicorp/logutils v1.0.0 h1:dLEQVugN8vlakKOUE3ihGLTZJRB4j+M2cdTm/ORI65Y= @@ -1701,13 +1702,19 @@ github.com/hashicorp/terraform-exec v0.21.0/go.mod h1:1PPeMYou+KDUSSeRE9szMZ/oHf github.com/hashicorp/terraform-json v0.4.0/go.mod h1:eAbqb4w0pSlRmdvl8fOyHAi/+8jnkVYN28gJkSJrLhU= github.com/hashicorp/terraform-json v0.19.0/go.mod h1:qdeBs11ovMzo5puhrRibdD6d2Dq6TyE/28JiU4tIQxk= github.com/hashicorp/terraform-json v0.21.0/go.mod h1:qdeBs11ovMzo5puhrRibdD6d2Dq6TyE/28JiU4tIQxk= -github.com/hashicorp/terraform-json v0.22.1 h1:xft84GZR0QzjPVWs4lRUwvTcPnegqlyS7orfb5Ltvec= -github.com/hashicorp/terraform-json v0.22.1/go.mod h1:JbWSQCLFSXFFhg42T7l9iJwdGXBYV8fmmD6o/ML4p3A= +github.com/hashicorp/terraform-json v0.23.0 h1:sniCkExU4iKtTADReHzACkk8fnpQXrdD2xoR+lppBkI= +github.com/hashicorp/terraform-json v0.23.0/go.mod h1:MHdXbBAbSg0GvzuWazEGKAn/cyNfIB7mN6y7KJN6y2c= +github.com/hashicorp/terraform-plugin-framework v1.13.0 h1:8OTG4+oZUfKgnfTdPTJwZ532Bh2BobF4H+yBiYJ/scw= +github.com/hashicorp/terraform-plugin-framework v1.13.0/go.mod h1:j64rwMGpgM3NYXTKuxrCnyubQb/4VKldEKlcG8cvmjU= +github.com/hashicorp/terraform-plugin-framework-validators v0.14.0 h1:3PCn9iyzdVOgHYOBmncpSSOxjQhCTYmc+PGvbdlqSaI= +github.com/hashicorp/terraform-plugin-framework-validators v0.14.0/go.mod h1:LwDKNdzxrDY/mHBrlC6aYfE2fQ3Dk3gaJD64vNiXvo4= github.com/hashicorp/terraform-plugin-go v0.22.0/go.mod h1:mPULV91VKss7sik6KFEcEu7HuTogMLLO/EvWCuFkRVE= github.com/hashicorp/terraform-plugin-go v0.25.0 h1:oi13cx7xXA6QciMcpcFi/rwA974rdTxjqEhXJjbAyks= github.com/hashicorp/terraform-plugin-go v0.25.0/go.mod h1:+SYagMYadJP86Kvn+TGeV+ofr/R3g4/If0O5sO96MVw= github.com/hashicorp/terraform-plugin-log v0.9.0 h1:i7hOA+vdAItN1/7UrfBqBwvYPQ9TFvymaRGZED3FCV0= github.com/hashicorp/terraform-plugin-log v0.9.0/go.mod h1:rKL8egZQ/eXSyDqzLUuwUYLVdlYeamldAHSxjUFADow= +github.com/hashicorp/terraform-plugin-mux v0.17.0 h1:/J3vv3Ps2ISkbLPiZOLspFcIZ0v5ycUXCEQScudGCCw= +github.com/hashicorp/terraform-plugin-mux v0.17.0/go.mod h1:yWuM9U1Jg8DryNfvCp+lH70WcYv6D8aooQxxxIzFDsE= github.com/hashicorp/terraform-plugin-sdk v1.7.0 h1:B//oq0ZORG+EkVrIJy0uPGSonvmXqxSzXe8+GhknoW0= github.com/hashicorp/terraform-plugin-sdk v1.7.0/go.mod h1:OjgQmey5VxnPej/buEhe+YqKm0KNvV3QqU4hkqHqPCY= github.com/hashicorp/terraform-plugin-test v1.2.0/go.mod h1:QIJHYz8j+xJtdtLrFTlzQVC0ocr3rf/OjIpgZLK56Hs= @@ -2127,10 +2134,11 @@ github.com/zclconf/go-cty v1.13.0/go.mod h1:YKQzy/7pZ7iq2jNFzy5go57xdxdWoLLpaEp4 github.com/zclconf/go-cty v1.13.1/go.mod h1:YKQzy/7pZ7iq2jNFzy5go57xdxdWoLLpaEp4u238AE0= github.com/zclconf/go-cty v1.14.1/go.mod h1:VvMs5i0vgZdhYawQNq5kePSpLAoz8u1xvZgrPIxfnZE= github.com/zclconf/go-cty v1.14.2/go.mod h1:VvMs5i0vgZdhYawQNq5kePSpLAoz8u1xvZgrPIxfnZE= -github.com/zclconf/go-cty v1.14.4 h1:uXXczd9QDGsgu0i/QFR/hzI5NYCHLf6NQw/atrbnhq8= -github.com/zclconf/go-cty v1.14.4/go.mod h1:VvMs5i0vgZdhYawQNq5kePSpLAoz8u1xvZgrPIxfnZE= -github.com/zclconf/go-cty-debug v0.0.0-20191215020915-b22d67c1ba0b h1:FosyBZYxY34Wul7O/MSKey3txpPYyCqVO5ZyceuQJEI= +github.com/zclconf/go-cty v1.15.0 h1:tTCRWxsexYUmtt/wVxgDClUe+uQusuI443uL6e+5sXQ= +github.com/zclconf/go-cty v1.15.0/go.mod h1:VvMs5i0vgZdhYawQNq5kePSpLAoz8u1xvZgrPIxfnZE= github.com/zclconf/go-cty-debug v0.0.0-20191215020915-b22d67c1ba0b/go.mod h1:ZRKQfBXbGkpdV6QMzT3rU1kSTAnfu1dO8dPKjYprgj8= +github.com/zclconf/go-cty-debug v0.0.0-20240509010212-0d6042c53940 h1:4r45xpDWB6ZMSMNJFMOjqrGHynW3DIBuR2H9j0ug+Mo= +github.com/zclconf/go-cty-debug v0.0.0-20240509010212-0d6042c53940/go.mod h1:CmBdvvj3nqzfzJ6nTCIwDTPZ56aVGvDrmztiO5g3qrM= github.com/zclconf/go-cty-yaml v1.0.1 h1:up11wlgAaDvlAGENcFDnZgkn0qUJurso7k6EpURKNF8= github.com/zclconf/go-cty-yaml v1.0.1/go.mod h1:IP3Ylp0wQpYm50IHK8OZWKMu6sPJIUgKa8XhiVHura0= github.com/zeebo/assert v1.3.0/go.mod h1:Pq9JiuJQpG8JLJdtkwrJESF0Foym2/D9XMU5ciN/wJ0= @@ -2199,8 +2207,8 @@ golang.org/x/crypto v0.16.0/go.mod h1:gCAAfMLgwOJRpTjQ2zCCt2OcSfYMTeZVSRtQlPC7Nq golang.org/x/crypto v0.17.0/go.mod h1:gCAAfMLgwOJRpTjQ2zCCt2OcSfYMTeZVSRtQlPC7Nq4= golang.org/x/crypto v0.18.0/go.mod h1:R0j02AL6hcrfOiy9T4ZYp/rcWeMxM3L6QYxlOuEG1mg= golang.org/x/crypto v0.19.0/go.mod h1:Iy9bg/ha4yyC70EfRS8jz+B6ybOBKMaSxLj6P6oBDfU= -golang.org/x/crypto v0.26.0 h1:RrRspgV4mU+YwB4FYnuBoKsUapNIL5cohGAmSH3azsw= -golang.org/x/crypto v0.26.0/go.mod h1:GY7jblb9wI+FOo5y8/S2oY4zWP07AkOJ4+jxCqdqn54= +golang.org/x/crypto v0.28.0 h1:GBDwsMXVQi34v5CCYUm2jkJvu4cbtru2U4TN2PSyQnw= +golang.org/x/crypto v0.28.0/go.mod h1:rmgy+3RHxRZMyY0jjAJShp2zgEdOqj2AO7U0pYmeQ7U= golang.org/x/exp v0.0.0-20180321215751-8460e604b9de/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20180807140117-3d87b88a115f/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= @@ -2267,8 +2275,8 @@ golang.org/x/mod v0.11.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= golang.org/x/mod v0.12.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= golang.org/x/mod v0.14.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= golang.org/x/mod v0.15.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= -golang.org/x/mod v0.18.0 h1:5+9lSbEzPSdWkH32vYPBwEpX8KwDbM52Ud9xBUvNlb0= -golang.org/x/mod v0.18.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= +golang.org/x/mod v0.21.0 h1:vvrHzRwRfVKSiLrG+d4FMl/Qi4ukBCE6kZlTUkDYRT0= +golang.org/x/mod v0.21.0/go.mod h1:6SkKJ3Xj0I0BrPOZoBy3bdMptDDU9oJrpohJ3eWZ1fY= golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180811021610-c39426892332/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= @@ -2518,8 +2526,8 @@ golang.org/x/sys v0.14.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/sys v0.15.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/sys v0.16.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/sys v0.17.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= -golang.org/x/sys v0.24.0 h1:Twjiwq9dn6R1fQcyiK+wQyHWfaz/BJB+YIpzU/Cv3Xg= -golang.org/x/sys v0.24.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.26.0 h1:KHjCJyddX0LoSTb3J+vWpupP9p0oznkqVk/IfjymZbo= +golang.org/x/sys v0.26.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.0.0-20220722155259-a9ba230a4035/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= @@ -2540,8 +2548,8 @@ golang.org/x/term v0.14.0/go.mod h1:TySc+nGkYR6qt8km8wUhuFRTVSMIX3XPR58y2lC8vww= golang.org/x/term v0.15.0/go.mod h1:BDl952bC7+uMoWR75FIrCDx79TPU9oHkTZ9yRbYOrX0= golang.org/x/term v0.16.0/go.mod h1:yn7UURbUtPyrVJPGPq404EukNFxcm/foM+bV/bfcDsY= golang.org/x/term v0.17.0/go.mod h1:lLRBjIVuehSbZlaOtGMbcMncT+aqLLLmKrsjNrUguwk= -golang.org/x/term v0.23.0 h1:F6D4vR+EHoL9/sWAWgAR1H2DcHr4PareCbAaCo1RpuU= -golang.org/x/term v0.23.0/go.mod h1:DgV24QBUrK6jhZXl+20l6UWznPlwAHm1Q1mGHtydmSk= +golang.org/x/term v0.25.0 h1:WtHI/ltw4NvSUig5KARz9h521QvRC8RmF/cuYqifU24= +golang.org/x/term v0.25.0/go.mod h1:RPyXicDX+6vLxogjjRxjgD2TKtmAO6NZBsBRfrOLu7M= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= @@ -2563,8 +2571,8 @@ golang.org/x/text v0.11.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= golang.org/x/text v0.12.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= golang.org/x/text v0.13.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= -golang.org/x/text v0.17.0 h1:XtiM5bkSOt+ewxlOE/aE/AKEHibwj/6gvWMl9Rsh0Qc= -golang.org/x/text v0.17.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY= +golang.org/x/text v0.19.0 h1:kTxAhCbGbxhK0IwgSKiMO5awPoDQ0RpfiVYBfK860YM= +golang.org/x/text v0.19.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY= golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= diff --git a/sdk/dotnet/AppService/Inputs/LinuxFunctionAppSiteConfigApplicationStackArgs.cs b/sdk/dotnet/AppService/Inputs/LinuxFunctionAppSiteConfigApplicationStackArgs.cs index 978ca394c5..33451eff25 100644 --- a/sdk/dotnet/AppService/Inputs/LinuxFunctionAppSiteConfigApplicationStackArgs.cs +++ b/sdk/dotnet/AppService/Inputs/LinuxFunctionAppSiteConfigApplicationStackArgs.cs @@ -25,7 +25,7 @@ public InputList Do } /// - /// The version of .NET to use. Possible values include `3.1`, `6.0`, `7.0` and `8.0`. + /// The version of .NET to use. Possible values include `3.1`, `6.0`, `7.0`, `8.0` and `9.0`. /// [Input("dotnetVersion")] public Input? DotnetVersion { get; set; } diff --git a/sdk/dotnet/AppService/Inputs/LinuxFunctionAppSiteConfigApplicationStackGetArgs.cs b/sdk/dotnet/AppService/Inputs/LinuxFunctionAppSiteConfigApplicationStackGetArgs.cs index 406b99ab11..f5b04b2c26 100644 --- a/sdk/dotnet/AppService/Inputs/LinuxFunctionAppSiteConfigApplicationStackGetArgs.cs +++ b/sdk/dotnet/AppService/Inputs/LinuxFunctionAppSiteConfigApplicationStackGetArgs.cs @@ -25,7 +25,7 @@ public InputList } /// - /// The version of .NET to use. Possible values include `3.1`, `6.0`, `7.0` and `8.0`. + /// The version of .NET to use. Possible values include `3.1`, `6.0`, `7.0`, `8.0` and `9.0`. /// [Input("dotnetVersion")] public Input? DotnetVersion { get; set; } diff --git a/sdk/dotnet/AppService/Inputs/LinuxFunctionAppSlotSiteConfigApplicationStackArgs.cs b/sdk/dotnet/AppService/Inputs/LinuxFunctionAppSlotSiteConfigApplicationStackArgs.cs index 87ba494011..211abcc83f 100644 --- a/sdk/dotnet/AppService/Inputs/LinuxFunctionAppSlotSiteConfigApplicationStackArgs.cs +++ b/sdk/dotnet/AppService/Inputs/LinuxFunctionAppSlotSiteConfigApplicationStackArgs.cs @@ -25,7 +25,7 @@ public InputList - /// The version of .Net. Possible values are `3.1`, `6.0`, `7.0` and `8.0`. + /// The version of .Net. Possible values are `3.1`, `6.0`, `7.0`, `8.0` and `9.0`. /// [Input("dotnetVersion")] public Input? DotnetVersion { get; set; } diff --git a/sdk/dotnet/AppService/Inputs/LinuxFunctionAppSlotSiteConfigApplicationStackGetArgs.cs b/sdk/dotnet/AppService/Inputs/LinuxFunctionAppSlotSiteConfigApplicationStackGetArgs.cs index 51bb6c2dcf..64f0c7202a 100644 --- a/sdk/dotnet/AppService/Inputs/LinuxFunctionAppSlotSiteConfigApplicationStackGetArgs.cs +++ b/sdk/dotnet/AppService/Inputs/LinuxFunctionAppSlotSiteConfigApplicationStackGetArgs.cs @@ -25,7 +25,7 @@ public InputList - /// The version of .Net. Possible values are `3.1`, `6.0`, `7.0` and `8.0`. + /// The version of .Net. Possible values are `3.1`, `6.0`, `7.0`, `8.0` and `9.0`. /// [Input("dotnetVersion")] public Input? DotnetVersion { get; set; } diff --git a/sdk/dotnet/AppService/Inputs/LinuxWebAppSiteConfigApplicationStackArgs.cs b/sdk/dotnet/AppService/Inputs/LinuxWebAppSiteConfigApplicationStackArgs.cs index 8cc6b8bbc6..520dd29e26 100644 --- a/sdk/dotnet/AppService/Inputs/LinuxWebAppSiteConfigApplicationStackArgs.cs +++ b/sdk/dotnet/AppService/Inputs/LinuxWebAppSiteConfigApplicationStackArgs.cs @@ -49,7 +49,7 @@ public Input? DockerRegistryPassword public Input? DockerRegistryUsername { get; set; } /// - /// The version of .NET to use. Possible values include `3.1`, `5.0`, `6.0`, `7.0` and `8.0`. + /// The version of .NET to use. Possible values include `3.1`, `5.0`, `6.0`, `7.0`, `8.0` and `9.0`. /// [Input("dotnetVersion")] public Input? DotnetVersion { get; set; } diff --git a/sdk/dotnet/AppService/Inputs/LinuxWebAppSiteConfigApplicationStackGetArgs.cs b/sdk/dotnet/AppService/Inputs/LinuxWebAppSiteConfigApplicationStackGetArgs.cs index 3cef43f404..256d726157 100644 --- a/sdk/dotnet/AppService/Inputs/LinuxWebAppSiteConfigApplicationStackGetArgs.cs +++ b/sdk/dotnet/AppService/Inputs/LinuxWebAppSiteConfigApplicationStackGetArgs.cs @@ -49,7 +49,7 @@ public Input? DockerRegistryPassword public Input? DockerRegistryUsername { get; set; } /// - /// The version of .NET to use. Possible values include `3.1`, `5.0`, `6.0`, `7.0` and `8.0`. + /// The version of .NET to use. Possible values include `3.1`, `5.0`, `6.0`, `7.0`, `8.0` and `9.0`. /// [Input("dotnetVersion")] public Input? DotnetVersion { get; set; } diff --git a/sdk/dotnet/AppService/Inputs/LinuxWebAppSlotSiteConfigApplicationStackArgs.cs b/sdk/dotnet/AppService/Inputs/LinuxWebAppSlotSiteConfigApplicationStackArgs.cs index 406499d427..545ed731a3 100644 --- a/sdk/dotnet/AppService/Inputs/LinuxWebAppSlotSiteConfigApplicationStackArgs.cs +++ b/sdk/dotnet/AppService/Inputs/LinuxWebAppSlotSiteConfigApplicationStackArgs.cs @@ -49,7 +49,7 @@ public Input? DockerRegistryPassword public Input? DockerRegistryUsername { get; set; } /// - /// The version of .NET to use. Possible values include `3.1`, `5.0`, `6.0`, `7.0` and `8.0`. + /// The version of .NET to use. Possible values include `3.1`, `5.0`, `6.0`, `7.0`, `8.0` and `9.0`. /// [Input("dotnetVersion")] public Input? DotnetVersion { get; set; } diff --git a/sdk/dotnet/AppService/Inputs/LinuxWebAppSlotSiteConfigApplicationStackGetArgs.cs b/sdk/dotnet/AppService/Inputs/LinuxWebAppSlotSiteConfigApplicationStackGetArgs.cs index 1ad0ac0541..79510426fc 100644 --- a/sdk/dotnet/AppService/Inputs/LinuxWebAppSlotSiteConfigApplicationStackGetArgs.cs +++ b/sdk/dotnet/AppService/Inputs/LinuxWebAppSlotSiteConfigApplicationStackGetArgs.cs @@ -49,7 +49,7 @@ public Input? DockerRegistryPassword public Input? DockerRegistryUsername { get; set; } /// - /// The version of .NET to use. Possible values include `3.1`, `5.0`, `6.0`, `7.0` and `8.0`. + /// The version of .NET to use. Possible values include `3.1`, `5.0`, `6.0`, `7.0`, `8.0` and `9.0`. /// [Input("dotnetVersion")] public Input? DotnetVersion { get; set; } diff --git a/sdk/dotnet/AppService/Inputs/WindowsFunctionAppSiteConfigApplicationStackArgs.cs b/sdk/dotnet/AppService/Inputs/WindowsFunctionAppSiteConfigApplicationStackArgs.cs index 45bb1b7c8b..857e44b611 100644 --- a/sdk/dotnet/AppService/Inputs/WindowsFunctionAppSiteConfigApplicationStackArgs.cs +++ b/sdk/dotnet/AppService/Inputs/WindowsFunctionAppSiteConfigApplicationStackArgs.cs @@ -13,7 +13,7 @@ namespace Pulumi.Azure.AppService.Inputs public sealed class WindowsFunctionAppSiteConfigApplicationStackArgs : global::Pulumi.ResourceArgs { /// - /// The version of .NET to use. Possible values include `v3.0`, `v4.0` `v6.0`, `v7.0` and `v8.0`. Defaults to `v4.0`. + /// The version of .NET to use. Possible values include `v3.0`, `v4.0` `v6.0`, `v7.0`, `v8.0` and `v9.0`. Defaults to `v4.0`. /// [Input("dotnetVersion")] public Input? DotnetVersion { get; set; } diff --git a/sdk/dotnet/AppService/Inputs/WindowsFunctionAppSiteConfigApplicationStackGetArgs.cs b/sdk/dotnet/AppService/Inputs/WindowsFunctionAppSiteConfigApplicationStackGetArgs.cs index 324d84dbcd..f185dff97b 100644 --- a/sdk/dotnet/AppService/Inputs/WindowsFunctionAppSiteConfigApplicationStackGetArgs.cs +++ b/sdk/dotnet/AppService/Inputs/WindowsFunctionAppSiteConfigApplicationStackGetArgs.cs @@ -13,7 +13,7 @@ namespace Pulumi.Azure.AppService.Inputs public sealed class WindowsFunctionAppSiteConfigApplicationStackGetArgs : global::Pulumi.ResourceArgs { /// - /// The version of .NET to use. Possible values include `v3.0`, `v4.0` `v6.0`, `v7.0` and `v8.0`. Defaults to `v4.0`. + /// The version of .NET to use. Possible values include `v3.0`, `v4.0` `v6.0`, `v7.0`, `v8.0` and `v9.0`. Defaults to `v4.0`. /// [Input("dotnetVersion")] public Input? DotnetVersion { get; set; } diff --git a/sdk/dotnet/AppService/Inputs/WindowsFunctionAppSlotSiteConfigApplicationStackArgs.cs b/sdk/dotnet/AppService/Inputs/WindowsFunctionAppSlotSiteConfigApplicationStackArgs.cs index f78b083820..a9a87c3654 100644 --- a/sdk/dotnet/AppService/Inputs/WindowsFunctionAppSlotSiteConfigApplicationStackArgs.cs +++ b/sdk/dotnet/AppService/Inputs/WindowsFunctionAppSlotSiteConfigApplicationStackArgs.cs @@ -13,7 +13,7 @@ namespace Pulumi.Azure.AppService.Inputs public sealed class WindowsFunctionAppSlotSiteConfigApplicationStackArgs : global::Pulumi.ResourceArgs { /// - /// The version of .Net. Possible values are `v3.0`, `v4.0`, `v6.0`, `v7.0` and `v8.0`. Defaults to `v4.0`. + /// The version of .Net. Possible values are `v3.0`, `v4.0`, `v6.0`, `v7.0`, `v8.0` and `v9.0`. Defaults to `v4.0`. /// [Input("dotnetVersion")] public Input? DotnetVersion { get; set; } diff --git a/sdk/dotnet/AppService/Inputs/WindowsFunctionAppSlotSiteConfigApplicationStackGetArgs.cs b/sdk/dotnet/AppService/Inputs/WindowsFunctionAppSlotSiteConfigApplicationStackGetArgs.cs index 2e0c342ac7..80a1311fac 100644 --- a/sdk/dotnet/AppService/Inputs/WindowsFunctionAppSlotSiteConfigApplicationStackGetArgs.cs +++ b/sdk/dotnet/AppService/Inputs/WindowsFunctionAppSlotSiteConfigApplicationStackGetArgs.cs @@ -13,7 +13,7 @@ namespace Pulumi.Azure.AppService.Inputs public sealed class WindowsFunctionAppSlotSiteConfigApplicationStackGetArgs : global::Pulumi.ResourceArgs { /// - /// The version of .Net. Possible values are `v3.0`, `v4.0`, `v6.0`, `v7.0` and `v8.0`. Defaults to `v4.0`. + /// The version of .Net. Possible values are `v3.0`, `v4.0`, `v6.0`, `v7.0`, `v8.0` and `v9.0`. Defaults to `v4.0`. /// [Input("dotnetVersion")] public Input? DotnetVersion { get; set; } diff --git a/sdk/dotnet/AppService/Inputs/WindowsWebAppSiteConfigApplicationStackArgs.cs b/sdk/dotnet/AppService/Inputs/WindowsWebAppSiteConfigApplicationStackArgs.cs index e3d147ac57..a8af30905b 100644 --- a/sdk/dotnet/AppService/Inputs/WindowsWebAppSiteConfigApplicationStackArgs.cs +++ b/sdk/dotnet/AppService/Inputs/WindowsWebAppSiteConfigApplicationStackArgs.cs @@ -65,7 +65,7 @@ public Input? DockerRegistryPassword public Input? DotnetCoreVersion { get; set; } /// - /// The version of .NET to use when `current_stack` is set to `dotnet`. Possible values include `v2.0`,`v3.0`, `v4.0`, `v5.0`, `v6.0`, `v7.0` and `v8.0`. + /// The version of .NET to use when `current_stack` is set to `dotnet`. Possible values include `v2.0`,`v3.0`, `v4.0`, `v5.0`, `v6.0`, `v7.0`, `v8.0` and `v9.0`. /// /// > **NOTE:** The Portal displayed values and the actual underlying API values differ for this setting, as follows: /// Portal Value | API value @@ -75,6 +75,7 @@ public Input? DockerRegistryPassword /// .NET 6 (LTS) | v6.0 /// .NET 7 (STS) | v7.0 /// .NET 8 (LTS) | v8.0 + /// .NET 9 (STS) | v9.0 /// [Input("dotnetVersion")] public Input? DotnetVersion { get; set; } diff --git a/sdk/dotnet/AppService/Inputs/WindowsWebAppSiteConfigApplicationStackGetArgs.cs b/sdk/dotnet/AppService/Inputs/WindowsWebAppSiteConfigApplicationStackGetArgs.cs index f1ca119e31..ddbd31cd8a 100644 --- a/sdk/dotnet/AppService/Inputs/WindowsWebAppSiteConfigApplicationStackGetArgs.cs +++ b/sdk/dotnet/AppService/Inputs/WindowsWebAppSiteConfigApplicationStackGetArgs.cs @@ -65,7 +65,7 @@ public Input? DockerRegistryPassword public Input? DotnetCoreVersion { get; set; } /// - /// The version of .NET to use when `current_stack` is set to `dotnet`. Possible values include `v2.0`,`v3.0`, `v4.0`, `v5.0`, `v6.0`, `v7.0` and `v8.0`. + /// The version of .NET to use when `current_stack` is set to `dotnet`. Possible values include `v2.0`,`v3.0`, `v4.0`, `v5.0`, `v6.0`, `v7.0`, `v8.0` and `v9.0`. /// /// > **NOTE:** The Portal displayed values and the actual underlying API values differ for this setting, as follows: /// Portal Value | API value @@ -75,6 +75,7 @@ public Input? DockerRegistryPassword /// .NET 6 (LTS) | v6.0 /// .NET 7 (STS) | v7.0 /// .NET 8 (LTS) | v8.0 + /// .NET 9 (STS) | v9.0 /// [Input("dotnetVersion")] public Input? DotnetVersion { get; set; } diff --git a/sdk/dotnet/AppService/Inputs/WindowsWebAppSlotSiteConfigApplicationStackArgs.cs b/sdk/dotnet/AppService/Inputs/WindowsWebAppSlotSiteConfigApplicationStackArgs.cs index d205ee312c..7f1f81acb4 100644 --- a/sdk/dotnet/AppService/Inputs/WindowsWebAppSlotSiteConfigApplicationStackArgs.cs +++ b/sdk/dotnet/AppService/Inputs/WindowsWebAppSlotSiteConfigApplicationStackArgs.cs @@ -63,7 +63,7 @@ public Input? DockerRegistryPassword public Input? DotnetCoreVersion { get; set; } /// - /// The version of .NET to use when `current_stack` is set to `dotnet`. Possible values include `v2.0`,`v3.0`, `v4.0`, `v5.0`, `v6.0`, `v7.0` and `v8.0`. + /// The version of .NET to use when `current_stack` is set to `dotnet`. Possible values include `v2.0`,`v3.0`, `v4.0`, `v5.0`, `v6.0`, `v7.0`, `v8.0` and `v9.0`. /// [Input("dotnetVersion")] public Input? DotnetVersion { get; set; } diff --git a/sdk/dotnet/AppService/Inputs/WindowsWebAppSlotSiteConfigApplicationStackGetArgs.cs b/sdk/dotnet/AppService/Inputs/WindowsWebAppSlotSiteConfigApplicationStackGetArgs.cs index bded786eda..efc43a96dc 100644 --- a/sdk/dotnet/AppService/Inputs/WindowsWebAppSlotSiteConfigApplicationStackGetArgs.cs +++ b/sdk/dotnet/AppService/Inputs/WindowsWebAppSlotSiteConfigApplicationStackGetArgs.cs @@ -63,7 +63,7 @@ public Input? DockerRegistryPassword public Input? DotnetCoreVersion { get; set; } /// - /// The version of .NET to use when `current_stack` is set to `dotnet`. Possible values include `v2.0`,`v3.0`, `v4.0`, `v5.0`, `v6.0`, `v7.0` and `v8.0`. + /// The version of .NET to use when `current_stack` is set to `dotnet`. Possible values include `v2.0`,`v3.0`, `v4.0`, `v5.0`, `v6.0`, `v7.0`, `v8.0` and `v9.0`. /// [Input("dotnetVersion")] public Input? DotnetVersion { get; set; } diff --git a/sdk/dotnet/AppService/Outputs/LinuxFunctionAppSiteConfigApplicationStack.cs b/sdk/dotnet/AppService/Outputs/LinuxFunctionAppSiteConfigApplicationStack.cs index 10332c698d..42224776da 100644 --- a/sdk/dotnet/AppService/Outputs/LinuxFunctionAppSiteConfigApplicationStack.cs +++ b/sdk/dotnet/AppService/Outputs/LinuxFunctionAppSiteConfigApplicationStack.cs @@ -18,7 +18,7 @@ public sealed class LinuxFunctionAppSiteConfigApplicationStack /// public readonly ImmutableArray Dockers; /// - /// The version of .NET to use. Possible values include `3.1`, `6.0`, `7.0` and `8.0`. + /// The version of .NET to use. Possible values include `3.1`, `6.0`, `7.0`, `8.0` and `9.0`. /// public readonly string? DotnetVersion; /// diff --git a/sdk/dotnet/AppService/Outputs/LinuxFunctionAppSlotSiteConfigApplicationStack.cs b/sdk/dotnet/AppService/Outputs/LinuxFunctionAppSlotSiteConfigApplicationStack.cs index 11a89673a3..d6f5cc734d 100644 --- a/sdk/dotnet/AppService/Outputs/LinuxFunctionAppSlotSiteConfigApplicationStack.cs +++ b/sdk/dotnet/AppService/Outputs/LinuxFunctionAppSlotSiteConfigApplicationStack.cs @@ -18,7 +18,7 @@ public sealed class LinuxFunctionAppSlotSiteConfigApplicationStack /// public readonly ImmutableArray Dockers; /// - /// The version of .Net. Possible values are `3.1`, `6.0`, `7.0` and `8.0`. + /// The version of .Net. Possible values are `3.1`, `6.0`, `7.0`, `8.0` and `9.0`. /// public readonly string? DotnetVersion; /// diff --git a/sdk/dotnet/AppService/Outputs/LinuxWebAppSiteConfigApplicationStack.cs b/sdk/dotnet/AppService/Outputs/LinuxWebAppSiteConfigApplicationStack.cs index 1ec3b231e1..bbb964d876 100644 --- a/sdk/dotnet/AppService/Outputs/LinuxWebAppSiteConfigApplicationStack.cs +++ b/sdk/dotnet/AppService/Outputs/LinuxWebAppSiteConfigApplicationStack.cs @@ -32,7 +32,7 @@ public sealed class LinuxWebAppSiteConfigApplicationStack /// public readonly string? DockerRegistryUsername; /// - /// The version of .NET to use. Possible values include `3.1`, `5.0`, `6.0`, `7.0` and `8.0`. + /// The version of .NET to use. Possible values include `3.1`, `5.0`, `6.0`, `7.0`, `8.0` and `9.0`. /// public readonly string? DotnetVersion; /// diff --git a/sdk/dotnet/AppService/Outputs/LinuxWebAppSlotSiteConfigApplicationStack.cs b/sdk/dotnet/AppService/Outputs/LinuxWebAppSlotSiteConfigApplicationStack.cs index b7a0743268..b1888eaae1 100644 --- a/sdk/dotnet/AppService/Outputs/LinuxWebAppSlotSiteConfigApplicationStack.cs +++ b/sdk/dotnet/AppService/Outputs/LinuxWebAppSlotSiteConfigApplicationStack.cs @@ -32,7 +32,7 @@ public sealed class LinuxWebAppSlotSiteConfigApplicationStack /// public readonly string? DockerRegistryUsername; /// - /// The version of .NET to use. Possible values include `3.1`, `5.0`, `6.0`, `7.0` and `8.0`. + /// The version of .NET to use. Possible values include `3.1`, `5.0`, `6.0`, `7.0`, `8.0` and `9.0`. /// public readonly string? DotnetVersion; /// diff --git a/sdk/dotnet/AppService/Outputs/WindowsFunctionAppSiteConfigApplicationStack.cs b/sdk/dotnet/AppService/Outputs/WindowsFunctionAppSiteConfigApplicationStack.cs index 806f4950c4..47c147463d 100644 --- a/sdk/dotnet/AppService/Outputs/WindowsFunctionAppSiteConfigApplicationStack.cs +++ b/sdk/dotnet/AppService/Outputs/WindowsFunctionAppSiteConfigApplicationStack.cs @@ -14,7 +14,7 @@ namespace Pulumi.Azure.AppService.Outputs public sealed class WindowsFunctionAppSiteConfigApplicationStack { /// - /// The version of .NET to use. Possible values include `v3.0`, `v4.0` `v6.0`, `v7.0` and `v8.0`. Defaults to `v4.0`. + /// The version of .NET to use. Possible values include `v3.0`, `v4.0` `v6.0`, `v7.0`, `v8.0` and `v9.0`. Defaults to `v4.0`. /// public readonly string? DotnetVersion; /// diff --git a/sdk/dotnet/AppService/Outputs/WindowsFunctionAppSlotSiteConfigApplicationStack.cs b/sdk/dotnet/AppService/Outputs/WindowsFunctionAppSlotSiteConfigApplicationStack.cs index 2abc5a6b67..87997d5e9c 100644 --- a/sdk/dotnet/AppService/Outputs/WindowsFunctionAppSlotSiteConfigApplicationStack.cs +++ b/sdk/dotnet/AppService/Outputs/WindowsFunctionAppSlotSiteConfigApplicationStack.cs @@ -14,7 +14,7 @@ namespace Pulumi.Azure.AppService.Outputs public sealed class WindowsFunctionAppSlotSiteConfigApplicationStack { /// - /// The version of .Net. Possible values are `v3.0`, `v4.0`, `v6.0`, `v7.0` and `v8.0`. Defaults to `v4.0`. + /// The version of .Net. Possible values are `v3.0`, `v4.0`, `v6.0`, `v7.0`, `v8.0` and `v9.0`. Defaults to `v4.0`. /// public readonly string? DotnetVersion; /// diff --git a/sdk/dotnet/AppService/Outputs/WindowsWebAppSiteConfigApplicationStack.cs b/sdk/dotnet/AppService/Outputs/WindowsWebAppSiteConfigApplicationStack.cs index 45fa89ae0e..dd56f7f1b4 100644 --- a/sdk/dotnet/AppService/Outputs/WindowsWebAppSiteConfigApplicationStack.cs +++ b/sdk/dotnet/AppService/Outputs/WindowsWebAppSiteConfigApplicationStack.cs @@ -44,7 +44,7 @@ public sealed class WindowsWebAppSiteConfigApplicationStack /// public readonly string? DotnetCoreVersion; /// - /// The version of .NET to use when `current_stack` is set to `dotnet`. Possible values include `v2.0`,`v3.0`, `v4.0`, `v5.0`, `v6.0`, `v7.0` and `v8.0`. + /// The version of .NET to use when `current_stack` is set to `dotnet`. Possible values include `v2.0`,`v3.0`, `v4.0`, `v5.0`, `v6.0`, `v7.0`, `v8.0` and `v9.0`. /// /// > **NOTE:** The Portal displayed values and the actual underlying API values differ for this setting, as follows: /// Portal Value | API value @@ -54,6 +54,7 @@ public sealed class WindowsWebAppSiteConfigApplicationStack /// .NET 6 (LTS) | v6.0 /// .NET 7 (STS) | v7.0 /// .NET 8 (LTS) | v8.0 + /// .NET 9 (STS) | v9.0 /// public readonly string? DotnetVersion; public readonly string? JavaContainer; diff --git a/sdk/dotnet/AppService/Outputs/WindowsWebAppSlotSiteConfigApplicationStack.cs b/sdk/dotnet/AppService/Outputs/WindowsWebAppSlotSiteConfigApplicationStack.cs index ed8b392f03..257a579d38 100644 --- a/sdk/dotnet/AppService/Outputs/WindowsWebAppSlotSiteConfigApplicationStack.cs +++ b/sdk/dotnet/AppService/Outputs/WindowsWebAppSlotSiteConfigApplicationStack.cs @@ -42,7 +42,7 @@ public sealed class WindowsWebAppSlotSiteConfigApplicationStack /// public readonly string? DotnetCoreVersion; /// - /// The version of .NET to use when `current_stack` is set to `dotnet`. Possible values include `v2.0`,`v3.0`, `v4.0`, `v5.0`, `v6.0`, `v7.0` and `v8.0`. + /// The version of .NET to use when `current_stack` is set to `dotnet`. Possible values include `v2.0`,`v3.0`, `v4.0`, `v5.0`, `v6.0`, `v7.0`, `v8.0` and `v9.0`. /// public readonly string? DotnetVersion; public readonly string? JavaContainer; diff --git a/sdk/dotnet/Automation/JobSchedule.cs b/sdk/dotnet/Automation/JobSchedule.cs index 82d7529d0b..1c53599716 100644 --- a/sdk/dotnet/Automation/JobSchedule.cs +++ b/sdk/dotnet/Automation/JobSchedule.cs @@ -12,7 +12,7 @@ namespace Pulumi.Azure.Automation /// /// Links an Automation Runbook and Schedule. /// - /// > **NOTE** AzureRM provides this stand-alone azure.automation.JobSchedule and an inlined `job_schdule` property in azurerm_runbook to manage the job schedules. You can only make use of one of these methods to manage a job schedule. + /// > **NOTE** AzureRM provides this stand-alone azure.automation.JobSchedule and an inlined `job_schedule` property in azurerm_runbook to manage the job schedules. You can only make use of one of these methods to manage a job schedule. /// /// ## Example Usage /// diff --git a/sdk/dotnet/Automation/RunBook.cs b/sdk/dotnet/Automation/RunBook.cs index 860556e41e..f3fcd32454 100644 --- a/sdk/dotnet/Automation/RunBook.cs +++ b/sdk/dotnet/Automation/RunBook.cs @@ -95,7 +95,7 @@ public partial class RunBook : global::Pulumi.CustomResource /// /// One or more `job_schedule` block as defined below. /// - /// > **NOTE** AzureRM provides a stand-alone azure.automation.JobSchedule and this inlined `job_schdule` property to manage the job schedules. At this time you should choose one of them to manage the job schedule resources. + /// > **NOTE** AzureRM provides a stand-alone azure.automation.JobSchedule and this inlined `job_schedule` property to manage the job schedules. At this time you should choose one of them to manage the job schedule resources. /// [Output("jobSchedules")] public Output> JobSchedules { get; private set; } = null!; @@ -232,7 +232,7 @@ public sealed class RunBookArgs : global::Pulumi.ResourceArgs /// /// One or more `job_schedule` block as defined below. /// - /// > **NOTE** AzureRM provides a stand-alone azure.automation.JobSchedule and this inlined `job_schdule` property to manage the job schedules. At this time you should choose one of them to manage the job schedule resources. + /// > **NOTE** AzureRM provides a stand-alone azure.automation.JobSchedule and this inlined `job_schedule` property to manage the job schedules. At this time you should choose one of them to manage the job schedule resources. /// public InputList JobSchedules { @@ -340,7 +340,7 @@ public sealed class RunBookState : global::Pulumi.ResourceArgs /// /// One or more `job_schedule` block as defined below. /// - /// > **NOTE** AzureRM provides a stand-alone azure.automation.JobSchedule and this inlined `job_schdule` property to manage the job schedules. At this time you should choose one of them to manage the job schedule resources. + /// > **NOTE** AzureRM provides a stand-alone azure.automation.JobSchedule and this inlined `job_schedule` property to manage the job schedules. At this time you should choose one of them to manage the job schedule resources. /// public InputList JobSchedules { diff --git a/sdk/dotnet/Cognitive/GetAccount.cs b/sdk/dotnet/Cognitive/GetAccount.cs index 6422220ca0..556d0e72d0 100644 --- a/sdk/dotnet/Cognitive/GetAccount.cs +++ b/sdk/dotnet/Cognitive/GetAccount.cs @@ -156,6 +156,10 @@ public sealed class GetAccountResult /// public readonly string Kind; /// + /// Whether local authentication methods is enabled for the Cognitive Account. + /// + public readonly bool LocalAuthEnabled; + /// /// The Azure location where the Cognitive Services Account exists /// public readonly string Location; @@ -192,6 +196,8 @@ private GetAccountResult( string kind, + bool localAuthEnabled, + string location, string name, @@ -212,6 +218,7 @@ private GetAccountResult( Id = id; Identities = identities; Kind = kind; + LocalAuthEnabled = localAuthEnabled; Location = location; Name = name; PrimaryAccessKey = primaryAccessKey; diff --git a/sdk/dotnet/Communication/EmailService.cs b/sdk/dotnet/Communication/EmailService.cs index f3bcfe1b4e..4de0d234fd 100644 --- a/sdk/dotnet/Communication/EmailService.cs +++ b/sdk/dotnet/Communication/EmailService.cs @@ -50,7 +50,7 @@ namespace Pulumi.Azure.Communication public partial class EmailService : global::Pulumi.CustomResource { /// - /// The location where the Email Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` and `United States`. Changing this forces a new Email Communication Service to be created. + /// The location where the Email Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` `usgov` and `United States`. Changing this forces a new Email Communication Service to be created. /// [Output("dataLocation")] public Output DataLocation { get; private set; } = null!; @@ -120,7 +120,7 @@ public static EmailService Get(string name, Input id, EmailServiceState? public sealed class EmailServiceArgs : global::Pulumi.ResourceArgs { /// - /// The location where the Email Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` and `United States`. Changing this forces a new Email Communication Service to be created. + /// The location where the Email Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` `usgov` and `United States`. Changing this forces a new Email Communication Service to be created. /// [Input("dataLocation", required: true)] public Input DataLocation { get; set; } = null!; @@ -158,7 +158,7 @@ public EmailServiceArgs() public sealed class EmailServiceState : global::Pulumi.ResourceArgs { /// - /// The location where the Email Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` and `United States`. Changing this forces a new Email Communication Service to be created. + /// The location where the Email Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` `usgov` and `United States`. Changing this forces a new Email Communication Service to be created. /// [Input("dataLocation")] public Input? DataLocation { get; set; } diff --git a/sdk/dotnet/Communication/Service.cs b/sdk/dotnet/Communication/Service.cs index 9663c623d3..c5ca92e867 100644 --- a/sdk/dotnet/Communication/Service.cs +++ b/sdk/dotnet/Communication/Service.cs @@ -50,7 +50,7 @@ namespace Pulumi.Azure.Communication public partial class Service : global::Pulumi.CustomResource { /// - /// The location where the Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` and `United States`. Defaults to `United States`. Changing this forces a new Communication Service to be created. + /// The location where the Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK`, `usgov` and `United States`. Defaults to `United States`. Changing this forces a new Communication Service to be created. /// [Output("dataLocation")] public Output DataLocation { get; private set; } = null!; @@ -151,7 +151,7 @@ public static Service Get(string name, Input id, ServiceState? state = n public sealed class ServiceArgs : global::Pulumi.ResourceArgs { /// - /// The location where the Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` and `United States`. Defaults to `United States`. Changing this forces a new Communication Service to be created. + /// The location where the Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK`, `usgov` and `United States`. Defaults to `United States`. Changing this forces a new Communication Service to be created. /// [Input("dataLocation")] public Input? DataLocation { get; set; } @@ -189,7 +189,7 @@ public ServiceArgs() public sealed class ServiceState : global::Pulumi.ResourceArgs { /// - /// The location where the Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` and `United States`. Defaults to `United States`. Changing this forces a new Communication Service to be created. + /// The location where the Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK`, `usgov` and `United States`. Defaults to `United States`. Changing this forces a new Communication Service to be created. /// [Input("dataLocation")] public Input? DataLocation { get; set; } diff --git a/sdk/dotnet/Compute/BastionHost.cs b/sdk/dotnet/Compute/BastionHost.cs index be275841df..66c0217f6a 100644 --- a/sdk/dotnet/Compute/BastionHost.cs +++ b/sdk/dotnet/Compute/BastionHost.cs @@ -200,6 +200,12 @@ public partial class BastionHost : global::Pulumi.CustomResource [Output("virtualNetworkId")] public Output VirtualNetworkId { get; private set; } = null!; + /// + /// Specifies a list of Availability Zones in which this Public Bastion Host should be located. Changing this forces a new resource to be created. + /// + [Output("zones")] + public Output> Zones { get; private set; } = null!; + /// /// Create a BastionHost resource with the given unique name, arguments, and options. @@ -358,6 +364,18 @@ public InputMap Tags [Input("virtualNetworkId")] public Input? VirtualNetworkId { get; set; } + [Input("zones")] + private InputList? _zones; + + /// + /// Specifies a list of Availability Zones in which this Public Bastion Host should be located. Changing this forces a new resource to be created. + /// + public InputList Zones + { + get => _zones ?? (_zones = new InputList()); + set => _zones = value; + } + public BastionHostArgs() { } @@ -484,6 +502,18 @@ public InputMap Tags [Input("virtualNetworkId")] public Input? VirtualNetworkId { get; set; } + [Input("zones")] + private InputList? _zones; + + /// + /// Specifies a list of Availability Zones in which this Public Bastion Host should be located. Changing this forces a new resource to be created. + /// + public InputList Zones + { + get => _zones ?? (_zones = new InputList()); + set => _zones = value; + } + public BastionHostState() { } diff --git a/sdk/dotnet/Compute/GetBastionHost.cs b/sdk/dotnet/Compute/GetBastionHost.cs index bf513d8fb4..f19aeb7582 100644 --- a/sdk/dotnet/Compute/GetBastionHost.cs +++ b/sdk/dotnet/Compute/GetBastionHost.cs @@ -172,6 +172,10 @@ public sealed class GetBastionHostResult /// Is Tunneling feature enabled for the Bastion Host. /// public readonly bool TunnelingEnabled; + /// + /// A list of Availability Zones in which this Bastion Host is located. + /// + public readonly ImmutableArray Zones; [OutputConstructor] private GetBastionHostResult( @@ -203,7 +207,9 @@ private GetBastionHostResult( ImmutableDictionary tags, - bool tunnelingEnabled) + bool tunnelingEnabled, + + ImmutableArray zones) { CopyPasteEnabled = copyPasteEnabled; DnsName = dnsName; @@ -220,6 +226,7 @@ private GetBastionHostResult( Sku = sku; Tags = tags; TunnelingEnabled = tunnelingEnabled; + Zones = zones; } } } diff --git a/sdk/dotnet/Config/Config.cs b/sdk/dotnet/Config/Config.cs index a37a6ed6e4..df07b7571b 100644 --- a/sdk/dotnet/Config/Config.cs +++ b/sdk/dotnet/Config/Config.cs @@ -342,6 +342,7 @@ public class Features public Pulumi.Azure.Config.Types.FeaturesLogAnalyticsWorkspace? LogAnalyticsWorkspace { get; set; } = null!; public Pulumi.Azure.Config.Types.FeaturesMachineLearning? MachineLearning { get; set; } = null!; public Pulumi.Azure.Config.Types.FeaturesManagedDisk? ManagedDisk { get; set; } = null!; + public Pulumi.Azure.Config.Types.FeaturesNetapp? Netapp { get; set; } = null!; public Pulumi.Azure.Config.Types.FeaturesPostgresqlFlexibleServer? PostgresqlFlexibleServer { get; set; } = null!; public Pulumi.Azure.Config.Types.FeaturesRecoveryService? RecoveryService { get; set; } = null!; public Pulumi.Azure.Config.Types.FeaturesRecoveryServicesVaults? RecoveryServicesVaults { get; set; } = null!; @@ -438,6 +439,18 @@ public class FeaturesManagedDisk public bool? ExpandWithoutDowntime { get; set; } } + public class FeaturesNetapp + { + /// + /// When enabled, backups will be deleted when the `azure.netapp.BackupVault` resource is destroyed + /// + public bool? DeleteBackupsOnBackupVaultDestroy { get; set; } + /// + /// When enabled, the volume will not be destroyed, safeguarding from severe data loss + /// + public bool? PreventVolumeDestruction { get; set; } + } + public class FeaturesPostgresqlFlexibleServer { public bool? RestartServerOnConfigurationValueChange { get; set; } diff --git a/sdk/dotnet/FluidRelay/Server.cs b/sdk/dotnet/FluidRelay/Server.cs index c4edd8d364..982f5050b4 100644 --- a/sdk/dotnet/FluidRelay/Server.cs +++ b/sdk/dotnet/FluidRelay/Server.cs @@ -49,6 +49,9 @@ namespace Pulumi.Azure.FluidRelay [AzureResourceType("azure:fluidrelay/server:Server")] public partial class Server : global::Pulumi.CustomResource { + /// + /// A `customer_managed_key` block as defined below. Changing this forces a new resource to be created. + /// [Output("customerManagedKey")] public Output CustomerManagedKey { get; private set; } = null!; @@ -175,6 +178,9 @@ public static Server Get(string name, Input id, ServerState? state = nul public sealed class ServerArgs : global::Pulumi.ResourceArgs { + /// + /// A `customer_managed_key` block as defined below. Changing this forces a new resource to be created. + /// [Input("customerManagedKey")] public Input? CustomerManagedKey { get; set; } @@ -228,6 +234,9 @@ public ServerArgs() public sealed class ServerState : global::Pulumi.ResourceArgs { + /// + /// A `customer_managed_key` block as defined below. Changing this forces a new resource to be created. + /// [Input("customerManagedKey")] public Input? CustomerManagedKey { get; set; } diff --git a/sdk/dotnet/Inputs/ProviderFeaturesArgs.cs b/sdk/dotnet/Inputs/ProviderFeaturesArgs.cs index f1102611e6..e792eb02f8 100644 --- a/sdk/dotnet/Inputs/ProviderFeaturesArgs.cs +++ b/sdk/dotnet/Inputs/ProviderFeaturesArgs.cs @@ -36,6 +36,9 @@ public sealed class ProviderFeaturesArgs : global::Pulumi.ResourceArgs [Input("managedDisk")] public Input? ManagedDisk { get; set; } + [Input("netapp")] + public Input? Netapp { get; set; } + [Input("postgresqlFlexibleServer")] public Input? PostgresqlFlexibleServer { get; set; } diff --git a/sdk/dotnet/Inputs/ProviderFeaturesNetappArgs.cs b/sdk/dotnet/Inputs/ProviderFeaturesNetappArgs.cs new file mode 100644 index 0000000000..0c28a1eec8 --- /dev/null +++ b/sdk/dotnet/Inputs/ProviderFeaturesNetappArgs.cs @@ -0,0 +1,32 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Azure.Inputs +{ + + public sealed class ProviderFeaturesNetappArgs : global::Pulumi.ResourceArgs + { + /// + /// When enabled, backups will be deleted when the `azure.netapp.BackupVault` resource is destroyed + /// + [Input("deleteBackupsOnBackupVaultDestroy")] + public Input? DeleteBackupsOnBackupVaultDestroy { get; set; } + + /// + /// When enabled, the volume will not be destroyed, safeguarding from severe data loss + /// + [Input("preventVolumeDestruction")] + public Input? PreventVolumeDestruction { get; set; } + + public ProviderFeaturesNetappArgs() + { + } + public static new ProviderFeaturesNetappArgs Empty => new ProviderFeaturesNetappArgs(); + } +} diff --git a/sdk/dotnet/KeyVault/GetManagedHardwareSecurityModuleKey.cs b/sdk/dotnet/KeyVault/GetManagedHardwareSecurityModuleKey.cs new file mode 100644 index 0000000000..fd592dbd64 --- /dev/null +++ b/sdk/dotnet/KeyVault/GetManagedHardwareSecurityModuleKey.cs @@ -0,0 +1,205 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Azure.KeyVault +{ + public static class GetManagedHardwareSecurityModuleKey + { + /// + /// Use this data source to access information about an existing Managed Hardware Security Module Key. + /// + /// > **Note:** All arguments including the secret value will be stored in the raw state as plain-text. + /// [Read more about sensitive data in state](https://www.terraform.io/docs/state/sensitive-data.html). + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Azure = Pulumi.Azure; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = Azure.KeyVault.GetManagedHardwareSecurityModuleKey.Invoke(new() + /// { + /// ManagedHsmId = exampleAzurermKeyVaultManagedHardwareSecurityModule.Id, + /// Name = exampleAzurermKeyVaultManagedHardwareSecurityModuleKey.Name, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["hsm-key-vesrion"] = example.Apply(getManagedHardwareSecurityModuleKeyResult => getManagedHardwareSecurityModuleKeyResult.Version), + /// }; + /// }); + /// ``` + /// + public static Task InvokeAsync(GetManagedHardwareSecurityModuleKeyArgs args, InvokeOptions? options = null) + => global::Pulumi.Deployment.Instance.InvokeAsync("azure:keyvault/getManagedHardwareSecurityModuleKey:getManagedHardwareSecurityModuleKey", args ?? new GetManagedHardwareSecurityModuleKeyArgs(), options.WithDefaults()); + + /// + /// Use this data source to access information about an existing Managed Hardware Security Module Key. + /// + /// > **Note:** All arguments including the secret value will be stored in the raw state as plain-text. + /// [Read more about sensitive data in state](https://www.terraform.io/docs/state/sensitive-data.html). + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Azure = Pulumi.Azure; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = Azure.KeyVault.GetManagedHardwareSecurityModuleKey.Invoke(new() + /// { + /// ManagedHsmId = exampleAzurermKeyVaultManagedHardwareSecurityModule.Id, + /// Name = exampleAzurermKeyVaultManagedHardwareSecurityModuleKey.Name, + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["hsm-key-vesrion"] = example.Apply(getManagedHardwareSecurityModuleKeyResult => getManagedHardwareSecurityModuleKeyResult.Version), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetManagedHardwareSecurityModuleKeyInvokeArgs args, InvokeOptions? options = null) + => global::Pulumi.Deployment.Instance.Invoke("azure:keyvault/getManagedHardwareSecurityModuleKey:getManagedHardwareSecurityModuleKey", args ?? new GetManagedHardwareSecurityModuleKeyInvokeArgs(), options.WithDefaults()); + } + + + public sealed class GetManagedHardwareSecurityModuleKeyArgs : global::Pulumi.InvokeArgs + { + /// + /// Specifies the ID of the Managed Hardware Security Module instance where the Secret resides, available on the `azure.keyvault.ManagedHardwareSecurityModuleKey` Data Source / Resource. + /// + /// **NOTE:** The Managed Hardware Security Module must be in the same subscription as the provider. If the Managed Hardware Security Module is in another subscription, you must create an aliased provider for that subscription. + /// + [Input("managedHsmId", required: true)] + public string ManagedHsmId { get; set; } = null!; + + /// + /// Specifies the name of the Managed Hardware Security Module Key. + /// + [Input("name", required: true)] + public string Name { get; set; } = null!; + + public GetManagedHardwareSecurityModuleKeyArgs() + { + } + public static new GetManagedHardwareSecurityModuleKeyArgs Empty => new GetManagedHardwareSecurityModuleKeyArgs(); + } + + public sealed class GetManagedHardwareSecurityModuleKeyInvokeArgs : global::Pulumi.InvokeArgs + { + /// + /// Specifies the ID of the Managed Hardware Security Module instance where the Secret resides, available on the `azure.keyvault.ManagedHardwareSecurityModuleKey` Data Source / Resource. + /// + /// **NOTE:** The Managed Hardware Security Module must be in the same subscription as the provider. If the Managed Hardware Security Module is in another subscription, you must create an aliased provider for that subscription. + /// + [Input("managedHsmId", required: true)] + public Input ManagedHsmId { get; set; } = null!; + + /// + /// Specifies the name of the Managed Hardware Security Module Key. + /// + [Input("name", required: true)] + public Input Name { get; set; } = null!; + + public GetManagedHardwareSecurityModuleKeyInvokeArgs() + { + } + public static new GetManagedHardwareSecurityModuleKeyInvokeArgs Empty => new GetManagedHardwareSecurityModuleKeyInvokeArgs(); + } + + + [OutputType] + public sealed class GetManagedHardwareSecurityModuleKeyResult + { + /// + /// The EC Curve name of this Managed Hardware Security Module Key. + /// + public readonly string Curve; + public readonly string ExpirationDate; + /// + /// The provider-assigned unique ID for this managed resource. + /// + public readonly string Id; + /// + /// A list of JSON web key operations assigned to this Managed Hardware Security Module Key + /// + public readonly ImmutableArray KeyOpts; + /// + /// Specifies the Size of this Managed Hardware Security Module Key. + /// + public readonly int KeySize; + /// + /// Specifies the Key Type of this Managed Hardware Security Module Key + /// + public readonly string KeyType; + public readonly string ManagedHsmId; + public readonly string Name; + public readonly string NotBeforeDate; + /// + /// A mapping of tags assigned to this Managed Hardware Security Module Key. + /// + public readonly ImmutableDictionary Tags; + /// + /// The current version of the Managed Hardware Security Module Key. + /// + public readonly string Version; + /// + /// The versioned ID of the Managed Hardware Security Module Key. + /// + public readonly string VersionedId; + + [OutputConstructor] + private GetManagedHardwareSecurityModuleKeyResult( + string curve, + + string expirationDate, + + string id, + + ImmutableArray keyOpts, + + int keySize, + + string keyType, + + string managedHsmId, + + string name, + + string notBeforeDate, + + ImmutableDictionary tags, + + string version, + + string versionedId) + { + Curve = curve; + ExpirationDate = expirationDate; + Id = id; + KeyOpts = keyOpts; + KeySize = keySize; + KeyType = keyType; + ManagedHsmId = managedHsmId; + Name = name; + NotBeforeDate = notBeforeDate; + Tags = tags; + Version = version; + VersionedId = versionedId; + } + } +} diff --git a/sdk/dotnet/MSSql/Inputs/DatabaseLongTermRetentionPolicyArgs.cs b/sdk/dotnet/MSSql/Inputs/DatabaseLongTermRetentionPolicyArgs.cs index eea3dcef5c..3fd7ecfe9b 100644 --- a/sdk/dotnet/MSSql/Inputs/DatabaseLongTermRetentionPolicyArgs.cs +++ b/sdk/dotnet/MSSql/Inputs/DatabaseLongTermRetentionPolicyArgs.cs @@ -12,8 +12,11 @@ namespace Pulumi.Azure.MSSql.Inputs public sealed class DatabaseLongTermRetentionPolicyArgs : global::Pulumi.ResourceArgs { + [Input("immutableBackupsEnabled")] + public Input? ImmutableBackupsEnabled { get; set; } + /// - /// The monthly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 120 months. e.g. `P1Y`, `P1M`, `P4W` or `P30D`. + /// The monthly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 120 months. e.g. `P1Y`, `P1M`, `P4W` or `P30D`. Defaults to `PT0S`. /// [Input("monthlyRetention")] public Input? MonthlyRetention { get; set; } @@ -25,13 +28,13 @@ public sealed class DatabaseLongTermRetentionPolicyArgs : global::Pulumi.Resourc public Input? WeekOfYear { get; set; } /// - /// The weekly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 520 weeks. e.g. `P1Y`, `P1M`, `P1W` or `P7D`. + /// The weekly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 520 weeks. e.g. `P1Y`, `P1M`, `P1W` or `P7D`. Defaults to `PT0S`. /// [Input("weeklyRetention")] public Input? WeeklyRetention { get; set; } /// - /// The yearly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 10 years. e.g. `P1Y`, `P12M`, `P52W` or `P365D`. + /// The yearly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 10 years. e.g. `P1Y`, `P12M`, `P52W` or `P365D`. Defaults to `PT0S`. /// [Input("yearlyRetention")] public Input? YearlyRetention { get; set; } diff --git a/sdk/dotnet/MSSql/Inputs/DatabaseLongTermRetentionPolicyGetArgs.cs b/sdk/dotnet/MSSql/Inputs/DatabaseLongTermRetentionPolicyGetArgs.cs index e8d4ca1514..2f5a2ebd47 100644 --- a/sdk/dotnet/MSSql/Inputs/DatabaseLongTermRetentionPolicyGetArgs.cs +++ b/sdk/dotnet/MSSql/Inputs/DatabaseLongTermRetentionPolicyGetArgs.cs @@ -12,8 +12,11 @@ namespace Pulumi.Azure.MSSql.Inputs public sealed class DatabaseLongTermRetentionPolicyGetArgs : global::Pulumi.ResourceArgs { + [Input("immutableBackupsEnabled")] + public Input? ImmutableBackupsEnabled { get; set; } + /// - /// The monthly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 120 months. e.g. `P1Y`, `P1M`, `P4W` or `P30D`. + /// The monthly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 120 months. e.g. `P1Y`, `P1M`, `P4W` or `P30D`. Defaults to `PT0S`. /// [Input("monthlyRetention")] public Input? MonthlyRetention { get; set; } @@ -25,13 +28,13 @@ public sealed class DatabaseLongTermRetentionPolicyGetArgs : global::Pulumi.Reso public Input? WeekOfYear { get; set; } /// - /// The weekly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 520 weeks. e.g. `P1Y`, `P1M`, `P1W` or `P7D`. + /// The weekly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 520 weeks. e.g. `P1Y`, `P1M`, `P1W` or `P7D`. Defaults to `PT0S`. /// [Input("weeklyRetention")] public Input? WeeklyRetention { get; set; } /// - /// The yearly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 10 years. e.g. `P1Y`, `P12M`, `P52W` or `P365D`. + /// The yearly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 10 years. e.g. `P1Y`, `P12M`, `P52W` or `P365D`. Defaults to `PT0S`. /// [Input("yearlyRetention")] public Input? YearlyRetention { get; set; } diff --git a/sdk/dotnet/MSSql/Inputs/ManagedDatabaseLongTermRetentionPolicyArgs.cs b/sdk/dotnet/MSSql/Inputs/ManagedDatabaseLongTermRetentionPolicyArgs.cs index 2cdedd0235..39d8f7bc63 100644 --- a/sdk/dotnet/MSSql/Inputs/ManagedDatabaseLongTermRetentionPolicyArgs.cs +++ b/sdk/dotnet/MSSql/Inputs/ManagedDatabaseLongTermRetentionPolicyArgs.cs @@ -12,8 +12,11 @@ namespace Pulumi.Azure.MSSql.Inputs public sealed class ManagedDatabaseLongTermRetentionPolicyArgs : global::Pulumi.ResourceArgs { + [Input("immutableBackupsEnabled")] + public Input? ImmutableBackupsEnabled { get; set; } + /// - /// The monthly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 120 months. e.g. `P1Y`, `P1M`, `P4W` or `P30D`. + /// The monthly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 120 months. e.g. `P1Y`, `P1M`, `P4W` or `P30D`. Defaults to `PT0S`. /// [Input("monthlyRetention")] public Input? MonthlyRetention { get; set; } @@ -25,13 +28,13 @@ public sealed class ManagedDatabaseLongTermRetentionPolicyArgs : global::Pulumi. public Input? WeekOfYear { get; set; } /// - /// The weekly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 520 weeks. e.g. `P1Y`, `P1M`, `P1W` or `P7D`. + /// The weekly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 520 weeks. e.g. `P1Y`, `P1M`, `P1W` or `P7D`. Defaults to `PT0S`. /// [Input("weeklyRetention")] public Input? WeeklyRetention { get; set; } /// - /// The yearly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 10 years. e.g. `P1Y`, `P12M`, `P52W` or `P365D`. + /// The yearly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 10 years. e.g. `P1Y`, `P12M`, `P52W` or `P365D`. Defaults to `PT0S`. /// [Input("yearlyRetention")] public Input? YearlyRetention { get; set; } diff --git a/sdk/dotnet/MSSql/Inputs/ManagedDatabaseLongTermRetentionPolicyGetArgs.cs b/sdk/dotnet/MSSql/Inputs/ManagedDatabaseLongTermRetentionPolicyGetArgs.cs index 44df9cc268..be30327612 100644 --- a/sdk/dotnet/MSSql/Inputs/ManagedDatabaseLongTermRetentionPolicyGetArgs.cs +++ b/sdk/dotnet/MSSql/Inputs/ManagedDatabaseLongTermRetentionPolicyGetArgs.cs @@ -12,8 +12,11 @@ namespace Pulumi.Azure.MSSql.Inputs public sealed class ManagedDatabaseLongTermRetentionPolicyGetArgs : global::Pulumi.ResourceArgs { + [Input("immutableBackupsEnabled")] + public Input? ImmutableBackupsEnabled { get; set; } + /// - /// The monthly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 120 months. e.g. `P1Y`, `P1M`, `P4W` or `P30D`. + /// The monthly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 120 months. e.g. `P1Y`, `P1M`, `P4W` or `P30D`. Defaults to `PT0S`. /// [Input("monthlyRetention")] public Input? MonthlyRetention { get; set; } @@ -25,13 +28,13 @@ public sealed class ManagedDatabaseLongTermRetentionPolicyGetArgs : global::Pulu public Input? WeekOfYear { get; set; } /// - /// The weekly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 520 weeks. e.g. `P1Y`, `P1M`, `P1W` or `P7D`. + /// The weekly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 520 weeks. e.g. `P1Y`, `P1M`, `P1W` or `P7D`. Defaults to `PT0S`. /// [Input("weeklyRetention")] public Input? WeeklyRetention { get; set; } /// - /// The yearly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 10 years. e.g. `P1Y`, `P12M`, `P52W` or `P365D`. + /// The yearly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 10 years. e.g. `P1Y`, `P12M`, `P52W` or `P365D`. Defaults to `PT0S`. /// [Input("yearlyRetention")] public Input? YearlyRetention { get; set; } diff --git a/sdk/dotnet/MSSql/Outputs/DatabaseLongTermRetentionPolicy.cs b/sdk/dotnet/MSSql/Outputs/DatabaseLongTermRetentionPolicy.cs index ae1a65571d..685dae6a72 100644 --- a/sdk/dotnet/MSSql/Outputs/DatabaseLongTermRetentionPolicy.cs +++ b/sdk/dotnet/MSSql/Outputs/DatabaseLongTermRetentionPolicy.cs @@ -13,8 +13,9 @@ namespace Pulumi.Azure.MSSql.Outputs [OutputType] public sealed class DatabaseLongTermRetentionPolicy { + public readonly bool? ImmutableBackupsEnabled; /// - /// The monthly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 120 months. e.g. `P1Y`, `P1M`, `P4W` or `P30D`. + /// The monthly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 120 months. e.g. `P1Y`, `P1M`, `P4W` or `P30D`. Defaults to `PT0S`. /// public readonly string? MonthlyRetention; /// @@ -22,16 +23,18 @@ public sealed class DatabaseLongTermRetentionPolicy /// public readonly int? WeekOfYear; /// - /// The weekly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 520 weeks. e.g. `P1Y`, `P1M`, `P1W` or `P7D`. + /// The weekly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 520 weeks. e.g. `P1Y`, `P1M`, `P1W` or `P7D`. Defaults to `PT0S`. /// public readonly string? WeeklyRetention; /// - /// The yearly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 10 years. e.g. `P1Y`, `P12M`, `P52W` or `P365D`. + /// The yearly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 10 years. e.g. `P1Y`, `P12M`, `P52W` or `P365D`. Defaults to `PT0S`. /// public readonly string? YearlyRetention; [OutputConstructor] private DatabaseLongTermRetentionPolicy( + bool? immutableBackupsEnabled, + string? monthlyRetention, int? weekOfYear, @@ -40,6 +43,7 @@ private DatabaseLongTermRetentionPolicy( string? yearlyRetention) { + ImmutableBackupsEnabled = immutableBackupsEnabled; MonthlyRetention = monthlyRetention; WeekOfYear = weekOfYear; WeeklyRetention = weeklyRetention; diff --git a/sdk/dotnet/MSSql/Outputs/ManagedDatabaseLongTermRetentionPolicy.cs b/sdk/dotnet/MSSql/Outputs/ManagedDatabaseLongTermRetentionPolicy.cs index 8486cdf326..53ae29d829 100644 --- a/sdk/dotnet/MSSql/Outputs/ManagedDatabaseLongTermRetentionPolicy.cs +++ b/sdk/dotnet/MSSql/Outputs/ManagedDatabaseLongTermRetentionPolicy.cs @@ -13,8 +13,9 @@ namespace Pulumi.Azure.MSSql.Outputs [OutputType] public sealed class ManagedDatabaseLongTermRetentionPolicy { + public readonly bool? ImmutableBackupsEnabled; /// - /// The monthly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 120 months. e.g. `P1Y`, `P1M`, `P4W` or `P30D`. + /// The monthly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 120 months. e.g. `P1Y`, `P1M`, `P4W` or `P30D`. Defaults to `PT0S`. /// public readonly string? MonthlyRetention; /// @@ -22,16 +23,18 @@ public sealed class ManagedDatabaseLongTermRetentionPolicy /// public readonly int? WeekOfYear; /// - /// The weekly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 520 weeks. e.g. `P1Y`, `P1M`, `P1W` or `P7D`. + /// The weekly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 520 weeks. e.g. `P1Y`, `P1M`, `P1W` or `P7D`. Defaults to `PT0S`. /// public readonly string? WeeklyRetention; /// - /// The yearly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 10 years. e.g. `P1Y`, `P12M`, `P52W` or `P365D`. + /// The yearly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 10 years. e.g. `P1Y`, `P12M`, `P52W` or `P365D`. Defaults to `PT0S`. /// public readonly string? YearlyRetention; [OutputConstructor] private ManagedDatabaseLongTermRetentionPolicy( + bool? immutableBackupsEnabled, + string? monthlyRetention, int? weekOfYear, @@ -40,6 +43,7 @@ private ManagedDatabaseLongTermRetentionPolicy( string? yearlyRetention) { + ImmutableBackupsEnabled = immutableBackupsEnabled; MonthlyRetention = monthlyRetention; WeekOfYear = weekOfYear; WeeklyRetention = weeklyRetention; diff --git a/sdk/dotnet/NetApp/BackupPolicy.cs b/sdk/dotnet/NetApp/BackupPolicy.cs new file mode 100644 index 0000000000..3b703a0237 --- /dev/null +++ b/sdk/dotnet/NetApp/BackupPolicy.cs @@ -0,0 +1,300 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Azure.NetApp +{ + /// + /// Manages a NetApp Backup Policy. + /// + /// ## NetApp Backup Policy Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Azure = Pulumi.Azure; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = new Azure.Core.ResourceGroup("example", new() + /// { + /// Name = "example-resources", + /// Location = "West Europe", + /// }); + /// + /// var exampleAccount = new Azure.NetApp.Account("example", new() + /// { + /// Name = "example-netappaccount", + /// Location = example.Location, + /// ResourceGroupName = example.Name, + /// }); + /// + /// var exampleBackupPolicy = new Azure.NetApp.BackupPolicy("example", new() + /// { + /// Name = "example-netappbackuppolicy", + /// ResourceGroupName = example.Name, + /// Location = example.Location, + /// AccountName = exampleAccount.Name, + /// Enabled = true, + /// }); + /// + /// }); + /// ``` + /// + /// ## Import + /// + /// NetApp Backup Policy can be imported using the `resource id`, e.g. + /// + /// ```sh + /// $ pulumi import azure:netapp/backupPolicy:BackupPolicy example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.NetApp/netAppAccounts/account1/backupPolicies/backuppolicy1 + /// ``` + /// + [AzureResourceType("azure:netapp/backupPolicy:BackupPolicy")] + public partial class BackupPolicy : global::Pulumi.CustomResource + { + /// + /// The name of the NetApp account in which the NetApp Policy should be created under. Changing this forces a new resource to be created. + /// + [Output("accountName")] + public Output AccountName { get; private set; } = null!; + + /// + /// Provides the number of daily backups to keep, defaults to `2` which is the minimum, maximum is 1019. + /// + [Output("dailyBackupsToKeep")] + public Output DailyBackupsToKeep { get; private set; } = null!; + + /// + /// Whether the Backup Policy is enabled. Defaults to `true`. + /// + [Output("enabled")] + public Output Enabled { get; private set; } = null!; + + /// + /// Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. + /// + [Output("location")] + public Output Location { get; private set; } = null!; + + /// + /// Provides the number of monthly backups to keep, defaults to `1` which is the minimum, maximum is 1019. + /// + /// > **Note:** Currently, the combined (daily + weekly + monthy) retention counts cannot exceed 1019. + /// + [Output("monthlyBackupsToKeep")] + public Output MonthlyBackupsToKeep { get; private set; } = null!; + + /// + /// The name of the NetApp Backup Policy. Changing this forces a new resource to be created. + /// + [Output("name")] + public Output Name { get; private set; } = null!; + + /// + /// The name of the resource group where the NetApp Backup Policy should be created. Changing this forces a new resource to be created. + /// + [Output("resourceGroupName")] + public Output ResourceGroupName { get; private set; } = null!; + + /// + /// A mapping of tags to assign to the resource. + /// + [Output("tags")] + public Output?> Tags { get; private set; } = null!; + + /// + /// Provides the number of weekly backups to keep, defaults to `1` which is the minimum, maximum is 1019. + /// + [Output("weeklyBackupsToKeep")] + public Output WeeklyBackupsToKeep { get; private set; } = null!; + + + /// + /// Create a BackupPolicy resource with the given unique name, arguments, and options. + /// + /// + /// The unique name of the resource + /// The arguments used to populate this resource's properties + /// A bag of options that control this resource's behavior + public BackupPolicy(string name, BackupPolicyArgs args, CustomResourceOptions? options = null) + : base("azure:netapp/backupPolicy:BackupPolicy", name, args ?? new BackupPolicyArgs(), MakeResourceOptions(options, "")) + { + } + + private BackupPolicy(string name, Input id, BackupPolicyState? state = null, CustomResourceOptions? options = null) + : base("azure:netapp/backupPolicy:BackupPolicy", name, state, MakeResourceOptions(options, id)) + { + } + + private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input? id) + { + var defaultOptions = new CustomResourceOptions + { + Version = Utilities.Version, + }; + var merged = CustomResourceOptions.Merge(defaultOptions, options); + // Override the ID if one was specified for consistency with other language SDKs. + merged.Id = id ?? merged.Id; + return merged; + } + /// + /// Get an existing BackupPolicy resource's state with the given name, ID, and optional extra + /// properties used to qualify the lookup. + /// + /// + /// The unique name of the resulting resource. + /// The unique provider ID of the resource to lookup. + /// Any extra arguments used during the lookup. + /// A bag of options that control this resource's behavior + public static BackupPolicy Get(string name, Input id, BackupPolicyState? state = null, CustomResourceOptions? options = null) + { + return new BackupPolicy(name, id, state, options); + } + } + + public sealed class BackupPolicyArgs : global::Pulumi.ResourceArgs + { + /// + /// The name of the NetApp account in which the NetApp Policy should be created under. Changing this forces a new resource to be created. + /// + [Input("accountName", required: true)] + public Input AccountName { get; set; } = null!; + + /// + /// Provides the number of daily backups to keep, defaults to `2` which is the minimum, maximum is 1019. + /// + [Input("dailyBackupsToKeep")] + public Input? DailyBackupsToKeep { get; set; } + + /// + /// Whether the Backup Policy is enabled. Defaults to `true`. + /// + [Input("enabled")] + public Input? Enabled { get; set; } + + /// + /// Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. + /// + [Input("location")] + public Input? Location { get; set; } + + /// + /// Provides the number of monthly backups to keep, defaults to `1` which is the minimum, maximum is 1019. + /// + /// > **Note:** Currently, the combined (daily + weekly + monthy) retention counts cannot exceed 1019. + /// + [Input("monthlyBackupsToKeep")] + public Input? MonthlyBackupsToKeep { get; set; } + + /// + /// The name of the NetApp Backup Policy. Changing this forces a new resource to be created. + /// + [Input("name")] + public Input? Name { get; set; } + + /// + /// The name of the resource group where the NetApp Backup Policy should be created. Changing this forces a new resource to be created. + /// + [Input("resourceGroupName", required: true)] + public Input ResourceGroupName { get; set; } = null!; + + [Input("tags")] + private InputMap? _tags; + + /// + /// A mapping of tags to assign to the resource. + /// + public InputMap Tags + { + get => _tags ?? (_tags = new InputMap()); + set => _tags = value; + } + + /// + /// Provides the number of weekly backups to keep, defaults to `1` which is the minimum, maximum is 1019. + /// + [Input("weeklyBackupsToKeep")] + public Input? WeeklyBackupsToKeep { get; set; } + + public BackupPolicyArgs() + { + } + public static new BackupPolicyArgs Empty => new BackupPolicyArgs(); + } + + public sealed class BackupPolicyState : global::Pulumi.ResourceArgs + { + /// + /// The name of the NetApp account in which the NetApp Policy should be created under. Changing this forces a new resource to be created. + /// + [Input("accountName")] + public Input? AccountName { get; set; } + + /// + /// Provides the number of daily backups to keep, defaults to `2` which is the minimum, maximum is 1019. + /// + [Input("dailyBackupsToKeep")] + public Input? DailyBackupsToKeep { get; set; } + + /// + /// Whether the Backup Policy is enabled. Defaults to `true`. + /// + [Input("enabled")] + public Input? Enabled { get; set; } + + /// + /// Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. + /// + [Input("location")] + public Input? Location { get; set; } + + /// + /// Provides the number of monthly backups to keep, defaults to `1` which is the minimum, maximum is 1019. + /// + /// > **Note:** Currently, the combined (daily + weekly + monthy) retention counts cannot exceed 1019. + /// + [Input("monthlyBackupsToKeep")] + public Input? MonthlyBackupsToKeep { get; set; } + + /// + /// The name of the NetApp Backup Policy. Changing this forces a new resource to be created. + /// + [Input("name")] + public Input? Name { get; set; } + + /// + /// The name of the resource group where the NetApp Backup Policy should be created. Changing this forces a new resource to be created. + /// + [Input("resourceGroupName")] + public Input? ResourceGroupName { get; set; } + + [Input("tags")] + private InputMap? _tags; + + /// + /// A mapping of tags to assign to the resource. + /// + public InputMap Tags + { + get => _tags ?? (_tags = new InputMap()); + set => _tags = value; + } + + /// + /// Provides the number of weekly backups to keep, defaults to `1` which is the minimum, maximum is 1019. + /// + [Input("weeklyBackupsToKeep")] + public Input? WeeklyBackupsToKeep { get; set; } + + public BackupPolicyState() + { + } + public static new BackupPolicyState Empty => new BackupPolicyState(); + } +} diff --git a/sdk/dotnet/NetApp/BackupVault.cs b/sdk/dotnet/NetApp/BackupVault.cs new file mode 100644 index 0000000000..9f7796ebc2 --- /dev/null +++ b/sdk/dotnet/NetApp/BackupVault.cs @@ -0,0 +1,221 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Azure.NetApp +{ + /// + /// Manages a NetApp Backup Vault. + /// + /// ## NetApp Backup Vault Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Azure = Pulumi.Azure; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = new Azure.Core.ResourceGroup("example", new() + /// { + /// Name = "example-resources", + /// Location = "West Europe", + /// }); + /// + /// var exampleAccount = new Azure.NetApp.Account("example", new() + /// { + /// Name = "example-netappaccount", + /// Location = example.Location, + /// ResourceGroupName = example.Name, + /// }); + /// + /// var exampleBackupVault = new Azure.NetApp.BackupVault("example", new() + /// { + /// Name = "example-netappbackupvault", + /// ResourceGroupName = example.Name, + /// Location = example.Location, + /// AccountName = exampleAccount.Name, + /// }); + /// + /// }); + /// ``` + /// + /// ## Import + /// + /// NetApp Backup Vault can be imported using the `resource id`, e.g. + /// + /// ```sh + /// $ pulumi import azure:netapp/backupVault:BackupVault example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.NetApp/netAppAccounts/account1/backupVaults/backupVault1 + /// ``` + /// + [AzureResourceType("azure:netapp/backupVault:BackupVault")] + public partial class BackupVault : global::Pulumi.CustomResource + { + /// + /// The name of the NetApp account in which the NetApp Vault should be created under. Changing this forces a new resource to be created. + /// + [Output("accountName")] + public Output AccountName { get; private set; } = null!; + + /// + /// Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. + /// + [Output("location")] + public Output Location { get; private set; } = null!; + + /// + /// The name of the NetApp Backup Vault. Changing this forces a new resource to be created. + /// + [Output("name")] + public Output Name { get; private set; } = null!; + + /// + /// The name of the resource group where the NetApp Backup Vault should be created. Changing this forces a new resource to be created. + /// + [Output("resourceGroupName")] + public Output ResourceGroupName { get; private set; } = null!; + + /// + /// A mapping of tags to assign to the resource. + /// + [Output("tags")] + public Output?> Tags { get; private set; } = null!; + + + /// + /// Create a BackupVault resource with the given unique name, arguments, and options. + /// + /// + /// The unique name of the resource + /// The arguments used to populate this resource's properties + /// A bag of options that control this resource's behavior + public BackupVault(string name, BackupVaultArgs args, CustomResourceOptions? options = null) + : base("azure:netapp/backupVault:BackupVault", name, args ?? new BackupVaultArgs(), MakeResourceOptions(options, "")) + { + } + + private BackupVault(string name, Input id, BackupVaultState? state = null, CustomResourceOptions? options = null) + : base("azure:netapp/backupVault:BackupVault", name, state, MakeResourceOptions(options, id)) + { + } + + private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input? id) + { + var defaultOptions = new CustomResourceOptions + { + Version = Utilities.Version, + }; + var merged = CustomResourceOptions.Merge(defaultOptions, options); + // Override the ID if one was specified for consistency with other language SDKs. + merged.Id = id ?? merged.Id; + return merged; + } + /// + /// Get an existing BackupVault resource's state with the given name, ID, and optional extra + /// properties used to qualify the lookup. + /// + /// + /// The unique name of the resulting resource. + /// The unique provider ID of the resource to lookup. + /// Any extra arguments used during the lookup. + /// A bag of options that control this resource's behavior + public static BackupVault Get(string name, Input id, BackupVaultState? state = null, CustomResourceOptions? options = null) + { + return new BackupVault(name, id, state, options); + } + } + + public sealed class BackupVaultArgs : global::Pulumi.ResourceArgs + { + /// + /// The name of the NetApp account in which the NetApp Vault should be created under. Changing this forces a new resource to be created. + /// + [Input("accountName", required: true)] + public Input AccountName { get; set; } = null!; + + /// + /// Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. + /// + [Input("location")] + public Input? Location { get; set; } + + /// + /// The name of the NetApp Backup Vault. Changing this forces a new resource to be created. + /// + [Input("name")] + public Input? Name { get; set; } + + /// + /// The name of the resource group where the NetApp Backup Vault should be created. Changing this forces a new resource to be created. + /// + [Input("resourceGroupName", required: true)] + public Input ResourceGroupName { get; set; } = null!; + + [Input("tags")] + private InputMap? _tags; + + /// + /// A mapping of tags to assign to the resource. + /// + public InputMap Tags + { + get => _tags ?? (_tags = new InputMap()); + set => _tags = value; + } + + public BackupVaultArgs() + { + } + public static new BackupVaultArgs Empty => new BackupVaultArgs(); + } + + public sealed class BackupVaultState : global::Pulumi.ResourceArgs + { + /// + /// The name of the NetApp account in which the NetApp Vault should be created under. Changing this forces a new resource to be created. + /// + [Input("accountName")] + public Input? AccountName { get; set; } + + /// + /// Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. + /// + [Input("location")] + public Input? Location { get; set; } + + /// + /// The name of the NetApp Backup Vault. Changing this forces a new resource to be created. + /// + [Input("name")] + public Input? Name { get; set; } + + /// + /// The name of the resource group where the NetApp Backup Vault should be created. Changing this forces a new resource to be created. + /// + [Input("resourceGroupName")] + public Input? ResourceGroupName { get; set; } + + [Input("tags")] + private InputMap? _tags; + + /// + /// A mapping of tags to assign to the resource. + /// + public InputMap Tags + { + get => _tags ?? (_tags = new InputMap()); + set => _tags = value; + } + + public BackupVaultState() + { + } + public static new BackupVaultState Empty => new BackupVaultState(); + } +} diff --git a/sdk/dotnet/NetApp/GetAccountEncryption.cs b/sdk/dotnet/NetApp/GetAccountEncryption.cs index 96d4cb14d0..940ebc318b 100644 --- a/sdk/dotnet/NetApp/GetAccountEncryption.cs +++ b/sdk/dotnet/NetApp/GetAccountEncryption.cs @@ -71,30 +71,12 @@ public static Output Invoke(GetAccountEncryptionInvo public sealed class GetAccountEncryptionArgs : global::Pulumi.InvokeArgs { - /// - /// The key vault encryption key. - /// - [Input("encryptionKey")] - public string? EncryptionKey { get; set; } - /// /// The ID of the NetApp account where customer managed keys-based encryption is enabled. /// [Input("netappAccountId", required: true)] public string NetappAccountId { get; set; } = null!; - /// - /// The ID of the System Assigned Manged Identity. - /// - [Input("systemAssignedIdentityPrincipalId")] - public string? SystemAssignedIdentityPrincipalId { get; set; } - - /// - /// The ID of the User Assigned Managed Identity. - /// - [Input("userAssignedIdentityId")] - public string? UserAssignedIdentityId { get; set; } - public GetAccountEncryptionArgs() { } @@ -103,30 +85,12 @@ public GetAccountEncryptionArgs() public sealed class GetAccountEncryptionInvokeArgs : global::Pulumi.InvokeArgs { - /// - /// The key vault encryption key. - /// - [Input("encryptionKey")] - public Input? EncryptionKey { get; set; } - /// /// The ID of the NetApp account where customer managed keys-based encryption is enabled. /// [Input("netappAccountId", required: true)] public Input NetappAccountId { get; set; } = null!; - /// - /// The ID of the System Assigned Manged Identity. - /// - [Input("systemAssignedIdentityPrincipalId")] - public Input? SystemAssignedIdentityPrincipalId { get; set; } - - /// - /// The ID of the User Assigned Managed Identity. - /// - [Input("userAssignedIdentityId")] - public Input? UserAssignedIdentityId { get; set; } - public GetAccountEncryptionInvokeArgs() { } @@ -137,26 +101,26 @@ public GetAccountEncryptionInvokeArgs() [OutputType] public sealed class GetAccountEncryptionResult { - public readonly string? EncryptionKey; + public readonly string EncryptionKey; /// /// The provider-assigned unique ID for this managed resource. /// public readonly string Id; public readonly string NetappAccountId; - public readonly string? SystemAssignedIdentityPrincipalId; - public readonly string? UserAssignedIdentityId; + public readonly string SystemAssignedIdentityPrincipalId; + public readonly string UserAssignedIdentityId; [OutputConstructor] private GetAccountEncryptionResult( - string? encryptionKey, + string encryptionKey, string id, string netappAccountId, - string? systemAssignedIdentityPrincipalId, + string systemAssignedIdentityPrincipalId, - string? userAssignedIdentityId) + string userAssignedIdentityId) { EncryptionKey = encryptionKey; Id = id; diff --git a/sdk/dotnet/NetApp/GetBackupPolicy.cs b/sdk/dotnet/NetApp/GetBackupPolicy.cs new file mode 100644 index 0000000000..5ce2a83b6c --- /dev/null +++ b/sdk/dotnet/NetApp/GetBackupPolicy.cs @@ -0,0 +1,201 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Azure.NetApp +{ + public static class GetBackupPolicy + { + /// + /// Use this data source to access information about an existing NetApp Backup Vault. + /// + /// ## NetApp Backup Policy Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Azure = Pulumi.Azure; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = Azure.NetApp.GetBackupPolicy.Invoke(new() + /// { + /// ResourceGroupName = "example-resource-group", + /// AccountName = "example-netappaccount", + /// Name = "example-backuppolicy", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["backupPolicyId"] = example.Apply(getBackupPolicyResult => getBackupPolicyResult.Id), + /// }; + /// }); + /// ``` + /// + public static Task InvokeAsync(GetBackupPolicyArgs args, InvokeOptions? options = null) + => global::Pulumi.Deployment.Instance.InvokeAsync("azure:netapp/getBackupPolicy:getBackupPolicy", args ?? new GetBackupPolicyArgs(), options.WithDefaults()); + + /// + /// Use this data source to access information about an existing NetApp Backup Vault. + /// + /// ## NetApp Backup Policy Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Azure = Pulumi.Azure; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = Azure.NetApp.GetBackupPolicy.Invoke(new() + /// { + /// ResourceGroupName = "example-resource-group", + /// AccountName = "example-netappaccount", + /// Name = "example-backuppolicy", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["backupPolicyId"] = example.Apply(getBackupPolicyResult => getBackupPolicyResult.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetBackupPolicyInvokeArgs args, InvokeOptions? options = null) + => global::Pulumi.Deployment.Instance.Invoke("azure:netapp/getBackupPolicy:getBackupPolicy", args ?? new GetBackupPolicyInvokeArgs(), options.WithDefaults()); + } + + + public sealed class GetBackupPolicyArgs : global::Pulumi.InvokeArgs + { + /// + /// The name of the NetApp Account in which the NetApp Policy exists. + /// + [Input("accountName", required: true)] + public string AccountName { get; set; } = null!; + + /// + /// The name of the NetApp Backup Policy. + /// + [Input("name", required: true)] + public string Name { get; set; } = null!; + + /// + /// The name of the resource group where the NetApp Backup Policy exists. + /// + [Input("resourceGroupName", required: true)] + public string ResourceGroupName { get; set; } = null!; + + public GetBackupPolicyArgs() + { + } + public static new GetBackupPolicyArgs Empty => new GetBackupPolicyArgs(); + } + + public sealed class GetBackupPolicyInvokeArgs : global::Pulumi.InvokeArgs + { + /// + /// The name of the NetApp Account in which the NetApp Policy exists. + /// + [Input("accountName", required: true)] + public Input AccountName { get; set; } = null!; + + /// + /// The name of the NetApp Backup Policy. + /// + [Input("name", required: true)] + public Input Name { get; set; } = null!; + + /// + /// The name of the resource group where the NetApp Backup Policy exists. + /// + [Input("resourceGroupName", required: true)] + public Input ResourceGroupName { get; set; } = null!; + + public GetBackupPolicyInvokeArgs() + { + } + public static new GetBackupPolicyInvokeArgs Empty => new GetBackupPolicyInvokeArgs(); + } + + + [OutputType] + public sealed class GetBackupPolicyResult + { + /// + /// The name of the NetApp account in which the NetApp Policy exists. + /// + public readonly string AccountName; + /// + /// The number of daily backups to keep. + /// + public readonly int DailyBackupsToKeep; + /// + /// Whether the Backup Policy is enabled. + /// + public readonly bool Enabled; + /// + /// The provider-assigned unique ID for this managed resource. + /// + public readonly string Id; + /// + /// NetApp Backup Policy location. + /// + public readonly string Location; + /// + /// The number of monthly backups to keep. + /// + public readonly int MonthlyBackupsToKeep; + public readonly string Name; + public readonly string ResourceGroupName; + /// + /// List of tags assigned to the resource. + /// + public readonly ImmutableDictionary Tags; + /// + /// The number of weekly backups to keep. + /// + public readonly int WeeklyBackupsToKeep; + + [OutputConstructor] + private GetBackupPolicyResult( + string accountName, + + int dailyBackupsToKeep, + + bool enabled, + + string id, + + string location, + + int monthlyBackupsToKeep, + + string name, + + string resourceGroupName, + + ImmutableDictionary tags, + + int weeklyBackupsToKeep) + { + AccountName = accountName; + DailyBackupsToKeep = dailyBackupsToKeep; + Enabled = enabled; + Id = id; + Location = location; + MonthlyBackupsToKeep = monthlyBackupsToKeep; + Name = name; + ResourceGroupName = resourceGroupName; + Tags = tags; + WeeklyBackupsToKeep = weeklyBackupsToKeep; + } + } +} diff --git a/sdk/dotnet/NetApp/GetBackupVault.cs b/sdk/dotnet/NetApp/GetBackupVault.cs new file mode 100644 index 0000000000..176de7b292 --- /dev/null +++ b/sdk/dotnet/NetApp/GetBackupVault.cs @@ -0,0 +1,164 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Azure.NetApp +{ + public static class GetBackupVault + { + /// + /// Use this data source to access information about an existing NetApp Backup Vault. + /// + /// ## NetApp Backup Vault Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Azure = Pulumi.Azure; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = Azure.NetApp.GetBackupVault.Invoke(new() + /// { + /// ResourceGroupName = "example-resource-group", + /// AccountName = "example-netappaccount", + /// Name = "example-backupvault", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["backupVaultId"] = example.Apply(getBackupVaultResult => getBackupVaultResult.Id), + /// }; + /// }); + /// ``` + /// + public static Task InvokeAsync(GetBackupVaultArgs args, InvokeOptions? options = null) + => global::Pulumi.Deployment.Instance.InvokeAsync("azure:netapp/getBackupVault:getBackupVault", args ?? new GetBackupVaultArgs(), options.WithDefaults()); + + /// + /// Use this data source to access information about an existing NetApp Backup Vault. + /// + /// ## NetApp Backup Vault Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Azure = Pulumi.Azure; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = Azure.NetApp.GetBackupVault.Invoke(new() + /// { + /// ResourceGroupName = "example-resource-group", + /// AccountName = "example-netappaccount", + /// Name = "example-backupvault", + /// }); + /// + /// return new Dictionary<string, object?> + /// { + /// ["backupVaultId"] = example.Apply(getBackupVaultResult => getBackupVaultResult.Id), + /// }; + /// }); + /// ``` + /// + public static Output Invoke(GetBackupVaultInvokeArgs args, InvokeOptions? options = null) + => global::Pulumi.Deployment.Instance.Invoke("azure:netapp/getBackupVault:getBackupVault", args ?? new GetBackupVaultInvokeArgs(), options.WithDefaults()); + } + + + public sealed class GetBackupVaultArgs : global::Pulumi.InvokeArgs + { + /// + /// The name of the NetApp Account in which the NetApp Vault exists. + /// + [Input("accountName", required: true)] + public string AccountName { get; set; } = null!; + + /// + /// The name of the NetApp Backup Vault. + /// + [Input("name", required: true)] + public string Name { get; set; } = null!; + + /// + /// The name of the resource group where the NetApp Backup Vault exists. + /// + [Input("resourceGroupName", required: true)] + public string ResourceGroupName { get; set; } = null!; + + public GetBackupVaultArgs() + { + } + public static new GetBackupVaultArgs Empty => new GetBackupVaultArgs(); + } + + public sealed class GetBackupVaultInvokeArgs : global::Pulumi.InvokeArgs + { + /// + /// The name of the NetApp Account in which the NetApp Vault exists. + /// + [Input("accountName", required: true)] + public Input AccountName { get; set; } = null!; + + /// + /// The name of the NetApp Backup Vault. + /// + [Input("name", required: true)] + public Input Name { get; set; } = null!; + + /// + /// The name of the resource group where the NetApp Backup Vault exists. + /// + [Input("resourceGroupName", required: true)] + public Input ResourceGroupName { get; set; } = null!; + + public GetBackupVaultInvokeArgs() + { + } + public static new GetBackupVaultInvokeArgs Empty => new GetBackupVaultInvokeArgs(); + } + + + [OutputType] + public sealed class GetBackupVaultResult + { + public readonly string AccountName; + /// + /// The provider-assigned unique ID for this managed resource. + /// + public readonly string Id; + public readonly string Location; + public readonly string Name; + public readonly string ResourceGroupName; + public readonly ImmutableDictionary Tags; + + [OutputConstructor] + private GetBackupVaultResult( + string accountName, + + string id, + + string location, + + string name, + + string resourceGroupName, + + ImmutableDictionary tags) + { + AccountName = accountName; + Id = id; + Location = location; + Name = name; + ResourceGroupName = resourceGroupName; + Tags = tags; + } + } +} diff --git a/sdk/dotnet/NetApp/GetVolume.cs b/sdk/dotnet/NetApp/GetVolume.cs index 5116ffa6eb..1fa15ef19e 100644 --- a/sdk/dotnet/NetApp/GetVolume.cs +++ b/sdk/dotnet/NetApp/GetVolume.cs @@ -157,7 +157,11 @@ public sealed class GetVolumeResult { public readonly string AccountName; /// - /// Volume data protection block + /// A data protecion backup policy block + /// + public readonly ImmutableArray DataProtectionBackupPolicies; + /// + /// Volume data protection replication block /// public readonly ImmutableArray DataProtectionReplications; public readonly string EncryptionKeySource; @@ -222,6 +226,8 @@ public sealed class GetVolumeResult private GetVolumeResult( string accountName, + ImmutableArray dataProtectionBackupPolicies, + ImmutableArray dataProtectionReplications, string encryptionKeySource, @@ -261,6 +267,7 @@ private GetVolumeResult( string zone) { AccountName = accountName; + DataProtectionBackupPolicies = dataProtectionBackupPolicies; DataProtectionReplications = dataProtectionReplications; EncryptionKeySource = encryptionKeySource; Id = id; diff --git a/sdk/dotnet/NetApp/Inputs/VolumeDataProtectionBackupPolicyArgs.cs b/sdk/dotnet/NetApp/Inputs/VolumeDataProtectionBackupPolicyArgs.cs new file mode 100644 index 0000000000..ed75c3b7b8 --- /dev/null +++ b/sdk/dotnet/NetApp/Inputs/VolumeDataProtectionBackupPolicyArgs.cs @@ -0,0 +1,40 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Azure.NetApp.Inputs +{ + + public sealed class VolumeDataProtectionBackupPolicyArgs : global::Pulumi.ResourceArgs + { + /// + /// Resource ID of the backup policy to apply to the volume. + /// + [Input("backupPolicyId", required: true)] + public Input BackupPolicyId { get; set; } = null!; + + /// + /// Resource ID of the backup backup vault to associate this volume to. + /// + [Input("backupVaultId", required: true)] + public Input BackupVaultId { get; set; } = null!; + + /// + /// Enables the backup policy on the volume, defaults to `true`. + /// + /// For more information on Azure NetApp Files Backup feature please see [Understand Azure NetApp Files backup](https://learn.microsoft.com/en-us/azure/azure-netapp-files/backup-introduction) + /// + [Input("policyEnabled")] + public Input? PolicyEnabled { get; set; } + + public VolumeDataProtectionBackupPolicyArgs() + { + } + public static new VolumeDataProtectionBackupPolicyArgs Empty => new VolumeDataProtectionBackupPolicyArgs(); + } +} diff --git a/sdk/dotnet/NetApp/Inputs/VolumeDataProtectionBackupPolicyGetArgs.cs b/sdk/dotnet/NetApp/Inputs/VolumeDataProtectionBackupPolicyGetArgs.cs new file mode 100644 index 0000000000..0dbf4b4f38 --- /dev/null +++ b/sdk/dotnet/NetApp/Inputs/VolumeDataProtectionBackupPolicyGetArgs.cs @@ -0,0 +1,40 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Azure.NetApp.Inputs +{ + + public sealed class VolumeDataProtectionBackupPolicyGetArgs : global::Pulumi.ResourceArgs + { + /// + /// Resource ID of the backup policy to apply to the volume. + /// + [Input("backupPolicyId", required: true)] + public Input BackupPolicyId { get; set; } = null!; + + /// + /// Resource ID of the backup backup vault to associate this volume to. + /// + [Input("backupVaultId", required: true)] + public Input BackupVaultId { get; set; } = null!; + + /// + /// Enables the backup policy on the volume, defaults to `true`. + /// + /// For more information on Azure NetApp Files Backup feature please see [Understand Azure NetApp Files backup](https://learn.microsoft.com/en-us/azure/azure-netapp-files/backup-introduction) + /// + [Input("policyEnabled")] + public Input? PolicyEnabled { get; set; } + + public VolumeDataProtectionBackupPolicyGetArgs() + { + } + public static new VolumeDataProtectionBackupPolicyGetArgs Empty => new VolumeDataProtectionBackupPolicyGetArgs(); + } +} diff --git a/sdk/dotnet/NetApp/Outputs/GetVolumeDataProtectionBackupPolicyResult.cs b/sdk/dotnet/NetApp/Outputs/GetVolumeDataProtectionBackupPolicyResult.cs new file mode 100644 index 0000000000..903f06ed14 --- /dev/null +++ b/sdk/dotnet/NetApp/Outputs/GetVolumeDataProtectionBackupPolicyResult.cs @@ -0,0 +1,42 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Azure.NetApp.Outputs +{ + + [OutputType] + public sealed class GetVolumeDataProtectionBackupPolicyResult + { + /// + /// The Resource ID of the backup policy. + /// + public readonly string BackupPolicyId; + /// + /// The Resource ID of the backup backup vault. + /// + public readonly string BackupVaultId; + /// + /// Backup policy is enabled or not. + /// + public readonly bool PolicyEnabled; + + [OutputConstructor] + private GetVolumeDataProtectionBackupPolicyResult( + string backupPolicyId, + + string backupVaultId, + + bool policyEnabled) + { + BackupPolicyId = backupPolicyId; + BackupVaultId = backupVaultId; + PolicyEnabled = policyEnabled; + } + } +} diff --git a/sdk/dotnet/NetApp/Outputs/VolumeDataProtectionBackupPolicy.cs b/sdk/dotnet/NetApp/Outputs/VolumeDataProtectionBackupPolicy.cs new file mode 100644 index 0000000000..9658c42ff5 --- /dev/null +++ b/sdk/dotnet/NetApp/Outputs/VolumeDataProtectionBackupPolicy.cs @@ -0,0 +1,44 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Azure.NetApp.Outputs +{ + + [OutputType] + public sealed class VolumeDataProtectionBackupPolicy + { + /// + /// Resource ID of the backup policy to apply to the volume. + /// + public readonly string BackupPolicyId; + /// + /// Resource ID of the backup backup vault to associate this volume to. + /// + public readonly string BackupVaultId; + /// + /// Enables the backup policy on the volume, defaults to `true`. + /// + /// For more information on Azure NetApp Files Backup feature please see [Understand Azure NetApp Files backup](https://learn.microsoft.com/en-us/azure/azure-netapp-files/backup-introduction) + /// + public readonly bool? PolicyEnabled; + + [OutputConstructor] + private VolumeDataProtectionBackupPolicy( + string backupPolicyId, + + string backupVaultId, + + bool? policyEnabled) + { + BackupPolicyId = backupPolicyId; + BackupVaultId = backupVaultId; + PolicyEnabled = policyEnabled; + } + } +} diff --git a/sdk/dotnet/NetApp/Volume.cs b/sdk/dotnet/NetApp/Volume.cs index 5923732ec3..ed6b4bd1d4 100644 --- a/sdk/dotnet/NetApp/Volume.cs +++ b/sdk/dotnet/NetApp/Volume.cs @@ -10,6 +10,10 @@ namespace Pulumi.Azure.NetApp { /// + /// Manages a NetApp Volume. + /// + /// !>**IMPORTANT:** This resource uses a feature to prevent deletion called `prevent_volume_destruction`, defaulting to `true`. It is intentionally set to `true` to prevent the possibility of accidental data loss. The example in this page shows all possible protection options you can apply, it is using same values as the defaults. + /// /// ## Import /// /// NetApp Volumes can be imported using the `resource id`, e.g. @@ -39,6 +43,12 @@ public partial class Volume : global::Pulumi.CustomResource [Output("createFromSnapshotResourceId")] public Output CreateFromSnapshotResourceId { get; private set; } = null!; + /// + /// A `data_protection_backup_policy` block as defined below. + /// + [Output("dataProtectionBackupPolicy")] + public Output DataProtectionBackupPolicy { get; private set; } = null!; + /// /// A `data_protection_replication` block as defined below. Changing this forces a new resource to be created. /// @@ -158,7 +168,7 @@ public partial class Volume : global::Pulumi.CustomResource /// Specifies whether the .snapshot (NFS clients) or ~snapshot (SMB clients) path of a volume is visible, default value is true. /// [Output("snapshotDirectoryVisible")] - public Output SnapshotDirectoryVisible { get; private set; } = null!; + public Output SnapshotDirectoryVisible { get; private set; } = null!; /// /// The maximum Storage Quota allowed for a file system in Gigabytes. @@ -262,6 +272,12 @@ public sealed class VolumeArgs : global::Pulumi.ResourceArgs [Input("createFromSnapshotResourceId")] public Input? CreateFromSnapshotResourceId { get; set; } + /// + /// A `data_protection_backup_policy` block as defined below. + /// + [Input("dataProtectionBackupPolicy")] + public Input? DataProtectionBackupPolicy { get; set; } + /// /// A `data_protection_replication` block as defined below. Changing this forces a new resource to be created. /// @@ -459,6 +475,12 @@ public sealed class VolumeState : global::Pulumi.ResourceArgs [Input("createFromSnapshotResourceId")] public Input? CreateFromSnapshotResourceId { get; set; } + /// + /// A `data_protection_backup_policy` block as defined below. + /// + [Input("dataProtectionBackupPolicy")] + public Input? DataProtectionBackupPolicy { get; set; } + /// /// A `data_protection_replication` block as defined below. Changing this forces a new resource to be created. /// diff --git a/sdk/dotnet/Network/Inputs/ApplicationGatewayCustomErrorConfigurationArgs.cs b/sdk/dotnet/Network/Inputs/ApplicationGatewayCustomErrorConfigurationArgs.cs index dd4063a738..da9f917452 100644 --- a/sdk/dotnet/Network/Inputs/ApplicationGatewayCustomErrorConfigurationArgs.cs +++ b/sdk/dotnet/Network/Inputs/ApplicationGatewayCustomErrorConfigurationArgs.cs @@ -25,7 +25,7 @@ public sealed class ApplicationGatewayCustomErrorConfigurationArgs : global::Pul public Input? Id { get; set; } /// - /// Status code of the application gateway customer error. Possible values are `HttpStatus403` and `HttpStatus502` + /// Status code of the application gateway customer error. Possible values are `HttpStatus400`, `HttpStatus403`, `HttpStatus404`, `HttpStatus405`, `HttpStatus408`, `HttpStatus500`, `HttpStatus502`, `HttpStatus503` and `HttpStatus504` /// [Input("statusCode", required: true)] public Input StatusCode { get; set; } = null!; diff --git a/sdk/dotnet/Network/Inputs/ApplicationGatewayCustomErrorConfigurationGetArgs.cs b/sdk/dotnet/Network/Inputs/ApplicationGatewayCustomErrorConfigurationGetArgs.cs index f52e9a33eb..41ea7b3c23 100644 --- a/sdk/dotnet/Network/Inputs/ApplicationGatewayCustomErrorConfigurationGetArgs.cs +++ b/sdk/dotnet/Network/Inputs/ApplicationGatewayCustomErrorConfigurationGetArgs.cs @@ -25,7 +25,7 @@ public sealed class ApplicationGatewayCustomErrorConfigurationGetArgs : global:: public Input? Id { get; set; } /// - /// Status code of the application gateway customer error. Possible values are `HttpStatus403` and `HttpStatus502` + /// Status code of the application gateway customer error. Possible values are `HttpStatus400`, `HttpStatus403`, `HttpStatus404`, `HttpStatus405`, `HttpStatus408`, `HttpStatus500`, `HttpStatus502`, `HttpStatus503` and `HttpStatus504` /// [Input("statusCode", required: true)] public Input StatusCode { get; set; } = null!; diff --git a/sdk/dotnet/Network/Inputs/ApplicationGatewayHttpListenerCustomErrorConfigurationArgs.cs b/sdk/dotnet/Network/Inputs/ApplicationGatewayHttpListenerCustomErrorConfigurationArgs.cs index bc6a1cebba..9443835d28 100644 --- a/sdk/dotnet/Network/Inputs/ApplicationGatewayHttpListenerCustomErrorConfigurationArgs.cs +++ b/sdk/dotnet/Network/Inputs/ApplicationGatewayHttpListenerCustomErrorConfigurationArgs.cs @@ -25,7 +25,7 @@ public sealed class ApplicationGatewayHttpListenerCustomErrorConfigurationArgs : public Input? Id { get; set; } /// - /// Status code of the application gateway customer error. Possible values are `HttpStatus403` and `HttpStatus502` + /// Status code of the application gateway customer error. Possible values are `HttpStatus400`, `HttpStatus403`, `HttpStatus404`, `HttpStatus405`, `HttpStatus408`, `HttpStatus500`, `HttpStatus502`, `HttpStatus503` and `HttpStatus504` /// [Input("statusCode", required: true)] public Input StatusCode { get; set; } = null!; diff --git a/sdk/dotnet/Network/Inputs/ApplicationGatewayHttpListenerCustomErrorConfigurationGetArgs.cs b/sdk/dotnet/Network/Inputs/ApplicationGatewayHttpListenerCustomErrorConfigurationGetArgs.cs index 7afca72392..66f8599649 100644 --- a/sdk/dotnet/Network/Inputs/ApplicationGatewayHttpListenerCustomErrorConfigurationGetArgs.cs +++ b/sdk/dotnet/Network/Inputs/ApplicationGatewayHttpListenerCustomErrorConfigurationGetArgs.cs @@ -25,7 +25,7 @@ public sealed class ApplicationGatewayHttpListenerCustomErrorConfigurationGetArg public Input? Id { get; set; } /// - /// Status code of the application gateway customer error. Possible values are `HttpStatus403` and `HttpStatus502` + /// Status code of the application gateway customer error. Possible values are `HttpStatus400`, `HttpStatus403`, `HttpStatus404`, `HttpStatus405`, `HttpStatus408`, `HttpStatus500`, `HttpStatus502`, `HttpStatus503` and `HttpStatus504` /// [Input("statusCode", required: true)] public Input StatusCode { get; set; } = null!; diff --git a/sdk/dotnet/Network/Outputs/ApplicationGatewayCustomErrorConfiguration.cs b/sdk/dotnet/Network/Outputs/ApplicationGatewayCustomErrorConfiguration.cs index 77015e20f1..bc0a69d55f 100644 --- a/sdk/dotnet/Network/Outputs/ApplicationGatewayCustomErrorConfiguration.cs +++ b/sdk/dotnet/Network/Outputs/ApplicationGatewayCustomErrorConfiguration.cs @@ -22,7 +22,7 @@ public sealed class ApplicationGatewayCustomErrorConfiguration /// public readonly string? Id; /// - /// Status code of the application gateway customer error. Possible values are `HttpStatus403` and `HttpStatus502` + /// Status code of the application gateway customer error. Possible values are `HttpStatus400`, `HttpStatus403`, `HttpStatus404`, `HttpStatus405`, `HttpStatus408`, `HttpStatus500`, `HttpStatus502`, `HttpStatus503` and `HttpStatus504` /// public readonly string StatusCode; diff --git a/sdk/dotnet/Network/Outputs/ApplicationGatewayHttpListenerCustomErrorConfiguration.cs b/sdk/dotnet/Network/Outputs/ApplicationGatewayHttpListenerCustomErrorConfiguration.cs index 0a656b4892..f7b8903fd1 100644 --- a/sdk/dotnet/Network/Outputs/ApplicationGatewayHttpListenerCustomErrorConfiguration.cs +++ b/sdk/dotnet/Network/Outputs/ApplicationGatewayHttpListenerCustomErrorConfiguration.cs @@ -22,7 +22,7 @@ public sealed class ApplicationGatewayHttpListenerCustomErrorConfiguration /// public readonly string? Id; /// - /// Status code of the application gateway customer error. Possible values are `HttpStatus403` and `HttpStatus502` + /// Status code of the application gateway customer error. Possible values are `HttpStatus400`, `HttpStatus403`, `HttpStatus404`, `HttpStatus405`, `HttpStatus408`, `HttpStatus500`, `HttpStatus502`, `HttpStatus503` and `HttpStatus504` /// public readonly string StatusCode; diff --git a/sdk/dotnet/Network/TrafficManagerAzureEndpoint.cs b/sdk/dotnet/Network/TrafficManagerAzureEndpoint.cs index 49587a6062..79028ca489 100644 --- a/sdk/dotnet/Network/TrafficManagerAzureEndpoint.cs +++ b/sdk/dotnet/Network/TrafficManagerAzureEndpoint.cs @@ -116,10 +116,10 @@ public partial class TrafficManagerAzureEndpoint : global::Pulumi.CustomResource public Output Name { get; private set; } = null!; /// - /// Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. Defaults to `1`. + /// Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. /// [Output("priority")] - public Output Priority { get; private set; } = null!; + public Output Priority { get; private set; } = null!; /// /// The ID of the Traffic Manager Profile that this Azure Endpoint should be created within. Changing this forces a new resource to be created. @@ -234,7 +234,7 @@ public InputList GeoMappings public Input? Name { get; set; } /// - /// Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. Defaults to `1`. + /// Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. /// [Input("priority")] public Input? Priority { get; set; } @@ -320,7 +320,7 @@ public InputList GeoMappings public Input? Name { get; set; } /// - /// Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. Defaults to `1`. + /// Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. /// [Input("priority")] public Input? Priority { get; set; } diff --git a/sdk/dotnet/Network/TrafficManagerExternalEndpoint.cs b/sdk/dotnet/Network/TrafficManagerExternalEndpoint.cs index 7fc0af62e2..5b840745e0 100644 --- a/sdk/dotnet/Network/TrafficManagerExternalEndpoint.cs +++ b/sdk/dotnet/Network/TrafficManagerExternalEndpoint.cs @@ -113,10 +113,10 @@ public partial class TrafficManagerExternalEndpoint : global::Pulumi.CustomResou public Output Name { get; private set; } = null!; /// - /// Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. Defaults to `1`. + /// Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. /// [Output("priority")] - public Output Priority { get; private set; } = null!; + public Output Priority { get; private set; } = null!; /// /// The ID of the Traffic Manager Profile that this External Endpoint should be created within. Changing this forces a new resource to be created. @@ -237,7 +237,7 @@ public InputList GeoMappings public Input? Name { get; set; } /// - /// Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. Defaults to `1`. + /// Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. /// [Input("priority")] public Input? Priority { get; set; } @@ -329,7 +329,7 @@ public InputList GeoMappings public Input? Name { get; set; } /// - /// Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. Defaults to `1`. + /// Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. /// [Input("priority")] public Input? Priority { get; set; } diff --git a/sdk/go/azure/appservice/pulumiTypes.go b/sdk/go/azure/appservice/pulumiTypes.go index b98420a4bd..12e7bc503b 100644 --- a/sdk/go/azure/appservice/pulumiTypes.go +++ b/sdk/go/azure/appservice/pulumiTypes.go @@ -18795,7 +18795,7 @@ func (o LinuxFunctionAppSiteConfigAppServiceLogsPtrOutput) RetentionPeriodDays() type LinuxFunctionAppSiteConfigApplicationStack struct { // One or more `docker` blocks as defined below. Dockers []LinuxFunctionAppSiteConfigApplicationStackDocker `pulumi:"dockers"` - // The version of .NET to use. Possible values include `3.1`, `6.0`, `7.0` and `8.0`. + // The version of .NET to use. Possible values include `3.1`, `6.0`, `7.0`, `8.0` and `9.0`. DotnetVersion *string `pulumi:"dotnetVersion"` // The Version of Java to use. Supported versions include `8`, `11` & `17`. JavaVersion *string `pulumi:"javaVersion"` @@ -18825,7 +18825,7 @@ type LinuxFunctionAppSiteConfigApplicationStackInput interface { type LinuxFunctionAppSiteConfigApplicationStackArgs struct { // One or more `docker` blocks as defined below. Dockers LinuxFunctionAppSiteConfigApplicationStackDockerArrayInput `pulumi:"dockers"` - // The version of .NET to use. Possible values include `3.1`, `6.0`, `7.0` and `8.0`. + // The version of .NET to use. Possible values include `3.1`, `6.0`, `7.0`, `8.0` and `9.0`. DotnetVersion pulumi.StringPtrInput `pulumi:"dotnetVersion"` // The Version of Java to use. Supported versions include `8`, `11` & `17`. JavaVersion pulumi.StringPtrInput `pulumi:"javaVersion"` @@ -18925,7 +18925,7 @@ func (o LinuxFunctionAppSiteConfigApplicationStackOutput) Dockers() LinuxFunctio }).(LinuxFunctionAppSiteConfigApplicationStackDockerArrayOutput) } -// The version of .NET to use. Possible values include `3.1`, `6.0`, `7.0` and `8.0`. +// The version of .NET to use. Possible values include `3.1`, `6.0`, `7.0`, `8.0` and `9.0`. func (o LinuxFunctionAppSiteConfigApplicationStackOutput) DotnetVersion() pulumi.StringPtrOutput { return o.ApplyT(func(v LinuxFunctionAppSiteConfigApplicationStack) *string { return v.DotnetVersion }).(pulumi.StringPtrOutput) } @@ -18994,7 +18994,7 @@ func (o LinuxFunctionAppSiteConfigApplicationStackPtrOutput) Dockers() LinuxFunc }).(LinuxFunctionAppSiteConfigApplicationStackDockerArrayOutput) } -// The version of .NET to use. Possible values include `3.1`, `6.0`, `7.0` and `8.0`. +// The version of .NET to use. Possible values include `3.1`, `6.0`, `7.0`, `8.0` and `9.0`. func (o LinuxFunctionAppSiteConfigApplicationStackPtrOutput) DotnetVersion() pulumi.StringPtrOutput { return o.ApplyT(func(v *LinuxFunctionAppSiteConfigApplicationStack) *string { if v == nil { @@ -26327,7 +26327,7 @@ func (o LinuxFunctionAppSlotSiteConfigAppServiceLogsPtrOutput) RetentionPeriodDa type LinuxFunctionAppSlotSiteConfigApplicationStack struct { // a `docker` block as detailed below. Dockers []LinuxFunctionAppSlotSiteConfigApplicationStackDocker `pulumi:"dockers"` - // The version of .Net. Possible values are `3.1`, `6.0`, `7.0` and `8.0`. + // The version of .Net. Possible values are `3.1`, `6.0`, `7.0`, `8.0` and `9.0`. DotnetVersion *string `pulumi:"dotnetVersion"` // The version of Java to use. Possible values are `8`, `11` & `17` (In-Preview). JavaVersion *string `pulumi:"javaVersion"` @@ -26357,7 +26357,7 @@ type LinuxFunctionAppSlotSiteConfigApplicationStackInput interface { type LinuxFunctionAppSlotSiteConfigApplicationStackArgs struct { // a `docker` block as detailed below. Dockers LinuxFunctionAppSlotSiteConfigApplicationStackDockerArrayInput `pulumi:"dockers"` - // The version of .Net. Possible values are `3.1`, `6.0`, `7.0` and `8.0`. + // The version of .Net. Possible values are `3.1`, `6.0`, `7.0`, `8.0` and `9.0`. DotnetVersion pulumi.StringPtrInput `pulumi:"dotnetVersion"` // The version of Java to use. Possible values are `8`, `11` & `17` (In-Preview). JavaVersion pulumi.StringPtrInput `pulumi:"javaVersion"` @@ -26457,7 +26457,7 @@ func (o LinuxFunctionAppSlotSiteConfigApplicationStackOutput) Dockers() LinuxFun }).(LinuxFunctionAppSlotSiteConfigApplicationStackDockerArrayOutput) } -// The version of .Net. Possible values are `3.1`, `6.0`, `7.0` and `8.0`. +// The version of .Net. Possible values are `3.1`, `6.0`, `7.0`, `8.0` and `9.0`. func (o LinuxFunctionAppSlotSiteConfigApplicationStackOutput) DotnetVersion() pulumi.StringPtrOutput { return o.ApplyT(func(v LinuxFunctionAppSlotSiteConfigApplicationStack) *string { return v.DotnetVersion }).(pulumi.StringPtrOutput) } @@ -26526,7 +26526,7 @@ func (o LinuxFunctionAppSlotSiteConfigApplicationStackPtrOutput) Dockers() Linux }).(LinuxFunctionAppSlotSiteConfigApplicationStackDockerArrayOutput) } -// The version of .Net. Possible values are `3.1`, `6.0`, `7.0` and `8.0`. +// The version of .Net. Possible values are `3.1`, `6.0`, `7.0`, `8.0` and `9.0`. func (o LinuxFunctionAppSlotSiteConfigApplicationStackPtrOutput) DotnetVersion() pulumi.StringPtrOutput { return o.ApplyT(func(v *LinuxFunctionAppSlotSiteConfigApplicationStack) *string { if v == nil { @@ -34976,7 +34976,7 @@ type LinuxWebAppSiteConfigApplicationStack struct { DockerRegistryUrl *string `pulumi:"dockerRegistryUrl"` // The User Name to use for authentication against the registry to pull the image. DockerRegistryUsername *string `pulumi:"dockerRegistryUsername"` - // The version of .NET to use. Possible values include `3.1`, `5.0`, `6.0`, `7.0` and `8.0`. + // The version of .NET to use. Possible values include `3.1`, `5.0`, `6.0`, `7.0`, `8.0` and `9.0`. DotnetVersion *string `pulumi:"dotnetVersion"` // The version of Go to use. Possible values include `1.18`, and `1.19`. GoVersion *string `pulumi:"goVersion"` @@ -35028,7 +35028,7 @@ type LinuxWebAppSiteConfigApplicationStackArgs struct { DockerRegistryUrl pulumi.StringPtrInput `pulumi:"dockerRegistryUrl"` // The User Name to use for authentication against the registry to pull the image. DockerRegistryUsername pulumi.StringPtrInput `pulumi:"dockerRegistryUsername"` - // The version of .NET to use. Possible values include `3.1`, `5.0`, `6.0`, `7.0` and `8.0`. + // The version of .NET to use. Possible values include `3.1`, `5.0`, `6.0`, `7.0`, `8.0` and `9.0`. DotnetVersion pulumi.StringPtrInput `pulumi:"dotnetVersion"` // The version of Go to use. Possible values include `1.18`, and `1.19`. GoVersion pulumi.StringPtrInput `pulumi:"goVersion"` @@ -35157,7 +35157,7 @@ func (o LinuxWebAppSiteConfigApplicationStackOutput) DockerRegistryUsername() pu return o.ApplyT(func(v LinuxWebAppSiteConfigApplicationStack) *string { return v.DockerRegistryUsername }).(pulumi.StringPtrOutput) } -// The version of .NET to use. Possible values include `3.1`, `5.0`, `6.0`, `7.0` and `8.0`. +// The version of .NET to use. Possible values include `3.1`, `5.0`, `6.0`, `7.0`, `8.0` and `9.0`. func (o LinuxWebAppSiteConfigApplicationStackOutput) DotnetVersion() pulumi.StringPtrOutput { return o.ApplyT(func(v LinuxWebAppSiteConfigApplicationStack) *string { return v.DotnetVersion }).(pulumi.StringPtrOutput) } @@ -35278,7 +35278,7 @@ func (o LinuxWebAppSiteConfigApplicationStackPtrOutput) DockerRegistryUsername() }).(pulumi.StringPtrOutput) } -// The version of .NET to use. Possible values include `3.1`, `5.0`, `6.0`, `7.0` and `8.0`. +// The version of .NET to use. Possible values include `3.1`, `5.0`, `6.0`, `7.0`, `8.0` and `9.0`. func (o LinuxWebAppSiteConfigApplicationStackPtrOutput) DotnetVersion() pulumi.StringPtrOutput { return o.ApplyT(func(v *LinuxWebAppSiteConfigApplicationStack) *string { if v == nil { @@ -44319,7 +44319,7 @@ type LinuxWebAppSlotSiteConfigApplicationStack struct { DockerRegistryUrl *string `pulumi:"dockerRegistryUrl"` // The User Name to use for authentication against the registry to pull the image. DockerRegistryUsername *string `pulumi:"dockerRegistryUsername"` - // The version of .NET to use. Possible values include `3.1`, `5.0`, `6.0`, `7.0` and `8.0`. + // The version of .NET to use. Possible values include `3.1`, `5.0`, `6.0`, `7.0`, `8.0` and `9.0`. DotnetVersion *string `pulumi:"dotnetVersion"` // The version of Go to use. Possible values include `1.18`, and `1.19`. GoVersion *string `pulumi:"goVersion"` @@ -44369,7 +44369,7 @@ type LinuxWebAppSlotSiteConfigApplicationStackArgs struct { DockerRegistryUrl pulumi.StringPtrInput `pulumi:"dockerRegistryUrl"` // The User Name to use for authentication against the registry to pull the image. DockerRegistryUsername pulumi.StringPtrInput `pulumi:"dockerRegistryUsername"` - // The version of .NET to use. Possible values include `3.1`, `5.0`, `6.0`, `7.0` and `8.0`. + // The version of .NET to use. Possible values include `3.1`, `5.0`, `6.0`, `7.0`, `8.0` and `9.0`. DotnetVersion pulumi.StringPtrInput `pulumi:"dotnetVersion"` // The version of Go to use. Possible values include `1.18`, and `1.19`. GoVersion pulumi.StringPtrInput `pulumi:"goVersion"` @@ -44496,7 +44496,7 @@ func (o LinuxWebAppSlotSiteConfigApplicationStackOutput) DockerRegistryUsername( return o.ApplyT(func(v LinuxWebAppSlotSiteConfigApplicationStack) *string { return v.DockerRegistryUsername }).(pulumi.StringPtrOutput) } -// The version of .NET to use. Possible values include `3.1`, `5.0`, `6.0`, `7.0` and `8.0`. +// The version of .NET to use. Possible values include `3.1`, `5.0`, `6.0`, `7.0`, `8.0` and `9.0`. func (o LinuxWebAppSlotSiteConfigApplicationStackOutput) DotnetVersion() pulumi.StringPtrOutput { return o.ApplyT(func(v LinuxWebAppSlotSiteConfigApplicationStack) *string { return v.DotnetVersion }).(pulumi.StringPtrOutput) } @@ -44615,7 +44615,7 @@ func (o LinuxWebAppSlotSiteConfigApplicationStackPtrOutput) DockerRegistryUserna }).(pulumi.StringPtrOutput) } -// The version of .NET to use. Possible values include `3.1`, `5.0`, `6.0`, `7.0` and `8.0`. +// The version of .NET to use. Possible values include `3.1`, `5.0`, `6.0`, `7.0`, `8.0` and `9.0`. func (o LinuxWebAppSlotSiteConfigApplicationStackPtrOutput) DotnetVersion() pulumi.StringPtrOutput { return o.ApplyT(func(v *LinuxWebAppSlotSiteConfigApplicationStack) *string { if v == nil { @@ -59583,7 +59583,7 @@ func (o WindowsFunctionAppSiteConfigAppServiceLogsPtrOutput) RetentionPeriodDays } type WindowsFunctionAppSiteConfigApplicationStack struct { - // The version of .NET to use. Possible values include `v3.0`, `v4.0` `v6.0`, `v7.0` and `v8.0`. Defaults to `v4.0`. + // The version of .NET to use. Possible values include `v3.0`, `v4.0` `v6.0`, `v7.0`, `v8.0` and `v9.0`. Defaults to `v4.0`. DotnetVersion *string `pulumi:"dotnetVersion"` // The Version of Java to use. Supported versions include `1.8`, `11` & `17` (In-Preview). JavaVersion *string `pulumi:"javaVersion"` @@ -59611,7 +59611,7 @@ type WindowsFunctionAppSiteConfigApplicationStackInput interface { } type WindowsFunctionAppSiteConfigApplicationStackArgs struct { - // The version of .NET to use. Possible values include `v3.0`, `v4.0` `v6.0`, `v7.0` and `v8.0`. Defaults to `v4.0`. + // The version of .NET to use. Possible values include `v3.0`, `v4.0` `v6.0`, `v7.0`, `v8.0` and `v9.0`. Defaults to `v4.0`. DotnetVersion pulumi.StringPtrInput `pulumi:"dotnetVersion"` // The Version of Java to use. Supported versions include `1.8`, `11` & `17` (In-Preview). JavaVersion pulumi.StringPtrInput `pulumi:"javaVersion"` @@ -59704,7 +59704,7 @@ func (o WindowsFunctionAppSiteConfigApplicationStackOutput) ToWindowsFunctionApp }).(WindowsFunctionAppSiteConfigApplicationStackPtrOutput) } -// The version of .NET to use. Possible values include `v3.0`, `v4.0` `v6.0`, `v7.0` and `v8.0`. Defaults to `v4.0`. +// The version of .NET to use. Possible values include `v3.0`, `v4.0` `v6.0`, `v7.0`, `v8.0` and `v9.0`. Defaults to `v4.0`. func (o WindowsFunctionAppSiteConfigApplicationStackOutput) DotnetVersion() pulumi.StringPtrOutput { return o.ApplyT(func(v WindowsFunctionAppSiteConfigApplicationStack) *string { return v.DotnetVersion }).(pulumi.StringPtrOutput) } @@ -59760,7 +59760,7 @@ func (o WindowsFunctionAppSiteConfigApplicationStackPtrOutput) Elem() WindowsFun }).(WindowsFunctionAppSiteConfigApplicationStackOutput) } -// The version of .NET to use. Possible values include `v3.0`, `v4.0` `v6.0`, `v7.0` and `v8.0`. Defaults to `v4.0`. +// The version of .NET to use. Possible values include `v3.0`, `v4.0` `v6.0`, `v7.0`, `v8.0` and `v9.0`. Defaults to `v4.0`. func (o WindowsFunctionAppSiteConfigApplicationStackPtrOutput) DotnetVersion() pulumi.StringPtrOutput { return o.ApplyT(func(v *WindowsFunctionAppSiteConfigApplicationStack) *string { if v == nil { @@ -66908,7 +66908,7 @@ func (o WindowsFunctionAppSlotSiteConfigAppServiceLogsPtrOutput) RetentionPeriod } type WindowsFunctionAppSlotSiteConfigApplicationStack struct { - // The version of .Net. Possible values are `v3.0`, `v4.0`, `v6.0`, `v7.0` and `v8.0`. Defaults to `v4.0`. + // The version of .Net. Possible values are `v3.0`, `v4.0`, `v6.0`, `v7.0`, `v8.0` and `v9.0`. Defaults to `v4.0`. DotnetVersion *string `pulumi:"dotnetVersion"` // The version of Java to use. Possible values are `1.8`, `11` and `17` (In-Preview). JavaVersion *string `pulumi:"javaVersion"` @@ -66934,7 +66934,7 @@ type WindowsFunctionAppSlotSiteConfigApplicationStackInput interface { } type WindowsFunctionAppSlotSiteConfigApplicationStackArgs struct { - // The version of .Net. Possible values are `v3.0`, `v4.0`, `v6.0`, `v7.0` and `v8.0`. Defaults to `v4.0`. + // The version of .Net. Possible values are `v3.0`, `v4.0`, `v6.0`, `v7.0`, `v8.0` and `v9.0`. Defaults to `v4.0`. DotnetVersion pulumi.StringPtrInput `pulumi:"dotnetVersion"` // The version of Java to use. Possible values are `1.8`, `11` and `17` (In-Preview). JavaVersion pulumi.StringPtrInput `pulumi:"javaVersion"` @@ -67025,7 +67025,7 @@ func (o WindowsFunctionAppSlotSiteConfigApplicationStackOutput) ToWindowsFunctio }).(WindowsFunctionAppSlotSiteConfigApplicationStackPtrOutput) } -// The version of .Net. Possible values are `v3.0`, `v4.0`, `v6.0`, `v7.0` and `v8.0`. Defaults to `v4.0`. +// The version of .Net. Possible values are `v3.0`, `v4.0`, `v6.0`, `v7.0`, `v8.0` and `v9.0`. Defaults to `v4.0`. func (o WindowsFunctionAppSlotSiteConfigApplicationStackOutput) DotnetVersion() pulumi.StringPtrOutput { return o.ApplyT(func(v WindowsFunctionAppSlotSiteConfigApplicationStack) *string { return v.DotnetVersion }).(pulumi.StringPtrOutput) } @@ -67079,7 +67079,7 @@ func (o WindowsFunctionAppSlotSiteConfigApplicationStackPtrOutput) Elem() Window }).(WindowsFunctionAppSlotSiteConfigApplicationStackOutput) } -// The version of .Net. Possible values are `v3.0`, `v4.0`, `v6.0`, `v7.0` and `v8.0`. Defaults to `v4.0`. +// The version of .Net. Possible values are `v3.0`, `v4.0`, `v6.0`, `v7.0`, `v8.0` and `v9.0`. Defaults to `v4.0`. func (o WindowsFunctionAppSlotSiteConfigApplicationStackPtrOutput) DotnetVersion() pulumi.StringPtrOutput { return o.ApplyT(func(v *WindowsFunctionAppSlotSiteConfigApplicationStack) *string { if v == nil { @@ -75441,7 +75441,7 @@ type WindowsWebAppSiteConfigApplicationStack struct { DockerRegistryUsername *string `pulumi:"dockerRegistryUsername"` // The version of .NET to use when `currentStack` is set to `dotnetcore`. Possible values include `v4.0`. DotnetCoreVersion *string `pulumi:"dotnetCoreVersion"` - // The version of .NET to use when `currentStack` is set to `dotnet`. Possible values include `v2.0`,`v3.0`, `v4.0`, `v5.0`, `v6.0`, `v7.0` and `v8.0`. + // The version of .NET to use when `currentStack` is set to `dotnet`. Possible values include `v2.0`,`v3.0`, `v4.0`, `v5.0`, `v6.0`, `v7.0`, `v8.0` and `v9.0`. // // > **NOTE:** The Portal displayed values and the actual underlying API values differ for this setting, as follows: // Portal Value | API value @@ -75451,6 +75451,7 @@ type WindowsWebAppSiteConfigApplicationStack struct { // .NET 6 (LTS) | v6.0 // .NET 7 (STS) | v7.0 // .NET 8 (LTS) | v8.0 + // .NET 9 (STS) | v9.0 DotnetVersion *string `pulumi:"dotnetVersion"` // Deprecated: this property has been deprecated in favour of `tomcatVersion` and `javaEmbeddedServerEnabled` JavaContainer *string `pulumi:"javaContainer"` @@ -75508,7 +75509,7 @@ type WindowsWebAppSiteConfigApplicationStackArgs struct { DockerRegistryUsername pulumi.StringPtrInput `pulumi:"dockerRegistryUsername"` // The version of .NET to use when `currentStack` is set to `dotnetcore`. Possible values include `v4.0`. DotnetCoreVersion pulumi.StringPtrInput `pulumi:"dotnetCoreVersion"` - // The version of .NET to use when `currentStack` is set to `dotnet`. Possible values include `v2.0`,`v3.0`, `v4.0`, `v5.0`, `v6.0`, `v7.0` and `v8.0`. + // The version of .NET to use when `currentStack` is set to `dotnet`. Possible values include `v2.0`,`v3.0`, `v4.0`, `v5.0`, `v6.0`, `v7.0`, `v8.0` and `v9.0`. // // > **NOTE:** The Portal displayed values and the actual underlying API values differ for this setting, as follows: // Portal Value | API value @@ -75518,6 +75519,7 @@ type WindowsWebAppSiteConfigApplicationStackArgs struct { // .NET 6 (LTS) | v6.0 // .NET 7 (STS) | v7.0 // .NET 8 (LTS) | v8.0 + // .NET 9 (STS) | v9.0 DotnetVersion pulumi.StringPtrInput `pulumi:"dotnetVersion"` // Deprecated: this property has been deprecated in favour of `tomcatVersion` and `javaEmbeddedServerEnabled` JavaContainer pulumi.StringPtrInput `pulumi:"javaContainer"` @@ -75658,7 +75660,7 @@ func (o WindowsWebAppSiteConfigApplicationStackOutput) DotnetCoreVersion() pulum return o.ApplyT(func(v WindowsWebAppSiteConfigApplicationStack) *string { return v.DotnetCoreVersion }).(pulumi.StringPtrOutput) } -// The version of .NET to use when `currentStack` is set to `dotnet`. Possible values include `v2.0`,`v3.0`, `v4.0`, `v5.0`, `v6.0`, `v7.0` and `v8.0`. +// The version of .NET to use when `currentStack` is set to `dotnet`. Possible values include `v2.0`,`v3.0`, `v4.0`, `v5.0`, `v6.0`, `v7.0`, `v8.0` and `v9.0`. // // > **NOTE:** The Portal displayed values and the actual underlying API values differ for this setting, as follows: // Portal Value | API value @@ -75668,6 +75670,7 @@ func (o WindowsWebAppSiteConfigApplicationStackOutput) DotnetCoreVersion() pulum // .NET 6 (LTS) | v6.0 // .NET 7 (STS) | v7.0 // .NET 8 (LTS) | v8.0 +// .NET 9 (STS) | v9.0 func (o WindowsWebAppSiteConfigApplicationStackOutput) DotnetVersion() pulumi.StringPtrOutput { return o.ApplyT(func(v WindowsWebAppSiteConfigApplicationStack) *string { return v.DotnetVersion }).(pulumi.StringPtrOutput) } @@ -75810,7 +75813,7 @@ func (o WindowsWebAppSiteConfigApplicationStackPtrOutput) DotnetCoreVersion() pu }).(pulumi.StringPtrOutput) } -// The version of .NET to use when `currentStack` is set to `dotnet`. Possible values include `v2.0`,`v3.0`, `v4.0`, `v5.0`, `v6.0`, `v7.0` and `v8.0`. +// The version of .NET to use when `currentStack` is set to `dotnet`. Possible values include `v2.0`,`v3.0`, `v4.0`, `v5.0`, `v6.0`, `v7.0`, `v8.0` and `v9.0`. // // > **NOTE:** The Portal displayed values and the actual underlying API values differ for this setting, as follows: // Portal Value | API value @@ -75820,6 +75823,7 @@ func (o WindowsWebAppSiteConfigApplicationStackPtrOutput) DotnetCoreVersion() pu // .NET 6 (LTS) | v6.0 // .NET 7 (STS) | v7.0 // .NET 8 (LTS) | v8.0 +// .NET 9 (STS) | v9.0 func (o WindowsWebAppSiteConfigApplicationStackPtrOutput) DotnetVersion() pulumi.StringPtrOutput { return o.ApplyT(func(v *WindowsWebAppSiteConfigApplicationStack) *string { if v == nil { @@ -85459,7 +85463,7 @@ type WindowsWebAppSlotSiteConfigApplicationStack struct { DockerRegistryUsername *string `pulumi:"dockerRegistryUsername"` // The version of .NET to use when `currentStack` is set to `dotnetcore`. Possible values include `v4.0`. DotnetCoreVersion *string `pulumi:"dotnetCoreVersion"` - // The version of .NET to use when `currentStack` is set to `dotnet`. Possible values include `v2.0`,`v3.0`, `v4.0`, `v5.0`, `v6.0`, `v7.0` and `v8.0`. + // The version of .NET to use when `currentStack` is set to `dotnet`. Possible values include `v2.0`,`v3.0`, `v4.0`, `v5.0`, `v6.0`, `v7.0`, `v8.0` and `v9.0`. DotnetVersion *string `pulumi:"dotnetVersion"` // Deprecated: this property has been deprecated in favour of `tomcatVersion` and `javaEmbeddedServerEnabled` JavaContainer *string `pulumi:"javaContainer"` @@ -85515,7 +85519,7 @@ type WindowsWebAppSlotSiteConfigApplicationStackArgs struct { DockerRegistryUsername pulumi.StringPtrInput `pulumi:"dockerRegistryUsername"` // The version of .NET to use when `currentStack` is set to `dotnetcore`. Possible values include `v4.0`. DotnetCoreVersion pulumi.StringPtrInput `pulumi:"dotnetCoreVersion"` - // The version of .NET to use when `currentStack` is set to `dotnet`. Possible values include `v2.0`,`v3.0`, `v4.0`, `v5.0`, `v6.0`, `v7.0` and `v8.0`. + // The version of .NET to use when `currentStack` is set to `dotnet`. Possible values include `v2.0`,`v3.0`, `v4.0`, `v5.0`, `v6.0`, `v7.0`, `v8.0` and `v9.0`. DotnetVersion pulumi.StringPtrInput `pulumi:"dotnetVersion"` // Deprecated: this property has been deprecated in favour of `tomcatVersion` and `javaEmbeddedServerEnabled` JavaContainer pulumi.StringPtrInput `pulumi:"javaContainer"` @@ -85654,7 +85658,7 @@ func (o WindowsWebAppSlotSiteConfigApplicationStackOutput) DotnetCoreVersion() p return o.ApplyT(func(v WindowsWebAppSlotSiteConfigApplicationStack) *string { return v.DotnetCoreVersion }).(pulumi.StringPtrOutput) } -// The version of .NET to use when `currentStack` is set to `dotnet`. Possible values include `v2.0`,`v3.0`, `v4.0`, `v5.0`, `v6.0`, `v7.0` and `v8.0`. +// The version of .NET to use when `currentStack` is set to `dotnet`. Possible values include `v2.0`,`v3.0`, `v4.0`, `v5.0`, `v6.0`, `v7.0`, `v8.0` and `v9.0`. func (o WindowsWebAppSlotSiteConfigApplicationStackOutput) DotnetVersion() pulumi.StringPtrOutput { return o.ApplyT(func(v WindowsWebAppSlotSiteConfigApplicationStack) *string { return v.DotnetVersion }).(pulumi.StringPtrOutput) } @@ -85795,7 +85799,7 @@ func (o WindowsWebAppSlotSiteConfigApplicationStackPtrOutput) DotnetCoreVersion( }).(pulumi.StringPtrOutput) } -// The version of .NET to use when `currentStack` is set to `dotnet`. Possible values include `v2.0`,`v3.0`, `v4.0`, `v5.0`, `v6.0`, `v7.0` and `v8.0`. +// The version of .NET to use when `currentStack` is set to `dotnet`. Possible values include `v2.0`,`v3.0`, `v4.0`, `v5.0`, `v6.0`, `v7.0`, `v8.0` and `v9.0`. func (o WindowsWebAppSlotSiteConfigApplicationStackPtrOutput) DotnetVersion() pulumi.StringPtrOutput { return o.ApplyT(func(v *WindowsWebAppSlotSiteConfigApplicationStack) *string { if v == nil { diff --git a/sdk/go/azure/automation/jobSchedule.go b/sdk/go/azure/automation/jobSchedule.go index 6ef37dea2d..1c8b83404b 100644 --- a/sdk/go/azure/automation/jobSchedule.go +++ b/sdk/go/azure/automation/jobSchedule.go @@ -14,7 +14,7 @@ import ( // Links an Automation Runbook and Schedule. // -// > **NOTE** AzureRM provides this stand-alone automation.JobSchedule and an inlined `jobSchdule` property in azurermRunbook to manage the job schedules. You can only make use of one of these methods to manage a job schedule. +// > **NOTE** AzureRM provides this stand-alone automation.JobSchedule and an inlined `jobSchedule` property in azurermRunbook to manage the job schedules. You can only make use of one of these methods to manage a job schedule. // // ## Example Usage // diff --git a/sdk/go/azure/automation/runBook.go b/sdk/go/azure/automation/runBook.go index 80e1241295..93d7275e44 100644 --- a/sdk/go/azure/automation/runBook.go +++ b/sdk/go/azure/automation/runBook.go @@ -89,7 +89,7 @@ type RunBook struct { Draft RunBookDraftPtrOutput `pulumi:"draft"` // One or more `jobSchedule` block as defined below. // - // > **NOTE** AzureRM provides a stand-alone automation.JobSchedule and this inlined `jobSchdule` property to manage the job schedules. At this time you should choose one of them to manage the job schedule resources. + // > **NOTE** AzureRM provides a stand-alone automation.JobSchedule and this inlined `jobSchedule` property to manage the job schedules. At this time you should choose one of them to manage the job schedule resources. JobSchedules RunBookJobScheduleArrayOutput `pulumi:"jobSchedules"` // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location pulumi.StringOutput `pulumi:"location"` @@ -168,7 +168,7 @@ type runBookState struct { Draft *RunBookDraft `pulumi:"draft"` // One or more `jobSchedule` block as defined below. // - // > **NOTE** AzureRM provides a stand-alone automation.JobSchedule and this inlined `jobSchdule` property to manage the job schedules. At this time you should choose one of them to manage the job schedule resources. + // > **NOTE** AzureRM provides a stand-alone automation.JobSchedule and this inlined `jobSchedule` property to manage the job schedules. At this time you should choose one of them to manage the job schedule resources. JobSchedules []RunBookJobSchedule `pulumi:"jobSchedules"` // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location *string `pulumi:"location"` @@ -203,7 +203,7 @@ type RunBookState struct { Draft RunBookDraftPtrInput // One or more `jobSchedule` block as defined below. // - // > **NOTE** AzureRM provides a stand-alone automation.JobSchedule and this inlined `jobSchdule` property to manage the job schedules. At this time you should choose one of them to manage the job schedule resources. + // > **NOTE** AzureRM provides a stand-alone automation.JobSchedule and this inlined `jobSchedule` property to manage the job schedules. At this time you should choose one of them to manage the job schedule resources. JobSchedules RunBookJobScheduleArrayInput // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location pulumi.StringPtrInput @@ -242,7 +242,7 @@ type runBookArgs struct { Draft *RunBookDraft `pulumi:"draft"` // One or more `jobSchedule` block as defined below. // - // > **NOTE** AzureRM provides a stand-alone automation.JobSchedule and this inlined `jobSchdule` property to manage the job schedules. At this time you should choose one of them to manage the job schedule resources. + // > **NOTE** AzureRM provides a stand-alone automation.JobSchedule and this inlined `jobSchedule` property to manage the job schedules. At this time you should choose one of them to manage the job schedule resources. JobSchedules []RunBookJobSchedule `pulumi:"jobSchedules"` // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location *string `pulumi:"location"` @@ -278,7 +278,7 @@ type RunBookArgs struct { Draft RunBookDraftPtrInput // One or more `jobSchedule` block as defined below. // - // > **NOTE** AzureRM provides a stand-alone automation.JobSchedule and this inlined `jobSchdule` property to manage the job schedules. At this time you should choose one of them to manage the job schedule resources. + // > **NOTE** AzureRM provides a stand-alone automation.JobSchedule and this inlined `jobSchedule` property to manage the job schedules. At this time you should choose one of them to manage the job schedule resources. JobSchedules RunBookJobScheduleArrayInput // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location pulumi.StringPtrInput @@ -411,7 +411,7 @@ func (o RunBookOutput) Draft() RunBookDraftPtrOutput { // One or more `jobSchedule` block as defined below. // -// > **NOTE** AzureRM provides a stand-alone automation.JobSchedule and this inlined `jobSchdule` property to manage the job schedules. At this time you should choose one of them to manage the job schedule resources. +// > **NOTE** AzureRM provides a stand-alone automation.JobSchedule and this inlined `jobSchedule` property to manage the job schedules. At this time you should choose one of them to manage the job schedule resources. func (o RunBookOutput) JobSchedules() RunBookJobScheduleArrayOutput { return o.ApplyT(func(v *RunBook) RunBookJobScheduleArrayOutput { return v.JobSchedules }).(RunBookJobScheduleArrayOutput) } diff --git a/sdk/go/azure/cognitive/getAccount.go b/sdk/go/azure/cognitive/getAccount.go index 50afc997a3..1e99f6f2b7 100644 --- a/sdk/go/azure/cognitive/getAccount.go +++ b/sdk/go/azure/cognitive/getAccount.go @@ -70,6 +70,8 @@ type LookupAccountResult struct { Identities []GetAccountIdentity `pulumi:"identities"` // The kind of the Cognitive Services Account Kind string `pulumi:"kind"` + // Whether local authentication methods is enabled for the Cognitive Account. + LocalAuthEnabled bool `pulumi:"localAuthEnabled"` // The Azure location where the Cognitive Services Account exists Location string `pulumi:"location"` Name string `pulumi:"name"` @@ -154,6 +156,11 @@ func (o LookupAccountResultOutput) Kind() pulumi.StringOutput { return o.ApplyT(func(v LookupAccountResult) string { return v.Kind }).(pulumi.StringOutput) } +// Whether local authentication methods is enabled for the Cognitive Account. +func (o LookupAccountResultOutput) LocalAuthEnabled() pulumi.BoolOutput { + return o.ApplyT(func(v LookupAccountResult) bool { return v.LocalAuthEnabled }).(pulumi.BoolOutput) +} + // The Azure location where the Cognitive Services Account exists func (o LookupAccountResultOutput) Location() pulumi.StringOutput { return o.ApplyT(func(v LookupAccountResult) string { return v.Location }).(pulumi.StringOutput) diff --git a/sdk/go/azure/communication/emailService.go b/sdk/go/azure/communication/emailService.go index 83bf39930b..defdd01ad0 100644 --- a/sdk/go/azure/communication/emailService.go +++ b/sdk/go/azure/communication/emailService.go @@ -60,7 +60,7 @@ import ( type EmailService struct { pulumi.CustomResourceState - // The location where the Email Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` and `United States`. Changing this forces a new Email Communication Service to be created. + // The location where the Email Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` `usgov` and `United States`. Changing this forces a new Email Communication Service to be created. DataLocation pulumi.StringOutput `pulumi:"dataLocation"` // The name of the Email Communication Service resource. Changing this forces a new Email Communication Service to be created. Name pulumi.StringOutput `pulumi:"name"` @@ -106,7 +106,7 @@ func GetEmailService(ctx *pulumi.Context, // Input properties used for looking up and filtering EmailService resources. type emailServiceState struct { - // The location where the Email Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` and `United States`. Changing this forces a new Email Communication Service to be created. + // The location where the Email Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` `usgov` and `United States`. Changing this forces a new Email Communication Service to be created. DataLocation *string `pulumi:"dataLocation"` // The name of the Email Communication Service resource. Changing this forces a new Email Communication Service to be created. Name *string `pulumi:"name"` @@ -117,7 +117,7 @@ type emailServiceState struct { } type EmailServiceState struct { - // The location where the Email Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` and `United States`. Changing this forces a new Email Communication Service to be created. + // The location where the Email Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` `usgov` and `United States`. Changing this forces a new Email Communication Service to be created. DataLocation pulumi.StringPtrInput // The name of the Email Communication Service resource. Changing this forces a new Email Communication Service to be created. Name pulumi.StringPtrInput @@ -132,7 +132,7 @@ func (EmailServiceState) ElementType() reflect.Type { } type emailServiceArgs struct { - // The location where the Email Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` and `United States`. Changing this forces a new Email Communication Service to be created. + // The location where the Email Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` `usgov` and `United States`. Changing this forces a new Email Communication Service to be created. DataLocation string `pulumi:"dataLocation"` // The name of the Email Communication Service resource. Changing this forces a new Email Communication Service to be created. Name *string `pulumi:"name"` @@ -144,7 +144,7 @@ type emailServiceArgs struct { // The set of arguments for constructing a EmailService resource. type EmailServiceArgs struct { - // The location where the Email Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` and `United States`. Changing this forces a new Email Communication Service to be created. + // The location where the Email Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` `usgov` and `United States`. Changing this forces a new Email Communication Service to be created. DataLocation pulumi.StringInput // The name of the Email Communication Service resource. Changing this forces a new Email Communication Service to be created. Name pulumi.StringPtrInput @@ -241,7 +241,7 @@ func (o EmailServiceOutput) ToEmailServiceOutputWithContext(ctx context.Context) return o } -// The location where the Email Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` and `United States`. Changing this forces a new Email Communication Service to be created. +// The location where the Email Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` `usgov` and `United States`. Changing this forces a new Email Communication Service to be created. func (o EmailServiceOutput) DataLocation() pulumi.StringOutput { return o.ApplyT(func(v *EmailService) pulumi.StringOutput { return v.DataLocation }).(pulumi.StringOutput) } diff --git a/sdk/go/azure/communication/service.go b/sdk/go/azure/communication/service.go index 5880726f81..8d73b1e10a 100644 --- a/sdk/go/azure/communication/service.go +++ b/sdk/go/azure/communication/service.go @@ -60,7 +60,7 @@ import ( type Service struct { pulumi.CustomResourceState - // The location where the Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` and `United States`. Defaults to `United States`. Changing this forces a new Communication Service to be created. + // The location where the Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK`, `usgov` and `United States`. Defaults to `United States`. Changing this forces a new Communication Service to be created. DataLocation pulumi.StringPtrOutput `pulumi:"dataLocation"` // The name of the Communication Service resource. Changing this forces a new Communication Service to be created. Name pulumi.StringOutput `pulumi:"name"` @@ -118,7 +118,7 @@ func GetService(ctx *pulumi.Context, // Input properties used for looking up and filtering Service resources. type serviceState struct { - // The location where the Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` and `United States`. Defaults to `United States`. Changing this forces a new Communication Service to be created. + // The location where the Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK`, `usgov` and `United States`. Defaults to `United States`. Changing this forces a new Communication Service to be created. DataLocation *string `pulumi:"dataLocation"` // The name of the Communication Service resource. Changing this forces a new Communication Service to be created. Name *string `pulumi:"name"` @@ -137,7 +137,7 @@ type serviceState struct { } type ServiceState struct { - // The location where the Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` and `United States`. Defaults to `United States`. Changing this forces a new Communication Service to be created. + // The location where the Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK`, `usgov` and `United States`. Defaults to `United States`. Changing this forces a new Communication Service to be created. DataLocation pulumi.StringPtrInput // The name of the Communication Service resource. Changing this forces a new Communication Service to be created. Name pulumi.StringPtrInput @@ -160,7 +160,7 @@ func (ServiceState) ElementType() reflect.Type { } type serviceArgs struct { - // The location where the Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` and `United States`. Defaults to `United States`. Changing this forces a new Communication Service to be created. + // The location where the Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK`, `usgov` and `United States`. Defaults to `United States`. Changing this forces a new Communication Service to be created. DataLocation *string `pulumi:"dataLocation"` // The name of the Communication Service resource. Changing this forces a new Communication Service to be created. Name *string `pulumi:"name"` @@ -172,7 +172,7 @@ type serviceArgs struct { // The set of arguments for constructing a Service resource. type ServiceArgs struct { - // The location where the Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` and `United States`. Defaults to `United States`. Changing this forces a new Communication Service to be created. + // The location where the Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK`, `usgov` and `United States`. Defaults to `United States`. Changing this forces a new Communication Service to be created. DataLocation pulumi.StringPtrInput // The name of the Communication Service resource. Changing this forces a new Communication Service to be created. Name pulumi.StringPtrInput @@ -269,7 +269,7 @@ func (o ServiceOutput) ToServiceOutputWithContext(ctx context.Context) ServiceOu return o } -// The location where the Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` and `United States`. Defaults to `United States`. Changing this forces a new Communication Service to be created. +// The location where the Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK`, `usgov` and `United States`. Defaults to `United States`. Changing this forces a new Communication Service to be created. func (o ServiceOutput) DataLocation() pulumi.StringPtrOutput { return o.ApplyT(func(v *Service) pulumi.StringPtrOutput { return v.DataLocation }).(pulumi.StringPtrOutput) } diff --git a/sdk/go/azure/compute/bastionHost.go b/sdk/go/azure/compute/bastionHost.go index 5f47607137..56a69fd1db 100644 --- a/sdk/go/azure/compute/bastionHost.go +++ b/sdk/go/azure/compute/bastionHost.go @@ -148,6 +148,8 @@ type BastionHost struct { TunnelingEnabled pulumi.BoolPtrOutput `pulumi:"tunnelingEnabled"` // The ID of the Virtual Network for the Developer Bastion Host. Changing this forces a new resource to be created. VirtualNetworkId pulumi.StringPtrOutput `pulumi:"virtualNetworkId"` + // Specifies a list of Availability Zones in which this Public Bastion Host should be located. Changing this forces a new resource to be created. + Zones pulumi.StringArrayOutput `pulumi:"zones"` } // NewBastionHost registers a new resource with the given unique name, arguments, and options. @@ -231,6 +233,8 @@ type bastionHostState struct { TunnelingEnabled *bool `pulumi:"tunnelingEnabled"` // The ID of the Virtual Network for the Developer Bastion Host. Changing this forces a new resource to be created. VirtualNetworkId *string `pulumi:"virtualNetworkId"` + // Specifies a list of Availability Zones in which this Public Bastion Host should be located. Changing this forces a new resource to be created. + Zones []string `pulumi:"zones"` } type BastionHostState struct { @@ -282,6 +286,8 @@ type BastionHostState struct { TunnelingEnabled pulumi.BoolPtrInput // The ID of the Virtual Network for the Developer Bastion Host. Changing this forces a new resource to be created. VirtualNetworkId pulumi.StringPtrInput + // Specifies a list of Availability Zones in which this Public Bastion Host should be located. Changing this forces a new resource to be created. + Zones pulumi.StringArrayInput } func (BastionHostState) ElementType() reflect.Type { @@ -335,6 +341,8 @@ type bastionHostArgs struct { TunnelingEnabled *bool `pulumi:"tunnelingEnabled"` // The ID of the Virtual Network for the Developer Bastion Host. Changing this forces a new resource to be created. VirtualNetworkId *string `pulumi:"virtualNetworkId"` + // Specifies a list of Availability Zones in which this Public Bastion Host should be located. Changing this forces a new resource to be created. + Zones []string `pulumi:"zones"` } // The set of arguments for constructing a BastionHost resource. @@ -385,6 +393,8 @@ type BastionHostArgs struct { TunnelingEnabled pulumi.BoolPtrInput // The ID of the Virtual Network for the Developer Bastion Host. Changing this forces a new resource to be created. VirtualNetworkId pulumi.StringPtrInput + // Specifies a list of Availability Zones in which this Public Bastion Host should be located. Changing this forces a new resource to be created. + Zones pulumi.StringArrayInput } func (BastionHostArgs) ElementType() reflect.Type { @@ -570,6 +580,11 @@ func (o BastionHostOutput) VirtualNetworkId() pulumi.StringPtrOutput { return o.ApplyT(func(v *BastionHost) pulumi.StringPtrOutput { return v.VirtualNetworkId }).(pulumi.StringPtrOutput) } +// Specifies a list of Availability Zones in which this Public Bastion Host should be located. Changing this forces a new resource to be created. +func (o BastionHostOutput) Zones() pulumi.StringArrayOutput { + return o.ApplyT(func(v *BastionHost) pulumi.StringArrayOutput { return v.Zones }).(pulumi.StringArrayOutput) +} + type BastionHostArrayOutput struct{ *pulumi.OutputState } func (BastionHostArrayOutput) ElementType() reflect.Type { diff --git a/sdk/go/azure/compute/getBastionHost.go b/sdk/go/azure/compute/getBastionHost.go index 6b1ceba3a0..6d3f591023 100644 --- a/sdk/go/azure/compute/getBastionHost.go +++ b/sdk/go/azure/compute/getBastionHost.go @@ -89,6 +89,8 @@ type LookupBastionHostResult struct { Tags map[string]string `pulumi:"tags"` // Is Tunneling feature enabled for the Bastion Host. TunnelingEnabled bool `pulumi:"tunnelingEnabled"` + // A list of Availability Zones in which this Bastion Host is located. + Zones []string `pulumi:"zones"` } func LookupBastionHostOutput(ctx *pulumi.Context, args LookupBastionHostOutputArgs, opts ...pulumi.InvokeOption) LookupBastionHostResultOutput { @@ -211,6 +213,11 @@ func (o LookupBastionHostResultOutput) TunnelingEnabled() pulumi.BoolOutput { return o.ApplyT(func(v LookupBastionHostResult) bool { return v.TunnelingEnabled }).(pulumi.BoolOutput) } +// A list of Availability Zones in which this Bastion Host is located. +func (o LookupBastionHostResultOutput) Zones() pulumi.StringArrayOutput { + return o.ApplyT(func(v LookupBastionHostResult) []string { return v.Zones }).(pulumi.StringArrayOutput) +} + func init() { pulumi.RegisterOutputType(LookupBastionHostResultOutput{}) } diff --git a/sdk/go/azure/config/pulumiTypes.go b/sdk/go/azure/config/pulumiTypes.go index eae9b9d2f4..36ac019caa 100644 --- a/sdk/go/azure/config/pulumiTypes.go +++ b/sdk/go/azure/config/pulumiTypes.go @@ -22,6 +22,7 @@ type Features struct { LogAnalyticsWorkspace *FeaturesLogAnalyticsWorkspace `pulumi:"logAnalyticsWorkspace"` MachineLearning *FeaturesMachineLearning `pulumi:"machineLearning"` ManagedDisk *FeaturesManagedDisk `pulumi:"managedDisk"` + Netapp *FeaturesNetapp `pulumi:"netapp"` PostgresqlFlexibleServer *FeaturesPostgresqlFlexibleServer `pulumi:"postgresqlFlexibleServer"` RecoveryService *FeaturesRecoveryService `pulumi:"recoveryService"` RecoveryServicesVaults *FeaturesRecoveryServicesVaults `pulumi:"recoveryServicesVaults"` @@ -53,6 +54,7 @@ type FeaturesArgs struct { LogAnalyticsWorkspace FeaturesLogAnalyticsWorkspacePtrInput `pulumi:"logAnalyticsWorkspace"` MachineLearning FeaturesMachineLearningPtrInput `pulumi:"machineLearning"` ManagedDisk FeaturesManagedDiskPtrInput `pulumi:"managedDisk"` + Netapp FeaturesNetappPtrInput `pulumi:"netapp"` PostgresqlFlexibleServer FeaturesPostgresqlFlexibleServerPtrInput `pulumi:"postgresqlFlexibleServer"` RecoveryService FeaturesRecoveryServicePtrInput `pulumi:"recoveryService"` RecoveryServicesVaults FeaturesRecoveryServicesVaultsPtrInput `pulumi:"recoveryServicesVaults"` @@ -122,6 +124,10 @@ func (o FeaturesOutput) ManagedDisk() FeaturesManagedDiskPtrOutput { return o.ApplyT(func(v Features) *FeaturesManagedDisk { return v.ManagedDisk }).(FeaturesManagedDiskPtrOutput) } +func (o FeaturesOutput) Netapp() FeaturesNetappPtrOutput { + return o.ApplyT(func(v Features) *FeaturesNetapp { return v.Netapp }).(FeaturesNetappPtrOutput) +} + func (o FeaturesOutput) PostgresqlFlexibleServer() FeaturesPostgresqlFlexibleServerPtrOutput { return o.ApplyT(func(v Features) *FeaturesPostgresqlFlexibleServer { return v.PostgresqlFlexibleServer }).(FeaturesPostgresqlFlexibleServerPtrOutput) } @@ -1446,6 +1452,162 @@ func (o FeaturesManagedDiskPtrOutput) ExpandWithoutDowntime() pulumi.BoolPtrOutp }).(pulumi.BoolPtrOutput) } +type FeaturesNetapp struct { + // When enabled, backups will be deleted when the `netapp.BackupVault` resource is destroyed + DeleteBackupsOnBackupVaultDestroy *bool `pulumi:"deleteBackupsOnBackupVaultDestroy"` + // When enabled, the volume will not be destroyed, safeguarding from severe data loss + PreventVolumeDestruction *bool `pulumi:"preventVolumeDestruction"` +} + +// FeaturesNetappInput is an input type that accepts FeaturesNetappArgs and FeaturesNetappOutput values. +// You can construct a concrete instance of `FeaturesNetappInput` via: +// +// FeaturesNetappArgs{...} +type FeaturesNetappInput interface { + pulumi.Input + + ToFeaturesNetappOutput() FeaturesNetappOutput + ToFeaturesNetappOutputWithContext(context.Context) FeaturesNetappOutput +} + +type FeaturesNetappArgs struct { + // When enabled, backups will be deleted when the `netapp.BackupVault` resource is destroyed + DeleteBackupsOnBackupVaultDestroy pulumi.BoolPtrInput `pulumi:"deleteBackupsOnBackupVaultDestroy"` + // When enabled, the volume will not be destroyed, safeguarding from severe data loss + PreventVolumeDestruction pulumi.BoolPtrInput `pulumi:"preventVolumeDestruction"` +} + +func (FeaturesNetappArgs) ElementType() reflect.Type { + return reflect.TypeOf((*FeaturesNetapp)(nil)).Elem() +} + +func (i FeaturesNetappArgs) ToFeaturesNetappOutput() FeaturesNetappOutput { + return i.ToFeaturesNetappOutputWithContext(context.Background()) +} + +func (i FeaturesNetappArgs) ToFeaturesNetappOutputWithContext(ctx context.Context) FeaturesNetappOutput { + return pulumi.ToOutputWithContext(ctx, i).(FeaturesNetappOutput) +} + +func (i FeaturesNetappArgs) ToFeaturesNetappPtrOutput() FeaturesNetappPtrOutput { + return i.ToFeaturesNetappPtrOutputWithContext(context.Background()) +} + +func (i FeaturesNetappArgs) ToFeaturesNetappPtrOutputWithContext(ctx context.Context) FeaturesNetappPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(FeaturesNetappOutput).ToFeaturesNetappPtrOutputWithContext(ctx) +} + +// FeaturesNetappPtrInput is an input type that accepts FeaturesNetappArgs, FeaturesNetappPtr and FeaturesNetappPtrOutput values. +// You can construct a concrete instance of `FeaturesNetappPtrInput` via: +// +// FeaturesNetappArgs{...} +// +// or: +// +// nil +type FeaturesNetappPtrInput interface { + pulumi.Input + + ToFeaturesNetappPtrOutput() FeaturesNetappPtrOutput + ToFeaturesNetappPtrOutputWithContext(context.Context) FeaturesNetappPtrOutput +} + +type featuresNetappPtrType FeaturesNetappArgs + +func FeaturesNetappPtr(v *FeaturesNetappArgs) FeaturesNetappPtrInput { + return (*featuresNetappPtrType)(v) +} + +func (*featuresNetappPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**FeaturesNetapp)(nil)).Elem() +} + +func (i *featuresNetappPtrType) ToFeaturesNetappPtrOutput() FeaturesNetappPtrOutput { + return i.ToFeaturesNetappPtrOutputWithContext(context.Background()) +} + +func (i *featuresNetappPtrType) ToFeaturesNetappPtrOutputWithContext(ctx context.Context) FeaturesNetappPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(FeaturesNetappPtrOutput) +} + +type FeaturesNetappOutput struct{ *pulumi.OutputState } + +func (FeaturesNetappOutput) ElementType() reflect.Type { + return reflect.TypeOf((*FeaturesNetapp)(nil)).Elem() +} + +func (o FeaturesNetappOutput) ToFeaturesNetappOutput() FeaturesNetappOutput { + return o +} + +func (o FeaturesNetappOutput) ToFeaturesNetappOutputWithContext(ctx context.Context) FeaturesNetappOutput { + return o +} + +func (o FeaturesNetappOutput) ToFeaturesNetappPtrOutput() FeaturesNetappPtrOutput { + return o.ToFeaturesNetappPtrOutputWithContext(context.Background()) +} + +func (o FeaturesNetappOutput) ToFeaturesNetappPtrOutputWithContext(ctx context.Context) FeaturesNetappPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v FeaturesNetapp) *FeaturesNetapp { + return &v + }).(FeaturesNetappPtrOutput) +} + +// When enabled, backups will be deleted when the `netapp.BackupVault` resource is destroyed +func (o FeaturesNetappOutput) DeleteBackupsOnBackupVaultDestroy() pulumi.BoolPtrOutput { + return o.ApplyT(func(v FeaturesNetapp) *bool { return v.DeleteBackupsOnBackupVaultDestroy }).(pulumi.BoolPtrOutput) +} + +// When enabled, the volume will not be destroyed, safeguarding from severe data loss +func (o FeaturesNetappOutput) PreventVolumeDestruction() pulumi.BoolPtrOutput { + return o.ApplyT(func(v FeaturesNetapp) *bool { return v.PreventVolumeDestruction }).(pulumi.BoolPtrOutput) +} + +type FeaturesNetappPtrOutput struct{ *pulumi.OutputState } + +func (FeaturesNetappPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**FeaturesNetapp)(nil)).Elem() +} + +func (o FeaturesNetappPtrOutput) ToFeaturesNetappPtrOutput() FeaturesNetappPtrOutput { + return o +} + +func (o FeaturesNetappPtrOutput) ToFeaturesNetappPtrOutputWithContext(ctx context.Context) FeaturesNetappPtrOutput { + return o +} + +func (o FeaturesNetappPtrOutput) Elem() FeaturesNetappOutput { + return o.ApplyT(func(v *FeaturesNetapp) FeaturesNetapp { + if v != nil { + return *v + } + var ret FeaturesNetapp + return ret + }).(FeaturesNetappOutput) +} + +// When enabled, backups will be deleted when the `netapp.BackupVault` resource is destroyed +func (o FeaturesNetappPtrOutput) DeleteBackupsOnBackupVaultDestroy() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *FeaturesNetapp) *bool { + if v == nil { + return nil + } + return v.DeleteBackupsOnBackupVaultDestroy + }).(pulumi.BoolPtrOutput) +} + +// When enabled, the volume will not be destroyed, safeguarding from severe data loss +func (o FeaturesNetappPtrOutput) PreventVolumeDestruction() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *FeaturesNetapp) *bool { + if v == nil { + return nil + } + return v.PreventVolumeDestruction + }).(pulumi.BoolPtrOutput) +} + type FeaturesPostgresqlFlexibleServer struct { RestartServerOnConfigurationValueChange *bool `pulumi:"restartServerOnConfigurationValueChange"` } @@ -2766,6 +2928,8 @@ func init() { pulumi.RegisterInputType(reflect.TypeOf((*FeaturesMachineLearningPtrInput)(nil)).Elem(), FeaturesMachineLearningArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*FeaturesManagedDiskInput)(nil)).Elem(), FeaturesManagedDiskArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*FeaturesManagedDiskPtrInput)(nil)).Elem(), FeaturesManagedDiskArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*FeaturesNetappInput)(nil)).Elem(), FeaturesNetappArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*FeaturesNetappPtrInput)(nil)).Elem(), FeaturesNetappArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*FeaturesPostgresqlFlexibleServerInput)(nil)).Elem(), FeaturesPostgresqlFlexibleServerArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*FeaturesPostgresqlFlexibleServerPtrInput)(nil)).Elem(), FeaturesPostgresqlFlexibleServerArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*FeaturesRecoveryServiceInput)(nil)).Elem(), FeaturesRecoveryServiceArgs{}) @@ -2801,6 +2965,8 @@ func init() { pulumi.RegisterOutputType(FeaturesMachineLearningPtrOutput{}) pulumi.RegisterOutputType(FeaturesManagedDiskOutput{}) pulumi.RegisterOutputType(FeaturesManagedDiskPtrOutput{}) + pulumi.RegisterOutputType(FeaturesNetappOutput{}) + pulumi.RegisterOutputType(FeaturesNetappPtrOutput{}) pulumi.RegisterOutputType(FeaturesPostgresqlFlexibleServerOutput{}) pulumi.RegisterOutputType(FeaturesPostgresqlFlexibleServerPtrOutput{}) pulumi.RegisterOutputType(FeaturesRecoveryServiceOutput{}) diff --git a/sdk/go/azure/fluidrelay/server.go b/sdk/go/azure/fluidrelay/server.go index dd605d84c9..73f42f3e98 100644 --- a/sdk/go/azure/fluidrelay/server.go +++ b/sdk/go/azure/fluidrelay/server.go @@ -60,6 +60,7 @@ import ( type Server struct { pulumi.CustomResourceState + // A `customerManagedKey` block as defined below. Changing this forces a new resource to be created. CustomerManagedKey ServerCustomerManagedKeyPtrOutput `pulumi:"customerManagedKey"` // The Fluid tenantId for this server. FrsTenantId pulumi.StringOutput `pulumi:"frsTenantId"` @@ -125,6 +126,7 @@ func GetServer(ctx *pulumi.Context, // Input properties used for looking up and filtering Server resources. type serverState struct { + // A `customerManagedKey` block as defined below. Changing this forces a new resource to be created. CustomerManagedKey *ServerCustomerManagedKey `pulumi:"customerManagedKey"` // The Fluid tenantId for this server. FrsTenantId *string `pulumi:"frsTenantId"` @@ -153,6 +155,7 @@ type serverState struct { } type ServerState struct { + // A `customerManagedKey` block as defined below. Changing this forces a new resource to be created. CustomerManagedKey ServerCustomerManagedKeyPtrInput // The Fluid tenantId for this server. FrsTenantId pulumi.StringPtrInput @@ -185,6 +188,7 @@ func (ServerState) ElementType() reflect.Type { } type serverArgs struct { + // A `customerManagedKey` block as defined below. Changing this forces a new resource to be created. CustomerManagedKey *ServerCustomerManagedKey `pulumi:"customerManagedKey"` // An `identity` block as defined below. Identity *ServerIdentity `pulumi:"identity"` @@ -202,6 +206,7 @@ type serverArgs struct { // The set of arguments for constructing a Server resource. type ServerArgs struct { + // A `customerManagedKey` block as defined below. Changing this forces a new resource to be created. CustomerManagedKey ServerCustomerManagedKeyPtrInput // An `identity` block as defined below. Identity ServerIdentityPtrInput @@ -304,6 +309,7 @@ func (o ServerOutput) ToServerOutputWithContext(ctx context.Context) ServerOutpu return o } +// A `customerManagedKey` block as defined below. Changing this forces a new resource to be created. func (o ServerOutput) CustomerManagedKey() ServerCustomerManagedKeyPtrOutput { return o.ApplyT(func(v *Server) ServerCustomerManagedKeyPtrOutput { return v.CustomerManagedKey }).(ServerCustomerManagedKeyPtrOutput) } diff --git a/sdk/go/azure/keyvault/getManagedHardwareSecurityModuleKey.go b/sdk/go/azure/keyvault/getManagedHardwareSecurityModuleKey.go new file mode 100644 index 0000000000..a66061a1a7 --- /dev/null +++ b/sdk/go/azure/keyvault/getManagedHardwareSecurityModuleKey.go @@ -0,0 +1,196 @@ +// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT. +// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** + +package keyvault + +import ( + "context" + "reflect" + + "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" + "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +) + +// Use this data source to access information about an existing Managed Hardware Security Module Key. +// +// > **Note:** All arguments including the secret value will be stored in the raw state as plain-text. +// [Read more about sensitive data in state](https://www.terraform.io/docs/state/sensitive-data.html). +// +// ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/keyvault" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// example, err := keyvault.LookupManagedHardwareSecurityModuleKey(ctx, &keyvault.LookupManagedHardwareSecurityModuleKeyArgs{ +// ManagedHsmId: exampleAzurermKeyVaultManagedHardwareSecurityModule.Id, +// Name: exampleAzurermKeyVaultManagedHardwareSecurityModuleKey.Name, +// }, nil) +// if err != nil { +// return err +// } +// ctx.Export("hsm-key-vesrion", example.Version) +// return nil +// }) +// } +// +// ``` +func LookupManagedHardwareSecurityModuleKey(ctx *pulumi.Context, args *LookupManagedHardwareSecurityModuleKeyArgs, opts ...pulumi.InvokeOption) (*LookupManagedHardwareSecurityModuleKeyResult, error) { + opts = internal.PkgInvokeDefaultOpts(opts) + var rv LookupManagedHardwareSecurityModuleKeyResult + err := ctx.Invoke("azure:keyvault/getManagedHardwareSecurityModuleKey:getManagedHardwareSecurityModuleKey", args, &rv, opts...) + if err != nil { + return nil, err + } + return &rv, nil +} + +// A collection of arguments for invoking getManagedHardwareSecurityModuleKey. +type LookupManagedHardwareSecurityModuleKeyArgs struct { + // Specifies the ID of the Managed Hardware Security Module instance where the Secret resides, available on the `keyvault.ManagedHardwareSecurityModuleKey` Data Source / Resource. + // + // **NOTE:** The Managed Hardware Security Module must be in the same subscription as the provider. If the Managed Hardware Security Module is in another subscription, you must create an aliased provider for that subscription. + ManagedHsmId string `pulumi:"managedHsmId"` + // Specifies the name of the Managed Hardware Security Module Key. + Name string `pulumi:"name"` +} + +// A collection of values returned by getManagedHardwareSecurityModuleKey. +type LookupManagedHardwareSecurityModuleKeyResult struct { + // The EC Curve name of this Managed Hardware Security Module Key. + Curve string `pulumi:"curve"` + ExpirationDate string `pulumi:"expirationDate"` + // The provider-assigned unique ID for this managed resource. + Id string `pulumi:"id"` + // A list of JSON web key operations assigned to this Managed Hardware Security Module Key + KeyOpts []string `pulumi:"keyOpts"` + // Specifies the Size of this Managed Hardware Security Module Key. + KeySize int `pulumi:"keySize"` + // Specifies the Key Type of this Managed Hardware Security Module Key + KeyType string `pulumi:"keyType"` + ManagedHsmId string `pulumi:"managedHsmId"` + Name string `pulumi:"name"` + NotBeforeDate string `pulumi:"notBeforeDate"` + // A mapping of tags assigned to this Managed Hardware Security Module Key. + Tags map[string]string `pulumi:"tags"` + // The current version of the Managed Hardware Security Module Key. + Version string `pulumi:"version"` + // The versioned ID of the Managed Hardware Security Module Key. + VersionedId string `pulumi:"versionedId"` +} + +func LookupManagedHardwareSecurityModuleKeyOutput(ctx *pulumi.Context, args LookupManagedHardwareSecurityModuleKeyOutputArgs, opts ...pulumi.InvokeOption) LookupManagedHardwareSecurityModuleKeyResultOutput { + return pulumi.ToOutputWithContext(context.Background(), args). + ApplyT(func(v interface{}) (LookupManagedHardwareSecurityModuleKeyResultOutput, error) { + args := v.(LookupManagedHardwareSecurityModuleKeyArgs) + opts = internal.PkgInvokeDefaultOpts(opts) + var rv LookupManagedHardwareSecurityModuleKeyResult + secret, err := ctx.InvokePackageRaw("azure:keyvault/getManagedHardwareSecurityModuleKey:getManagedHardwareSecurityModuleKey", args, &rv, "", opts...) + if err != nil { + return LookupManagedHardwareSecurityModuleKeyResultOutput{}, err + } + + output := pulumi.ToOutput(rv).(LookupManagedHardwareSecurityModuleKeyResultOutput) + if secret { + return pulumi.ToSecret(output).(LookupManagedHardwareSecurityModuleKeyResultOutput), nil + } + return output, nil + }).(LookupManagedHardwareSecurityModuleKeyResultOutput) +} + +// A collection of arguments for invoking getManagedHardwareSecurityModuleKey. +type LookupManagedHardwareSecurityModuleKeyOutputArgs struct { + // Specifies the ID of the Managed Hardware Security Module instance where the Secret resides, available on the `keyvault.ManagedHardwareSecurityModuleKey` Data Source / Resource. + // + // **NOTE:** The Managed Hardware Security Module must be in the same subscription as the provider. If the Managed Hardware Security Module is in another subscription, you must create an aliased provider for that subscription. + ManagedHsmId pulumi.StringInput `pulumi:"managedHsmId"` + // Specifies the name of the Managed Hardware Security Module Key. + Name pulumi.StringInput `pulumi:"name"` +} + +func (LookupManagedHardwareSecurityModuleKeyOutputArgs) ElementType() reflect.Type { + return reflect.TypeOf((*LookupManagedHardwareSecurityModuleKeyArgs)(nil)).Elem() +} + +// A collection of values returned by getManagedHardwareSecurityModuleKey. +type LookupManagedHardwareSecurityModuleKeyResultOutput struct{ *pulumi.OutputState } + +func (LookupManagedHardwareSecurityModuleKeyResultOutput) ElementType() reflect.Type { + return reflect.TypeOf((*LookupManagedHardwareSecurityModuleKeyResult)(nil)).Elem() +} + +func (o LookupManagedHardwareSecurityModuleKeyResultOutput) ToLookupManagedHardwareSecurityModuleKeyResultOutput() LookupManagedHardwareSecurityModuleKeyResultOutput { + return o +} + +func (o LookupManagedHardwareSecurityModuleKeyResultOutput) ToLookupManagedHardwareSecurityModuleKeyResultOutputWithContext(ctx context.Context) LookupManagedHardwareSecurityModuleKeyResultOutput { + return o +} + +// The EC Curve name of this Managed Hardware Security Module Key. +func (o LookupManagedHardwareSecurityModuleKeyResultOutput) Curve() pulumi.StringOutput { + return o.ApplyT(func(v LookupManagedHardwareSecurityModuleKeyResult) string { return v.Curve }).(pulumi.StringOutput) +} + +func (o LookupManagedHardwareSecurityModuleKeyResultOutput) ExpirationDate() pulumi.StringOutput { + return o.ApplyT(func(v LookupManagedHardwareSecurityModuleKeyResult) string { return v.ExpirationDate }).(pulumi.StringOutput) +} + +// The provider-assigned unique ID for this managed resource. +func (o LookupManagedHardwareSecurityModuleKeyResultOutput) Id() pulumi.StringOutput { + return o.ApplyT(func(v LookupManagedHardwareSecurityModuleKeyResult) string { return v.Id }).(pulumi.StringOutput) +} + +// A list of JSON web key operations assigned to this Managed Hardware Security Module Key +func (o LookupManagedHardwareSecurityModuleKeyResultOutput) KeyOpts() pulumi.StringArrayOutput { + return o.ApplyT(func(v LookupManagedHardwareSecurityModuleKeyResult) []string { return v.KeyOpts }).(pulumi.StringArrayOutput) +} + +// Specifies the Size of this Managed Hardware Security Module Key. +func (o LookupManagedHardwareSecurityModuleKeyResultOutput) KeySize() pulumi.IntOutput { + return o.ApplyT(func(v LookupManagedHardwareSecurityModuleKeyResult) int { return v.KeySize }).(pulumi.IntOutput) +} + +// Specifies the Key Type of this Managed Hardware Security Module Key +func (o LookupManagedHardwareSecurityModuleKeyResultOutput) KeyType() pulumi.StringOutput { + return o.ApplyT(func(v LookupManagedHardwareSecurityModuleKeyResult) string { return v.KeyType }).(pulumi.StringOutput) +} + +func (o LookupManagedHardwareSecurityModuleKeyResultOutput) ManagedHsmId() pulumi.StringOutput { + return o.ApplyT(func(v LookupManagedHardwareSecurityModuleKeyResult) string { return v.ManagedHsmId }).(pulumi.StringOutput) +} + +func (o LookupManagedHardwareSecurityModuleKeyResultOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v LookupManagedHardwareSecurityModuleKeyResult) string { return v.Name }).(pulumi.StringOutput) +} + +func (o LookupManagedHardwareSecurityModuleKeyResultOutput) NotBeforeDate() pulumi.StringOutput { + return o.ApplyT(func(v LookupManagedHardwareSecurityModuleKeyResult) string { return v.NotBeforeDate }).(pulumi.StringOutput) +} + +// A mapping of tags assigned to this Managed Hardware Security Module Key. +func (o LookupManagedHardwareSecurityModuleKeyResultOutput) Tags() pulumi.StringMapOutput { + return o.ApplyT(func(v LookupManagedHardwareSecurityModuleKeyResult) map[string]string { return v.Tags }).(pulumi.StringMapOutput) +} + +// The current version of the Managed Hardware Security Module Key. +func (o LookupManagedHardwareSecurityModuleKeyResultOutput) Version() pulumi.StringOutput { + return o.ApplyT(func(v LookupManagedHardwareSecurityModuleKeyResult) string { return v.Version }).(pulumi.StringOutput) +} + +// The versioned ID of the Managed Hardware Security Module Key. +func (o LookupManagedHardwareSecurityModuleKeyResultOutput) VersionedId() pulumi.StringOutput { + return o.ApplyT(func(v LookupManagedHardwareSecurityModuleKeyResult) string { return v.VersionedId }).(pulumi.StringOutput) +} + +func init() { + pulumi.RegisterOutputType(LookupManagedHardwareSecurityModuleKeyResultOutput{}) +} diff --git a/sdk/go/azure/mssql/pulumiTypes.go b/sdk/go/azure/mssql/pulumiTypes.go index aedd5e4ffc..5b65f848f4 100644 --- a/sdk/go/azure/mssql/pulumiTypes.go +++ b/sdk/go/azure/mssql/pulumiTypes.go @@ -421,13 +421,14 @@ func (o DatabaseImportPtrOutput) StorageUri() pulumi.StringPtrOutput { } type DatabaseLongTermRetentionPolicy struct { - // The monthly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 120 months. e.g. `P1Y`, `P1M`, `P4W` or `P30D`. + ImmutableBackupsEnabled *bool `pulumi:"immutableBackupsEnabled"` + // The monthly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 120 months. e.g. `P1Y`, `P1M`, `P4W` or `P30D`. Defaults to `PT0S`. MonthlyRetention *string `pulumi:"monthlyRetention"` // The week of year to take the yearly backup. Value has to be between `1` and `52`. WeekOfYear *int `pulumi:"weekOfYear"` - // The weekly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 520 weeks. e.g. `P1Y`, `P1M`, `P1W` or `P7D`. + // The weekly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 520 weeks. e.g. `P1Y`, `P1M`, `P1W` or `P7D`. Defaults to `PT0S`. WeeklyRetention *string `pulumi:"weeklyRetention"` - // The yearly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 10 years. e.g. `P1Y`, `P12M`, `P52W` or `P365D`. + // The yearly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 10 years. e.g. `P1Y`, `P12M`, `P52W` or `P365D`. Defaults to `PT0S`. YearlyRetention *string `pulumi:"yearlyRetention"` } @@ -443,13 +444,14 @@ type DatabaseLongTermRetentionPolicyInput interface { } type DatabaseLongTermRetentionPolicyArgs struct { - // The monthly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 120 months. e.g. `P1Y`, `P1M`, `P4W` or `P30D`. + ImmutableBackupsEnabled pulumi.BoolPtrInput `pulumi:"immutableBackupsEnabled"` + // The monthly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 120 months. e.g. `P1Y`, `P1M`, `P4W` or `P30D`. Defaults to `PT0S`. MonthlyRetention pulumi.StringPtrInput `pulumi:"monthlyRetention"` // The week of year to take the yearly backup. Value has to be between `1` and `52`. WeekOfYear pulumi.IntPtrInput `pulumi:"weekOfYear"` - // The weekly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 520 weeks. e.g. `P1Y`, `P1M`, `P1W` or `P7D`. + // The weekly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 520 weeks. e.g. `P1Y`, `P1M`, `P1W` or `P7D`. Defaults to `PT0S`. WeeklyRetention pulumi.StringPtrInput `pulumi:"weeklyRetention"` - // The yearly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 10 years. e.g. `P1Y`, `P12M`, `P52W` or `P365D`. + // The yearly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 10 years. e.g. `P1Y`, `P12M`, `P52W` or `P365D`. Defaults to `PT0S`. YearlyRetention pulumi.StringPtrInput `pulumi:"yearlyRetention"` } @@ -530,7 +532,11 @@ func (o DatabaseLongTermRetentionPolicyOutput) ToDatabaseLongTermRetentionPolicy }).(DatabaseLongTermRetentionPolicyPtrOutput) } -// The monthly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 120 months. e.g. `P1Y`, `P1M`, `P4W` or `P30D`. +func (o DatabaseLongTermRetentionPolicyOutput) ImmutableBackupsEnabled() pulumi.BoolPtrOutput { + return o.ApplyT(func(v DatabaseLongTermRetentionPolicy) *bool { return v.ImmutableBackupsEnabled }).(pulumi.BoolPtrOutput) +} + +// The monthly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 120 months. e.g. `P1Y`, `P1M`, `P4W` or `P30D`. Defaults to `PT0S`. func (o DatabaseLongTermRetentionPolicyOutput) MonthlyRetention() pulumi.StringPtrOutput { return o.ApplyT(func(v DatabaseLongTermRetentionPolicy) *string { return v.MonthlyRetention }).(pulumi.StringPtrOutput) } @@ -540,12 +546,12 @@ func (o DatabaseLongTermRetentionPolicyOutput) WeekOfYear() pulumi.IntPtrOutput return o.ApplyT(func(v DatabaseLongTermRetentionPolicy) *int { return v.WeekOfYear }).(pulumi.IntPtrOutput) } -// The weekly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 520 weeks. e.g. `P1Y`, `P1M`, `P1W` or `P7D`. +// The weekly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 520 weeks. e.g. `P1Y`, `P1M`, `P1W` or `P7D`. Defaults to `PT0S`. func (o DatabaseLongTermRetentionPolicyOutput) WeeklyRetention() pulumi.StringPtrOutput { return o.ApplyT(func(v DatabaseLongTermRetentionPolicy) *string { return v.WeeklyRetention }).(pulumi.StringPtrOutput) } -// The yearly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 10 years. e.g. `P1Y`, `P12M`, `P52W` or `P365D`. +// The yearly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 10 years. e.g. `P1Y`, `P12M`, `P52W` or `P365D`. Defaults to `PT0S`. func (o DatabaseLongTermRetentionPolicyOutput) YearlyRetention() pulumi.StringPtrOutput { return o.ApplyT(func(v DatabaseLongTermRetentionPolicy) *string { return v.YearlyRetention }).(pulumi.StringPtrOutput) } @@ -574,7 +580,16 @@ func (o DatabaseLongTermRetentionPolicyPtrOutput) Elem() DatabaseLongTermRetenti }).(DatabaseLongTermRetentionPolicyOutput) } -// The monthly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 120 months. e.g. `P1Y`, `P1M`, `P4W` or `P30D`. +func (o DatabaseLongTermRetentionPolicyPtrOutput) ImmutableBackupsEnabled() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *DatabaseLongTermRetentionPolicy) *bool { + if v == nil { + return nil + } + return v.ImmutableBackupsEnabled + }).(pulumi.BoolPtrOutput) +} + +// The monthly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 120 months. e.g. `P1Y`, `P1M`, `P4W` or `P30D`. Defaults to `PT0S`. func (o DatabaseLongTermRetentionPolicyPtrOutput) MonthlyRetention() pulumi.StringPtrOutput { return o.ApplyT(func(v *DatabaseLongTermRetentionPolicy) *string { if v == nil { @@ -594,7 +609,7 @@ func (o DatabaseLongTermRetentionPolicyPtrOutput) WeekOfYear() pulumi.IntPtrOutp }).(pulumi.IntPtrOutput) } -// The weekly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 520 weeks. e.g. `P1Y`, `P1M`, `P1W` or `P7D`. +// The weekly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 520 weeks. e.g. `P1Y`, `P1M`, `P1W` or `P7D`. Defaults to `PT0S`. func (o DatabaseLongTermRetentionPolicyPtrOutput) WeeklyRetention() pulumi.StringPtrOutput { return o.ApplyT(func(v *DatabaseLongTermRetentionPolicy) *string { if v == nil { @@ -604,7 +619,7 @@ func (o DatabaseLongTermRetentionPolicyPtrOutput) WeeklyRetention() pulumi.Strin }).(pulumi.StringPtrOutput) } -// The yearly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 10 years. e.g. `P1Y`, `P12M`, `P52W` or `P365D`. +// The yearly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 10 years. e.g. `P1Y`, `P12M`, `P52W` or `P365D`. Defaults to `PT0S`. func (o DatabaseLongTermRetentionPolicyPtrOutput) YearlyRetention() pulumi.StringPtrOutput { return o.ApplyT(func(v *DatabaseLongTermRetentionPolicy) *string { if v == nil { @@ -1740,13 +1755,14 @@ func (o FailoverGroupReadWriteEndpointFailoverPolicyPtrOutput) Mode() pulumi.Str } type ManagedDatabaseLongTermRetentionPolicy struct { - // The monthly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 120 months. e.g. `P1Y`, `P1M`, `P4W` or `P30D`. + ImmutableBackupsEnabled *bool `pulumi:"immutableBackupsEnabled"` + // The monthly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 120 months. e.g. `P1Y`, `P1M`, `P4W` or `P30D`. Defaults to `PT0S`. MonthlyRetention *string `pulumi:"monthlyRetention"` // The week of year to take the yearly backup. Value has to be between `1` and `52`. WeekOfYear *int `pulumi:"weekOfYear"` - // The weekly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 520 weeks. e.g. `P1Y`, `P1M`, `P1W` or `P7D`. + // The weekly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 520 weeks. e.g. `P1Y`, `P1M`, `P1W` or `P7D`. Defaults to `PT0S`. WeeklyRetention *string `pulumi:"weeklyRetention"` - // The yearly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 10 years. e.g. `P1Y`, `P12M`, `P52W` or `P365D`. + // The yearly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 10 years. e.g. `P1Y`, `P12M`, `P52W` or `P365D`. Defaults to `PT0S`. YearlyRetention *string `pulumi:"yearlyRetention"` } @@ -1762,13 +1778,14 @@ type ManagedDatabaseLongTermRetentionPolicyInput interface { } type ManagedDatabaseLongTermRetentionPolicyArgs struct { - // The monthly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 120 months. e.g. `P1Y`, `P1M`, `P4W` or `P30D`. + ImmutableBackupsEnabled pulumi.BoolPtrInput `pulumi:"immutableBackupsEnabled"` + // The monthly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 120 months. e.g. `P1Y`, `P1M`, `P4W` or `P30D`. Defaults to `PT0S`. MonthlyRetention pulumi.StringPtrInput `pulumi:"monthlyRetention"` // The week of year to take the yearly backup. Value has to be between `1` and `52`. WeekOfYear pulumi.IntPtrInput `pulumi:"weekOfYear"` - // The weekly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 520 weeks. e.g. `P1Y`, `P1M`, `P1W` or `P7D`. + // The weekly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 520 weeks. e.g. `P1Y`, `P1M`, `P1W` or `P7D`. Defaults to `PT0S`. WeeklyRetention pulumi.StringPtrInput `pulumi:"weeklyRetention"` - // The yearly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 10 years. e.g. `P1Y`, `P12M`, `P52W` or `P365D`. + // The yearly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 10 years. e.g. `P1Y`, `P12M`, `P52W` or `P365D`. Defaults to `PT0S`. YearlyRetention pulumi.StringPtrInput `pulumi:"yearlyRetention"` } @@ -1849,7 +1866,11 @@ func (o ManagedDatabaseLongTermRetentionPolicyOutput) ToManagedDatabaseLongTermR }).(ManagedDatabaseLongTermRetentionPolicyPtrOutput) } -// The monthly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 120 months. e.g. `P1Y`, `P1M`, `P4W` or `P30D`. +func (o ManagedDatabaseLongTermRetentionPolicyOutput) ImmutableBackupsEnabled() pulumi.BoolPtrOutput { + return o.ApplyT(func(v ManagedDatabaseLongTermRetentionPolicy) *bool { return v.ImmutableBackupsEnabled }).(pulumi.BoolPtrOutput) +} + +// The monthly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 120 months. e.g. `P1Y`, `P1M`, `P4W` or `P30D`. Defaults to `PT0S`. func (o ManagedDatabaseLongTermRetentionPolicyOutput) MonthlyRetention() pulumi.StringPtrOutput { return o.ApplyT(func(v ManagedDatabaseLongTermRetentionPolicy) *string { return v.MonthlyRetention }).(pulumi.StringPtrOutput) } @@ -1859,12 +1880,12 @@ func (o ManagedDatabaseLongTermRetentionPolicyOutput) WeekOfYear() pulumi.IntPtr return o.ApplyT(func(v ManagedDatabaseLongTermRetentionPolicy) *int { return v.WeekOfYear }).(pulumi.IntPtrOutput) } -// The weekly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 520 weeks. e.g. `P1Y`, `P1M`, `P1W` or `P7D`. +// The weekly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 520 weeks. e.g. `P1Y`, `P1M`, `P1W` or `P7D`. Defaults to `PT0S`. func (o ManagedDatabaseLongTermRetentionPolicyOutput) WeeklyRetention() pulumi.StringPtrOutput { return o.ApplyT(func(v ManagedDatabaseLongTermRetentionPolicy) *string { return v.WeeklyRetention }).(pulumi.StringPtrOutput) } -// The yearly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 10 years. e.g. `P1Y`, `P12M`, `P52W` or `P365D`. +// The yearly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 10 years. e.g. `P1Y`, `P12M`, `P52W` or `P365D`. Defaults to `PT0S`. func (o ManagedDatabaseLongTermRetentionPolicyOutput) YearlyRetention() pulumi.StringPtrOutput { return o.ApplyT(func(v ManagedDatabaseLongTermRetentionPolicy) *string { return v.YearlyRetention }).(pulumi.StringPtrOutput) } @@ -1893,7 +1914,16 @@ func (o ManagedDatabaseLongTermRetentionPolicyPtrOutput) Elem() ManagedDatabaseL }).(ManagedDatabaseLongTermRetentionPolicyOutput) } -// The monthly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 120 months. e.g. `P1Y`, `P1M`, `P4W` or `P30D`. +func (o ManagedDatabaseLongTermRetentionPolicyPtrOutput) ImmutableBackupsEnabled() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *ManagedDatabaseLongTermRetentionPolicy) *bool { + if v == nil { + return nil + } + return v.ImmutableBackupsEnabled + }).(pulumi.BoolPtrOutput) +} + +// The monthly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 120 months. e.g. `P1Y`, `P1M`, `P4W` or `P30D`. Defaults to `PT0S`. func (o ManagedDatabaseLongTermRetentionPolicyPtrOutput) MonthlyRetention() pulumi.StringPtrOutput { return o.ApplyT(func(v *ManagedDatabaseLongTermRetentionPolicy) *string { if v == nil { @@ -1913,7 +1943,7 @@ func (o ManagedDatabaseLongTermRetentionPolicyPtrOutput) WeekOfYear() pulumi.Int }).(pulumi.IntPtrOutput) } -// The weekly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 520 weeks. e.g. `P1Y`, `P1M`, `P1W` or `P7D`. +// The weekly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 520 weeks. e.g. `P1Y`, `P1M`, `P1W` or `P7D`. Defaults to `PT0S`. func (o ManagedDatabaseLongTermRetentionPolicyPtrOutput) WeeklyRetention() pulumi.StringPtrOutput { return o.ApplyT(func(v *ManagedDatabaseLongTermRetentionPolicy) *string { if v == nil { @@ -1923,7 +1953,7 @@ func (o ManagedDatabaseLongTermRetentionPolicyPtrOutput) WeeklyRetention() pulum }).(pulumi.StringPtrOutput) } -// The yearly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 10 years. e.g. `P1Y`, `P12M`, `P52W` or `P365D`. +// The yearly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 10 years. e.g. `P1Y`, `P12M`, `P52W` or `P365D`. Defaults to `PT0S`. func (o ManagedDatabaseLongTermRetentionPolicyPtrOutput) YearlyRetention() pulumi.StringPtrOutput { return o.ApplyT(func(v *ManagedDatabaseLongTermRetentionPolicy) *string { if v == nil { diff --git a/sdk/go/azure/netapp/backupPolicy.go b/sdk/go/azure/netapp/backupPolicy.go new file mode 100644 index 0000000000..b4bb19f233 --- /dev/null +++ b/sdk/go/azure/netapp/backupPolicy.go @@ -0,0 +1,408 @@ +// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT. +// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** + +package netapp + +import ( + "context" + "reflect" + + "errors" + "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" + "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +) + +// Manages a NetApp Backup Policy. +// +// ## NetApp Backup Policy Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core" +// "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/netapp" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{ +// Name: pulumi.String("example-resources"), +// Location: pulumi.String("West Europe"), +// }) +// if err != nil { +// return err +// } +// exampleAccount, err := netapp.NewAccount(ctx, "example", &netapp.AccountArgs{ +// Name: pulumi.String("example-netappaccount"), +// Location: example.Location, +// ResourceGroupName: example.Name, +// }) +// if err != nil { +// return err +// } +// _, err = netapp.NewBackupPolicy(ctx, "example", &netapp.BackupPolicyArgs{ +// Name: pulumi.String("example-netappbackuppolicy"), +// ResourceGroupName: example.Name, +// Location: example.Location, +// AccountName: exampleAccount.Name, +// Enabled: pulumi.Bool(true), +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` +// +// ## Import +// +// NetApp Backup Policy can be imported using the `resource id`, e.g. +// +// ```sh +// $ pulumi import azure:netapp/backupPolicy:BackupPolicy example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.NetApp/netAppAccounts/account1/backupPolicies/backuppolicy1 +// ``` +type BackupPolicy struct { + pulumi.CustomResourceState + + // The name of the NetApp account in which the NetApp Policy should be created under. Changing this forces a new resource to be created. + AccountName pulumi.StringOutput `pulumi:"accountName"` + // Provides the number of daily backups to keep, defaults to `2` which is the minimum, maximum is 1019. + DailyBackupsToKeep pulumi.IntPtrOutput `pulumi:"dailyBackupsToKeep"` + // Whether the Backup Policy is enabled. Defaults to `true`. + Enabled pulumi.BoolPtrOutput `pulumi:"enabled"` + // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. + Location pulumi.StringOutput `pulumi:"location"` + // Provides the number of monthly backups to keep, defaults to `1` which is the minimum, maximum is 1019. + // + // > **Note:** Currently, the combined (daily + weekly + monthy) retention counts cannot exceed 1019. + MonthlyBackupsToKeep pulumi.IntPtrOutput `pulumi:"monthlyBackupsToKeep"` + // The name of the NetApp Backup Policy. Changing this forces a new resource to be created. + Name pulumi.StringOutput `pulumi:"name"` + // The name of the resource group where the NetApp Backup Policy should be created. Changing this forces a new resource to be created. + ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` + // A mapping of tags to assign to the resource. + Tags pulumi.StringMapOutput `pulumi:"tags"` + // Provides the number of weekly backups to keep, defaults to `1` which is the minimum, maximum is 1019. + WeeklyBackupsToKeep pulumi.IntPtrOutput `pulumi:"weeklyBackupsToKeep"` +} + +// NewBackupPolicy registers a new resource with the given unique name, arguments, and options. +func NewBackupPolicy(ctx *pulumi.Context, + name string, args *BackupPolicyArgs, opts ...pulumi.ResourceOption) (*BackupPolicy, error) { + if args == nil { + return nil, errors.New("missing one or more required arguments") + } + + if args.AccountName == nil { + return nil, errors.New("invalid value for required argument 'AccountName'") + } + if args.ResourceGroupName == nil { + return nil, errors.New("invalid value for required argument 'ResourceGroupName'") + } + opts = internal.PkgResourceDefaultOpts(opts) + var resource BackupPolicy + err := ctx.RegisterResource("azure:netapp/backupPolicy:BackupPolicy", name, args, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// GetBackupPolicy gets an existing BackupPolicy resource's state with the given name, ID, and optional +// state properties that are used to uniquely qualify the lookup (nil if not required). +func GetBackupPolicy(ctx *pulumi.Context, + name string, id pulumi.IDInput, state *BackupPolicyState, opts ...pulumi.ResourceOption) (*BackupPolicy, error) { + var resource BackupPolicy + err := ctx.ReadResource("azure:netapp/backupPolicy:BackupPolicy", name, id, state, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// Input properties used for looking up and filtering BackupPolicy resources. +type backupPolicyState struct { + // The name of the NetApp account in which the NetApp Policy should be created under. Changing this forces a new resource to be created. + AccountName *string `pulumi:"accountName"` + // Provides the number of daily backups to keep, defaults to `2` which is the minimum, maximum is 1019. + DailyBackupsToKeep *int `pulumi:"dailyBackupsToKeep"` + // Whether the Backup Policy is enabled. Defaults to `true`. + Enabled *bool `pulumi:"enabled"` + // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. + Location *string `pulumi:"location"` + // Provides the number of monthly backups to keep, defaults to `1` which is the minimum, maximum is 1019. + // + // > **Note:** Currently, the combined (daily + weekly + monthy) retention counts cannot exceed 1019. + MonthlyBackupsToKeep *int `pulumi:"monthlyBackupsToKeep"` + // The name of the NetApp Backup Policy. Changing this forces a new resource to be created. + Name *string `pulumi:"name"` + // The name of the resource group where the NetApp Backup Policy should be created. Changing this forces a new resource to be created. + ResourceGroupName *string `pulumi:"resourceGroupName"` + // A mapping of tags to assign to the resource. + Tags map[string]string `pulumi:"tags"` + // Provides the number of weekly backups to keep, defaults to `1` which is the minimum, maximum is 1019. + WeeklyBackupsToKeep *int `pulumi:"weeklyBackupsToKeep"` +} + +type BackupPolicyState struct { + // The name of the NetApp account in which the NetApp Policy should be created under. Changing this forces a new resource to be created. + AccountName pulumi.StringPtrInput + // Provides the number of daily backups to keep, defaults to `2` which is the minimum, maximum is 1019. + DailyBackupsToKeep pulumi.IntPtrInput + // Whether the Backup Policy is enabled. Defaults to `true`. + Enabled pulumi.BoolPtrInput + // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. + Location pulumi.StringPtrInput + // Provides the number of monthly backups to keep, defaults to `1` which is the minimum, maximum is 1019. + // + // > **Note:** Currently, the combined (daily + weekly + monthy) retention counts cannot exceed 1019. + MonthlyBackupsToKeep pulumi.IntPtrInput + // The name of the NetApp Backup Policy. Changing this forces a new resource to be created. + Name pulumi.StringPtrInput + // The name of the resource group where the NetApp Backup Policy should be created. Changing this forces a new resource to be created. + ResourceGroupName pulumi.StringPtrInput + // A mapping of tags to assign to the resource. + Tags pulumi.StringMapInput + // Provides the number of weekly backups to keep, defaults to `1` which is the minimum, maximum is 1019. + WeeklyBackupsToKeep pulumi.IntPtrInput +} + +func (BackupPolicyState) ElementType() reflect.Type { + return reflect.TypeOf((*backupPolicyState)(nil)).Elem() +} + +type backupPolicyArgs struct { + // The name of the NetApp account in which the NetApp Policy should be created under. Changing this forces a new resource to be created. + AccountName string `pulumi:"accountName"` + // Provides the number of daily backups to keep, defaults to `2` which is the minimum, maximum is 1019. + DailyBackupsToKeep *int `pulumi:"dailyBackupsToKeep"` + // Whether the Backup Policy is enabled. Defaults to `true`. + Enabled *bool `pulumi:"enabled"` + // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. + Location *string `pulumi:"location"` + // Provides the number of monthly backups to keep, defaults to `1` which is the minimum, maximum is 1019. + // + // > **Note:** Currently, the combined (daily + weekly + monthy) retention counts cannot exceed 1019. + MonthlyBackupsToKeep *int `pulumi:"monthlyBackupsToKeep"` + // The name of the NetApp Backup Policy. Changing this forces a new resource to be created. + Name *string `pulumi:"name"` + // The name of the resource group where the NetApp Backup Policy should be created. Changing this forces a new resource to be created. + ResourceGroupName string `pulumi:"resourceGroupName"` + // A mapping of tags to assign to the resource. + Tags map[string]string `pulumi:"tags"` + // Provides the number of weekly backups to keep, defaults to `1` which is the minimum, maximum is 1019. + WeeklyBackupsToKeep *int `pulumi:"weeklyBackupsToKeep"` +} + +// The set of arguments for constructing a BackupPolicy resource. +type BackupPolicyArgs struct { + // The name of the NetApp account in which the NetApp Policy should be created under. Changing this forces a new resource to be created. + AccountName pulumi.StringInput + // Provides the number of daily backups to keep, defaults to `2` which is the minimum, maximum is 1019. + DailyBackupsToKeep pulumi.IntPtrInput + // Whether the Backup Policy is enabled. Defaults to `true`. + Enabled pulumi.BoolPtrInput + // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. + Location pulumi.StringPtrInput + // Provides the number of monthly backups to keep, defaults to `1` which is the minimum, maximum is 1019. + // + // > **Note:** Currently, the combined (daily + weekly + monthy) retention counts cannot exceed 1019. + MonthlyBackupsToKeep pulumi.IntPtrInput + // The name of the NetApp Backup Policy. Changing this forces a new resource to be created. + Name pulumi.StringPtrInput + // The name of the resource group where the NetApp Backup Policy should be created. Changing this forces a new resource to be created. + ResourceGroupName pulumi.StringInput + // A mapping of tags to assign to the resource. + Tags pulumi.StringMapInput + // Provides the number of weekly backups to keep, defaults to `1` which is the minimum, maximum is 1019. + WeeklyBackupsToKeep pulumi.IntPtrInput +} + +func (BackupPolicyArgs) ElementType() reflect.Type { + return reflect.TypeOf((*backupPolicyArgs)(nil)).Elem() +} + +type BackupPolicyInput interface { + pulumi.Input + + ToBackupPolicyOutput() BackupPolicyOutput + ToBackupPolicyOutputWithContext(ctx context.Context) BackupPolicyOutput +} + +func (*BackupPolicy) ElementType() reflect.Type { + return reflect.TypeOf((**BackupPolicy)(nil)).Elem() +} + +func (i *BackupPolicy) ToBackupPolicyOutput() BackupPolicyOutput { + return i.ToBackupPolicyOutputWithContext(context.Background()) +} + +func (i *BackupPolicy) ToBackupPolicyOutputWithContext(ctx context.Context) BackupPolicyOutput { + return pulumi.ToOutputWithContext(ctx, i).(BackupPolicyOutput) +} + +// BackupPolicyArrayInput is an input type that accepts BackupPolicyArray and BackupPolicyArrayOutput values. +// You can construct a concrete instance of `BackupPolicyArrayInput` via: +// +// BackupPolicyArray{ BackupPolicyArgs{...} } +type BackupPolicyArrayInput interface { + pulumi.Input + + ToBackupPolicyArrayOutput() BackupPolicyArrayOutput + ToBackupPolicyArrayOutputWithContext(context.Context) BackupPolicyArrayOutput +} + +type BackupPolicyArray []BackupPolicyInput + +func (BackupPolicyArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]*BackupPolicy)(nil)).Elem() +} + +func (i BackupPolicyArray) ToBackupPolicyArrayOutput() BackupPolicyArrayOutput { + return i.ToBackupPolicyArrayOutputWithContext(context.Background()) +} + +func (i BackupPolicyArray) ToBackupPolicyArrayOutputWithContext(ctx context.Context) BackupPolicyArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(BackupPolicyArrayOutput) +} + +// BackupPolicyMapInput is an input type that accepts BackupPolicyMap and BackupPolicyMapOutput values. +// You can construct a concrete instance of `BackupPolicyMapInput` via: +// +// BackupPolicyMap{ "key": BackupPolicyArgs{...} } +type BackupPolicyMapInput interface { + pulumi.Input + + ToBackupPolicyMapOutput() BackupPolicyMapOutput + ToBackupPolicyMapOutputWithContext(context.Context) BackupPolicyMapOutput +} + +type BackupPolicyMap map[string]BackupPolicyInput + +func (BackupPolicyMap) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*BackupPolicy)(nil)).Elem() +} + +func (i BackupPolicyMap) ToBackupPolicyMapOutput() BackupPolicyMapOutput { + return i.ToBackupPolicyMapOutputWithContext(context.Background()) +} + +func (i BackupPolicyMap) ToBackupPolicyMapOutputWithContext(ctx context.Context) BackupPolicyMapOutput { + return pulumi.ToOutputWithContext(ctx, i).(BackupPolicyMapOutput) +} + +type BackupPolicyOutput struct{ *pulumi.OutputState } + +func (BackupPolicyOutput) ElementType() reflect.Type { + return reflect.TypeOf((**BackupPolicy)(nil)).Elem() +} + +func (o BackupPolicyOutput) ToBackupPolicyOutput() BackupPolicyOutput { + return o +} + +func (o BackupPolicyOutput) ToBackupPolicyOutputWithContext(ctx context.Context) BackupPolicyOutput { + return o +} + +// The name of the NetApp account in which the NetApp Policy should be created under. Changing this forces a new resource to be created. +func (o BackupPolicyOutput) AccountName() pulumi.StringOutput { + return o.ApplyT(func(v *BackupPolicy) pulumi.StringOutput { return v.AccountName }).(pulumi.StringOutput) +} + +// Provides the number of daily backups to keep, defaults to `2` which is the minimum, maximum is 1019. +func (o BackupPolicyOutput) DailyBackupsToKeep() pulumi.IntPtrOutput { + return o.ApplyT(func(v *BackupPolicy) pulumi.IntPtrOutput { return v.DailyBackupsToKeep }).(pulumi.IntPtrOutput) +} + +// Whether the Backup Policy is enabled. Defaults to `true`. +func (o BackupPolicyOutput) Enabled() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *BackupPolicy) pulumi.BoolPtrOutput { return v.Enabled }).(pulumi.BoolPtrOutput) +} + +// Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. +func (o BackupPolicyOutput) Location() pulumi.StringOutput { + return o.ApplyT(func(v *BackupPolicy) pulumi.StringOutput { return v.Location }).(pulumi.StringOutput) +} + +// Provides the number of monthly backups to keep, defaults to `1` which is the minimum, maximum is 1019. +// +// > **Note:** Currently, the combined (daily + weekly + monthy) retention counts cannot exceed 1019. +func (o BackupPolicyOutput) MonthlyBackupsToKeep() pulumi.IntPtrOutput { + return o.ApplyT(func(v *BackupPolicy) pulumi.IntPtrOutput { return v.MonthlyBackupsToKeep }).(pulumi.IntPtrOutput) +} + +// The name of the NetApp Backup Policy. Changing this forces a new resource to be created. +func (o BackupPolicyOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v *BackupPolicy) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) +} + +// The name of the resource group where the NetApp Backup Policy should be created. Changing this forces a new resource to be created. +func (o BackupPolicyOutput) ResourceGroupName() pulumi.StringOutput { + return o.ApplyT(func(v *BackupPolicy) pulumi.StringOutput { return v.ResourceGroupName }).(pulumi.StringOutput) +} + +// A mapping of tags to assign to the resource. +func (o BackupPolicyOutput) Tags() pulumi.StringMapOutput { + return o.ApplyT(func(v *BackupPolicy) pulumi.StringMapOutput { return v.Tags }).(pulumi.StringMapOutput) +} + +// Provides the number of weekly backups to keep, defaults to `1` which is the minimum, maximum is 1019. +func (o BackupPolicyOutput) WeeklyBackupsToKeep() pulumi.IntPtrOutput { + return o.ApplyT(func(v *BackupPolicy) pulumi.IntPtrOutput { return v.WeeklyBackupsToKeep }).(pulumi.IntPtrOutput) +} + +type BackupPolicyArrayOutput struct{ *pulumi.OutputState } + +func (BackupPolicyArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]*BackupPolicy)(nil)).Elem() +} + +func (o BackupPolicyArrayOutput) ToBackupPolicyArrayOutput() BackupPolicyArrayOutput { + return o +} + +func (o BackupPolicyArrayOutput) ToBackupPolicyArrayOutputWithContext(ctx context.Context) BackupPolicyArrayOutput { + return o +} + +func (o BackupPolicyArrayOutput) Index(i pulumi.IntInput) BackupPolicyOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) *BackupPolicy { + return vs[0].([]*BackupPolicy)[vs[1].(int)] + }).(BackupPolicyOutput) +} + +type BackupPolicyMapOutput struct{ *pulumi.OutputState } + +func (BackupPolicyMapOutput) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*BackupPolicy)(nil)).Elem() +} + +func (o BackupPolicyMapOutput) ToBackupPolicyMapOutput() BackupPolicyMapOutput { + return o +} + +func (o BackupPolicyMapOutput) ToBackupPolicyMapOutputWithContext(ctx context.Context) BackupPolicyMapOutput { + return o +} + +func (o BackupPolicyMapOutput) MapIndex(k pulumi.StringInput) BackupPolicyOutput { + return pulumi.All(o, k).ApplyT(func(vs []interface{}) *BackupPolicy { + return vs[0].(map[string]*BackupPolicy)[vs[1].(string)] + }).(BackupPolicyOutput) +} + +func init() { + pulumi.RegisterInputType(reflect.TypeOf((*BackupPolicyInput)(nil)).Elem(), &BackupPolicy{}) + pulumi.RegisterInputType(reflect.TypeOf((*BackupPolicyArrayInput)(nil)).Elem(), BackupPolicyArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*BackupPolicyMapInput)(nil)).Elem(), BackupPolicyMap{}) + pulumi.RegisterOutputType(BackupPolicyOutput{}) + pulumi.RegisterOutputType(BackupPolicyArrayOutput{}) + pulumi.RegisterOutputType(BackupPolicyMapOutput{}) +} diff --git a/sdk/go/azure/netapp/backupVault.go b/sdk/go/azure/netapp/backupVault.go new file mode 100644 index 0000000000..944c910dce --- /dev/null +++ b/sdk/go/azure/netapp/backupVault.go @@ -0,0 +1,335 @@ +// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT. +// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** + +package netapp + +import ( + "context" + "reflect" + + "errors" + "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" + "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +) + +// Manages a NetApp Backup Vault. +// +// ## NetApp Backup Vault Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core" +// "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/netapp" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{ +// Name: pulumi.String("example-resources"), +// Location: pulumi.String("West Europe"), +// }) +// if err != nil { +// return err +// } +// exampleAccount, err := netapp.NewAccount(ctx, "example", &netapp.AccountArgs{ +// Name: pulumi.String("example-netappaccount"), +// Location: example.Location, +// ResourceGroupName: example.Name, +// }) +// if err != nil { +// return err +// } +// _, err = netapp.NewBackupVault(ctx, "example", &netapp.BackupVaultArgs{ +// Name: pulumi.String("example-netappbackupvault"), +// ResourceGroupName: example.Name, +// Location: example.Location, +// AccountName: exampleAccount.Name, +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` +// +// ## Import +// +// NetApp Backup Vault can be imported using the `resource id`, e.g. +// +// ```sh +// $ pulumi import azure:netapp/backupVault:BackupVault example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.NetApp/netAppAccounts/account1/backupVaults/backupVault1 +// ``` +type BackupVault struct { + pulumi.CustomResourceState + + // The name of the NetApp account in which the NetApp Vault should be created under. Changing this forces a new resource to be created. + AccountName pulumi.StringOutput `pulumi:"accountName"` + // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. + Location pulumi.StringOutput `pulumi:"location"` + // The name of the NetApp Backup Vault. Changing this forces a new resource to be created. + Name pulumi.StringOutput `pulumi:"name"` + // The name of the resource group where the NetApp Backup Vault should be created. Changing this forces a new resource to be created. + ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` + // A mapping of tags to assign to the resource. + Tags pulumi.StringMapOutput `pulumi:"tags"` +} + +// NewBackupVault registers a new resource with the given unique name, arguments, and options. +func NewBackupVault(ctx *pulumi.Context, + name string, args *BackupVaultArgs, opts ...pulumi.ResourceOption) (*BackupVault, error) { + if args == nil { + return nil, errors.New("missing one or more required arguments") + } + + if args.AccountName == nil { + return nil, errors.New("invalid value for required argument 'AccountName'") + } + if args.ResourceGroupName == nil { + return nil, errors.New("invalid value for required argument 'ResourceGroupName'") + } + opts = internal.PkgResourceDefaultOpts(opts) + var resource BackupVault + err := ctx.RegisterResource("azure:netapp/backupVault:BackupVault", name, args, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// GetBackupVault gets an existing BackupVault resource's state with the given name, ID, and optional +// state properties that are used to uniquely qualify the lookup (nil if not required). +func GetBackupVault(ctx *pulumi.Context, + name string, id pulumi.IDInput, state *BackupVaultState, opts ...pulumi.ResourceOption) (*BackupVault, error) { + var resource BackupVault + err := ctx.ReadResource("azure:netapp/backupVault:BackupVault", name, id, state, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// Input properties used for looking up and filtering BackupVault resources. +type backupVaultState struct { + // The name of the NetApp account in which the NetApp Vault should be created under. Changing this forces a new resource to be created. + AccountName *string `pulumi:"accountName"` + // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. + Location *string `pulumi:"location"` + // The name of the NetApp Backup Vault. Changing this forces a new resource to be created. + Name *string `pulumi:"name"` + // The name of the resource group where the NetApp Backup Vault should be created. Changing this forces a new resource to be created. + ResourceGroupName *string `pulumi:"resourceGroupName"` + // A mapping of tags to assign to the resource. + Tags map[string]string `pulumi:"tags"` +} + +type BackupVaultState struct { + // The name of the NetApp account in which the NetApp Vault should be created under. Changing this forces a new resource to be created. + AccountName pulumi.StringPtrInput + // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. + Location pulumi.StringPtrInput + // The name of the NetApp Backup Vault. Changing this forces a new resource to be created. + Name pulumi.StringPtrInput + // The name of the resource group where the NetApp Backup Vault should be created. Changing this forces a new resource to be created. + ResourceGroupName pulumi.StringPtrInput + // A mapping of tags to assign to the resource. + Tags pulumi.StringMapInput +} + +func (BackupVaultState) ElementType() reflect.Type { + return reflect.TypeOf((*backupVaultState)(nil)).Elem() +} + +type backupVaultArgs struct { + // The name of the NetApp account in which the NetApp Vault should be created under. Changing this forces a new resource to be created. + AccountName string `pulumi:"accountName"` + // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. + Location *string `pulumi:"location"` + // The name of the NetApp Backup Vault. Changing this forces a new resource to be created. + Name *string `pulumi:"name"` + // The name of the resource group where the NetApp Backup Vault should be created. Changing this forces a new resource to be created. + ResourceGroupName string `pulumi:"resourceGroupName"` + // A mapping of tags to assign to the resource. + Tags map[string]string `pulumi:"tags"` +} + +// The set of arguments for constructing a BackupVault resource. +type BackupVaultArgs struct { + // The name of the NetApp account in which the NetApp Vault should be created under. Changing this forces a new resource to be created. + AccountName pulumi.StringInput + // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. + Location pulumi.StringPtrInput + // The name of the NetApp Backup Vault. Changing this forces a new resource to be created. + Name pulumi.StringPtrInput + // The name of the resource group where the NetApp Backup Vault should be created. Changing this forces a new resource to be created. + ResourceGroupName pulumi.StringInput + // A mapping of tags to assign to the resource. + Tags pulumi.StringMapInput +} + +func (BackupVaultArgs) ElementType() reflect.Type { + return reflect.TypeOf((*backupVaultArgs)(nil)).Elem() +} + +type BackupVaultInput interface { + pulumi.Input + + ToBackupVaultOutput() BackupVaultOutput + ToBackupVaultOutputWithContext(ctx context.Context) BackupVaultOutput +} + +func (*BackupVault) ElementType() reflect.Type { + return reflect.TypeOf((**BackupVault)(nil)).Elem() +} + +func (i *BackupVault) ToBackupVaultOutput() BackupVaultOutput { + return i.ToBackupVaultOutputWithContext(context.Background()) +} + +func (i *BackupVault) ToBackupVaultOutputWithContext(ctx context.Context) BackupVaultOutput { + return pulumi.ToOutputWithContext(ctx, i).(BackupVaultOutput) +} + +// BackupVaultArrayInput is an input type that accepts BackupVaultArray and BackupVaultArrayOutput values. +// You can construct a concrete instance of `BackupVaultArrayInput` via: +// +// BackupVaultArray{ BackupVaultArgs{...} } +type BackupVaultArrayInput interface { + pulumi.Input + + ToBackupVaultArrayOutput() BackupVaultArrayOutput + ToBackupVaultArrayOutputWithContext(context.Context) BackupVaultArrayOutput +} + +type BackupVaultArray []BackupVaultInput + +func (BackupVaultArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]*BackupVault)(nil)).Elem() +} + +func (i BackupVaultArray) ToBackupVaultArrayOutput() BackupVaultArrayOutput { + return i.ToBackupVaultArrayOutputWithContext(context.Background()) +} + +func (i BackupVaultArray) ToBackupVaultArrayOutputWithContext(ctx context.Context) BackupVaultArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(BackupVaultArrayOutput) +} + +// BackupVaultMapInput is an input type that accepts BackupVaultMap and BackupVaultMapOutput values. +// You can construct a concrete instance of `BackupVaultMapInput` via: +// +// BackupVaultMap{ "key": BackupVaultArgs{...} } +type BackupVaultMapInput interface { + pulumi.Input + + ToBackupVaultMapOutput() BackupVaultMapOutput + ToBackupVaultMapOutputWithContext(context.Context) BackupVaultMapOutput +} + +type BackupVaultMap map[string]BackupVaultInput + +func (BackupVaultMap) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*BackupVault)(nil)).Elem() +} + +func (i BackupVaultMap) ToBackupVaultMapOutput() BackupVaultMapOutput { + return i.ToBackupVaultMapOutputWithContext(context.Background()) +} + +func (i BackupVaultMap) ToBackupVaultMapOutputWithContext(ctx context.Context) BackupVaultMapOutput { + return pulumi.ToOutputWithContext(ctx, i).(BackupVaultMapOutput) +} + +type BackupVaultOutput struct{ *pulumi.OutputState } + +func (BackupVaultOutput) ElementType() reflect.Type { + return reflect.TypeOf((**BackupVault)(nil)).Elem() +} + +func (o BackupVaultOutput) ToBackupVaultOutput() BackupVaultOutput { + return o +} + +func (o BackupVaultOutput) ToBackupVaultOutputWithContext(ctx context.Context) BackupVaultOutput { + return o +} + +// The name of the NetApp account in which the NetApp Vault should be created under. Changing this forces a new resource to be created. +func (o BackupVaultOutput) AccountName() pulumi.StringOutput { + return o.ApplyT(func(v *BackupVault) pulumi.StringOutput { return v.AccountName }).(pulumi.StringOutput) +} + +// Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. +func (o BackupVaultOutput) Location() pulumi.StringOutput { + return o.ApplyT(func(v *BackupVault) pulumi.StringOutput { return v.Location }).(pulumi.StringOutput) +} + +// The name of the NetApp Backup Vault. Changing this forces a new resource to be created. +func (o BackupVaultOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v *BackupVault) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) +} + +// The name of the resource group where the NetApp Backup Vault should be created. Changing this forces a new resource to be created. +func (o BackupVaultOutput) ResourceGroupName() pulumi.StringOutput { + return o.ApplyT(func(v *BackupVault) pulumi.StringOutput { return v.ResourceGroupName }).(pulumi.StringOutput) +} + +// A mapping of tags to assign to the resource. +func (o BackupVaultOutput) Tags() pulumi.StringMapOutput { + return o.ApplyT(func(v *BackupVault) pulumi.StringMapOutput { return v.Tags }).(pulumi.StringMapOutput) +} + +type BackupVaultArrayOutput struct{ *pulumi.OutputState } + +func (BackupVaultArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]*BackupVault)(nil)).Elem() +} + +func (o BackupVaultArrayOutput) ToBackupVaultArrayOutput() BackupVaultArrayOutput { + return o +} + +func (o BackupVaultArrayOutput) ToBackupVaultArrayOutputWithContext(ctx context.Context) BackupVaultArrayOutput { + return o +} + +func (o BackupVaultArrayOutput) Index(i pulumi.IntInput) BackupVaultOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) *BackupVault { + return vs[0].([]*BackupVault)[vs[1].(int)] + }).(BackupVaultOutput) +} + +type BackupVaultMapOutput struct{ *pulumi.OutputState } + +func (BackupVaultMapOutput) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*BackupVault)(nil)).Elem() +} + +func (o BackupVaultMapOutput) ToBackupVaultMapOutput() BackupVaultMapOutput { + return o +} + +func (o BackupVaultMapOutput) ToBackupVaultMapOutputWithContext(ctx context.Context) BackupVaultMapOutput { + return o +} + +func (o BackupVaultMapOutput) MapIndex(k pulumi.StringInput) BackupVaultOutput { + return pulumi.All(o, k).ApplyT(func(vs []interface{}) *BackupVault { + return vs[0].(map[string]*BackupVault)[vs[1].(string)] + }).(BackupVaultOutput) +} + +func init() { + pulumi.RegisterInputType(reflect.TypeOf((*BackupVaultInput)(nil)).Elem(), &BackupVault{}) + pulumi.RegisterInputType(reflect.TypeOf((*BackupVaultArrayInput)(nil)).Elem(), BackupVaultArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*BackupVaultMapInput)(nil)).Elem(), BackupVaultMap{}) + pulumi.RegisterOutputType(BackupVaultOutput{}) + pulumi.RegisterOutputType(BackupVaultArrayOutput{}) + pulumi.RegisterOutputType(BackupVaultMapOutput{}) +} diff --git a/sdk/go/azure/netapp/getAccountEncryption.go b/sdk/go/azure/netapp/getAccountEncryption.go index f0f6262079..321756f59c 100644 --- a/sdk/go/azure/netapp/getAccountEncryption.go +++ b/sdk/go/azure/netapp/getAccountEncryption.go @@ -51,24 +51,18 @@ func LookupAccountEncryption(ctx *pulumi.Context, args *LookupAccountEncryptionA // A collection of arguments for invoking getAccountEncryption. type LookupAccountEncryptionArgs struct { - // The key vault encryption key. - EncryptionKey *string `pulumi:"encryptionKey"` // The ID of the NetApp account where customer managed keys-based encryption is enabled. NetappAccountId string `pulumi:"netappAccountId"` - // The ID of the System Assigned Manged Identity. - SystemAssignedIdentityPrincipalId *string `pulumi:"systemAssignedIdentityPrincipalId"` - // The ID of the User Assigned Managed Identity. - UserAssignedIdentityId *string `pulumi:"userAssignedIdentityId"` } // A collection of values returned by getAccountEncryption. type LookupAccountEncryptionResult struct { - EncryptionKey *string `pulumi:"encryptionKey"` + EncryptionKey string `pulumi:"encryptionKey"` // The provider-assigned unique ID for this managed resource. - Id string `pulumi:"id"` - NetappAccountId string `pulumi:"netappAccountId"` - SystemAssignedIdentityPrincipalId *string `pulumi:"systemAssignedIdentityPrincipalId"` - UserAssignedIdentityId *string `pulumi:"userAssignedIdentityId"` + Id string `pulumi:"id"` + NetappAccountId string `pulumi:"netappAccountId"` + SystemAssignedIdentityPrincipalId string `pulumi:"systemAssignedIdentityPrincipalId"` + UserAssignedIdentityId string `pulumi:"userAssignedIdentityId"` } func LookupAccountEncryptionOutput(ctx *pulumi.Context, args LookupAccountEncryptionOutputArgs, opts ...pulumi.InvokeOption) LookupAccountEncryptionResultOutput { @@ -92,14 +86,8 @@ func LookupAccountEncryptionOutput(ctx *pulumi.Context, args LookupAccountEncryp // A collection of arguments for invoking getAccountEncryption. type LookupAccountEncryptionOutputArgs struct { - // The key vault encryption key. - EncryptionKey pulumi.StringPtrInput `pulumi:"encryptionKey"` // The ID of the NetApp account where customer managed keys-based encryption is enabled. NetappAccountId pulumi.StringInput `pulumi:"netappAccountId"` - // The ID of the System Assigned Manged Identity. - SystemAssignedIdentityPrincipalId pulumi.StringPtrInput `pulumi:"systemAssignedIdentityPrincipalId"` - // The ID of the User Assigned Managed Identity. - UserAssignedIdentityId pulumi.StringPtrInput `pulumi:"userAssignedIdentityId"` } func (LookupAccountEncryptionOutputArgs) ElementType() reflect.Type { @@ -121,8 +109,8 @@ func (o LookupAccountEncryptionResultOutput) ToLookupAccountEncryptionResultOutp return o } -func (o LookupAccountEncryptionResultOutput) EncryptionKey() pulumi.StringPtrOutput { - return o.ApplyT(func(v LookupAccountEncryptionResult) *string { return v.EncryptionKey }).(pulumi.StringPtrOutput) +func (o LookupAccountEncryptionResultOutput) EncryptionKey() pulumi.StringOutput { + return o.ApplyT(func(v LookupAccountEncryptionResult) string { return v.EncryptionKey }).(pulumi.StringOutput) } // The provider-assigned unique ID for this managed resource. @@ -134,12 +122,12 @@ func (o LookupAccountEncryptionResultOutput) NetappAccountId() pulumi.StringOutp return o.ApplyT(func(v LookupAccountEncryptionResult) string { return v.NetappAccountId }).(pulumi.StringOutput) } -func (o LookupAccountEncryptionResultOutput) SystemAssignedIdentityPrincipalId() pulumi.StringPtrOutput { - return o.ApplyT(func(v LookupAccountEncryptionResult) *string { return v.SystemAssignedIdentityPrincipalId }).(pulumi.StringPtrOutput) +func (o LookupAccountEncryptionResultOutput) SystemAssignedIdentityPrincipalId() pulumi.StringOutput { + return o.ApplyT(func(v LookupAccountEncryptionResult) string { return v.SystemAssignedIdentityPrincipalId }).(pulumi.StringOutput) } -func (o LookupAccountEncryptionResultOutput) UserAssignedIdentityId() pulumi.StringPtrOutput { - return o.ApplyT(func(v LookupAccountEncryptionResult) *string { return v.UserAssignedIdentityId }).(pulumi.StringPtrOutput) +func (o LookupAccountEncryptionResultOutput) UserAssignedIdentityId() pulumi.StringOutput { + return o.ApplyT(func(v LookupAccountEncryptionResult) string { return v.UserAssignedIdentityId }).(pulumi.StringOutput) } func init() { diff --git a/sdk/go/azure/netapp/getBackupPolicy.go b/sdk/go/azure/netapp/getBackupPolicy.go new file mode 100644 index 0000000000..2bded90d78 --- /dev/null +++ b/sdk/go/azure/netapp/getBackupPolicy.go @@ -0,0 +1,184 @@ +// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT. +// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** + +package netapp + +import ( + "context" + "reflect" + + "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" + "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +) + +// Use this data source to access information about an existing NetApp Backup Vault. +// +// ## NetApp Backup Policy Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/netapp" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// example, err := netapp.LookupBackupPolicy(ctx, &netapp.LookupBackupPolicyArgs{ +// ResourceGroupName: "example-resource-group", +// AccountName: "example-netappaccount", +// Name: "example-backuppolicy", +// }, nil) +// if err != nil { +// return err +// } +// ctx.Export("backupPolicyId", example.Id) +// return nil +// }) +// } +// +// ``` +func LookupBackupPolicy(ctx *pulumi.Context, args *LookupBackupPolicyArgs, opts ...pulumi.InvokeOption) (*LookupBackupPolicyResult, error) { + opts = internal.PkgInvokeDefaultOpts(opts) + var rv LookupBackupPolicyResult + err := ctx.Invoke("azure:netapp/getBackupPolicy:getBackupPolicy", args, &rv, opts...) + if err != nil { + return nil, err + } + return &rv, nil +} + +// A collection of arguments for invoking getBackupPolicy. +type LookupBackupPolicyArgs struct { + // The name of the NetApp Account in which the NetApp Policy exists. + AccountName string `pulumi:"accountName"` + // The name of the NetApp Backup Policy. + Name string `pulumi:"name"` + // The name of the resource group where the NetApp Backup Policy exists. + ResourceGroupName string `pulumi:"resourceGroupName"` +} + +// A collection of values returned by getBackupPolicy. +type LookupBackupPolicyResult struct { + // The name of the NetApp account in which the NetApp Policy exists. + AccountName string `pulumi:"accountName"` + // The number of daily backups to keep. + DailyBackupsToKeep int `pulumi:"dailyBackupsToKeep"` + // Whether the Backup Policy is enabled. + Enabled bool `pulumi:"enabled"` + // The provider-assigned unique ID for this managed resource. + Id string `pulumi:"id"` + // NetApp Backup Policy location. + Location string `pulumi:"location"` + // The number of monthly backups to keep. + MonthlyBackupsToKeep int `pulumi:"monthlyBackupsToKeep"` + Name string `pulumi:"name"` + ResourceGroupName string `pulumi:"resourceGroupName"` + // List of tags assigned to the resource. + Tags map[string]string `pulumi:"tags"` + // The number of weekly backups to keep. + WeeklyBackupsToKeep int `pulumi:"weeklyBackupsToKeep"` +} + +func LookupBackupPolicyOutput(ctx *pulumi.Context, args LookupBackupPolicyOutputArgs, opts ...pulumi.InvokeOption) LookupBackupPolicyResultOutput { + return pulumi.ToOutputWithContext(context.Background(), args). + ApplyT(func(v interface{}) (LookupBackupPolicyResultOutput, error) { + args := v.(LookupBackupPolicyArgs) + opts = internal.PkgInvokeDefaultOpts(opts) + var rv LookupBackupPolicyResult + secret, err := ctx.InvokePackageRaw("azure:netapp/getBackupPolicy:getBackupPolicy", args, &rv, "", opts...) + if err != nil { + return LookupBackupPolicyResultOutput{}, err + } + + output := pulumi.ToOutput(rv).(LookupBackupPolicyResultOutput) + if secret { + return pulumi.ToSecret(output).(LookupBackupPolicyResultOutput), nil + } + return output, nil + }).(LookupBackupPolicyResultOutput) +} + +// A collection of arguments for invoking getBackupPolicy. +type LookupBackupPolicyOutputArgs struct { + // The name of the NetApp Account in which the NetApp Policy exists. + AccountName pulumi.StringInput `pulumi:"accountName"` + // The name of the NetApp Backup Policy. + Name pulumi.StringInput `pulumi:"name"` + // The name of the resource group where the NetApp Backup Policy exists. + ResourceGroupName pulumi.StringInput `pulumi:"resourceGroupName"` +} + +func (LookupBackupPolicyOutputArgs) ElementType() reflect.Type { + return reflect.TypeOf((*LookupBackupPolicyArgs)(nil)).Elem() +} + +// A collection of values returned by getBackupPolicy. +type LookupBackupPolicyResultOutput struct{ *pulumi.OutputState } + +func (LookupBackupPolicyResultOutput) ElementType() reflect.Type { + return reflect.TypeOf((*LookupBackupPolicyResult)(nil)).Elem() +} + +func (o LookupBackupPolicyResultOutput) ToLookupBackupPolicyResultOutput() LookupBackupPolicyResultOutput { + return o +} + +func (o LookupBackupPolicyResultOutput) ToLookupBackupPolicyResultOutputWithContext(ctx context.Context) LookupBackupPolicyResultOutput { + return o +} + +// The name of the NetApp account in which the NetApp Policy exists. +func (o LookupBackupPolicyResultOutput) AccountName() pulumi.StringOutput { + return o.ApplyT(func(v LookupBackupPolicyResult) string { return v.AccountName }).(pulumi.StringOutput) +} + +// The number of daily backups to keep. +func (o LookupBackupPolicyResultOutput) DailyBackupsToKeep() pulumi.IntOutput { + return o.ApplyT(func(v LookupBackupPolicyResult) int { return v.DailyBackupsToKeep }).(pulumi.IntOutput) +} + +// Whether the Backup Policy is enabled. +func (o LookupBackupPolicyResultOutput) Enabled() pulumi.BoolOutput { + return o.ApplyT(func(v LookupBackupPolicyResult) bool { return v.Enabled }).(pulumi.BoolOutput) +} + +// The provider-assigned unique ID for this managed resource. +func (o LookupBackupPolicyResultOutput) Id() pulumi.StringOutput { + return o.ApplyT(func(v LookupBackupPolicyResult) string { return v.Id }).(pulumi.StringOutput) +} + +// NetApp Backup Policy location. +func (o LookupBackupPolicyResultOutput) Location() pulumi.StringOutput { + return o.ApplyT(func(v LookupBackupPolicyResult) string { return v.Location }).(pulumi.StringOutput) +} + +// The number of monthly backups to keep. +func (o LookupBackupPolicyResultOutput) MonthlyBackupsToKeep() pulumi.IntOutput { + return o.ApplyT(func(v LookupBackupPolicyResult) int { return v.MonthlyBackupsToKeep }).(pulumi.IntOutput) +} + +func (o LookupBackupPolicyResultOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v LookupBackupPolicyResult) string { return v.Name }).(pulumi.StringOutput) +} + +func (o LookupBackupPolicyResultOutput) ResourceGroupName() pulumi.StringOutput { + return o.ApplyT(func(v LookupBackupPolicyResult) string { return v.ResourceGroupName }).(pulumi.StringOutput) +} + +// List of tags assigned to the resource. +func (o LookupBackupPolicyResultOutput) Tags() pulumi.StringMapOutput { + return o.ApplyT(func(v LookupBackupPolicyResult) map[string]string { return v.Tags }).(pulumi.StringMapOutput) +} + +// The number of weekly backups to keep. +func (o LookupBackupPolicyResultOutput) WeeklyBackupsToKeep() pulumi.IntOutput { + return o.ApplyT(func(v LookupBackupPolicyResult) int { return v.WeeklyBackupsToKeep }).(pulumi.IntOutput) +} + +func init() { + pulumi.RegisterOutputType(LookupBackupPolicyResultOutput{}) +} diff --git a/sdk/go/azure/netapp/getBackupVault.go b/sdk/go/azure/netapp/getBackupVault.go new file mode 100644 index 0000000000..f3f2a5c818 --- /dev/null +++ b/sdk/go/azure/netapp/getBackupVault.go @@ -0,0 +1,150 @@ +// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT. +// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** + +package netapp + +import ( + "context" + "reflect" + + "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" + "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +) + +// Use this data source to access information about an existing NetApp Backup Vault. +// +// ## NetApp Backup Vault Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/netapp" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// example, err := netapp.LookupBackupVault(ctx, &netapp.LookupBackupVaultArgs{ +// ResourceGroupName: "example-resource-group", +// AccountName: "example-netappaccount", +// Name: "example-backupvault", +// }, nil) +// if err != nil { +// return err +// } +// ctx.Export("backupVaultId", example.Id) +// return nil +// }) +// } +// +// ``` +func LookupBackupVault(ctx *pulumi.Context, args *LookupBackupVaultArgs, opts ...pulumi.InvokeOption) (*LookupBackupVaultResult, error) { + opts = internal.PkgInvokeDefaultOpts(opts) + var rv LookupBackupVaultResult + err := ctx.Invoke("azure:netapp/getBackupVault:getBackupVault", args, &rv, opts...) + if err != nil { + return nil, err + } + return &rv, nil +} + +// A collection of arguments for invoking getBackupVault. +type LookupBackupVaultArgs struct { + // The name of the NetApp Account in which the NetApp Vault exists. + AccountName string `pulumi:"accountName"` + // The name of the NetApp Backup Vault. + Name string `pulumi:"name"` + // The name of the resource group where the NetApp Backup Vault exists. + ResourceGroupName string `pulumi:"resourceGroupName"` +} + +// A collection of values returned by getBackupVault. +type LookupBackupVaultResult struct { + AccountName string `pulumi:"accountName"` + // The provider-assigned unique ID for this managed resource. + Id string `pulumi:"id"` + Location string `pulumi:"location"` + Name string `pulumi:"name"` + ResourceGroupName string `pulumi:"resourceGroupName"` + Tags map[string]string `pulumi:"tags"` +} + +func LookupBackupVaultOutput(ctx *pulumi.Context, args LookupBackupVaultOutputArgs, opts ...pulumi.InvokeOption) LookupBackupVaultResultOutput { + return pulumi.ToOutputWithContext(context.Background(), args). + ApplyT(func(v interface{}) (LookupBackupVaultResultOutput, error) { + args := v.(LookupBackupVaultArgs) + opts = internal.PkgInvokeDefaultOpts(opts) + var rv LookupBackupVaultResult + secret, err := ctx.InvokePackageRaw("azure:netapp/getBackupVault:getBackupVault", args, &rv, "", opts...) + if err != nil { + return LookupBackupVaultResultOutput{}, err + } + + output := pulumi.ToOutput(rv).(LookupBackupVaultResultOutput) + if secret { + return pulumi.ToSecret(output).(LookupBackupVaultResultOutput), nil + } + return output, nil + }).(LookupBackupVaultResultOutput) +} + +// A collection of arguments for invoking getBackupVault. +type LookupBackupVaultOutputArgs struct { + // The name of the NetApp Account in which the NetApp Vault exists. + AccountName pulumi.StringInput `pulumi:"accountName"` + // The name of the NetApp Backup Vault. + Name pulumi.StringInput `pulumi:"name"` + // The name of the resource group where the NetApp Backup Vault exists. + ResourceGroupName pulumi.StringInput `pulumi:"resourceGroupName"` +} + +func (LookupBackupVaultOutputArgs) ElementType() reflect.Type { + return reflect.TypeOf((*LookupBackupVaultArgs)(nil)).Elem() +} + +// A collection of values returned by getBackupVault. +type LookupBackupVaultResultOutput struct{ *pulumi.OutputState } + +func (LookupBackupVaultResultOutput) ElementType() reflect.Type { + return reflect.TypeOf((*LookupBackupVaultResult)(nil)).Elem() +} + +func (o LookupBackupVaultResultOutput) ToLookupBackupVaultResultOutput() LookupBackupVaultResultOutput { + return o +} + +func (o LookupBackupVaultResultOutput) ToLookupBackupVaultResultOutputWithContext(ctx context.Context) LookupBackupVaultResultOutput { + return o +} + +func (o LookupBackupVaultResultOutput) AccountName() pulumi.StringOutput { + return o.ApplyT(func(v LookupBackupVaultResult) string { return v.AccountName }).(pulumi.StringOutput) +} + +// The provider-assigned unique ID for this managed resource. +func (o LookupBackupVaultResultOutput) Id() pulumi.StringOutput { + return o.ApplyT(func(v LookupBackupVaultResult) string { return v.Id }).(pulumi.StringOutput) +} + +func (o LookupBackupVaultResultOutput) Location() pulumi.StringOutput { + return o.ApplyT(func(v LookupBackupVaultResult) string { return v.Location }).(pulumi.StringOutput) +} + +func (o LookupBackupVaultResultOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v LookupBackupVaultResult) string { return v.Name }).(pulumi.StringOutput) +} + +func (o LookupBackupVaultResultOutput) ResourceGroupName() pulumi.StringOutput { + return o.ApplyT(func(v LookupBackupVaultResult) string { return v.ResourceGroupName }).(pulumi.StringOutput) +} + +func (o LookupBackupVaultResultOutput) Tags() pulumi.StringMapOutput { + return o.ApplyT(func(v LookupBackupVaultResult) map[string]string { return v.Tags }).(pulumi.StringMapOutput) +} + +func init() { + pulumi.RegisterOutputType(LookupBackupVaultResultOutput{}) +} diff --git a/sdk/go/azure/netapp/getVolume.go b/sdk/go/azure/netapp/getVolume.go index 6ef2852117..90fe0d5d49 100644 --- a/sdk/go/azure/netapp/getVolume.go +++ b/sdk/go/azure/netapp/getVolume.go @@ -69,7 +69,9 @@ type LookupVolumeArgs struct { // A collection of values returned by getVolume. type LookupVolumeResult struct { AccountName string `pulumi:"accountName"` - // Volume data protection block + // A data protecion backup policy block + DataProtectionBackupPolicies []GetVolumeDataProtectionBackupPolicy `pulumi:"dataProtectionBackupPolicies"` + // Volume data protection replication block DataProtectionReplications []GetVolumeDataProtectionReplication `pulumi:"dataProtectionReplications"` EncryptionKeySource string `pulumi:"encryptionKeySource"` // The provider-assigned unique ID for this managed resource. @@ -160,7 +162,14 @@ func (o LookupVolumeResultOutput) AccountName() pulumi.StringOutput { return o.ApplyT(func(v LookupVolumeResult) string { return v.AccountName }).(pulumi.StringOutput) } -// Volume data protection block +// A data protecion backup policy block +func (o LookupVolumeResultOutput) DataProtectionBackupPolicies() GetVolumeDataProtectionBackupPolicyArrayOutput { + return o.ApplyT(func(v LookupVolumeResult) []GetVolumeDataProtectionBackupPolicy { + return v.DataProtectionBackupPolicies + }).(GetVolumeDataProtectionBackupPolicyArrayOutput) +} + +// Volume data protection replication block func (o LookupVolumeResultOutput) DataProtectionReplications() GetVolumeDataProtectionReplicationArrayOutput { return o.ApplyT(func(v LookupVolumeResult) []GetVolumeDataProtectionReplication { return v.DataProtectionReplications }).(GetVolumeDataProtectionReplicationArrayOutput) } diff --git a/sdk/go/azure/netapp/init.go b/sdk/go/azure/netapp/init.go index e5fd171571..42a43a0a7d 100644 --- a/sdk/go/azure/netapp/init.go +++ b/sdk/go/azure/netapp/init.go @@ -25,6 +25,10 @@ func (m *module) Construct(ctx *pulumi.Context, name, typ, urn string) (r pulumi r = &Account{} case "azure:netapp/accountEncryption:AccountEncryption": r = &AccountEncryption{} + case "azure:netapp/backupPolicy:BackupPolicy": + r = &BackupPolicy{} + case "azure:netapp/backupVault:BackupVault": + r = &BackupVault{} case "azure:netapp/pool:Pool": r = &Pool{} case "azure:netapp/snapshot:Snapshot": @@ -60,6 +64,16 @@ func init() { "netapp/accountEncryption", &module{version}, ) + pulumi.RegisterResourceModule( + "azure", + "netapp/backupPolicy", + &module{version}, + ) + pulumi.RegisterResourceModule( + "azure", + "netapp/backupVault", + &module{version}, + ) pulumi.RegisterResourceModule( "azure", "netapp/pool", diff --git a/sdk/go/azure/netapp/pulumiTypes.go b/sdk/go/azure/netapp/pulumiTypes.go index 46cfe95492..aa2b07fc88 100644 --- a/sdk/go/azure/netapp/pulumiTypes.go +++ b/sdk/go/azure/netapp/pulumiTypes.go @@ -1310,6 +1310,189 @@ func (o SnapshotPolicyWeeklySchedulePtrOutput) SnapshotsToKeep() pulumi.IntPtrOu }).(pulumi.IntPtrOutput) } +type VolumeDataProtectionBackupPolicy struct { + // Resource ID of the backup policy to apply to the volume. + BackupPolicyId string `pulumi:"backupPolicyId"` + // Resource ID of the backup backup vault to associate this volume to. + BackupVaultId string `pulumi:"backupVaultId"` + // Enables the backup policy on the volume, defaults to `true`. + // + // For more information on Azure NetApp Files Backup feature please see [Understand Azure NetApp Files backup](https://learn.microsoft.com/en-us/azure/azure-netapp-files/backup-introduction) + PolicyEnabled *bool `pulumi:"policyEnabled"` +} + +// VolumeDataProtectionBackupPolicyInput is an input type that accepts VolumeDataProtectionBackupPolicyArgs and VolumeDataProtectionBackupPolicyOutput values. +// You can construct a concrete instance of `VolumeDataProtectionBackupPolicyInput` via: +// +// VolumeDataProtectionBackupPolicyArgs{...} +type VolumeDataProtectionBackupPolicyInput interface { + pulumi.Input + + ToVolumeDataProtectionBackupPolicyOutput() VolumeDataProtectionBackupPolicyOutput + ToVolumeDataProtectionBackupPolicyOutputWithContext(context.Context) VolumeDataProtectionBackupPolicyOutput +} + +type VolumeDataProtectionBackupPolicyArgs struct { + // Resource ID of the backup policy to apply to the volume. + BackupPolicyId pulumi.StringInput `pulumi:"backupPolicyId"` + // Resource ID of the backup backup vault to associate this volume to. + BackupVaultId pulumi.StringInput `pulumi:"backupVaultId"` + // Enables the backup policy on the volume, defaults to `true`. + // + // For more information on Azure NetApp Files Backup feature please see [Understand Azure NetApp Files backup](https://learn.microsoft.com/en-us/azure/azure-netapp-files/backup-introduction) + PolicyEnabled pulumi.BoolPtrInput `pulumi:"policyEnabled"` +} + +func (VolumeDataProtectionBackupPolicyArgs) ElementType() reflect.Type { + return reflect.TypeOf((*VolumeDataProtectionBackupPolicy)(nil)).Elem() +} + +func (i VolumeDataProtectionBackupPolicyArgs) ToVolumeDataProtectionBackupPolicyOutput() VolumeDataProtectionBackupPolicyOutput { + return i.ToVolumeDataProtectionBackupPolicyOutputWithContext(context.Background()) +} + +func (i VolumeDataProtectionBackupPolicyArgs) ToVolumeDataProtectionBackupPolicyOutputWithContext(ctx context.Context) VolumeDataProtectionBackupPolicyOutput { + return pulumi.ToOutputWithContext(ctx, i).(VolumeDataProtectionBackupPolicyOutput) +} + +func (i VolumeDataProtectionBackupPolicyArgs) ToVolumeDataProtectionBackupPolicyPtrOutput() VolumeDataProtectionBackupPolicyPtrOutput { + return i.ToVolumeDataProtectionBackupPolicyPtrOutputWithContext(context.Background()) +} + +func (i VolumeDataProtectionBackupPolicyArgs) ToVolumeDataProtectionBackupPolicyPtrOutputWithContext(ctx context.Context) VolumeDataProtectionBackupPolicyPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(VolumeDataProtectionBackupPolicyOutput).ToVolumeDataProtectionBackupPolicyPtrOutputWithContext(ctx) +} + +// VolumeDataProtectionBackupPolicyPtrInput is an input type that accepts VolumeDataProtectionBackupPolicyArgs, VolumeDataProtectionBackupPolicyPtr and VolumeDataProtectionBackupPolicyPtrOutput values. +// You can construct a concrete instance of `VolumeDataProtectionBackupPolicyPtrInput` via: +// +// VolumeDataProtectionBackupPolicyArgs{...} +// +// or: +// +// nil +type VolumeDataProtectionBackupPolicyPtrInput interface { + pulumi.Input + + ToVolumeDataProtectionBackupPolicyPtrOutput() VolumeDataProtectionBackupPolicyPtrOutput + ToVolumeDataProtectionBackupPolicyPtrOutputWithContext(context.Context) VolumeDataProtectionBackupPolicyPtrOutput +} + +type volumeDataProtectionBackupPolicyPtrType VolumeDataProtectionBackupPolicyArgs + +func VolumeDataProtectionBackupPolicyPtr(v *VolumeDataProtectionBackupPolicyArgs) VolumeDataProtectionBackupPolicyPtrInput { + return (*volumeDataProtectionBackupPolicyPtrType)(v) +} + +func (*volumeDataProtectionBackupPolicyPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**VolumeDataProtectionBackupPolicy)(nil)).Elem() +} + +func (i *volumeDataProtectionBackupPolicyPtrType) ToVolumeDataProtectionBackupPolicyPtrOutput() VolumeDataProtectionBackupPolicyPtrOutput { + return i.ToVolumeDataProtectionBackupPolicyPtrOutputWithContext(context.Background()) +} + +func (i *volumeDataProtectionBackupPolicyPtrType) ToVolumeDataProtectionBackupPolicyPtrOutputWithContext(ctx context.Context) VolumeDataProtectionBackupPolicyPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(VolumeDataProtectionBackupPolicyPtrOutput) +} + +type VolumeDataProtectionBackupPolicyOutput struct{ *pulumi.OutputState } + +func (VolumeDataProtectionBackupPolicyOutput) ElementType() reflect.Type { + return reflect.TypeOf((*VolumeDataProtectionBackupPolicy)(nil)).Elem() +} + +func (o VolumeDataProtectionBackupPolicyOutput) ToVolumeDataProtectionBackupPolicyOutput() VolumeDataProtectionBackupPolicyOutput { + return o +} + +func (o VolumeDataProtectionBackupPolicyOutput) ToVolumeDataProtectionBackupPolicyOutputWithContext(ctx context.Context) VolumeDataProtectionBackupPolicyOutput { + return o +} + +func (o VolumeDataProtectionBackupPolicyOutput) ToVolumeDataProtectionBackupPolicyPtrOutput() VolumeDataProtectionBackupPolicyPtrOutput { + return o.ToVolumeDataProtectionBackupPolicyPtrOutputWithContext(context.Background()) +} + +func (o VolumeDataProtectionBackupPolicyOutput) ToVolumeDataProtectionBackupPolicyPtrOutputWithContext(ctx context.Context) VolumeDataProtectionBackupPolicyPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v VolumeDataProtectionBackupPolicy) *VolumeDataProtectionBackupPolicy { + return &v + }).(VolumeDataProtectionBackupPolicyPtrOutput) +} + +// Resource ID of the backup policy to apply to the volume. +func (o VolumeDataProtectionBackupPolicyOutput) BackupPolicyId() pulumi.StringOutput { + return o.ApplyT(func(v VolumeDataProtectionBackupPolicy) string { return v.BackupPolicyId }).(pulumi.StringOutput) +} + +// Resource ID of the backup backup vault to associate this volume to. +func (o VolumeDataProtectionBackupPolicyOutput) BackupVaultId() pulumi.StringOutput { + return o.ApplyT(func(v VolumeDataProtectionBackupPolicy) string { return v.BackupVaultId }).(pulumi.StringOutput) +} + +// Enables the backup policy on the volume, defaults to `true`. +// +// For more information on Azure NetApp Files Backup feature please see [Understand Azure NetApp Files backup](https://learn.microsoft.com/en-us/azure/azure-netapp-files/backup-introduction) +func (o VolumeDataProtectionBackupPolicyOutput) PolicyEnabled() pulumi.BoolPtrOutput { + return o.ApplyT(func(v VolumeDataProtectionBackupPolicy) *bool { return v.PolicyEnabled }).(pulumi.BoolPtrOutput) +} + +type VolumeDataProtectionBackupPolicyPtrOutput struct{ *pulumi.OutputState } + +func (VolumeDataProtectionBackupPolicyPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**VolumeDataProtectionBackupPolicy)(nil)).Elem() +} + +func (o VolumeDataProtectionBackupPolicyPtrOutput) ToVolumeDataProtectionBackupPolicyPtrOutput() VolumeDataProtectionBackupPolicyPtrOutput { + return o +} + +func (o VolumeDataProtectionBackupPolicyPtrOutput) ToVolumeDataProtectionBackupPolicyPtrOutputWithContext(ctx context.Context) VolumeDataProtectionBackupPolicyPtrOutput { + return o +} + +func (o VolumeDataProtectionBackupPolicyPtrOutput) Elem() VolumeDataProtectionBackupPolicyOutput { + return o.ApplyT(func(v *VolumeDataProtectionBackupPolicy) VolumeDataProtectionBackupPolicy { + if v != nil { + return *v + } + var ret VolumeDataProtectionBackupPolicy + return ret + }).(VolumeDataProtectionBackupPolicyOutput) +} + +// Resource ID of the backup policy to apply to the volume. +func (o VolumeDataProtectionBackupPolicyPtrOutput) BackupPolicyId() pulumi.StringPtrOutput { + return o.ApplyT(func(v *VolumeDataProtectionBackupPolicy) *string { + if v == nil { + return nil + } + return &v.BackupPolicyId + }).(pulumi.StringPtrOutput) +} + +// Resource ID of the backup backup vault to associate this volume to. +func (o VolumeDataProtectionBackupPolicyPtrOutput) BackupVaultId() pulumi.StringPtrOutput { + return o.ApplyT(func(v *VolumeDataProtectionBackupPolicy) *string { + if v == nil { + return nil + } + return &v.BackupVaultId + }).(pulumi.StringPtrOutput) +} + +// Enables the backup policy on the volume, defaults to `true`. +// +// For more information on Azure NetApp Files Backup feature please see [Understand Azure NetApp Files backup](https://learn.microsoft.com/en-us/azure/azure-netapp-files/backup-introduction) +func (o VolumeDataProtectionBackupPolicyPtrOutput) PolicyEnabled() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *VolumeDataProtectionBackupPolicy) *bool { + if v == nil { + return nil + } + return v.PolicyEnabled + }).(pulumi.BoolPtrOutput) +} + type VolumeDataProtectionReplication struct { // The endpoint type, default value is `dst` for destination. EndpointType *string `pulumi:"endpointType"` @@ -3248,6 +3431,121 @@ func (o GetSnapshotPolicyWeeklyScheduleArrayOutput) Index(i pulumi.IntInput) Get }).(GetSnapshotPolicyWeeklyScheduleOutput) } +type GetVolumeDataProtectionBackupPolicy struct { + // The Resource ID of the backup policy. + BackupPolicyId string `pulumi:"backupPolicyId"` + // The Resource ID of the backup backup vault. + BackupVaultId string `pulumi:"backupVaultId"` + // Backup policy is enabled or not. + PolicyEnabled bool `pulumi:"policyEnabled"` +} + +// GetVolumeDataProtectionBackupPolicyInput is an input type that accepts GetVolumeDataProtectionBackupPolicyArgs and GetVolumeDataProtectionBackupPolicyOutput values. +// You can construct a concrete instance of `GetVolumeDataProtectionBackupPolicyInput` via: +// +// GetVolumeDataProtectionBackupPolicyArgs{...} +type GetVolumeDataProtectionBackupPolicyInput interface { + pulumi.Input + + ToGetVolumeDataProtectionBackupPolicyOutput() GetVolumeDataProtectionBackupPolicyOutput + ToGetVolumeDataProtectionBackupPolicyOutputWithContext(context.Context) GetVolumeDataProtectionBackupPolicyOutput +} + +type GetVolumeDataProtectionBackupPolicyArgs struct { + // The Resource ID of the backup policy. + BackupPolicyId pulumi.StringInput `pulumi:"backupPolicyId"` + // The Resource ID of the backup backup vault. + BackupVaultId pulumi.StringInput `pulumi:"backupVaultId"` + // Backup policy is enabled or not. + PolicyEnabled pulumi.BoolInput `pulumi:"policyEnabled"` +} + +func (GetVolumeDataProtectionBackupPolicyArgs) ElementType() reflect.Type { + return reflect.TypeOf((*GetVolumeDataProtectionBackupPolicy)(nil)).Elem() +} + +func (i GetVolumeDataProtectionBackupPolicyArgs) ToGetVolumeDataProtectionBackupPolicyOutput() GetVolumeDataProtectionBackupPolicyOutput { + return i.ToGetVolumeDataProtectionBackupPolicyOutputWithContext(context.Background()) +} + +func (i GetVolumeDataProtectionBackupPolicyArgs) ToGetVolumeDataProtectionBackupPolicyOutputWithContext(ctx context.Context) GetVolumeDataProtectionBackupPolicyOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetVolumeDataProtectionBackupPolicyOutput) +} + +// GetVolumeDataProtectionBackupPolicyArrayInput is an input type that accepts GetVolumeDataProtectionBackupPolicyArray and GetVolumeDataProtectionBackupPolicyArrayOutput values. +// You can construct a concrete instance of `GetVolumeDataProtectionBackupPolicyArrayInput` via: +// +// GetVolumeDataProtectionBackupPolicyArray{ GetVolumeDataProtectionBackupPolicyArgs{...} } +type GetVolumeDataProtectionBackupPolicyArrayInput interface { + pulumi.Input + + ToGetVolumeDataProtectionBackupPolicyArrayOutput() GetVolumeDataProtectionBackupPolicyArrayOutput + ToGetVolumeDataProtectionBackupPolicyArrayOutputWithContext(context.Context) GetVolumeDataProtectionBackupPolicyArrayOutput +} + +type GetVolumeDataProtectionBackupPolicyArray []GetVolumeDataProtectionBackupPolicyInput + +func (GetVolumeDataProtectionBackupPolicyArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]GetVolumeDataProtectionBackupPolicy)(nil)).Elem() +} + +func (i GetVolumeDataProtectionBackupPolicyArray) ToGetVolumeDataProtectionBackupPolicyArrayOutput() GetVolumeDataProtectionBackupPolicyArrayOutput { + return i.ToGetVolumeDataProtectionBackupPolicyArrayOutputWithContext(context.Background()) +} + +func (i GetVolumeDataProtectionBackupPolicyArray) ToGetVolumeDataProtectionBackupPolicyArrayOutputWithContext(ctx context.Context) GetVolumeDataProtectionBackupPolicyArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(GetVolumeDataProtectionBackupPolicyArrayOutput) +} + +type GetVolumeDataProtectionBackupPolicyOutput struct{ *pulumi.OutputState } + +func (GetVolumeDataProtectionBackupPolicyOutput) ElementType() reflect.Type { + return reflect.TypeOf((*GetVolumeDataProtectionBackupPolicy)(nil)).Elem() +} + +func (o GetVolumeDataProtectionBackupPolicyOutput) ToGetVolumeDataProtectionBackupPolicyOutput() GetVolumeDataProtectionBackupPolicyOutput { + return o +} + +func (o GetVolumeDataProtectionBackupPolicyOutput) ToGetVolumeDataProtectionBackupPolicyOutputWithContext(ctx context.Context) GetVolumeDataProtectionBackupPolicyOutput { + return o +} + +// The Resource ID of the backup policy. +func (o GetVolumeDataProtectionBackupPolicyOutput) BackupPolicyId() pulumi.StringOutput { + return o.ApplyT(func(v GetVolumeDataProtectionBackupPolicy) string { return v.BackupPolicyId }).(pulumi.StringOutput) +} + +// The Resource ID of the backup backup vault. +func (o GetVolumeDataProtectionBackupPolicyOutput) BackupVaultId() pulumi.StringOutput { + return o.ApplyT(func(v GetVolumeDataProtectionBackupPolicy) string { return v.BackupVaultId }).(pulumi.StringOutput) +} + +// Backup policy is enabled or not. +func (o GetVolumeDataProtectionBackupPolicyOutput) PolicyEnabled() pulumi.BoolOutput { + return o.ApplyT(func(v GetVolumeDataProtectionBackupPolicy) bool { return v.PolicyEnabled }).(pulumi.BoolOutput) +} + +type GetVolumeDataProtectionBackupPolicyArrayOutput struct{ *pulumi.OutputState } + +func (GetVolumeDataProtectionBackupPolicyArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]GetVolumeDataProtectionBackupPolicy)(nil)).Elem() +} + +func (o GetVolumeDataProtectionBackupPolicyArrayOutput) ToGetVolumeDataProtectionBackupPolicyArrayOutput() GetVolumeDataProtectionBackupPolicyArrayOutput { + return o +} + +func (o GetVolumeDataProtectionBackupPolicyArrayOutput) ToGetVolumeDataProtectionBackupPolicyArrayOutputWithContext(ctx context.Context) GetVolumeDataProtectionBackupPolicyArrayOutput { + return o +} + +func (o GetVolumeDataProtectionBackupPolicyArrayOutput) Index(i pulumi.IntInput) GetVolumeDataProtectionBackupPolicyOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) GetVolumeDataProtectionBackupPolicy { + return vs[0].([]GetVolumeDataProtectionBackupPolicy)[vs[1].(int)] + }).(GetVolumeDataProtectionBackupPolicyOutput) +} + type GetVolumeDataProtectionReplication struct { // The endpoint type. EndpointType string `pulumi:"endpointType"` @@ -4013,6 +4311,8 @@ func init() { pulumi.RegisterInputType(reflect.TypeOf((*SnapshotPolicyMonthlySchedulePtrInput)(nil)).Elem(), SnapshotPolicyMonthlyScheduleArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*SnapshotPolicyWeeklyScheduleInput)(nil)).Elem(), SnapshotPolicyWeeklyScheduleArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*SnapshotPolicyWeeklySchedulePtrInput)(nil)).Elem(), SnapshotPolicyWeeklyScheduleArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*VolumeDataProtectionBackupPolicyInput)(nil)).Elem(), VolumeDataProtectionBackupPolicyArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*VolumeDataProtectionBackupPolicyPtrInput)(nil)).Elem(), VolumeDataProtectionBackupPolicyArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*VolumeDataProtectionReplicationInput)(nil)).Elem(), VolumeDataProtectionReplicationArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*VolumeDataProtectionReplicationPtrInput)(nil)).Elem(), VolumeDataProtectionReplicationArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*VolumeDataProtectionSnapshotPolicyInput)(nil)).Elem(), VolumeDataProtectionSnapshotPolicyArgs{}) @@ -4037,6 +4337,8 @@ func init() { pulumi.RegisterInputType(reflect.TypeOf((*GetSnapshotPolicyMonthlyScheduleArrayInput)(nil)).Elem(), GetSnapshotPolicyMonthlyScheduleArray{}) pulumi.RegisterInputType(reflect.TypeOf((*GetSnapshotPolicyWeeklyScheduleInput)(nil)).Elem(), GetSnapshotPolicyWeeklyScheduleArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*GetSnapshotPolicyWeeklyScheduleArrayInput)(nil)).Elem(), GetSnapshotPolicyWeeklyScheduleArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetVolumeDataProtectionBackupPolicyInput)(nil)).Elem(), GetVolumeDataProtectionBackupPolicyArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*GetVolumeDataProtectionBackupPolicyArrayInput)(nil)).Elem(), GetVolumeDataProtectionBackupPolicyArray{}) pulumi.RegisterInputType(reflect.TypeOf((*GetVolumeDataProtectionReplicationInput)(nil)).Elem(), GetVolumeDataProtectionReplicationArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*GetVolumeDataProtectionReplicationArrayInput)(nil)).Elem(), GetVolumeDataProtectionReplicationArray{}) pulumi.RegisterInputType(reflect.TypeOf((*GetVolumeGroupSapHanaVolumeInput)(nil)).Elem(), GetVolumeGroupSapHanaVolumeArgs{}) @@ -4059,6 +4361,8 @@ func init() { pulumi.RegisterOutputType(SnapshotPolicyMonthlySchedulePtrOutput{}) pulumi.RegisterOutputType(SnapshotPolicyWeeklyScheduleOutput{}) pulumi.RegisterOutputType(SnapshotPolicyWeeklySchedulePtrOutput{}) + pulumi.RegisterOutputType(VolumeDataProtectionBackupPolicyOutput{}) + pulumi.RegisterOutputType(VolumeDataProtectionBackupPolicyPtrOutput{}) pulumi.RegisterOutputType(VolumeDataProtectionReplicationOutput{}) pulumi.RegisterOutputType(VolumeDataProtectionReplicationPtrOutput{}) pulumi.RegisterOutputType(VolumeDataProtectionSnapshotPolicyOutput{}) @@ -4083,6 +4387,8 @@ func init() { pulumi.RegisterOutputType(GetSnapshotPolicyMonthlyScheduleArrayOutput{}) pulumi.RegisterOutputType(GetSnapshotPolicyWeeklyScheduleOutput{}) pulumi.RegisterOutputType(GetSnapshotPolicyWeeklyScheduleArrayOutput{}) + pulumi.RegisterOutputType(GetVolumeDataProtectionBackupPolicyOutput{}) + pulumi.RegisterOutputType(GetVolumeDataProtectionBackupPolicyArrayOutput{}) pulumi.RegisterOutputType(GetVolumeDataProtectionReplicationOutput{}) pulumi.RegisterOutputType(GetVolumeDataProtectionReplicationArrayOutput{}) pulumi.RegisterOutputType(GetVolumeGroupSapHanaVolumeOutput{}) diff --git a/sdk/go/azure/netapp/volume.go b/sdk/go/azure/netapp/volume.go index 61f6cd940f..54a52e0841 100644 --- a/sdk/go/azure/netapp/volume.go +++ b/sdk/go/azure/netapp/volume.go @@ -12,6 +12,10 @@ import ( "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) +// Manages a NetApp Volume. +// +// !>**IMPORTANT:** This resource uses a feature to prevent deletion called `preventVolumeDestruction`, defaulting to `true`. It is intentionally set to `true` to prevent the possibility of accidental data loss. The example in this page shows all possible protection options you can apply, it is using same values as the defaults. +// // ## Import // // NetApp Volumes can be imported using the `resource id`, e.g. @@ -28,6 +32,8 @@ type Volume struct { AzureVmwareDataStoreEnabled pulumi.BoolPtrOutput `pulumi:"azureVmwareDataStoreEnabled"` // Creates volume from snapshot. Following properties must be the same as the original volume where the snapshot was taken from: `protocols`, `subnetId`, `location`, `serviceLevel`, `resourceGroupName`, `accountName` and `poolName`. Changing this forces a new resource to be created. CreateFromSnapshotResourceId pulumi.StringPtrOutput `pulumi:"createFromSnapshotResourceId"` + // A `dataProtectionBackupPolicy` block as defined below. + DataProtectionBackupPolicy VolumeDataProtectionBackupPolicyPtrOutput `pulumi:"dataProtectionBackupPolicy"` // A `dataProtectionReplication` block as defined below. Changing this forces a new resource to be created. DataProtectionReplication VolumeDataProtectionReplicationPtrOutput `pulumi:"dataProtectionReplication"` // A `dataProtectionSnapshotPolicy` block as defined below. @@ -68,7 +74,7 @@ type Volume struct { // Limits clients from browsing for an SMB share by hiding the share from view in Windows Explorer or when listing shares in "net view." Only end users that know the absolute paths to the share are able to find the share. Defaults to `false`. For more information, please refer to [Understand NAS share permissions in Azure NetApp Files](https://learn.microsoft.com/en-us/azure/azure-netapp-files/network-attached-storage-permissions#:~:text=Non%2Dbrowsable%20shares,find%20the%20share.) SmbNonBrowsableEnabled pulumi.BoolPtrOutput `pulumi:"smbNonBrowsableEnabled"` // Specifies whether the .snapshot (NFS clients) or ~snapshot (SMB clients) path of a volume is visible, default value is true. - SnapshotDirectoryVisible pulumi.BoolOutput `pulumi:"snapshotDirectoryVisible"` + SnapshotDirectoryVisible pulumi.BoolPtrOutput `pulumi:"snapshotDirectoryVisible"` // The maximum Storage Quota allowed for a file system in Gigabytes. StorageQuotaInGb pulumi.IntOutput `pulumi:"storageQuotaInGb"` // The ID of the Subnet the NetApp Volume resides in, which must have the `Microsoft.NetApp/volumes` delegation. Changing this forces a new resource to be created. @@ -142,6 +148,8 @@ type volumeState struct { AzureVmwareDataStoreEnabled *bool `pulumi:"azureVmwareDataStoreEnabled"` // Creates volume from snapshot. Following properties must be the same as the original volume where the snapshot was taken from: `protocols`, `subnetId`, `location`, `serviceLevel`, `resourceGroupName`, `accountName` and `poolName`. Changing this forces a new resource to be created. CreateFromSnapshotResourceId *string `pulumi:"createFromSnapshotResourceId"` + // A `dataProtectionBackupPolicy` block as defined below. + DataProtectionBackupPolicy *VolumeDataProtectionBackupPolicy `pulumi:"dataProtectionBackupPolicy"` // A `dataProtectionReplication` block as defined below. Changing this forces a new resource to be created. DataProtectionReplication *VolumeDataProtectionReplication `pulumi:"dataProtectionReplication"` // A `dataProtectionSnapshotPolicy` block as defined below. @@ -206,6 +214,8 @@ type VolumeState struct { AzureVmwareDataStoreEnabled pulumi.BoolPtrInput // Creates volume from snapshot. Following properties must be the same as the original volume where the snapshot was taken from: `protocols`, `subnetId`, `location`, `serviceLevel`, `resourceGroupName`, `accountName` and `poolName`. Changing this forces a new resource to be created. CreateFromSnapshotResourceId pulumi.StringPtrInput + // A `dataProtectionBackupPolicy` block as defined below. + DataProtectionBackupPolicy VolumeDataProtectionBackupPolicyPtrInput // A `dataProtectionReplication` block as defined below. Changing this forces a new resource to be created. DataProtectionReplication VolumeDataProtectionReplicationPtrInput // A `dataProtectionSnapshotPolicy` block as defined below. @@ -274,6 +284,8 @@ type volumeArgs struct { AzureVmwareDataStoreEnabled *bool `pulumi:"azureVmwareDataStoreEnabled"` // Creates volume from snapshot. Following properties must be the same as the original volume where the snapshot was taken from: `protocols`, `subnetId`, `location`, `serviceLevel`, `resourceGroupName`, `accountName` and `poolName`. Changing this forces a new resource to be created. CreateFromSnapshotResourceId *string `pulumi:"createFromSnapshotResourceId"` + // A `dataProtectionBackupPolicy` block as defined below. + DataProtectionBackupPolicy *VolumeDataProtectionBackupPolicy `pulumi:"dataProtectionBackupPolicy"` // A `dataProtectionReplication` block as defined below. Changing this forces a new resource to be created. DataProtectionReplication *VolumeDataProtectionReplication `pulumi:"dataProtectionReplication"` // A `dataProtectionSnapshotPolicy` block as defined below. @@ -337,6 +349,8 @@ type VolumeArgs struct { AzureVmwareDataStoreEnabled pulumi.BoolPtrInput // Creates volume from snapshot. Following properties must be the same as the original volume where the snapshot was taken from: `protocols`, `subnetId`, `location`, `serviceLevel`, `resourceGroupName`, `accountName` and `poolName`. Changing this forces a new resource to be created. CreateFromSnapshotResourceId pulumi.StringPtrInput + // A `dataProtectionBackupPolicy` block as defined below. + DataProtectionBackupPolicy VolumeDataProtectionBackupPolicyPtrInput // A `dataProtectionReplication` block as defined below. Changing this forces a new resource to be created. DataProtectionReplication VolumeDataProtectionReplicationPtrInput // A `dataProtectionSnapshotPolicy` block as defined below. @@ -494,6 +508,11 @@ func (o VolumeOutput) CreateFromSnapshotResourceId() pulumi.StringPtrOutput { return o.ApplyT(func(v *Volume) pulumi.StringPtrOutput { return v.CreateFromSnapshotResourceId }).(pulumi.StringPtrOutput) } +// A `dataProtectionBackupPolicy` block as defined below. +func (o VolumeOutput) DataProtectionBackupPolicy() VolumeDataProtectionBackupPolicyPtrOutput { + return o.ApplyT(func(v *Volume) VolumeDataProtectionBackupPolicyPtrOutput { return v.DataProtectionBackupPolicy }).(VolumeDataProtectionBackupPolicyPtrOutput) +} + // A `dataProtectionReplication` block as defined below. Changing this forces a new resource to be created. func (o VolumeOutput) DataProtectionReplication() VolumeDataProtectionReplicationPtrOutput { return o.ApplyT(func(v *Volume) VolumeDataProtectionReplicationPtrOutput { return v.DataProtectionReplication }).(VolumeDataProtectionReplicationPtrOutput) @@ -591,8 +610,8 @@ func (o VolumeOutput) SmbNonBrowsableEnabled() pulumi.BoolPtrOutput { } // Specifies whether the .snapshot (NFS clients) or ~snapshot (SMB clients) path of a volume is visible, default value is true. -func (o VolumeOutput) SnapshotDirectoryVisible() pulumi.BoolOutput { - return o.ApplyT(func(v *Volume) pulumi.BoolOutput { return v.SnapshotDirectoryVisible }).(pulumi.BoolOutput) +func (o VolumeOutput) SnapshotDirectoryVisible() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *Volume) pulumi.BoolPtrOutput { return v.SnapshotDirectoryVisible }).(pulumi.BoolPtrOutput) } // The maximum Storage Quota allowed for a file system in Gigabytes. diff --git a/sdk/go/azure/network/pulumiTypes.go b/sdk/go/azure/network/pulumiTypes.go index 5a1124b014..61e720ca72 100644 --- a/sdk/go/azure/network/pulumiTypes.go +++ b/sdk/go/azure/network/pulumiTypes.go @@ -902,7 +902,7 @@ type ApplicationGatewayCustomErrorConfiguration struct { CustomErrorPageUrl string `pulumi:"customErrorPageUrl"` // The ID of the Rewrite Rule Set Id *string `pulumi:"id"` - // Status code of the application gateway customer error. Possible values are `HttpStatus403` and `HttpStatus502` + // Status code of the application gateway customer error. Possible values are `HttpStatus400`, `HttpStatus403`, `HttpStatus404`, `HttpStatus405`, `HttpStatus408`, `HttpStatus500`, `HttpStatus502`, `HttpStatus503` and `HttpStatus504` StatusCode string `pulumi:"statusCode"` } @@ -922,7 +922,7 @@ type ApplicationGatewayCustomErrorConfigurationArgs struct { CustomErrorPageUrl pulumi.StringInput `pulumi:"customErrorPageUrl"` // The ID of the Rewrite Rule Set Id pulumi.StringPtrInput `pulumi:"id"` - // Status code of the application gateway customer error. Possible values are `HttpStatus403` and `HttpStatus502` + // Status code of the application gateway customer error. Possible values are `HttpStatus400`, `HttpStatus403`, `HttpStatus404`, `HttpStatus405`, `HttpStatus408`, `HttpStatus500`, `HttpStatus502`, `HttpStatus503` and `HttpStatus504` StatusCode pulumi.StringInput `pulumi:"statusCode"` } @@ -987,7 +987,7 @@ func (o ApplicationGatewayCustomErrorConfigurationOutput) Id() pulumi.StringPtrO return o.ApplyT(func(v ApplicationGatewayCustomErrorConfiguration) *string { return v.Id }).(pulumi.StringPtrOutput) } -// Status code of the application gateway customer error. Possible values are `HttpStatus403` and `HttpStatus502` +// Status code of the application gateway customer error. Possible values are `HttpStatus400`, `HttpStatus403`, `HttpStatus404`, `HttpStatus405`, `HttpStatus408`, `HttpStatus500`, `HttpStatus502`, `HttpStatus503` and `HttpStatus504` func (o ApplicationGatewayCustomErrorConfigurationOutput) StatusCode() pulumi.StringOutput { return o.ApplyT(func(v ApplicationGatewayCustomErrorConfiguration) string { return v.StatusCode }).(pulumi.StringOutput) } @@ -1803,7 +1803,7 @@ type ApplicationGatewayHttpListenerCustomErrorConfiguration struct { CustomErrorPageUrl string `pulumi:"customErrorPageUrl"` // The ID of the Rewrite Rule Set Id *string `pulumi:"id"` - // Status code of the application gateway customer error. Possible values are `HttpStatus403` and `HttpStatus502` + // Status code of the application gateway customer error. Possible values are `HttpStatus400`, `HttpStatus403`, `HttpStatus404`, `HttpStatus405`, `HttpStatus408`, `HttpStatus500`, `HttpStatus502`, `HttpStatus503` and `HttpStatus504` StatusCode string `pulumi:"statusCode"` } @@ -1823,7 +1823,7 @@ type ApplicationGatewayHttpListenerCustomErrorConfigurationArgs struct { CustomErrorPageUrl pulumi.StringInput `pulumi:"customErrorPageUrl"` // The ID of the Rewrite Rule Set Id pulumi.StringPtrInput `pulumi:"id"` - // Status code of the application gateway customer error. Possible values are `HttpStatus403` and `HttpStatus502` + // Status code of the application gateway customer error. Possible values are `HttpStatus400`, `HttpStatus403`, `HttpStatus404`, `HttpStatus405`, `HttpStatus408`, `HttpStatus500`, `HttpStatus502`, `HttpStatus503` and `HttpStatus504` StatusCode pulumi.StringInput `pulumi:"statusCode"` } @@ -1888,7 +1888,7 @@ func (o ApplicationGatewayHttpListenerCustomErrorConfigurationOutput) Id() pulum return o.ApplyT(func(v ApplicationGatewayHttpListenerCustomErrorConfiguration) *string { return v.Id }).(pulumi.StringPtrOutput) } -// Status code of the application gateway customer error. Possible values are `HttpStatus403` and `HttpStatus502` +// Status code of the application gateway customer error. Possible values are `HttpStatus400`, `HttpStatus403`, `HttpStatus404`, `HttpStatus405`, `HttpStatus408`, `HttpStatus500`, `HttpStatus502`, `HttpStatus503` and `HttpStatus504` func (o ApplicationGatewayHttpListenerCustomErrorConfigurationOutput) StatusCode() pulumi.StringOutput { return o.ApplyT(func(v ApplicationGatewayHttpListenerCustomErrorConfiguration) string { return v.StatusCode }).(pulumi.StringOutput) } diff --git a/sdk/go/azure/network/trafficManagerAzureEndpoint.go b/sdk/go/azure/network/trafficManagerAzureEndpoint.go index 6d9813ec53..152d419f89 100644 --- a/sdk/go/azure/network/trafficManagerAzureEndpoint.go +++ b/sdk/go/azure/network/trafficManagerAzureEndpoint.go @@ -105,8 +105,8 @@ type TrafficManagerAzureEndpoint struct { GeoMappings pulumi.StringArrayOutput `pulumi:"geoMappings"` // The name of the Azure Endpoint. Changing this forces a new resource to be created. Name pulumi.StringOutput `pulumi:"name"` - // Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. Defaults to `1`. - Priority pulumi.IntPtrOutput `pulumi:"priority"` + // Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. + Priority pulumi.IntOutput `pulumi:"priority"` // The ID of the Traffic Manager Profile that this Azure Endpoint should be created within. Changing this forces a new resource to be created. ProfileId pulumi.StringOutput `pulumi:"profileId"` // One or more `subnet` blocks as defined below. Changing this forces a new resource to be created. @@ -163,7 +163,7 @@ type trafficManagerAzureEndpointState struct { GeoMappings []string `pulumi:"geoMappings"` // The name of the Azure Endpoint. Changing this forces a new resource to be created. Name *string `pulumi:"name"` - // Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. Defaults to `1`. + // Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. Priority *int `pulumi:"priority"` // The ID of the Traffic Manager Profile that this Azure Endpoint should be created within. Changing this forces a new resource to be created. ProfileId *string `pulumi:"profileId"` @@ -186,7 +186,7 @@ type TrafficManagerAzureEndpointState struct { GeoMappings pulumi.StringArrayInput // The name of the Azure Endpoint. Changing this forces a new resource to be created. Name pulumi.StringPtrInput - // Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. Defaults to `1`. + // Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. Priority pulumi.IntPtrInput // The ID of the Traffic Manager Profile that this Azure Endpoint should be created within. Changing this forces a new resource to be created. ProfileId pulumi.StringPtrInput @@ -213,7 +213,7 @@ type trafficManagerAzureEndpointArgs struct { GeoMappings []string `pulumi:"geoMappings"` // The name of the Azure Endpoint. Changing this forces a new resource to be created. Name *string `pulumi:"name"` - // Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. Defaults to `1`. + // Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. Priority *int `pulumi:"priority"` // The ID of the Traffic Manager Profile that this Azure Endpoint should be created within. Changing this forces a new resource to be created. ProfileId string `pulumi:"profileId"` @@ -237,7 +237,7 @@ type TrafficManagerAzureEndpointArgs struct { GeoMappings pulumi.StringArrayInput // The name of the Azure Endpoint. Changing this forces a new resource to be created. Name pulumi.StringPtrInput - // Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. Defaults to `1`. + // Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. Priority pulumi.IntPtrInput // The ID of the Traffic Manager Profile that this Azure Endpoint should be created within. Changing this forces a new resource to be created. ProfileId pulumi.StringInput @@ -363,9 +363,9 @@ func (o TrafficManagerAzureEndpointOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *TrafficManagerAzureEndpoint) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } -// Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. Defaults to `1`. -func (o TrafficManagerAzureEndpointOutput) Priority() pulumi.IntPtrOutput { - return o.ApplyT(func(v *TrafficManagerAzureEndpoint) pulumi.IntPtrOutput { return v.Priority }).(pulumi.IntPtrOutput) +// Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. +func (o TrafficManagerAzureEndpointOutput) Priority() pulumi.IntOutput { + return o.ApplyT(func(v *TrafficManagerAzureEndpoint) pulumi.IntOutput { return v.Priority }).(pulumi.IntOutput) } // The ID of the Traffic Manager Profile that this Azure Endpoint should be created within. Changing this forces a new resource to be created. diff --git a/sdk/go/azure/network/trafficManagerExternalEndpoint.go b/sdk/go/azure/network/trafficManagerExternalEndpoint.go index a07debdbfc..b8ca4a9c86 100644 --- a/sdk/go/azure/network/trafficManagerExternalEndpoint.go +++ b/sdk/go/azure/network/trafficManagerExternalEndpoint.go @@ -97,8 +97,8 @@ type TrafficManagerExternalEndpoint struct { GeoMappings pulumi.StringArrayOutput `pulumi:"geoMappings"` // The name of the External Endpoint. Changing this forces a new resource to be created. Name pulumi.StringOutput `pulumi:"name"` - // Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. Defaults to `1`. - Priority pulumi.IntPtrOutput `pulumi:"priority"` + // Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. + Priority pulumi.IntOutput `pulumi:"priority"` // The ID of the Traffic Manager Profile that this External Endpoint should be created within. Changing this forces a new resource to be created. ProfileId pulumi.StringOutput `pulumi:"profileId"` // One or more `subnet` blocks as defined below. Changing this forces a new resource to be created. @@ -157,7 +157,7 @@ type trafficManagerExternalEndpointState struct { GeoMappings []string `pulumi:"geoMappings"` // The name of the External Endpoint. Changing this forces a new resource to be created. Name *string `pulumi:"name"` - // Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. Defaults to `1`. + // Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. Priority *int `pulumi:"priority"` // The ID of the Traffic Manager Profile that this External Endpoint should be created within. Changing this forces a new resource to be created. ProfileId *string `pulumi:"profileId"` @@ -182,7 +182,7 @@ type TrafficManagerExternalEndpointState struct { GeoMappings pulumi.StringArrayInput // The name of the External Endpoint. Changing this forces a new resource to be created. Name pulumi.StringPtrInput - // Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. Defaults to `1`. + // Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. Priority pulumi.IntPtrInput // The ID of the Traffic Manager Profile that this External Endpoint should be created within. Changing this forces a new resource to be created. ProfileId pulumi.StringPtrInput @@ -211,7 +211,7 @@ type trafficManagerExternalEndpointArgs struct { GeoMappings []string `pulumi:"geoMappings"` // The name of the External Endpoint. Changing this forces a new resource to be created. Name *string `pulumi:"name"` - // Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. Defaults to `1`. + // Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. Priority *int `pulumi:"priority"` // The ID of the Traffic Manager Profile that this External Endpoint should be created within. Changing this forces a new resource to be created. ProfileId string `pulumi:"profileId"` @@ -237,7 +237,7 @@ type TrafficManagerExternalEndpointArgs struct { GeoMappings pulumi.StringArrayInput // The name of the External Endpoint. Changing this forces a new resource to be created. Name pulumi.StringPtrInput - // Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. Defaults to `1`. + // Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. Priority pulumi.IntPtrInput // The ID of the Traffic Manager Profile that this External Endpoint should be created within. Changing this forces a new resource to be created. ProfileId pulumi.StringInput @@ -368,9 +368,9 @@ func (o TrafficManagerExternalEndpointOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v *TrafficManagerExternalEndpoint) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) } -// Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. Defaults to `1`. -func (o TrafficManagerExternalEndpointOutput) Priority() pulumi.IntPtrOutput { - return o.ApplyT(func(v *TrafficManagerExternalEndpoint) pulumi.IntPtrOutput { return v.Priority }).(pulumi.IntPtrOutput) +// Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. +func (o TrafficManagerExternalEndpointOutput) Priority() pulumi.IntOutput { + return o.ApplyT(func(v *TrafficManagerExternalEndpoint) pulumi.IntOutput { return v.Priority }).(pulumi.IntOutput) } // The ID of the Traffic Manager Profile that this External Endpoint should be created within. Changing this forces a new resource to be created. diff --git a/sdk/go/azure/pulumiTypes.go b/sdk/go/azure/pulumiTypes.go index 6d8bac575b..fdc306c35f 100644 --- a/sdk/go/azure/pulumiTypes.go +++ b/sdk/go/azure/pulumiTypes.go @@ -22,6 +22,7 @@ type ProviderFeatures struct { LogAnalyticsWorkspace *ProviderFeaturesLogAnalyticsWorkspace `pulumi:"logAnalyticsWorkspace"` MachineLearning *ProviderFeaturesMachineLearning `pulumi:"machineLearning"` ManagedDisk *ProviderFeaturesManagedDisk `pulumi:"managedDisk"` + Netapp *ProviderFeaturesNetapp `pulumi:"netapp"` PostgresqlFlexibleServer *ProviderFeaturesPostgresqlFlexibleServer `pulumi:"postgresqlFlexibleServer"` RecoveryService *ProviderFeaturesRecoveryService `pulumi:"recoveryService"` RecoveryServicesVaults *ProviderFeaturesRecoveryServicesVaults `pulumi:"recoveryServicesVaults"` @@ -53,6 +54,7 @@ type ProviderFeaturesArgs struct { LogAnalyticsWorkspace ProviderFeaturesLogAnalyticsWorkspacePtrInput `pulumi:"logAnalyticsWorkspace"` MachineLearning ProviderFeaturesMachineLearningPtrInput `pulumi:"machineLearning"` ManagedDisk ProviderFeaturesManagedDiskPtrInput `pulumi:"managedDisk"` + Netapp ProviderFeaturesNetappPtrInput `pulumi:"netapp"` PostgresqlFlexibleServer ProviderFeaturesPostgresqlFlexibleServerPtrInput `pulumi:"postgresqlFlexibleServer"` RecoveryService ProviderFeaturesRecoveryServicePtrInput `pulumi:"recoveryService"` RecoveryServicesVaults ProviderFeaturesRecoveryServicesVaultsPtrInput `pulumi:"recoveryServicesVaults"` @@ -173,6 +175,10 @@ func (o ProviderFeaturesOutput) ManagedDisk() ProviderFeaturesManagedDiskPtrOutp return o.ApplyT(func(v ProviderFeatures) *ProviderFeaturesManagedDisk { return v.ManagedDisk }).(ProviderFeaturesManagedDiskPtrOutput) } +func (o ProviderFeaturesOutput) Netapp() ProviderFeaturesNetappPtrOutput { + return o.ApplyT(func(v ProviderFeatures) *ProviderFeaturesNetapp { return v.Netapp }).(ProviderFeaturesNetappPtrOutput) +} + func (o ProviderFeaturesOutput) PostgresqlFlexibleServer() ProviderFeaturesPostgresqlFlexibleServerPtrOutput { return o.ApplyT(func(v ProviderFeatures) *ProviderFeaturesPostgresqlFlexibleServer { return v.PostgresqlFlexibleServer }).(ProviderFeaturesPostgresqlFlexibleServerPtrOutput) } @@ -305,6 +311,15 @@ func (o ProviderFeaturesPtrOutput) ManagedDisk() ProviderFeaturesManagedDiskPtrO }).(ProviderFeaturesManagedDiskPtrOutput) } +func (o ProviderFeaturesPtrOutput) Netapp() ProviderFeaturesNetappPtrOutput { + return o.ApplyT(func(v *ProviderFeatures) *ProviderFeaturesNetapp { + if v == nil { + return nil + } + return v.Netapp + }).(ProviderFeaturesNetappPtrOutput) +} + func (o ProviderFeaturesPtrOutput) PostgresqlFlexibleServer() ProviderFeaturesPostgresqlFlexibleServerPtrOutput { return o.ApplyT(func(v *ProviderFeatures) *ProviderFeaturesPostgresqlFlexibleServer { if v == nil { @@ -1674,6 +1689,162 @@ func (o ProviderFeaturesManagedDiskPtrOutput) ExpandWithoutDowntime() pulumi.Boo }).(pulumi.BoolPtrOutput) } +type ProviderFeaturesNetapp struct { + // When enabled, backups will be deleted when the `netapp.BackupVault` resource is destroyed + DeleteBackupsOnBackupVaultDestroy *bool `pulumi:"deleteBackupsOnBackupVaultDestroy"` + // When enabled, the volume will not be destroyed, safeguarding from severe data loss + PreventVolumeDestruction *bool `pulumi:"preventVolumeDestruction"` +} + +// ProviderFeaturesNetappInput is an input type that accepts ProviderFeaturesNetappArgs and ProviderFeaturesNetappOutput values. +// You can construct a concrete instance of `ProviderFeaturesNetappInput` via: +// +// ProviderFeaturesNetappArgs{...} +type ProviderFeaturesNetappInput interface { + pulumi.Input + + ToProviderFeaturesNetappOutput() ProviderFeaturesNetappOutput + ToProviderFeaturesNetappOutputWithContext(context.Context) ProviderFeaturesNetappOutput +} + +type ProviderFeaturesNetappArgs struct { + // When enabled, backups will be deleted when the `netapp.BackupVault` resource is destroyed + DeleteBackupsOnBackupVaultDestroy pulumi.BoolPtrInput `pulumi:"deleteBackupsOnBackupVaultDestroy"` + // When enabled, the volume will not be destroyed, safeguarding from severe data loss + PreventVolumeDestruction pulumi.BoolPtrInput `pulumi:"preventVolumeDestruction"` +} + +func (ProviderFeaturesNetappArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ProviderFeaturesNetapp)(nil)).Elem() +} + +func (i ProviderFeaturesNetappArgs) ToProviderFeaturesNetappOutput() ProviderFeaturesNetappOutput { + return i.ToProviderFeaturesNetappOutputWithContext(context.Background()) +} + +func (i ProviderFeaturesNetappArgs) ToProviderFeaturesNetappOutputWithContext(ctx context.Context) ProviderFeaturesNetappOutput { + return pulumi.ToOutputWithContext(ctx, i).(ProviderFeaturesNetappOutput) +} + +func (i ProviderFeaturesNetappArgs) ToProviderFeaturesNetappPtrOutput() ProviderFeaturesNetappPtrOutput { + return i.ToProviderFeaturesNetappPtrOutputWithContext(context.Background()) +} + +func (i ProviderFeaturesNetappArgs) ToProviderFeaturesNetappPtrOutputWithContext(ctx context.Context) ProviderFeaturesNetappPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ProviderFeaturesNetappOutput).ToProviderFeaturesNetappPtrOutputWithContext(ctx) +} + +// ProviderFeaturesNetappPtrInput is an input type that accepts ProviderFeaturesNetappArgs, ProviderFeaturesNetappPtr and ProviderFeaturesNetappPtrOutput values. +// You can construct a concrete instance of `ProviderFeaturesNetappPtrInput` via: +// +// ProviderFeaturesNetappArgs{...} +// +// or: +// +// nil +type ProviderFeaturesNetappPtrInput interface { + pulumi.Input + + ToProviderFeaturesNetappPtrOutput() ProviderFeaturesNetappPtrOutput + ToProviderFeaturesNetappPtrOutputWithContext(context.Context) ProviderFeaturesNetappPtrOutput +} + +type providerFeaturesNetappPtrType ProviderFeaturesNetappArgs + +func ProviderFeaturesNetappPtr(v *ProviderFeaturesNetappArgs) ProviderFeaturesNetappPtrInput { + return (*providerFeaturesNetappPtrType)(v) +} + +func (*providerFeaturesNetappPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**ProviderFeaturesNetapp)(nil)).Elem() +} + +func (i *providerFeaturesNetappPtrType) ToProviderFeaturesNetappPtrOutput() ProviderFeaturesNetappPtrOutput { + return i.ToProviderFeaturesNetappPtrOutputWithContext(context.Background()) +} + +func (i *providerFeaturesNetappPtrType) ToProviderFeaturesNetappPtrOutputWithContext(ctx context.Context) ProviderFeaturesNetappPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ProviderFeaturesNetappPtrOutput) +} + +type ProviderFeaturesNetappOutput struct{ *pulumi.OutputState } + +func (ProviderFeaturesNetappOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ProviderFeaturesNetapp)(nil)).Elem() +} + +func (o ProviderFeaturesNetappOutput) ToProviderFeaturesNetappOutput() ProviderFeaturesNetappOutput { + return o +} + +func (o ProviderFeaturesNetappOutput) ToProviderFeaturesNetappOutputWithContext(ctx context.Context) ProviderFeaturesNetappOutput { + return o +} + +func (o ProviderFeaturesNetappOutput) ToProviderFeaturesNetappPtrOutput() ProviderFeaturesNetappPtrOutput { + return o.ToProviderFeaturesNetappPtrOutputWithContext(context.Background()) +} + +func (o ProviderFeaturesNetappOutput) ToProviderFeaturesNetappPtrOutputWithContext(ctx context.Context) ProviderFeaturesNetappPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v ProviderFeaturesNetapp) *ProviderFeaturesNetapp { + return &v + }).(ProviderFeaturesNetappPtrOutput) +} + +// When enabled, backups will be deleted when the `netapp.BackupVault` resource is destroyed +func (o ProviderFeaturesNetappOutput) DeleteBackupsOnBackupVaultDestroy() pulumi.BoolPtrOutput { + return o.ApplyT(func(v ProviderFeaturesNetapp) *bool { return v.DeleteBackupsOnBackupVaultDestroy }).(pulumi.BoolPtrOutput) +} + +// When enabled, the volume will not be destroyed, safeguarding from severe data loss +func (o ProviderFeaturesNetappOutput) PreventVolumeDestruction() pulumi.BoolPtrOutput { + return o.ApplyT(func(v ProviderFeaturesNetapp) *bool { return v.PreventVolumeDestruction }).(pulumi.BoolPtrOutput) +} + +type ProviderFeaturesNetappPtrOutput struct{ *pulumi.OutputState } + +func (ProviderFeaturesNetappPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**ProviderFeaturesNetapp)(nil)).Elem() +} + +func (o ProviderFeaturesNetappPtrOutput) ToProviderFeaturesNetappPtrOutput() ProviderFeaturesNetappPtrOutput { + return o +} + +func (o ProviderFeaturesNetappPtrOutput) ToProviderFeaturesNetappPtrOutputWithContext(ctx context.Context) ProviderFeaturesNetappPtrOutput { + return o +} + +func (o ProviderFeaturesNetappPtrOutput) Elem() ProviderFeaturesNetappOutput { + return o.ApplyT(func(v *ProviderFeaturesNetapp) ProviderFeaturesNetapp { + if v != nil { + return *v + } + var ret ProviderFeaturesNetapp + return ret + }).(ProviderFeaturesNetappOutput) +} + +// When enabled, backups will be deleted when the `netapp.BackupVault` resource is destroyed +func (o ProviderFeaturesNetappPtrOutput) DeleteBackupsOnBackupVaultDestroy() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *ProviderFeaturesNetapp) *bool { + if v == nil { + return nil + } + return v.DeleteBackupsOnBackupVaultDestroy + }).(pulumi.BoolPtrOutput) +} + +// When enabled, the volume will not be destroyed, safeguarding from severe data loss +func (o ProviderFeaturesNetappPtrOutput) PreventVolumeDestruction() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *ProviderFeaturesNetapp) *bool { + if v == nil { + return nil + } + return v.PreventVolumeDestruction + }).(pulumi.BoolPtrOutput) +} + type ProviderFeaturesPostgresqlFlexibleServer struct { RestartServerOnConfigurationValueChange *bool `pulumi:"restartServerOnConfigurationValueChange"` } @@ -2997,6 +3168,8 @@ func init() { pulumi.RegisterInputType(reflect.TypeOf((*ProviderFeaturesMachineLearningPtrInput)(nil)).Elem(), ProviderFeaturesMachineLearningArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*ProviderFeaturesManagedDiskInput)(nil)).Elem(), ProviderFeaturesManagedDiskArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*ProviderFeaturesManagedDiskPtrInput)(nil)).Elem(), ProviderFeaturesManagedDiskArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*ProviderFeaturesNetappInput)(nil)).Elem(), ProviderFeaturesNetappArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*ProviderFeaturesNetappPtrInput)(nil)).Elem(), ProviderFeaturesNetappArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*ProviderFeaturesPostgresqlFlexibleServerInput)(nil)).Elem(), ProviderFeaturesPostgresqlFlexibleServerArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*ProviderFeaturesPostgresqlFlexibleServerPtrInput)(nil)).Elem(), ProviderFeaturesPostgresqlFlexibleServerArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*ProviderFeaturesRecoveryServiceInput)(nil)).Elem(), ProviderFeaturesRecoveryServiceArgs{}) @@ -3033,6 +3206,8 @@ func init() { pulumi.RegisterOutputType(ProviderFeaturesMachineLearningPtrOutput{}) pulumi.RegisterOutputType(ProviderFeaturesManagedDiskOutput{}) pulumi.RegisterOutputType(ProviderFeaturesManagedDiskPtrOutput{}) + pulumi.RegisterOutputType(ProviderFeaturesNetappOutput{}) + pulumi.RegisterOutputType(ProviderFeaturesNetappPtrOutput{}) pulumi.RegisterOutputType(ProviderFeaturesPostgresqlFlexibleServerOutput{}) pulumi.RegisterOutputType(ProviderFeaturesPostgresqlFlexibleServerPtrOutput{}) pulumi.RegisterOutputType(ProviderFeaturesRecoveryServiceOutput{}) diff --git a/sdk/java/src/main/java/com/pulumi/azure/appservice/inputs/LinuxFunctionAppSiteConfigApplicationStackArgs.java b/sdk/java/src/main/java/com/pulumi/azure/appservice/inputs/LinuxFunctionAppSiteConfigApplicationStackArgs.java index 835aae04ca..16b5bedbc7 100644 --- a/sdk/java/src/main/java/com/pulumi/azure/appservice/inputs/LinuxFunctionAppSiteConfigApplicationStackArgs.java +++ b/sdk/java/src/main/java/com/pulumi/azure/appservice/inputs/LinuxFunctionAppSiteConfigApplicationStackArgs.java @@ -34,14 +34,14 @@ public Optional dotnetVersion; /** - * @return The version of .NET to use. Possible values include `3.1`, `6.0`, `7.0` and `8.0`. + * @return The version of .NET to use. Possible values include `3.1`, `6.0`, `7.0`, `8.0` and `9.0`. * */ public Optional> dotnetVersion() { @@ -201,7 +201,7 @@ public Builder dockers(LinuxFunctionAppSiteConfigApplicationStackDockerArgs... d } /** - * @param dotnetVersion The version of .NET to use. Possible values include `3.1`, `6.0`, `7.0` and `8.0`. + * @param dotnetVersion The version of .NET to use. Possible values include `3.1`, `6.0`, `7.0`, `8.0` and `9.0`. * * @return builder * @@ -212,7 +212,7 @@ public Builder dotnetVersion(@Nullable Output dotnetVersion) { } /** - * @param dotnetVersion The version of .NET to use. Possible values include `3.1`, `6.0`, `7.0` and `8.0`. + * @param dotnetVersion The version of .NET to use. Possible values include `3.1`, `6.0`, `7.0`, `8.0` and `9.0`. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/azure/appservice/inputs/LinuxFunctionAppSlotSiteConfigApplicationStackArgs.java b/sdk/java/src/main/java/com/pulumi/azure/appservice/inputs/LinuxFunctionAppSlotSiteConfigApplicationStackArgs.java index 97e840c381..2f14a08fee 100644 --- a/sdk/java/src/main/java/com/pulumi/azure/appservice/inputs/LinuxFunctionAppSlotSiteConfigApplicationStackArgs.java +++ b/sdk/java/src/main/java/com/pulumi/azure/appservice/inputs/LinuxFunctionAppSlotSiteConfigApplicationStackArgs.java @@ -34,14 +34,14 @@ public Optional dotnetVersion; /** - * @return The version of .Net. Possible values are `3.1`, `6.0`, `7.0` and `8.0`. + * @return The version of .Net. Possible values are `3.1`, `6.0`, `7.0`, `8.0` and `9.0`. * */ public Optional> dotnetVersion() { @@ -201,7 +201,7 @@ public Builder dockers(LinuxFunctionAppSlotSiteConfigApplicationStackDockerArgs. } /** - * @param dotnetVersion The version of .Net. Possible values are `3.1`, `6.0`, `7.0` and `8.0`. + * @param dotnetVersion The version of .Net. Possible values are `3.1`, `6.0`, `7.0`, `8.0` and `9.0`. * * @return builder * @@ -212,7 +212,7 @@ public Builder dotnetVersion(@Nullable Output dotnetVersion) { } /** - * @param dotnetVersion The version of .Net. Possible values are `3.1`, `6.0`, `7.0` and `8.0`. + * @param dotnetVersion The version of .Net. Possible values are `3.1`, `6.0`, `7.0`, `8.0` and `9.0`. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/azure/appservice/inputs/LinuxWebAppSiteConfigApplicationStackArgs.java b/sdk/java/src/main/java/com/pulumi/azure/appservice/inputs/LinuxWebAppSiteConfigApplicationStackArgs.java index 280410645f..062e79bf62 100644 --- a/sdk/java/src/main/java/com/pulumi/azure/appservice/inputs/LinuxWebAppSiteConfigApplicationStackArgs.java +++ b/sdk/java/src/main/java/com/pulumi/azure/appservice/inputs/LinuxWebAppSiteConfigApplicationStackArgs.java @@ -80,14 +80,14 @@ public Optional> dockerRegistryUsername() { } /** - * The version of .NET to use. Possible values include `3.1`, `5.0`, `6.0`, `7.0` and `8.0`. + * The version of .NET to use. Possible values include `3.1`, `5.0`, `6.0`, `7.0`, `8.0` and `9.0`. * */ @Import(name="dotnetVersion") private @Nullable Output dotnetVersion; /** - * @return The version of .NET to use. Possible values include `3.1`, `5.0`, `6.0`, `7.0` and `8.0`. + * @return The version of .NET to use. Possible values include `3.1`, `5.0`, `6.0`, `7.0`, `8.0` and `9.0`. * */ public Optional> dotnetVersion() { @@ -359,7 +359,7 @@ public Builder dockerRegistryUsername(String dockerRegistryUsername) { } /** - * @param dotnetVersion The version of .NET to use. Possible values include `3.1`, `5.0`, `6.0`, `7.0` and `8.0`. + * @param dotnetVersion The version of .NET to use. Possible values include `3.1`, `5.0`, `6.0`, `7.0`, `8.0` and `9.0`. * * @return builder * @@ -370,7 +370,7 @@ public Builder dotnetVersion(@Nullable Output dotnetVersion) { } /** - * @param dotnetVersion The version of .NET to use. Possible values include `3.1`, `5.0`, `6.0`, `7.0` and `8.0`. + * @param dotnetVersion The version of .NET to use. Possible values include `3.1`, `5.0`, `6.0`, `7.0`, `8.0` and `9.0`. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/azure/appservice/inputs/LinuxWebAppSlotSiteConfigApplicationStackArgs.java b/sdk/java/src/main/java/com/pulumi/azure/appservice/inputs/LinuxWebAppSlotSiteConfigApplicationStackArgs.java index dac371593b..7426bffa04 100644 --- a/sdk/java/src/main/java/com/pulumi/azure/appservice/inputs/LinuxWebAppSlotSiteConfigApplicationStackArgs.java +++ b/sdk/java/src/main/java/com/pulumi/azure/appservice/inputs/LinuxWebAppSlotSiteConfigApplicationStackArgs.java @@ -80,14 +80,14 @@ public Optional> dockerRegistryUsername() { } /** - * The version of .NET to use. Possible values include `3.1`, `5.0`, `6.0`, `7.0` and `8.0`. + * The version of .NET to use. Possible values include `3.1`, `5.0`, `6.0`, `7.0`, `8.0` and `9.0`. * */ @Import(name="dotnetVersion") private @Nullable Output dotnetVersion; /** - * @return The version of .NET to use. Possible values include `3.1`, `5.0`, `6.0`, `7.0` and `8.0`. + * @return The version of .NET to use. Possible values include `3.1`, `5.0`, `6.0`, `7.0`, `8.0` and `9.0`. * */ public Optional> dotnetVersion() { @@ -355,7 +355,7 @@ public Builder dockerRegistryUsername(String dockerRegistryUsername) { } /** - * @param dotnetVersion The version of .NET to use. Possible values include `3.1`, `5.0`, `6.0`, `7.0` and `8.0`. + * @param dotnetVersion The version of .NET to use. Possible values include `3.1`, `5.0`, `6.0`, `7.0`, `8.0` and `9.0`. * * @return builder * @@ -366,7 +366,7 @@ public Builder dotnetVersion(@Nullable Output dotnetVersion) { } /** - * @param dotnetVersion The version of .NET to use. Possible values include `3.1`, `5.0`, `6.0`, `7.0` and `8.0`. + * @param dotnetVersion The version of .NET to use. Possible values include `3.1`, `5.0`, `6.0`, `7.0`, `8.0` and `9.0`. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/azure/appservice/inputs/WindowsFunctionAppSiteConfigApplicationStackArgs.java b/sdk/java/src/main/java/com/pulumi/azure/appservice/inputs/WindowsFunctionAppSiteConfigApplicationStackArgs.java index 67a36fc3ab..f439ae6297 100644 --- a/sdk/java/src/main/java/com/pulumi/azure/appservice/inputs/WindowsFunctionAppSiteConfigApplicationStackArgs.java +++ b/sdk/java/src/main/java/com/pulumi/azure/appservice/inputs/WindowsFunctionAppSiteConfigApplicationStackArgs.java @@ -17,14 +17,14 @@ public final class WindowsFunctionAppSiteConfigApplicationStackArgs extends com. public static final WindowsFunctionAppSiteConfigApplicationStackArgs Empty = new WindowsFunctionAppSiteConfigApplicationStackArgs(); /** - * The version of .NET to use. Possible values include `v3.0`, `v4.0` `v6.0`, `v7.0` and `v8.0`. Defaults to `v4.0`. + * The version of .NET to use. Possible values include `v3.0`, `v4.0` `v6.0`, `v7.0`, `v8.0` and `v9.0`. Defaults to `v4.0`. * */ @Import(name="dotnetVersion") private @Nullable Output dotnetVersion; /** - * @return The version of .NET to use. Possible values include `v3.0`, `v4.0` `v6.0`, `v7.0` and `v8.0`. Defaults to `v4.0`. + * @return The version of .NET to use. Possible values include `v3.0`, `v4.0` `v6.0`, `v7.0`, `v8.0` and `v9.0`. Defaults to `v4.0`. * */ public Optional> dotnetVersion() { @@ -140,7 +140,7 @@ public Builder(WindowsFunctionAppSiteConfigApplicationStackArgs defaults) { } /** - * @param dotnetVersion The version of .NET to use. Possible values include `v3.0`, `v4.0` `v6.0`, `v7.0` and `v8.0`. Defaults to `v4.0`. + * @param dotnetVersion The version of .NET to use. Possible values include `v3.0`, `v4.0` `v6.0`, `v7.0`, `v8.0` and `v9.0`. Defaults to `v4.0`. * * @return builder * @@ -151,7 +151,7 @@ public Builder dotnetVersion(@Nullable Output dotnetVersion) { } /** - * @param dotnetVersion The version of .NET to use. Possible values include `v3.0`, `v4.0` `v6.0`, `v7.0` and `v8.0`. Defaults to `v4.0`. + * @param dotnetVersion The version of .NET to use. Possible values include `v3.0`, `v4.0` `v6.0`, `v7.0`, `v8.0` and `v9.0`. Defaults to `v4.0`. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/azure/appservice/inputs/WindowsFunctionAppSlotSiteConfigApplicationStackArgs.java b/sdk/java/src/main/java/com/pulumi/azure/appservice/inputs/WindowsFunctionAppSlotSiteConfigApplicationStackArgs.java index 4bbfc4155f..8fb2495736 100644 --- a/sdk/java/src/main/java/com/pulumi/azure/appservice/inputs/WindowsFunctionAppSlotSiteConfigApplicationStackArgs.java +++ b/sdk/java/src/main/java/com/pulumi/azure/appservice/inputs/WindowsFunctionAppSlotSiteConfigApplicationStackArgs.java @@ -17,14 +17,14 @@ public final class WindowsFunctionAppSlotSiteConfigApplicationStackArgs extends public static final WindowsFunctionAppSlotSiteConfigApplicationStackArgs Empty = new WindowsFunctionAppSlotSiteConfigApplicationStackArgs(); /** - * The version of .Net. Possible values are `v3.0`, `v4.0`, `v6.0`, `v7.0` and `v8.0`. Defaults to `v4.0`. + * The version of .Net. Possible values are `v3.0`, `v4.0`, `v6.0`, `v7.0`, `v8.0` and `v9.0`. Defaults to `v4.0`. * */ @Import(name="dotnetVersion") private @Nullable Output dotnetVersion; /** - * @return The version of .Net. Possible values are `v3.0`, `v4.0`, `v6.0`, `v7.0` and `v8.0`. Defaults to `v4.0`. + * @return The version of .Net. Possible values are `v3.0`, `v4.0`, `v6.0`, `v7.0`, `v8.0` and `v9.0`. Defaults to `v4.0`. * */ public Optional> dotnetVersion() { @@ -136,7 +136,7 @@ public Builder(WindowsFunctionAppSlotSiteConfigApplicationStackArgs defaults) { } /** - * @param dotnetVersion The version of .Net. Possible values are `v3.0`, `v4.0`, `v6.0`, `v7.0` and `v8.0`. Defaults to `v4.0`. + * @param dotnetVersion The version of .Net. Possible values are `v3.0`, `v4.0`, `v6.0`, `v7.0`, `v8.0` and `v9.0`. Defaults to `v4.0`. * * @return builder * @@ -147,7 +147,7 @@ public Builder dotnetVersion(@Nullable Output dotnetVersion) { } /** - * @param dotnetVersion The version of .Net. Possible values are `v3.0`, `v4.0`, `v6.0`, `v7.0` and `v8.0`. Defaults to `v4.0`. + * @param dotnetVersion The version of .Net. Possible values are `v3.0`, `v4.0`, `v6.0`, `v7.0`, `v8.0` and `v9.0`. Defaults to `v4.0`. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/azure/appservice/inputs/WindowsWebAppSiteConfigApplicationStackArgs.java b/sdk/java/src/main/java/com/pulumi/azure/appservice/inputs/WindowsWebAppSiteConfigApplicationStackArgs.java index d626fa001b..ebfc666c8c 100644 --- a/sdk/java/src/main/java/com/pulumi/azure/appservice/inputs/WindowsWebAppSiteConfigApplicationStackArgs.java +++ b/sdk/java/src/main/java/com/pulumi/azure/appservice/inputs/WindowsWebAppSiteConfigApplicationStackArgs.java @@ -119,7 +119,7 @@ public Optional> dotnetCoreVersion() { } /** - * The version of .NET to use when `current_stack` is set to `dotnet`. Possible values include `v2.0`,`v3.0`, `v4.0`, `v5.0`, `v6.0`, `v7.0` and `v8.0`. + * The version of .NET to use when `current_stack` is set to `dotnet`. Possible values include `v2.0`,`v3.0`, `v4.0`, `v5.0`, `v6.0`, `v7.0`, `v8.0` and `v9.0`. * * > **NOTE:** The Portal displayed values and the actual underlying API values differ for this setting, as follows: * Portal Value | API value @@ -129,13 +129,14 @@ public Optional> dotnetCoreVersion() { * .NET 6 (LTS) | v6.0 * .NET 7 (STS) | v7.0 * .NET 8 (LTS) | v8.0 + * .NET 9 (STS) | v9.0 * */ @Import(name="dotnetVersion") private @Nullable Output dotnetVersion; /** - * @return The version of .NET to use when `current_stack` is set to `dotnet`. Possible values include `v2.0`,`v3.0`, `v4.0`, `v5.0`, `v6.0`, `v7.0` and `v8.0`. + * @return The version of .NET to use when `current_stack` is set to `dotnet`. Possible values include `v2.0`,`v3.0`, `v4.0`, `v5.0`, `v6.0`, `v7.0`, `v8.0` and `v9.0`. * * > **NOTE:** The Portal displayed values and the actual underlying API values differ for this setting, as follows: * Portal Value | API value @@ -145,6 +146,7 @@ public Optional> dotnetCoreVersion() { * .NET 6 (LTS) | v6.0 * .NET 7 (STS) | v7.0 * .NET 8 (LTS) | v8.0 + * .NET 9 (STS) | v9.0 * */ public Optional> dotnetVersion() { @@ -472,7 +474,7 @@ public Builder dotnetCoreVersion(String dotnetCoreVersion) { } /** - * @param dotnetVersion The version of .NET to use when `current_stack` is set to `dotnet`. Possible values include `v2.0`,`v3.0`, `v4.0`, `v5.0`, `v6.0`, `v7.0` and `v8.0`. + * @param dotnetVersion The version of .NET to use when `current_stack` is set to `dotnet`. Possible values include `v2.0`,`v3.0`, `v4.0`, `v5.0`, `v6.0`, `v7.0`, `v8.0` and `v9.0`. * * > **NOTE:** The Portal displayed values and the actual underlying API values differ for this setting, as follows: * Portal Value | API value @@ -482,6 +484,7 @@ public Builder dotnetCoreVersion(String dotnetCoreVersion) { * .NET 6 (LTS) | v6.0 * .NET 7 (STS) | v7.0 * .NET 8 (LTS) | v8.0 + * .NET 9 (STS) | v9.0 * * @return builder * @@ -492,7 +495,7 @@ public Builder dotnetVersion(@Nullable Output dotnetVersion) { } /** - * @param dotnetVersion The version of .NET to use when `current_stack` is set to `dotnet`. Possible values include `v2.0`,`v3.0`, `v4.0`, `v5.0`, `v6.0`, `v7.0` and `v8.0`. + * @param dotnetVersion The version of .NET to use when `current_stack` is set to `dotnet`. Possible values include `v2.0`,`v3.0`, `v4.0`, `v5.0`, `v6.0`, `v7.0`, `v8.0` and `v9.0`. * * > **NOTE:** The Portal displayed values and the actual underlying API values differ for this setting, as follows: * Portal Value | API value @@ -502,6 +505,7 @@ public Builder dotnetVersion(@Nullable Output dotnetVersion) { * .NET 6 (LTS) | v6.0 * .NET 7 (STS) | v7.0 * .NET 8 (LTS) | v8.0 + * .NET 9 (STS) | v9.0 * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/azure/appservice/inputs/WindowsWebAppSlotSiteConfigApplicationStackArgs.java b/sdk/java/src/main/java/com/pulumi/azure/appservice/inputs/WindowsWebAppSlotSiteConfigApplicationStackArgs.java index ba423ee4aa..6a162646ef 100644 --- a/sdk/java/src/main/java/com/pulumi/azure/appservice/inputs/WindowsWebAppSlotSiteConfigApplicationStackArgs.java +++ b/sdk/java/src/main/java/com/pulumi/azure/appservice/inputs/WindowsWebAppSlotSiteConfigApplicationStackArgs.java @@ -115,14 +115,14 @@ public Optional> dotnetCoreVersion() { } /** - * The version of .NET to use when `current_stack` is set to `dotnet`. Possible values include `v2.0`,`v3.0`, `v4.0`, `v5.0`, `v6.0`, `v7.0` and `v8.0`. + * The version of .NET to use when `current_stack` is set to `dotnet`. Possible values include `v2.0`,`v3.0`, `v4.0`, `v5.0`, `v6.0`, `v7.0`, `v8.0` and `v9.0`. * */ @Import(name="dotnetVersion") private @Nullable Output dotnetVersion; /** - * @return The version of .NET to use when `current_stack` is set to `dotnet`. Possible values include `v2.0`,`v3.0`, `v4.0`, `v5.0`, `v6.0`, `v7.0` and `v8.0`. + * @return The version of .NET to use when `current_stack` is set to `dotnet`. Possible values include `v2.0`,`v3.0`, `v4.0`, `v5.0`, `v6.0`, `v7.0`, `v8.0` and `v9.0`. * */ public Optional> dotnetVersion() { @@ -446,7 +446,7 @@ public Builder dotnetCoreVersion(String dotnetCoreVersion) { } /** - * @param dotnetVersion The version of .NET to use when `current_stack` is set to `dotnet`. Possible values include `v2.0`,`v3.0`, `v4.0`, `v5.0`, `v6.0`, `v7.0` and `v8.0`. + * @param dotnetVersion The version of .NET to use when `current_stack` is set to `dotnet`. Possible values include `v2.0`,`v3.0`, `v4.0`, `v5.0`, `v6.0`, `v7.0`, `v8.0` and `v9.0`. * * @return builder * @@ -457,7 +457,7 @@ public Builder dotnetVersion(@Nullable Output dotnetVersion) { } /** - * @param dotnetVersion The version of .NET to use when `current_stack` is set to `dotnet`. Possible values include `v2.0`,`v3.0`, `v4.0`, `v5.0`, `v6.0`, `v7.0` and `v8.0`. + * @param dotnetVersion The version of .NET to use when `current_stack` is set to `dotnet`. Possible values include `v2.0`,`v3.0`, `v4.0`, `v5.0`, `v6.0`, `v7.0`, `v8.0` and `v9.0`. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/azure/appservice/outputs/LinuxFunctionAppSiteConfigApplicationStack.java b/sdk/java/src/main/java/com/pulumi/azure/appservice/outputs/LinuxFunctionAppSiteConfigApplicationStack.java index 3355e3217f..6dc44d1599 100644 --- a/sdk/java/src/main/java/com/pulumi/azure/appservice/outputs/LinuxFunctionAppSiteConfigApplicationStack.java +++ b/sdk/java/src/main/java/com/pulumi/azure/appservice/outputs/LinuxFunctionAppSiteConfigApplicationStack.java @@ -20,7 +20,7 @@ public final class LinuxFunctionAppSiteConfigApplicationStack { */ private @Nullable List dockers; /** - * @return The version of .NET to use. Possible values include `3.1`, `6.0`, `7.0` and `8.0`. + * @return The version of .NET to use. Possible values include `3.1`, `6.0`, `7.0`, `8.0` and `9.0`. * */ private @Nullable String dotnetVersion; @@ -64,7 +64,7 @@ public List dockers() { return this.dockers == null ? List.of() : this.dockers; } /** - * @return The version of .NET to use. Possible values include `3.1`, `6.0`, `7.0` and `8.0`. + * @return The version of .NET to use. Possible values include `3.1`, `6.0`, `7.0`, `8.0` and `9.0`. * */ public Optional dotnetVersion() { diff --git a/sdk/java/src/main/java/com/pulumi/azure/appservice/outputs/LinuxFunctionAppSlotSiteConfigApplicationStack.java b/sdk/java/src/main/java/com/pulumi/azure/appservice/outputs/LinuxFunctionAppSlotSiteConfigApplicationStack.java index 949d66b099..89aee7f26f 100644 --- a/sdk/java/src/main/java/com/pulumi/azure/appservice/outputs/LinuxFunctionAppSlotSiteConfigApplicationStack.java +++ b/sdk/java/src/main/java/com/pulumi/azure/appservice/outputs/LinuxFunctionAppSlotSiteConfigApplicationStack.java @@ -20,7 +20,7 @@ public final class LinuxFunctionAppSlotSiteConfigApplicationStack { */ private @Nullable List dockers; /** - * @return The version of .Net. Possible values are `3.1`, `6.0`, `7.0` and `8.0`. + * @return The version of .Net. Possible values are `3.1`, `6.0`, `7.0`, `8.0` and `9.0`. * */ private @Nullable String dotnetVersion; @@ -64,7 +64,7 @@ public List dockers() { return this.dockers == null ? List.of() : this.dockers; } /** - * @return The version of .Net. Possible values are `3.1`, `6.0`, `7.0` and `8.0`. + * @return The version of .Net. Possible values are `3.1`, `6.0`, `7.0`, `8.0` and `9.0`. * */ public Optional dotnetVersion() { diff --git a/sdk/java/src/main/java/com/pulumi/azure/appservice/outputs/LinuxWebAppSiteConfigApplicationStack.java b/sdk/java/src/main/java/com/pulumi/azure/appservice/outputs/LinuxWebAppSiteConfigApplicationStack.java index 36b784de02..a386d86c0c 100644 --- a/sdk/java/src/main/java/com/pulumi/azure/appservice/outputs/LinuxWebAppSiteConfigApplicationStack.java +++ b/sdk/java/src/main/java/com/pulumi/azure/appservice/outputs/LinuxWebAppSiteConfigApplicationStack.java @@ -34,7 +34,7 @@ public final class LinuxWebAppSiteConfigApplicationStack { */ private @Nullable String dockerRegistryUsername; /** - * @return The version of .NET to use. Possible values include `3.1`, `5.0`, `6.0`, `7.0` and `8.0`. + * @return The version of .NET to use. Possible values include `3.1`, `5.0`, `6.0`, `7.0`, `8.0` and `9.0`. * */ private @Nullable String dotnetVersion; @@ -121,7 +121,7 @@ public Optional dockerRegistryUsername() { return Optional.ofNullable(this.dockerRegistryUsername); } /** - * @return The version of .NET to use. Possible values include `3.1`, `5.0`, `6.0`, `7.0` and `8.0`. + * @return The version of .NET to use. Possible values include `3.1`, `5.0`, `6.0`, `7.0`, `8.0` and `9.0`. * */ public Optional dotnetVersion() { diff --git a/sdk/java/src/main/java/com/pulumi/azure/appservice/outputs/LinuxWebAppSlotSiteConfigApplicationStack.java b/sdk/java/src/main/java/com/pulumi/azure/appservice/outputs/LinuxWebAppSlotSiteConfigApplicationStack.java index d7e296eb39..0509683128 100644 --- a/sdk/java/src/main/java/com/pulumi/azure/appservice/outputs/LinuxWebAppSlotSiteConfigApplicationStack.java +++ b/sdk/java/src/main/java/com/pulumi/azure/appservice/outputs/LinuxWebAppSlotSiteConfigApplicationStack.java @@ -34,7 +34,7 @@ public final class LinuxWebAppSlotSiteConfigApplicationStack { */ private @Nullable String dockerRegistryUsername; /** - * @return The version of .NET to use. Possible values include `3.1`, `5.0`, `6.0`, `7.0` and `8.0`. + * @return The version of .NET to use. Possible values include `3.1`, `5.0`, `6.0`, `7.0`, `8.0` and `9.0`. * */ private @Nullable String dotnetVersion; @@ -119,7 +119,7 @@ public Optional dockerRegistryUsername() { return Optional.ofNullable(this.dockerRegistryUsername); } /** - * @return The version of .NET to use. Possible values include `3.1`, `5.0`, `6.0`, `7.0` and `8.0`. + * @return The version of .NET to use. Possible values include `3.1`, `5.0`, `6.0`, `7.0`, `8.0` and `9.0`. * */ public Optional dotnetVersion() { diff --git a/sdk/java/src/main/java/com/pulumi/azure/appservice/outputs/WindowsFunctionAppSiteConfigApplicationStack.java b/sdk/java/src/main/java/com/pulumi/azure/appservice/outputs/WindowsFunctionAppSiteConfigApplicationStack.java index ba2bb6000b..9aaa2511d1 100644 --- a/sdk/java/src/main/java/com/pulumi/azure/appservice/outputs/WindowsFunctionAppSiteConfigApplicationStack.java +++ b/sdk/java/src/main/java/com/pulumi/azure/appservice/outputs/WindowsFunctionAppSiteConfigApplicationStack.java @@ -13,7 +13,7 @@ @CustomType public final class WindowsFunctionAppSiteConfigApplicationStack { /** - * @return The version of .NET to use. Possible values include `v3.0`, `v4.0` `v6.0`, `v7.0` and `v8.0`. Defaults to `v4.0`. + * @return The version of .NET to use. Possible values include `v3.0`, `v4.0` `v6.0`, `v7.0`, `v8.0` and `v9.0`. Defaults to `v4.0`. * */ private @Nullable String dotnetVersion; @@ -47,7 +47,7 @@ public final class WindowsFunctionAppSiteConfigApplicationStack { private WindowsFunctionAppSiteConfigApplicationStack() {} /** - * @return The version of .NET to use. Possible values include `v3.0`, `v4.0` `v6.0`, `v7.0` and `v8.0`. Defaults to `v4.0`. + * @return The version of .NET to use. Possible values include `v3.0`, `v4.0` `v6.0`, `v7.0`, `v8.0` and `v9.0`. Defaults to `v4.0`. * */ public Optional dotnetVersion() { diff --git a/sdk/java/src/main/java/com/pulumi/azure/appservice/outputs/WindowsFunctionAppSlotSiteConfigApplicationStack.java b/sdk/java/src/main/java/com/pulumi/azure/appservice/outputs/WindowsFunctionAppSlotSiteConfigApplicationStack.java index 91be309f21..0207f6e9d0 100644 --- a/sdk/java/src/main/java/com/pulumi/azure/appservice/outputs/WindowsFunctionAppSlotSiteConfigApplicationStack.java +++ b/sdk/java/src/main/java/com/pulumi/azure/appservice/outputs/WindowsFunctionAppSlotSiteConfigApplicationStack.java @@ -13,7 +13,7 @@ @CustomType public final class WindowsFunctionAppSlotSiteConfigApplicationStack { /** - * @return The version of .Net. Possible values are `v3.0`, `v4.0`, `v6.0`, `v7.0` and `v8.0`. Defaults to `v4.0`. + * @return The version of .Net. Possible values are `v3.0`, `v4.0`, `v6.0`, `v7.0`, `v8.0` and `v9.0`. Defaults to `v4.0`. * */ private @Nullable String dotnetVersion; @@ -45,7 +45,7 @@ public final class WindowsFunctionAppSlotSiteConfigApplicationStack { private WindowsFunctionAppSlotSiteConfigApplicationStack() {} /** - * @return The version of .Net. Possible values are `v3.0`, `v4.0`, `v6.0`, `v7.0` and `v8.0`. Defaults to `v4.0`. + * @return The version of .Net. Possible values are `v3.0`, `v4.0`, `v6.0`, `v7.0`, `v8.0` and `v9.0`. Defaults to `v4.0`. * */ public Optional dotnetVersion() { diff --git a/sdk/java/src/main/java/com/pulumi/azure/appservice/outputs/WindowsWebAppSiteConfigApplicationStack.java b/sdk/java/src/main/java/com/pulumi/azure/appservice/outputs/WindowsWebAppSiteConfigApplicationStack.java index 7267eea4cb..18d5b2cdb8 100644 --- a/sdk/java/src/main/java/com/pulumi/azure/appservice/outputs/WindowsWebAppSiteConfigApplicationStack.java +++ b/sdk/java/src/main/java/com/pulumi/azure/appservice/outputs/WindowsWebAppSiteConfigApplicationStack.java @@ -49,7 +49,7 @@ public final class WindowsWebAppSiteConfigApplicationStack { */ private @Nullable String dotnetCoreVersion; /** - * @return The version of .NET to use when `current_stack` is set to `dotnet`. Possible values include `v2.0`,`v3.0`, `v4.0`, `v5.0`, `v6.0`, `v7.0` and `v8.0`. + * @return The version of .NET to use when `current_stack` is set to `dotnet`. Possible values include `v2.0`,`v3.0`, `v4.0`, `v5.0`, `v6.0`, `v7.0`, `v8.0` and `v9.0`. * * > **NOTE:** The Portal displayed values and the actual underlying API values differ for this setting, as follows: * Portal Value | API value @@ -59,6 +59,7 @@ public final class WindowsWebAppSiteConfigApplicationStack { * .NET 6 (LTS) | v6.0 * .NET 7 (STS) | v7.0 * .NET 8 (LTS) | v8.0 + * .NET 9 (STS) | v9.0 * */ private @Nullable String dotnetVersion; @@ -165,7 +166,7 @@ public Optional dotnetCoreVersion() { return Optional.ofNullable(this.dotnetCoreVersion); } /** - * @return The version of .NET to use when `current_stack` is set to `dotnet`. Possible values include `v2.0`,`v3.0`, `v4.0`, `v5.0`, `v6.0`, `v7.0` and `v8.0`. + * @return The version of .NET to use when `current_stack` is set to `dotnet`. Possible values include `v2.0`,`v3.0`, `v4.0`, `v5.0`, `v6.0`, `v7.0`, `v8.0` and `v9.0`. * * > **NOTE:** The Portal displayed values and the actual underlying API values differ for this setting, as follows: * Portal Value | API value @@ -175,6 +176,7 @@ public Optional dotnetCoreVersion() { * .NET 6 (LTS) | v6.0 * .NET 7 (STS) | v7.0 * .NET 8 (LTS) | v8.0 + * .NET 9 (STS) | v9.0 * */ public Optional dotnetVersion() { diff --git a/sdk/java/src/main/java/com/pulumi/azure/appservice/outputs/WindowsWebAppSlotSiteConfigApplicationStack.java b/sdk/java/src/main/java/com/pulumi/azure/appservice/outputs/WindowsWebAppSlotSiteConfigApplicationStack.java index e6cc550e7d..4abc42ac08 100644 --- a/sdk/java/src/main/java/com/pulumi/azure/appservice/outputs/WindowsWebAppSlotSiteConfigApplicationStack.java +++ b/sdk/java/src/main/java/com/pulumi/azure/appservice/outputs/WindowsWebAppSlotSiteConfigApplicationStack.java @@ -47,7 +47,7 @@ public final class WindowsWebAppSlotSiteConfigApplicationStack { */ private @Nullable String dotnetCoreVersion; /** - * @return The version of .NET to use when `current_stack` is set to `dotnet`. Possible values include `v2.0`,`v3.0`, `v4.0`, `v5.0`, `v6.0`, `v7.0` and `v8.0`. + * @return The version of .NET to use when `current_stack` is set to `dotnet`. Possible values include `v2.0`,`v3.0`, `v4.0`, `v5.0`, `v6.0`, `v7.0`, `v8.0` and `v9.0`. * */ private @Nullable String dotnetVersion; @@ -152,7 +152,7 @@ public Optional dotnetCoreVersion() { return Optional.ofNullable(this.dotnetCoreVersion); } /** - * @return The version of .NET to use when `current_stack` is set to `dotnet`. Possible values include `v2.0`,`v3.0`, `v4.0`, `v5.0`, `v6.0`, `v7.0` and `v8.0`. + * @return The version of .NET to use when `current_stack` is set to `dotnet`. Possible values include `v2.0`,`v3.0`, `v4.0`, `v5.0`, `v6.0`, `v7.0`, `v8.0` and `v9.0`. * */ public Optional dotnetVersion() { diff --git a/sdk/java/src/main/java/com/pulumi/azure/automation/JobSchedule.java b/sdk/java/src/main/java/com/pulumi/azure/automation/JobSchedule.java index 681f19f10f..c0d2a4b8f1 100644 --- a/sdk/java/src/main/java/com/pulumi/azure/automation/JobSchedule.java +++ b/sdk/java/src/main/java/com/pulumi/azure/automation/JobSchedule.java @@ -18,7 +18,7 @@ /** * Links an Automation Runbook and Schedule. * - * > **NOTE** AzureRM provides this stand-alone azure.automation.JobSchedule and an inlined `job_schdule` property in azurerm_runbook to manage the job schedules. You can only make use of one of these methods to manage a job schedule. + * > **NOTE** AzureRM provides this stand-alone azure.automation.JobSchedule and an inlined `job_schedule` property in azurerm_runbook to manage the job schedules. You can only make use of one of these methods to manage a job schedule. * * ## Example Usage * diff --git a/sdk/java/src/main/java/com/pulumi/azure/automation/RunBook.java b/sdk/java/src/main/java/com/pulumi/azure/automation/RunBook.java index e695ba72de..5b6d0a3920 100644 --- a/sdk/java/src/main/java/com/pulumi/azure/automation/RunBook.java +++ b/sdk/java/src/main/java/com/pulumi/azure/automation/RunBook.java @@ -160,7 +160,7 @@ public Output> draft() { /** * One or more `job_schedule` block as defined below. * - * > **NOTE** AzureRM provides a stand-alone azure.automation.JobSchedule and this inlined `job_schdule` property to manage the job schedules. At this time you should choose one of them to manage the job schedule resources. + * > **NOTE** AzureRM provides a stand-alone azure.automation.JobSchedule and this inlined `job_schedule` property to manage the job schedules. At this time you should choose one of them to manage the job schedule resources. * */ @Export(name="jobSchedules", refs={List.class,RunBookJobSchedule.class}, tree="[0,1]") @@ -169,7 +169,7 @@ public Output> draft() { /** * @return One or more `job_schedule` block as defined below. * - * > **NOTE** AzureRM provides a stand-alone azure.automation.JobSchedule and this inlined `job_schdule` property to manage the job schedules. At this time you should choose one of them to manage the job schedule resources. + * > **NOTE** AzureRM provides a stand-alone azure.automation.JobSchedule and this inlined `job_schedule` property to manage the job schedules. At this time you should choose one of them to manage the job schedule resources. * */ public Output> jobSchedules() { diff --git a/sdk/java/src/main/java/com/pulumi/azure/automation/RunBookArgs.java b/sdk/java/src/main/java/com/pulumi/azure/automation/RunBookArgs.java index 9c94d02ee7..aae4142a99 100644 --- a/sdk/java/src/main/java/com/pulumi/azure/automation/RunBookArgs.java +++ b/sdk/java/src/main/java/com/pulumi/azure/automation/RunBookArgs.java @@ -90,7 +90,7 @@ public Optional> draft() { /** * One or more `job_schedule` block as defined below. * - * > **NOTE** AzureRM provides a stand-alone azure.automation.JobSchedule and this inlined `job_schdule` property to manage the job schedules. At this time you should choose one of them to manage the job schedule resources. + * > **NOTE** AzureRM provides a stand-alone azure.automation.JobSchedule and this inlined `job_schedule` property to manage the job schedules. At this time you should choose one of them to manage the job schedule resources. * */ @Import(name="jobSchedules") @@ -99,7 +99,7 @@ public Optional> draft() { /** * @return One or more `job_schedule` block as defined below. * - * > **NOTE** AzureRM provides a stand-alone azure.automation.JobSchedule and this inlined `job_schdule` property to manage the job schedules. At this time you should choose one of them to manage the job schedule resources. + * > **NOTE** AzureRM provides a stand-alone azure.automation.JobSchedule and this inlined `job_schedule` property to manage the job schedules. At this time you should choose one of them to manage the job schedule resources. * */ public Optional>> jobSchedules() { @@ -369,7 +369,7 @@ public Builder draft(RunBookDraftArgs draft) { /** * @param jobSchedules One or more `job_schedule` block as defined below. * - * > **NOTE** AzureRM provides a stand-alone azure.automation.JobSchedule and this inlined `job_schdule` property to manage the job schedules. At this time you should choose one of them to manage the job schedule resources. + * > **NOTE** AzureRM provides a stand-alone azure.automation.JobSchedule and this inlined `job_schedule` property to manage the job schedules. At this time you should choose one of them to manage the job schedule resources. * * @return builder * @@ -382,7 +382,7 @@ public Builder jobSchedules(@Nullable Output> jobSc /** * @param jobSchedules One or more `job_schedule` block as defined below. * - * > **NOTE** AzureRM provides a stand-alone azure.automation.JobSchedule and this inlined `job_schdule` property to manage the job schedules. At this time you should choose one of them to manage the job schedule resources. + * > **NOTE** AzureRM provides a stand-alone azure.automation.JobSchedule and this inlined `job_schedule` property to manage the job schedules. At this time you should choose one of them to manage the job schedule resources. * * @return builder * @@ -394,7 +394,7 @@ public Builder jobSchedules(List jobSchedules) { /** * @param jobSchedules One or more `job_schedule` block as defined below. * - * > **NOTE** AzureRM provides a stand-alone azure.automation.JobSchedule and this inlined `job_schdule` property to manage the job schedules. At this time you should choose one of them to manage the job schedule resources. + * > **NOTE** AzureRM provides a stand-alone azure.automation.JobSchedule and this inlined `job_schedule` property to manage the job schedules. At this time you should choose one of them to manage the job schedule resources. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/azure/automation/inputs/RunBookState.java b/sdk/java/src/main/java/com/pulumi/azure/automation/inputs/RunBookState.java index 887e253df2..452a6a5c79 100644 --- a/sdk/java/src/main/java/com/pulumi/azure/automation/inputs/RunBookState.java +++ b/sdk/java/src/main/java/com/pulumi/azure/automation/inputs/RunBookState.java @@ -89,7 +89,7 @@ public Optional> draft() { /** * One or more `job_schedule` block as defined below. * - * > **NOTE** AzureRM provides a stand-alone azure.automation.JobSchedule and this inlined `job_schdule` property to manage the job schedules. At this time you should choose one of them to manage the job schedule resources. + * > **NOTE** AzureRM provides a stand-alone azure.automation.JobSchedule and this inlined `job_schedule` property to manage the job schedules. At this time you should choose one of them to manage the job schedule resources. * */ @Import(name="jobSchedules") @@ -98,7 +98,7 @@ public Optional> draft() { /** * @return One or more `job_schedule` block as defined below. * - * > **NOTE** AzureRM provides a stand-alone azure.automation.JobSchedule and this inlined `job_schdule` property to manage the job schedules. At this time you should choose one of them to manage the job schedule resources. + * > **NOTE** AzureRM provides a stand-alone azure.automation.JobSchedule and this inlined `job_schedule` property to manage the job schedules. At this time you should choose one of them to manage the job schedule resources. * */ public Optional>> jobSchedules() { @@ -368,7 +368,7 @@ public Builder draft(RunBookDraftArgs draft) { /** * @param jobSchedules One or more `job_schedule` block as defined below. * - * > **NOTE** AzureRM provides a stand-alone azure.automation.JobSchedule and this inlined `job_schdule` property to manage the job schedules. At this time you should choose one of them to manage the job schedule resources. + * > **NOTE** AzureRM provides a stand-alone azure.automation.JobSchedule and this inlined `job_schedule` property to manage the job schedules. At this time you should choose one of them to manage the job schedule resources. * * @return builder * @@ -381,7 +381,7 @@ public Builder jobSchedules(@Nullable Output> jobSc /** * @param jobSchedules One or more `job_schedule` block as defined below. * - * > **NOTE** AzureRM provides a stand-alone azure.automation.JobSchedule and this inlined `job_schdule` property to manage the job schedules. At this time you should choose one of them to manage the job schedule resources. + * > **NOTE** AzureRM provides a stand-alone azure.automation.JobSchedule and this inlined `job_schedule` property to manage the job schedules. At this time you should choose one of them to manage the job schedule resources. * * @return builder * @@ -393,7 +393,7 @@ public Builder jobSchedules(List jobSchedules) { /** * @param jobSchedules One or more `job_schedule` block as defined below. * - * > **NOTE** AzureRM provides a stand-alone azure.automation.JobSchedule and this inlined `job_schdule` property to manage the job schedules. At this time you should choose one of them to manage the job schedule resources. + * > **NOTE** AzureRM provides a stand-alone azure.automation.JobSchedule and this inlined `job_schedule` property to manage the job schedules. At this time you should choose one of them to manage the job schedule resources. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/azure/cognitive/outputs/GetAccountResult.java b/sdk/java/src/main/java/com/pulumi/azure/cognitive/outputs/GetAccountResult.java index eac31de30b..0e3ebf789b 100644 --- a/sdk/java/src/main/java/com/pulumi/azure/cognitive/outputs/GetAccountResult.java +++ b/sdk/java/src/main/java/com/pulumi/azure/cognitive/outputs/GetAccountResult.java @@ -6,6 +6,7 @@ import com.pulumi.azure.cognitive.outputs.GetAccountIdentity; import com.pulumi.core.annotations.CustomType; import com.pulumi.exceptions.MissingRequiredPropertyException; +import java.lang.Boolean; import java.lang.String; import java.util.List; import java.util.Map; @@ -34,6 +35,11 @@ public final class GetAccountResult { * */ private String kind; + /** + * @return Whether local authentication methods is enabled for the Cognitive Account. + * + */ + private Boolean localAuthEnabled; /** * @return The Azure location where the Cognitive Services Account exists * @@ -96,6 +102,13 @@ public List identities() { public String kind() { return this.kind; } + /** + * @return Whether local authentication methods is enabled for the Cognitive Account. + * + */ + public Boolean localAuthEnabled() { + return this.localAuthEnabled; + } /** * @return The Azure location where the Cognitive Services Account exists * @@ -158,6 +171,7 @@ public static final class Builder { private String id; private List identities; private String kind; + private Boolean localAuthEnabled; private String location; private String name; private String primaryAccessKey; @@ -173,6 +187,7 @@ public Builder(GetAccountResult defaults) { this.id = defaults.id; this.identities = defaults.identities; this.kind = defaults.kind; + this.localAuthEnabled = defaults.localAuthEnabled; this.location = defaults.location; this.name = defaults.name; this.primaryAccessKey = defaults.primaryAccessKey; @@ -219,6 +234,14 @@ public Builder kind(String kind) { return this; } @CustomType.Setter + public Builder localAuthEnabled(Boolean localAuthEnabled) { + if (localAuthEnabled == null) { + throw new MissingRequiredPropertyException("GetAccountResult", "localAuthEnabled"); + } + this.localAuthEnabled = localAuthEnabled; + return this; + } + @CustomType.Setter public Builder location(String location) { if (location == null) { throw new MissingRequiredPropertyException("GetAccountResult", "location"); @@ -286,6 +309,7 @@ public GetAccountResult build() { _resultValue.id = id; _resultValue.identities = identities; _resultValue.kind = kind; + _resultValue.localAuthEnabled = localAuthEnabled; _resultValue.location = location; _resultValue.name = name; _resultValue.primaryAccessKey = primaryAccessKey; diff --git a/sdk/java/src/main/java/com/pulumi/azure/communication/EmailService.java b/sdk/java/src/main/java/com/pulumi/azure/communication/EmailService.java index d86306e401..7a9d5a3055 100644 --- a/sdk/java/src/main/java/com/pulumi/azure/communication/EmailService.java +++ b/sdk/java/src/main/java/com/pulumi/azure/communication/EmailService.java @@ -74,14 +74,14 @@ @ResourceType(type="azure:communication/emailService:EmailService") public class EmailService extends com.pulumi.resources.CustomResource { /** - * The location where the Email Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` and `United States`. Changing this forces a new Email Communication Service to be created. + * The location where the Email Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` `usgov` and `United States`. Changing this forces a new Email Communication Service to be created. * */ @Export(name="dataLocation", refs={String.class}, tree="[0]") private Output dataLocation; /** - * @return The location where the Email Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` and `United States`. Changing this forces a new Email Communication Service to be created. + * @return The location where the Email Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` `usgov` and `United States`. Changing this forces a new Email Communication Service to be created. * */ public Output dataLocation() { diff --git a/sdk/java/src/main/java/com/pulumi/azure/communication/EmailServiceArgs.java b/sdk/java/src/main/java/com/pulumi/azure/communication/EmailServiceArgs.java index fb525d2fef..37399bab09 100644 --- a/sdk/java/src/main/java/com/pulumi/azure/communication/EmailServiceArgs.java +++ b/sdk/java/src/main/java/com/pulumi/azure/communication/EmailServiceArgs.java @@ -18,14 +18,14 @@ public final class EmailServiceArgs extends com.pulumi.resources.ResourceArgs { public static final EmailServiceArgs Empty = new EmailServiceArgs(); /** - * The location where the Email Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` and `United States`. Changing this forces a new Email Communication Service to be created. + * The location where the Email Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` `usgov` and `United States`. Changing this forces a new Email Communication Service to be created. * */ @Import(name="dataLocation", required=true) private Output dataLocation; /** - * @return The location where the Email Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` and `United States`. Changing this forces a new Email Communication Service to be created. + * @return The location where the Email Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` `usgov` and `United States`. Changing this forces a new Email Communication Service to be created. * */ public Output dataLocation() { @@ -105,7 +105,7 @@ public Builder(EmailServiceArgs defaults) { } /** - * @param dataLocation The location where the Email Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` and `United States`. Changing this forces a new Email Communication Service to be created. + * @param dataLocation The location where the Email Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` `usgov` and `United States`. Changing this forces a new Email Communication Service to be created. * * @return builder * @@ -116,7 +116,7 @@ public Builder dataLocation(Output dataLocation) { } /** - * @param dataLocation The location where the Email Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` and `United States`. Changing this forces a new Email Communication Service to be created. + * @param dataLocation The location where the Email Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` `usgov` and `United States`. Changing this forces a new Email Communication Service to be created. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/azure/communication/Service.java b/sdk/java/src/main/java/com/pulumi/azure/communication/Service.java index 4be5ba39b4..8a78e077fa 100644 --- a/sdk/java/src/main/java/com/pulumi/azure/communication/Service.java +++ b/sdk/java/src/main/java/com/pulumi/azure/communication/Service.java @@ -75,14 +75,14 @@ @ResourceType(type="azure:communication/service:Service") public class Service extends com.pulumi.resources.CustomResource { /** - * The location where the Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` and `United States`. Defaults to `United States`. Changing this forces a new Communication Service to be created. + * The location where the Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK`, `usgov` and `United States`. Defaults to `United States`. Changing this forces a new Communication Service to be created. * */ @Export(name="dataLocation", refs={String.class}, tree="[0]") private Output dataLocation; /** - * @return The location where the Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` and `United States`. Defaults to `United States`. Changing this forces a new Communication Service to be created. + * @return The location where the Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK`, `usgov` and `United States`. Defaults to `United States`. Changing this forces a new Communication Service to be created. * */ public Output> dataLocation() { diff --git a/sdk/java/src/main/java/com/pulumi/azure/communication/ServiceArgs.java b/sdk/java/src/main/java/com/pulumi/azure/communication/ServiceArgs.java index 92234e8a07..3f73492c7d 100644 --- a/sdk/java/src/main/java/com/pulumi/azure/communication/ServiceArgs.java +++ b/sdk/java/src/main/java/com/pulumi/azure/communication/ServiceArgs.java @@ -18,14 +18,14 @@ public final class ServiceArgs extends com.pulumi.resources.ResourceArgs { public static final ServiceArgs Empty = new ServiceArgs(); /** - * The location where the Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` and `United States`. Defaults to `United States`. Changing this forces a new Communication Service to be created. + * The location where the Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK`, `usgov` and `United States`. Defaults to `United States`. Changing this forces a new Communication Service to be created. * */ @Import(name="dataLocation") private @Nullable Output dataLocation; /** - * @return The location where the Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` and `United States`. Defaults to `United States`. Changing this forces a new Communication Service to be created. + * @return The location where the Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK`, `usgov` and `United States`. Defaults to `United States`. Changing this forces a new Communication Service to be created. * */ public Optional> dataLocation() { @@ -105,7 +105,7 @@ public Builder(ServiceArgs defaults) { } /** - * @param dataLocation The location where the Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` and `United States`. Defaults to `United States`. Changing this forces a new Communication Service to be created. + * @param dataLocation The location where the Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK`, `usgov` and `United States`. Defaults to `United States`. Changing this forces a new Communication Service to be created. * * @return builder * @@ -116,7 +116,7 @@ public Builder dataLocation(@Nullable Output dataLocation) { } /** - * @param dataLocation The location where the Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` and `United States`. Defaults to `United States`. Changing this forces a new Communication Service to be created. + * @param dataLocation The location where the Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK`, `usgov` and `United States`. Defaults to `United States`. Changing this forces a new Communication Service to be created. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/azure/communication/inputs/EmailServiceState.java b/sdk/java/src/main/java/com/pulumi/azure/communication/inputs/EmailServiceState.java index f0e4a2c5eb..246e423680 100644 --- a/sdk/java/src/main/java/com/pulumi/azure/communication/inputs/EmailServiceState.java +++ b/sdk/java/src/main/java/com/pulumi/azure/communication/inputs/EmailServiceState.java @@ -17,14 +17,14 @@ public final class EmailServiceState extends com.pulumi.resources.ResourceArgs { public static final EmailServiceState Empty = new EmailServiceState(); /** - * The location where the Email Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` and `United States`. Changing this forces a new Email Communication Service to be created. + * The location where the Email Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` `usgov` and `United States`. Changing this forces a new Email Communication Service to be created. * */ @Import(name="dataLocation") private @Nullable Output dataLocation; /** - * @return The location where the Email Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` and `United States`. Changing this forces a new Email Communication Service to be created. + * @return The location where the Email Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` `usgov` and `United States`. Changing this forces a new Email Communication Service to be created. * */ public Optional> dataLocation() { @@ -104,7 +104,7 @@ public Builder(EmailServiceState defaults) { } /** - * @param dataLocation The location where the Email Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` and `United States`. Changing this forces a new Email Communication Service to be created. + * @param dataLocation The location where the Email Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` `usgov` and `United States`. Changing this forces a new Email Communication Service to be created. * * @return builder * @@ -115,7 +115,7 @@ public Builder dataLocation(@Nullable Output dataLocation) { } /** - * @param dataLocation The location where the Email Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` and `United States`. Changing this forces a new Email Communication Service to be created. + * @param dataLocation The location where the Email Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` `usgov` and `United States`. Changing this forces a new Email Communication Service to be created. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/azure/communication/inputs/ServiceState.java b/sdk/java/src/main/java/com/pulumi/azure/communication/inputs/ServiceState.java index 1ad29c09b3..0979e75b3b 100644 --- a/sdk/java/src/main/java/com/pulumi/azure/communication/inputs/ServiceState.java +++ b/sdk/java/src/main/java/com/pulumi/azure/communication/inputs/ServiceState.java @@ -17,14 +17,14 @@ public final class ServiceState extends com.pulumi.resources.ResourceArgs { public static final ServiceState Empty = new ServiceState(); /** - * The location where the Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` and `United States`. Defaults to `United States`. Changing this forces a new Communication Service to be created. + * The location where the Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK`, `usgov` and `United States`. Defaults to `United States`. Changing this forces a new Communication Service to be created. * */ @Import(name="dataLocation") private @Nullable Output dataLocation; /** - * @return The location where the Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` and `United States`. Defaults to `United States`. Changing this forces a new Communication Service to be created. + * @return The location where the Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK`, `usgov` and `United States`. Defaults to `United States`. Changing this forces a new Communication Service to be created. * */ public Optional> dataLocation() { @@ -168,7 +168,7 @@ public Builder(ServiceState defaults) { } /** - * @param dataLocation The location where the Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` and `United States`. Defaults to `United States`. Changing this forces a new Communication Service to be created. + * @param dataLocation The location where the Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK`, `usgov` and `United States`. Defaults to `United States`. Changing this forces a new Communication Service to be created. * * @return builder * @@ -179,7 +179,7 @@ public Builder dataLocation(@Nullable Output dataLocation) { } /** - * @param dataLocation The location where the Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` and `United States`. Defaults to `United States`. Changing this forces a new Communication Service to be created. + * @param dataLocation The location where the Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK`, `usgov` and `United States`. Defaults to `United States`. Changing this forces a new Communication Service to be created. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/azure/compute/BastionHost.java b/sdk/java/src/main/java/com/pulumi/azure/compute/BastionHost.java index 5a393f6222..181838adcd 100644 --- a/sdk/java/src/main/java/com/pulumi/azure/compute/BastionHost.java +++ b/sdk/java/src/main/java/com/pulumi/azure/compute/BastionHost.java @@ -14,6 +14,7 @@ import java.lang.Boolean; import java.lang.Integer; import java.lang.String; +import java.util.List; import java.util.Map; import java.util.Optional; import javax.annotation.Nullable; @@ -368,6 +369,20 @@ public Output> tunnelingEnabled() { public Output> virtualNetworkId() { return Codegen.optional(this.virtualNetworkId); } + /** + * Specifies a list of Availability Zones in which this Public Bastion Host should be located. Changing this forces a new resource to be created. + * + */ + @Export(name="zones", refs={List.class,String.class}, tree="[0,1]") + private Output> zones; + + /** + * @return Specifies a list of Availability Zones in which this Public Bastion Host should be located. Changing this forces a new resource to be created. + * + */ + public Output>> zones() { + return Codegen.optional(this.zones); + } /** * diff --git a/sdk/java/src/main/java/com/pulumi/azure/compute/BastionHostArgs.java b/sdk/java/src/main/java/com/pulumi/azure/compute/BastionHostArgs.java index 307aaa1bac..42015ba488 100644 --- a/sdk/java/src/main/java/com/pulumi/azure/compute/BastionHostArgs.java +++ b/sdk/java/src/main/java/com/pulumi/azure/compute/BastionHostArgs.java @@ -10,6 +10,7 @@ import java.lang.Boolean; import java.lang.Integer; import java.lang.String; +import java.util.List; import java.util.Map; import java.util.Objects; import java.util.Optional; @@ -277,6 +278,21 @@ public Optional> virtualNetworkId() { return Optional.ofNullable(this.virtualNetworkId); } + /** + * Specifies a list of Availability Zones in which this Public Bastion Host should be located. Changing this forces a new resource to be created. + * + */ + @Import(name="zones") + private @Nullable Output> zones; + + /** + * @return Specifies a list of Availability Zones in which this Public Bastion Host should be located. Changing this forces a new resource to be created. + * + */ + public Optional>> zones() { + return Optional.ofNullable(this.zones); + } + private BastionHostArgs() {} private BastionHostArgs(BastionHostArgs $) { @@ -295,6 +311,7 @@ private BastionHostArgs(BastionHostArgs $) { this.tags = $.tags; this.tunnelingEnabled = $.tunnelingEnabled; this.virtualNetworkId = $.virtualNetworkId; + this.zones = $.zones; } public static Builder builder() { @@ -662,6 +679,37 @@ public Builder virtualNetworkId(String virtualNetworkId) { return virtualNetworkId(Output.of(virtualNetworkId)); } + /** + * @param zones Specifies a list of Availability Zones in which this Public Bastion Host should be located. Changing this forces a new resource to be created. + * + * @return builder + * + */ + public Builder zones(@Nullable Output> zones) { + $.zones = zones; + return this; + } + + /** + * @param zones Specifies a list of Availability Zones in which this Public Bastion Host should be located. Changing this forces a new resource to be created. + * + * @return builder + * + */ + public Builder zones(List zones) { + return zones(Output.of(zones)); + } + + /** + * @param zones Specifies a list of Availability Zones in which this Public Bastion Host should be located. Changing this forces a new resource to be created. + * + * @return builder + * + */ + public Builder zones(String... zones) { + return zones(List.of(zones)); + } + public BastionHostArgs build() { if ($.resourceGroupName == null) { throw new MissingRequiredPropertyException("BastionHostArgs", "resourceGroupName"); diff --git a/sdk/java/src/main/java/com/pulumi/azure/compute/inputs/BastionHostState.java b/sdk/java/src/main/java/com/pulumi/azure/compute/inputs/BastionHostState.java index 0f03d825bd..159b267553 100644 --- a/sdk/java/src/main/java/com/pulumi/azure/compute/inputs/BastionHostState.java +++ b/sdk/java/src/main/java/com/pulumi/azure/compute/inputs/BastionHostState.java @@ -9,6 +9,7 @@ import java.lang.Boolean; import java.lang.Integer; import java.lang.String; +import java.util.List; import java.util.Map; import java.util.Objects; import java.util.Optional; @@ -291,6 +292,21 @@ public Optional> virtualNetworkId() { return Optional.ofNullable(this.virtualNetworkId); } + /** + * Specifies a list of Availability Zones in which this Public Bastion Host should be located. Changing this forces a new resource to be created. + * + */ + @Import(name="zones") + private @Nullable Output> zones; + + /** + * @return Specifies a list of Availability Zones in which this Public Bastion Host should be located. Changing this forces a new resource to be created. + * + */ + public Optional>> zones() { + return Optional.ofNullable(this.zones); + } + private BastionHostState() {} private BastionHostState(BastionHostState $) { @@ -310,6 +326,7 @@ private BastionHostState(BastionHostState $) { this.tags = $.tags; this.tunnelingEnabled = $.tunnelingEnabled; this.virtualNetworkId = $.virtualNetworkId; + this.zones = $.zones; } public static Builder builder() { @@ -698,6 +715,37 @@ public Builder virtualNetworkId(String virtualNetworkId) { return virtualNetworkId(Output.of(virtualNetworkId)); } + /** + * @param zones Specifies a list of Availability Zones in which this Public Bastion Host should be located. Changing this forces a new resource to be created. + * + * @return builder + * + */ + public Builder zones(@Nullable Output> zones) { + $.zones = zones; + return this; + } + + /** + * @param zones Specifies a list of Availability Zones in which this Public Bastion Host should be located. Changing this forces a new resource to be created. + * + * @return builder + * + */ + public Builder zones(List zones) { + return zones(Output.of(zones)); + } + + /** + * @param zones Specifies a list of Availability Zones in which this Public Bastion Host should be located. Changing this forces a new resource to be created. + * + * @return builder + * + */ + public Builder zones(String... zones) { + return zones(List.of(zones)); + } + public BastionHostState build() { return $; } diff --git a/sdk/java/src/main/java/com/pulumi/azure/compute/outputs/GetBastionHostResult.java b/sdk/java/src/main/java/com/pulumi/azure/compute/outputs/GetBastionHostResult.java index 030ed4f313..01086f727f 100644 --- a/sdk/java/src/main/java/com/pulumi/azure/compute/outputs/GetBastionHostResult.java +++ b/sdk/java/src/main/java/com/pulumi/azure/compute/outputs/GetBastionHostResult.java @@ -86,6 +86,11 @@ public final class GetBastionHostResult { * */ private Boolean tunnelingEnabled; + /** + * @return A list of Availability Zones in which this Bastion Host is located. + * + */ + private List zones; private GetBastionHostResult() {} /** @@ -189,6 +194,13 @@ public Map tags() { public Boolean tunnelingEnabled() { return this.tunnelingEnabled; } + /** + * @return A list of Availability Zones in which this Bastion Host is located. + * + */ + public List zones() { + return this.zones; + } public static Builder builder() { return new Builder(); @@ -214,6 +226,7 @@ public static final class Builder { private String sku; private Map tags; private Boolean tunnelingEnabled; + private List zones; public Builder() {} public Builder(GetBastionHostResult defaults) { Objects.requireNonNull(defaults); @@ -232,6 +245,7 @@ public Builder(GetBastionHostResult defaults) { this.sku = defaults.sku; this.tags = defaults.tags; this.tunnelingEnabled = defaults.tunnelingEnabled; + this.zones = defaults.zones; } @CustomType.Setter @@ -357,6 +371,17 @@ public Builder tunnelingEnabled(Boolean tunnelingEnabled) { this.tunnelingEnabled = tunnelingEnabled; return this; } + @CustomType.Setter + public Builder zones(List zones) { + if (zones == null) { + throw new MissingRequiredPropertyException("GetBastionHostResult", "zones"); + } + this.zones = zones; + return this; + } + public Builder zones(String... zones) { + return zones(List.of(zones)); + } public GetBastionHostResult build() { final var _resultValue = new GetBastionHostResult(); _resultValue.copyPasteEnabled = copyPasteEnabled; @@ -374,6 +399,7 @@ public GetBastionHostResult build() { _resultValue.sku = sku; _resultValue.tags = tags; _resultValue.tunnelingEnabled = tunnelingEnabled; + _resultValue.zones = zones; return _resultValue; } } diff --git a/sdk/java/src/main/java/com/pulumi/azure/config/inputs/Features.java b/sdk/java/src/main/java/com/pulumi/azure/config/inputs/Features.java index b6e53417c7..b1c94fbcda 100644 --- a/sdk/java/src/main/java/com/pulumi/azure/config/inputs/Features.java +++ b/sdk/java/src/main/java/com/pulumi/azure/config/inputs/Features.java @@ -11,6 +11,7 @@ import com.pulumi.azure.config.outputs.FeaturesLogAnalyticsWorkspace; import com.pulumi.azure.config.outputs.FeaturesMachineLearning; import com.pulumi.azure.config.outputs.FeaturesManagedDisk; +import com.pulumi.azure.config.outputs.FeaturesNetapp; import com.pulumi.azure.config.outputs.FeaturesPostgresqlFlexibleServer; import com.pulumi.azure.config.outputs.FeaturesRecoveryService; import com.pulumi.azure.config.outputs.FeaturesRecoveryServicesVaults; @@ -35,6 +36,7 @@ public final class Features { private @Nullable FeaturesLogAnalyticsWorkspace logAnalyticsWorkspace; private @Nullable FeaturesMachineLearning machineLearning; private @Nullable FeaturesManagedDisk managedDisk; + private @Nullable FeaturesNetapp netapp; private @Nullable FeaturesPostgresqlFlexibleServer postgresqlFlexibleServer; private @Nullable FeaturesRecoveryService recoveryService; private @Nullable FeaturesRecoveryServicesVaults recoveryServicesVaults; @@ -70,6 +72,9 @@ public Optional machineLearning() { public Optional managedDisk() { return Optional.ofNullable(this.managedDisk); } + public Optional netapp() { + return Optional.ofNullable(this.netapp); + } public Optional postgresqlFlexibleServer() { return Optional.ofNullable(this.postgresqlFlexibleServer); } @@ -115,6 +120,7 @@ public static final class Builder { private @Nullable FeaturesLogAnalyticsWorkspace logAnalyticsWorkspace; private @Nullable FeaturesMachineLearning machineLearning; private @Nullable FeaturesManagedDisk managedDisk; + private @Nullable FeaturesNetapp netapp; private @Nullable FeaturesPostgresqlFlexibleServer postgresqlFlexibleServer; private @Nullable FeaturesRecoveryService recoveryService; private @Nullable FeaturesRecoveryServicesVaults recoveryServicesVaults; @@ -135,6 +141,7 @@ public Builder(Features defaults) { this.logAnalyticsWorkspace = defaults.logAnalyticsWorkspace; this.machineLearning = defaults.machineLearning; this.managedDisk = defaults.managedDisk; + this.netapp = defaults.netapp; this.postgresqlFlexibleServer = defaults.postgresqlFlexibleServer; this.recoveryService = defaults.recoveryService; this.recoveryServicesVaults = defaults.recoveryServicesVaults; @@ -195,6 +202,12 @@ public Builder managedDisk(@Nullable FeaturesManagedDisk managedDisk) { return this; } @CustomType.Setter + public Builder netapp(@Nullable FeaturesNetapp netapp) { + + this.netapp = netapp; + return this; + } + @CustomType.Setter public Builder postgresqlFlexibleServer(@Nullable FeaturesPostgresqlFlexibleServer postgresqlFlexibleServer) { this.postgresqlFlexibleServer = postgresqlFlexibleServer; @@ -258,6 +271,7 @@ public Features build() { _resultValue.logAnalyticsWorkspace = logAnalyticsWorkspace; _resultValue.machineLearning = machineLearning; _resultValue.managedDisk = managedDisk; + _resultValue.netapp = netapp; _resultValue.postgresqlFlexibleServer = postgresqlFlexibleServer; _resultValue.recoveryService = recoveryService; _resultValue.recoveryServicesVaults = recoveryServicesVaults; diff --git a/sdk/java/src/main/java/com/pulumi/azure/config/outputs/FeaturesNetapp.java b/sdk/java/src/main/java/com/pulumi/azure/config/outputs/FeaturesNetapp.java new file mode 100644 index 0000000000..ef168418ac --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/azure/config/outputs/FeaturesNetapp.java @@ -0,0 +1,78 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.azure.config.outputs; + +import com.pulumi.core.annotations.CustomType; +import java.lang.Boolean; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + +@CustomType +public final class FeaturesNetapp { + /** + * @return When enabled, backups will be deleted when the `azure.netapp.BackupVault` resource is destroyed + * + */ + private @Nullable Boolean deleteBackupsOnBackupVaultDestroy; + /** + * @return When enabled, the volume will not be destroyed, safeguarding from severe data loss + * + */ + private @Nullable Boolean preventVolumeDestruction; + + private FeaturesNetapp() {} + /** + * @return When enabled, backups will be deleted when the `azure.netapp.BackupVault` resource is destroyed + * + */ + public Optional deleteBackupsOnBackupVaultDestroy() { + return Optional.ofNullable(this.deleteBackupsOnBackupVaultDestroy); + } + /** + * @return When enabled, the volume will not be destroyed, safeguarding from severe data loss + * + */ + public Optional preventVolumeDestruction() { + return Optional.ofNullable(this.preventVolumeDestruction); + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(FeaturesNetapp defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private @Nullable Boolean deleteBackupsOnBackupVaultDestroy; + private @Nullable Boolean preventVolumeDestruction; + public Builder() {} + public Builder(FeaturesNetapp defaults) { + Objects.requireNonNull(defaults); + this.deleteBackupsOnBackupVaultDestroy = defaults.deleteBackupsOnBackupVaultDestroy; + this.preventVolumeDestruction = defaults.preventVolumeDestruction; + } + + @CustomType.Setter + public Builder deleteBackupsOnBackupVaultDestroy(@Nullable Boolean deleteBackupsOnBackupVaultDestroy) { + + this.deleteBackupsOnBackupVaultDestroy = deleteBackupsOnBackupVaultDestroy; + return this; + } + @CustomType.Setter + public Builder preventVolumeDestruction(@Nullable Boolean preventVolumeDestruction) { + + this.preventVolumeDestruction = preventVolumeDestruction; + return this; + } + public FeaturesNetapp build() { + final var _resultValue = new FeaturesNetapp(); + _resultValue.deleteBackupsOnBackupVaultDestroy = deleteBackupsOnBackupVaultDestroy; + _resultValue.preventVolumeDestruction = preventVolumeDestruction; + return _resultValue; + } + } +} diff --git a/sdk/java/src/main/java/com/pulumi/azure/fluidrelay/Server.java b/sdk/java/src/main/java/com/pulumi/azure/fluidrelay/Server.java index 20df01b1c0..5f99acb446 100644 --- a/sdk/java/src/main/java/com/pulumi/azure/fluidrelay/Server.java +++ b/sdk/java/src/main/java/com/pulumi/azure/fluidrelay/Server.java @@ -76,9 +76,17 @@ */ @ResourceType(type="azure:fluidrelay/server:Server") public class Server extends com.pulumi.resources.CustomResource { + /** + * A `customer_managed_key` block as defined below. Changing this forces a new resource to be created. + * + */ @Export(name="customerManagedKey", refs={ServerCustomerManagedKey.class}, tree="[0]") private Output customerManagedKey; + /** + * @return A `customer_managed_key` block as defined below. Changing this forces a new resource to be created. + * + */ public Output> customerManagedKey() { return Codegen.optional(this.customerManagedKey); } diff --git a/sdk/java/src/main/java/com/pulumi/azure/fluidrelay/ServerArgs.java b/sdk/java/src/main/java/com/pulumi/azure/fluidrelay/ServerArgs.java index 1854534b1e..72b483364c 100644 --- a/sdk/java/src/main/java/com/pulumi/azure/fluidrelay/ServerArgs.java +++ b/sdk/java/src/main/java/com/pulumi/azure/fluidrelay/ServerArgs.java @@ -19,9 +19,17 @@ public final class ServerArgs extends com.pulumi.resources.ResourceArgs { public static final ServerArgs Empty = new ServerArgs(); + /** + * A `customer_managed_key` block as defined below. Changing this forces a new resource to be created. + * + */ @Import(name="customerManagedKey") private @Nullable Output customerManagedKey; + /** + * @return A `customer_managed_key` block as defined below. Changing this forces a new resource to be created. + * + */ public Optional> customerManagedKey() { return Optional.ofNullable(this.customerManagedKey); } @@ -146,11 +154,23 @@ public Builder(ServerArgs defaults) { $ = new ServerArgs(Objects.requireNonNull(defaults)); } + /** + * @param customerManagedKey A `customer_managed_key` block as defined below. Changing this forces a new resource to be created. + * + * @return builder + * + */ public Builder customerManagedKey(@Nullable Output customerManagedKey) { $.customerManagedKey = customerManagedKey; return this; } + /** + * @param customerManagedKey A `customer_managed_key` block as defined below. Changing this forces a new resource to be created. + * + * @return builder + * + */ public Builder customerManagedKey(ServerCustomerManagedKeyArgs customerManagedKey) { return customerManagedKey(Output.of(customerManagedKey)); } diff --git a/sdk/java/src/main/java/com/pulumi/azure/fluidrelay/inputs/ServerState.java b/sdk/java/src/main/java/com/pulumi/azure/fluidrelay/inputs/ServerState.java index ba08436b54..803acadeea 100644 --- a/sdk/java/src/main/java/com/pulumi/azure/fluidrelay/inputs/ServerState.java +++ b/sdk/java/src/main/java/com/pulumi/azure/fluidrelay/inputs/ServerState.java @@ -19,9 +19,17 @@ public final class ServerState extends com.pulumi.resources.ResourceArgs { public static final ServerState Empty = new ServerState(); + /** + * A `customer_managed_key` block as defined below. Changing this forces a new resource to be created. + * + */ @Import(name="customerManagedKey") private @Nullable Output customerManagedKey; + /** + * @return A `customer_managed_key` block as defined below. Changing this forces a new resource to be created. + * + */ public Optional> customerManagedKey() { return Optional.ofNullable(this.customerManagedKey); } @@ -242,11 +250,23 @@ public Builder(ServerState defaults) { $ = new ServerState(Objects.requireNonNull(defaults)); } + /** + * @param customerManagedKey A `customer_managed_key` block as defined below. Changing this forces a new resource to be created. + * + * @return builder + * + */ public Builder customerManagedKey(@Nullable Output customerManagedKey) { $.customerManagedKey = customerManagedKey; return this; } + /** + * @param customerManagedKey A `customer_managed_key` block as defined below. Changing this forces a new resource to be created. + * + * @return builder + * + */ public Builder customerManagedKey(ServerCustomerManagedKeyArgs customerManagedKey) { return customerManagedKey(Output.of(customerManagedKey)); } diff --git a/sdk/java/src/main/java/com/pulumi/azure/inputs/ProviderFeaturesArgs.java b/sdk/java/src/main/java/com/pulumi/azure/inputs/ProviderFeaturesArgs.java index 81d98467d2..ce57cf45aa 100644 --- a/sdk/java/src/main/java/com/pulumi/azure/inputs/ProviderFeaturesArgs.java +++ b/sdk/java/src/main/java/com/pulumi/azure/inputs/ProviderFeaturesArgs.java @@ -11,6 +11,7 @@ import com.pulumi.azure.inputs.ProviderFeaturesLogAnalyticsWorkspaceArgs; import com.pulumi.azure.inputs.ProviderFeaturesMachineLearningArgs; import com.pulumi.azure.inputs.ProviderFeaturesManagedDiskArgs; +import com.pulumi.azure.inputs.ProviderFeaturesNetappArgs; import com.pulumi.azure.inputs.ProviderFeaturesPostgresqlFlexibleServerArgs; import com.pulumi.azure.inputs.ProviderFeaturesRecoveryServiceArgs; import com.pulumi.azure.inputs.ProviderFeaturesRecoveryServicesVaultsArgs; @@ -87,6 +88,13 @@ public Optional> managedDisk() { return Optional.ofNullable(this.managedDisk); } + @Import(name="netapp") + private @Nullable Output netapp; + + public Optional> netapp() { + return Optional.ofNullable(this.netapp); + } + @Import(name="postgresqlFlexibleServer") private @Nullable Output postgresqlFlexibleServer; @@ -161,6 +169,7 @@ private ProviderFeaturesArgs(ProviderFeaturesArgs $) { this.logAnalyticsWorkspace = $.logAnalyticsWorkspace; this.machineLearning = $.machineLearning; this.managedDisk = $.managedDisk; + this.netapp = $.netapp; this.postgresqlFlexibleServer = $.postgresqlFlexibleServer; this.recoveryService = $.recoveryService; this.recoveryServicesVaults = $.recoveryServicesVaults; @@ -262,6 +271,15 @@ public Builder managedDisk(ProviderFeaturesManagedDiskArgs managedDisk) { return managedDisk(Output.of(managedDisk)); } + public Builder netapp(@Nullable Output netapp) { + $.netapp = netapp; + return this; + } + + public Builder netapp(ProviderFeaturesNetappArgs netapp) { + return netapp(Output.of(netapp)); + } + public Builder postgresqlFlexibleServer(@Nullable Output postgresqlFlexibleServer) { $.postgresqlFlexibleServer = postgresqlFlexibleServer; return this; diff --git a/sdk/java/src/main/java/com/pulumi/azure/inputs/ProviderFeaturesNetappArgs.java b/sdk/java/src/main/java/com/pulumi/azure/inputs/ProviderFeaturesNetappArgs.java new file mode 100644 index 0000000000..04733a06ee --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/azure/inputs/ProviderFeaturesNetappArgs.java @@ -0,0 +1,120 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.azure.inputs; + +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import java.lang.Boolean; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + + +public final class ProviderFeaturesNetappArgs extends com.pulumi.resources.ResourceArgs { + + public static final ProviderFeaturesNetappArgs Empty = new ProviderFeaturesNetappArgs(); + + /** + * When enabled, backups will be deleted when the `azure.netapp.BackupVault` resource is destroyed + * + */ + @Import(name="deleteBackupsOnBackupVaultDestroy") + private @Nullable Output deleteBackupsOnBackupVaultDestroy; + + /** + * @return When enabled, backups will be deleted when the `azure.netapp.BackupVault` resource is destroyed + * + */ + public Optional> deleteBackupsOnBackupVaultDestroy() { + return Optional.ofNullable(this.deleteBackupsOnBackupVaultDestroy); + } + + /** + * When enabled, the volume will not be destroyed, safeguarding from severe data loss + * + */ + @Import(name="preventVolumeDestruction") + private @Nullable Output preventVolumeDestruction; + + /** + * @return When enabled, the volume will not be destroyed, safeguarding from severe data loss + * + */ + public Optional> preventVolumeDestruction() { + return Optional.ofNullable(this.preventVolumeDestruction); + } + + private ProviderFeaturesNetappArgs() {} + + private ProviderFeaturesNetappArgs(ProviderFeaturesNetappArgs $) { + this.deleteBackupsOnBackupVaultDestroy = $.deleteBackupsOnBackupVaultDestroy; + this.preventVolumeDestruction = $.preventVolumeDestruction; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(ProviderFeaturesNetappArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private ProviderFeaturesNetappArgs $; + + public Builder() { + $ = new ProviderFeaturesNetappArgs(); + } + + public Builder(ProviderFeaturesNetappArgs defaults) { + $ = new ProviderFeaturesNetappArgs(Objects.requireNonNull(defaults)); + } + + /** + * @param deleteBackupsOnBackupVaultDestroy When enabled, backups will be deleted when the `azure.netapp.BackupVault` resource is destroyed + * + * @return builder + * + */ + public Builder deleteBackupsOnBackupVaultDestroy(@Nullable Output deleteBackupsOnBackupVaultDestroy) { + $.deleteBackupsOnBackupVaultDestroy = deleteBackupsOnBackupVaultDestroy; + return this; + } + + /** + * @param deleteBackupsOnBackupVaultDestroy When enabled, backups will be deleted when the `azure.netapp.BackupVault` resource is destroyed + * + * @return builder + * + */ + public Builder deleteBackupsOnBackupVaultDestroy(Boolean deleteBackupsOnBackupVaultDestroy) { + return deleteBackupsOnBackupVaultDestroy(Output.of(deleteBackupsOnBackupVaultDestroy)); + } + + /** + * @param preventVolumeDestruction When enabled, the volume will not be destroyed, safeguarding from severe data loss + * + * @return builder + * + */ + public Builder preventVolumeDestruction(@Nullable Output preventVolumeDestruction) { + $.preventVolumeDestruction = preventVolumeDestruction; + return this; + } + + /** + * @param preventVolumeDestruction When enabled, the volume will not be destroyed, safeguarding from severe data loss + * + * @return builder + * + */ + public Builder preventVolumeDestruction(Boolean preventVolumeDestruction) { + return preventVolumeDestruction(Output.of(preventVolumeDestruction)); + } + + public ProviderFeaturesNetappArgs build() { + return $; + } + } + +} diff --git a/sdk/java/src/main/java/com/pulumi/azure/keyvault/KeyvaultFunctions.java b/sdk/java/src/main/java/com/pulumi/azure/keyvault/KeyvaultFunctions.java index 90bd92c2db..a0833f5c14 100644 --- a/sdk/java/src/main/java/com/pulumi/azure/keyvault/KeyvaultFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/azure/keyvault/KeyvaultFunctions.java @@ -21,6 +21,8 @@ import com.pulumi.azure.keyvault.inputs.GetKeyVaultArgs; import com.pulumi.azure.keyvault.inputs.GetKeyVaultPlainArgs; import com.pulumi.azure.keyvault.inputs.GetManagedHardwareSecurityModuleArgs; +import com.pulumi.azure.keyvault.inputs.GetManagedHardwareSecurityModuleKeyArgs; +import com.pulumi.azure.keyvault.inputs.GetManagedHardwareSecurityModuleKeyPlainArgs; import com.pulumi.azure.keyvault.inputs.GetManagedHardwareSecurityModulePlainArgs; import com.pulumi.azure.keyvault.inputs.GetManagedHardwareSecurityModuleRoleDefinitionArgs; import com.pulumi.azure.keyvault.inputs.GetManagedHardwareSecurityModuleRoleDefinitionPlainArgs; @@ -36,6 +38,7 @@ import com.pulumi.azure.keyvault.outputs.GetEncryptedValueResult; import com.pulumi.azure.keyvault.outputs.GetKeyResult; import com.pulumi.azure.keyvault.outputs.GetKeyVaultResult; +import com.pulumi.azure.keyvault.outputs.GetManagedHardwareSecurityModuleKeyResult; import com.pulumi.azure.keyvault.outputs.GetManagedHardwareSecurityModuleResult; import com.pulumi.azure.keyvault.outputs.GetManagedHardwareSecurityModuleRoleDefinitionResult; import com.pulumi.azure.keyvault.outputs.GetSecretResult; @@ -1411,6 +1414,194 @@ public static Output getManagedHardwareS public static CompletableFuture getManagedHardwareSecurityModulePlain(GetManagedHardwareSecurityModulePlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("azure:keyvault/getManagedHardwareSecurityModule:getManagedHardwareSecurityModule", TypeShape.of(GetManagedHardwareSecurityModuleResult.class), args, Utilities.withVersion(options)); } + /** + * Use this data source to access information about an existing Managed Hardware Security Module Key. + * + * > **Note:** All arguments including the secret value will be stored in the raw state as plain-text. + * [Read more about sensitive data in state](https://www.terraform.io/docs/state/sensitive-data.html). + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.azure.keyvault.KeyvaultFunctions;
+     * import com.pulumi.azure.keyvault.inputs.GetManagedHardwareSecurityModuleKeyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = KeyvaultFunctions.getManagedHardwareSecurityModuleKey(GetManagedHardwareSecurityModuleKeyArgs.builder()
+     *             .managedHsmId(exampleAzurermKeyVaultManagedHardwareSecurityModule.id())
+     *             .name(exampleAzurermKeyVaultManagedHardwareSecurityModuleKey.name())
+     *             .build());
+     * 
+     *         ctx.export("hsm-key-vesrion", example.applyValue(getManagedHardwareSecurityModuleKeyResult -> getManagedHardwareSecurityModuleKeyResult.version()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getManagedHardwareSecurityModuleKey(GetManagedHardwareSecurityModuleKeyArgs args) { + return getManagedHardwareSecurityModuleKey(args, InvokeOptions.Empty); + } + /** + * Use this data source to access information about an existing Managed Hardware Security Module Key. + * + * > **Note:** All arguments including the secret value will be stored in the raw state as plain-text. + * [Read more about sensitive data in state](https://www.terraform.io/docs/state/sensitive-data.html). + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.azure.keyvault.KeyvaultFunctions;
+     * import com.pulumi.azure.keyvault.inputs.GetManagedHardwareSecurityModuleKeyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = KeyvaultFunctions.getManagedHardwareSecurityModuleKey(GetManagedHardwareSecurityModuleKeyArgs.builder()
+     *             .managedHsmId(exampleAzurermKeyVaultManagedHardwareSecurityModule.id())
+     *             .name(exampleAzurermKeyVaultManagedHardwareSecurityModuleKey.name())
+     *             .build());
+     * 
+     *         ctx.export("hsm-key-vesrion", example.applyValue(getManagedHardwareSecurityModuleKeyResult -> getManagedHardwareSecurityModuleKeyResult.version()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static CompletableFuture getManagedHardwareSecurityModuleKeyPlain(GetManagedHardwareSecurityModuleKeyPlainArgs args) { + return getManagedHardwareSecurityModuleKeyPlain(args, InvokeOptions.Empty); + } + /** + * Use this data source to access information about an existing Managed Hardware Security Module Key. + * + * > **Note:** All arguments including the secret value will be stored in the raw state as plain-text. + * [Read more about sensitive data in state](https://www.terraform.io/docs/state/sensitive-data.html). + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.azure.keyvault.KeyvaultFunctions;
+     * import com.pulumi.azure.keyvault.inputs.GetManagedHardwareSecurityModuleKeyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = KeyvaultFunctions.getManagedHardwareSecurityModuleKey(GetManagedHardwareSecurityModuleKeyArgs.builder()
+     *             .managedHsmId(exampleAzurermKeyVaultManagedHardwareSecurityModule.id())
+     *             .name(exampleAzurermKeyVaultManagedHardwareSecurityModuleKey.name())
+     *             .build());
+     * 
+     *         ctx.export("hsm-key-vesrion", example.applyValue(getManagedHardwareSecurityModuleKeyResult -> getManagedHardwareSecurityModuleKeyResult.version()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getManagedHardwareSecurityModuleKey(GetManagedHardwareSecurityModuleKeyArgs args, InvokeOptions options) { + return Deployment.getInstance().invoke("azure:keyvault/getManagedHardwareSecurityModuleKey:getManagedHardwareSecurityModuleKey", TypeShape.of(GetManagedHardwareSecurityModuleKeyResult.class), args, Utilities.withVersion(options)); + } + /** + * Use this data source to access information about an existing Managed Hardware Security Module Key. + * + * > **Note:** All arguments including the secret value will be stored in the raw state as plain-text. + * [Read more about sensitive data in state](https://www.terraform.io/docs/state/sensitive-data.html). + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.azure.keyvault.KeyvaultFunctions;
+     * import com.pulumi.azure.keyvault.inputs.GetManagedHardwareSecurityModuleKeyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = KeyvaultFunctions.getManagedHardwareSecurityModuleKey(GetManagedHardwareSecurityModuleKeyArgs.builder()
+     *             .managedHsmId(exampleAzurermKeyVaultManagedHardwareSecurityModule.id())
+     *             .name(exampleAzurermKeyVaultManagedHardwareSecurityModuleKey.name())
+     *             .build());
+     * 
+     *         ctx.export("hsm-key-vesrion", example.applyValue(getManagedHardwareSecurityModuleKeyResult -> getManagedHardwareSecurityModuleKeyResult.version()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static CompletableFuture getManagedHardwareSecurityModuleKeyPlain(GetManagedHardwareSecurityModuleKeyPlainArgs args, InvokeOptions options) { + return Deployment.getInstance().invokeAsync("azure:keyvault/getManagedHardwareSecurityModuleKey:getManagedHardwareSecurityModuleKey", TypeShape.of(GetManagedHardwareSecurityModuleKeyResult.class), args, Utilities.withVersion(options)); + } /** * Use this data source to access information about an existing KeyVault Role Definition. * diff --git a/sdk/java/src/main/java/com/pulumi/azure/keyvault/inputs/GetManagedHardwareSecurityModuleKeyArgs.java b/sdk/java/src/main/java/com/pulumi/azure/keyvault/inputs/GetManagedHardwareSecurityModuleKeyArgs.java new file mode 100644 index 0000000000..51cc4341b8 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/azure/keyvault/inputs/GetManagedHardwareSecurityModuleKeyArgs.java @@ -0,0 +1,133 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.azure.keyvault.inputs; + +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; +import java.lang.String; +import java.util.Objects; + + +public final class GetManagedHardwareSecurityModuleKeyArgs extends com.pulumi.resources.InvokeArgs { + + public static final GetManagedHardwareSecurityModuleKeyArgs Empty = new GetManagedHardwareSecurityModuleKeyArgs(); + + /** + * Specifies the ID of the Managed Hardware Security Module instance where the Secret resides, available on the `azure.keyvault.ManagedHardwareSecurityModuleKey` Data Source / Resource. + * + * **NOTE:** The Managed Hardware Security Module must be in the same subscription as the provider. If the Managed Hardware Security Module is in another subscription, you must create an aliased provider for that subscription. + * + */ + @Import(name="managedHsmId", required=true) + private Output managedHsmId; + + /** + * @return Specifies the ID of the Managed Hardware Security Module instance where the Secret resides, available on the `azure.keyvault.ManagedHardwareSecurityModuleKey` Data Source / Resource. + * + * **NOTE:** The Managed Hardware Security Module must be in the same subscription as the provider. If the Managed Hardware Security Module is in another subscription, you must create an aliased provider for that subscription. + * + */ + public Output managedHsmId() { + return this.managedHsmId; + } + + /** + * Specifies the name of the Managed Hardware Security Module Key. + * + */ + @Import(name="name", required=true) + private Output name; + + /** + * @return Specifies the name of the Managed Hardware Security Module Key. + * + */ + public Output name() { + return this.name; + } + + private GetManagedHardwareSecurityModuleKeyArgs() {} + + private GetManagedHardwareSecurityModuleKeyArgs(GetManagedHardwareSecurityModuleKeyArgs $) { + this.managedHsmId = $.managedHsmId; + this.name = $.name; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(GetManagedHardwareSecurityModuleKeyArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private GetManagedHardwareSecurityModuleKeyArgs $; + + public Builder() { + $ = new GetManagedHardwareSecurityModuleKeyArgs(); + } + + public Builder(GetManagedHardwareSecurityModuleKeyArgs defaults) { + $ = new GetManagedHardwareSecurityModuleKeyArgs(Objects.requireNonNull(defaults)); + } + + /** + * @param managedHsmId Specifies the ID of the Managed Hardware Security Module instance where the Secret resides, available on the `azure.keyvault.ManagedHardwareSecurityModuleKey` Data Source / Resource. + * + * **NOTE:** The Managed Hardware Security Module must be in the same subscription as the provider. If the Managed Hardware Security Module is in another subscription, you must create an aliased provider for that subscription. + * + * @return builder + * + */ + public Builder managedHsmId(Output managedHsmId) { + $.managedHsmId = managedHsmId; + return this; + } + + /** + * @param managedHsmId Specifies the ID of the Managed Hardware Security Module instance where the Secret resides, available on the `azure.keyvault.ManagedHardwareSecurityModuleKey` Data Source / Resource. + * + * **NOTE:** The Managed Hardware Security Module must be in the same subscription as the provider. If the Managed Hardware Security Module is in another subscription, you must create an aliased provider for that subscription. + * + * @return builder + * + */ + public Builder managedHsmId(String managedHsmId) { + return managedHsmId(Output.of(managedHsmId)); + } + + /** + * @param name Specifies the name of the Managed Hardware Security Module Key. + * + * @return builder + * + */ + public Builder name(Output name) { + $.name = name; + return this; + } + + /** + * @param name Specifies the name of the Managed Hardware Security Module Key. + * + * @return builder + * + */ + public Builder name(String name) { + return name(Output.of(name)); + } + + public GetManagedHardwareSecurityModuleKeyArgs build() { + if ($.managedHsmId == null) { + throw new MissingRequiredPropertyException("GetManagedHardwareSecurityModuleKeyArgs", "managedHsmId"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("GetManagedHardwareSecurityModuleKeyArgs", "name"); + } + return $; + } + } + +} diff --git a/sdk/java/src/main/java/com/pulumi/azure/keyvault/inputs/GetManagedHardwareSecurityModuleKeyPlainArgs.java b/sdk/java/src/main/java/com/pulumi/azure/keyvault/inputs/GetManagedHardwareSecurityModuleKeyPlainArgs.java new file mode 100644 index 0000000000..7d14c5d8c6 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/azure/keyvault/inputs/GetManagedHardwareSecurityModuleKeyPlainArgs.java @@ -0,0 +1,110 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.azure.keyvault.inputs; + +import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; +import java.lang.String; +import java.util.Objects; + + +public final class GetManagedHardwareSecurityModuleKeyPlainArgs extends com.pulumi.resources.InvokeArgs { + + public static final GetManagedHardwareSecurityModuleKeyPlainArgs Empty = new GetManagedHardwareSecurityModuleKeyPlainArgs(); + + /** + * Specifies the ID of the Managed Hardware Security Module instance where the Secret resides, available on the `azure.keyvault.ManagedHardwareSecurityModuleKey` Data Source / Resource. + * + * **NOTE:** The Managed Hardware Security Module must be in the same subscription as the provider. If the Managed Hardware Security Module is in another subscription, you must create an aliased provider for that subscription. + * + */ + @Import(name="managedHsmId", required=true) + private String managedHsmId; + + /** + * @return Specifies the ID of the Managed Hardware Security Module instance where the Secret resides, available on the `azure.keyvault.ManagedHardwareSecurityModuleKey` Data Source / Resource. + * + * **NOTE:** The Managed Hardware Security Module must be in the same subscription as the provider. If the Managed Hardware Security Module is in another subscription, you must create an aliased provider for that subscription. + * + */ + public String managedHsmId() { + return this.managedHsmId; + } + + /** + * Specifies the name of the Managed Hardware Security Module Key. + * + */ + @Import(name="name", required=true) + private String name; + + /** + * @return Specifies the name of the Managed Hardware Security Module Key. + * + */ + public String name() { + return this.name; + } + + private GetManagedHardwareSecurityModuleKeyPlainArgs() {} + + private GetManagedHardwareSecurityModuleKeyPlainArgs(GetManagedHardwareSecurityModuleKeyPlainArgs $) { + this.managedHsmId = $.managedHsmId; + this.name = $.name; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(GetManagedHardwareSecurityModuleKeyPlainArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private GetManagedHardwareSecurityModuleKeyPlainArgs $; + + public Builder() { + $ = new GetManagedHardwareSecurityModuleKeyPlainArgs(); + } + + public Builder(GetManagedHardwareSecurityModuleKeyPlainArgs defaults) { + $ = new GetManagedHardwareSecurityModuleKeyPlainArgs(Objects.requireNonNull(defaults)); + } + + /** + * @param managedHsmId Specifies the ID of the Managed Hardware Security Module instance where the Secret resides, available on the `azure.keyvault.ManagedHardwareSecurityModuleKey` Data Source / Resource. + * + * **NOTE:** The Managed Hardware Security Module must be in the same subscription as the provider. If the Managed Hardware Security Module is in another subscription, you must create an aliased provider for that subscription. + * + * @return builder + * + */ + public Builder managedHsmId(String managedHsmId) { + $.managedHsmId = managedHsmId; + return this; + } + + /** + * @param name Specifies the name of the Managed Hardware Security Module Key. + * + * @return builder + * + */ + public Builder name(String name) { + $.name = name; + return this; + } + + public GetManagedHardwareSecurityModuleKeyPlainArgs build() { + if ($.managedHsmId == null) { + throw new MissingRequiredPropertyException("GetManagedHardwareSecurityModuleKeyPlainArgs", "managedHsmId"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("GetManagedHardwareSecurityModuleKeyPlainArgs", "name"); + } + return $; + } + } + +} diff --git a/sdk/java/src/main/java/com/pulumi/azure/keyvault/outputs/GetManagedHardwareSecurityModuleKeyResult.java b/sdk/java/src/main/java/com/pulumi/azure/keyvault/outputs/GetManagedHardwareSecurityModuleKeyResult.java new file mode 100644 index 0000000000..25254cf541 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/azure/keyvault/outputs/GetManagedHardwareSecurityModuleKeyResult.java @@ -0,0 +1,285 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.azure.keyvault.outputs; + +import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; +import java.lang.Integer; +import java.lang.String; +import java.util.List; +import java.util.Map; +import java.util.Objects; + +@CustomType +public final class GetManagedHardwareSecurityModuleKeyResult { + /** + * @return The EC Curve name of this Managed Hardware Security Module Key. + * + */ + private String curve; + private String expirationDate; + /** + * @return The provider-assigned unique ID for this managed resource. + * + */ + private String id; + /** + * @return A list of JSON web key operations assigned to this Managed Hardware Security Module Key + * + */ + private List keyOpts; + /** + * @return Specifies the Size of this Managed Hardware Security Module Key. + * + */ + private Integer keySize; + /** + * @return Specifies the Key Type of this Managed Hardware Security Module Key + * + */ + private String keyType; + private String managedHsmId; + private String name; + private String notBeforeDate; + /** + * @return A mapping of tags assigned to this Managed Hardware Security Module Key. + * + */ + private Map tags; + /** + * @return The current version of the Managed Hardware Security Module Key. + * + */ + private String version; + /** + * @return The versioned ID of the Managed Hardware Security Module Key. + * + */ + private String versionedId; + + private GetManagedHardwareSecurityModuleKeyResult() {} + /** + * @return The EC Curve name of this Managed Hardware Security Module Key. + * + */ + public String curve() { + return this.curve; + } + public String expirationDate() { + return this.expirationDate; + } + /** + * @return The provider-assigned unique ID for this managed resource. + * + */ + public String id() { + return this.id; + } + /** + * @return A list of JSON web key operations assigned to this Managed Hardware Security Module Key + * + */ + public List keyOpts() { + return this.keyOpts; + } + /** + * @return Specifies the Size of this Managed Hardware Security Module Key. + * + */ + public Integer keySize() { + return this.keySize; + } + /** + * @return Specifies the Key Type of this Managed Hardware Security Module Key + * + */ + public String keyType() { + return this.keyType; + } + public String managedHsmId() { + return this.managedHsmId; + } + public String name() { + return this.name; + } + public String notBeforeDate() { + return this.notBeforeDate; + } + /** + * @return A mapping of tags assigned to this Managed Hardware Security Module Key. + * + */ + public Map tags() { + return this.tags; + } + /** + * @return The current version of the Managed Hardware Security Module Key. + * + */ + public String version() { + return this.version; + } + /** + * @return The versioned ID of the Managed Hardware Security Module Key. + * + */ + public String versionedId() { + return this.versionedId; + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(GetManagedHardwareSecurityModuleKeyResult defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private String curve; + private String expirationDate; + private String id; + private List keyOpts; + private Integer keySize; + private String keyType; + private String managedHsmId; + private String name; + private String notBeforeDate; + private Map tags; + private String version; + private String versionedId; + public Builder() {} + public Builder(GetManagedHardwareSecurityModuleKeyResult defaults) { + Objects.requireNonNull(defaults); + this.curve = defaults.curve; + this.expirationDate = defaults.expirationDate; + this.id = defaults.id; + this.keyOpts = defaults.keyOpts; + this.keySize = defaults.keySize; + this.keyType = defaults.keyType; + this.managedHsmId = defaults.managedHsmId; + this.name = defaults.name; + this.notBeforeDate = defaults.notBeforeDate; + this.tags = defaults.tags; + this.version = defaults.version; + this.versionedId = defaults.versionedId; + } + + @CustomType.Setter + public Builder curve(String curve) { + if (curve == null) { + throw new MissingRequiredPropertyException("GetManagedHardwareSecurityModuleKeyResult", "curve"); + } + this.curve = curve; + return this; + } + @CustomType.Setter + public Builder expirationDate(String expirationDate) { + if (expirationDate == null) { + throw new MissingRequiredPropertyException("GetManagedHardwareSecurityModuleKeyResult", "expirationDate"); + } + this.expirationDate = expirationDate; + return this; + } + @CustomType.Setter + public Builder id(String id) { + if (id == null) { + throw new MissingRequiredPropertyException("GetManagedHardwareSecurityModuleKeyResult", "id"); + } + this.id = id; + return this; + } + @CustomType.Setter + public Builder keyOpts(List keyOpts) { + if (keyOpts == null) { + throw new MissingRequiredPropertyException("GetManagedHardwareSecurityModuleKeyResult", "keyOpts"); + } + this.keyOpts = keyOpts; + return this; + } + public Builder keyOpts(String... keyOpts) { + return keyOpts(List.of(keyOpts)); + } + @CustomType.Setter + public Builder keySize(Integer keySize) { + if (keySize == null) { + throw new MissingRequiredPropertyException("GetManagedHardwareSecurityModuleKeyResult", "keySize"); + } + this.keySize = keySize; + return this; + } + @CustomType.Setter + public Builder keyType(String keyType) { + if (keyType == null) { + throw new MissingRequiredPropertyException("GetManagedHardwareSecurityModuleKeyResult", "keyType"); + } + this.keyType = keyType; + return this; + } + @CustomType.Setter + public Builder managedHsmId(String managedHsmId) { + if (managedHsmId == null) { + throw new MissingRequiredPropertyException("GetManagedHardwareSecurityModuleKeyResult", "managedHsmId"); + } + this.managedHsmId = managedHsmId; + return this; + } + @CustomType.Setter + public Builder name(String name) { + if (name == null) { + throw new MissingRequiredPropertyException("GetManagedHardwareSecurityModuleKeyResult", "name"); + } + this.name = name; + return this; + } + @CustomType.Setter + public Builder notBeforeDate(String notBeforeDate) { + if (notBeforeDate == null) { + throw new MissingRequiredPropertyException("GetManagedHardwareSecurityModuleKeyResult", "notBeforeDate"); + } + this.notBeforeDate = notBeforeDate; + return this; + } + @CustomType.Setter + public Builder tags(Map tags) { + if (tags == null) { + throw new MissingRequiredPropertyException("GetManagedHardwareSecurityModuleKeyResult", "tags"); + } + this.tags = tags; + return this; + } + @CustomType.Setter + public Builder version(String version) { + if (version == null) { + throw new MissingRequiredPropertyException("GetManagedHardwareSecurityModuleKeyResult", "version"); + } + this.version = version; + return this; + } + @CustomType.Setter + public Builder versionedId(String versionedId) { + if (versionedId == null) { + throw new MissingRequiredPropertyException("GetManagedHardwareSecurityModuleKeyResult", "versionedId"); + } + this.versionedId = versionedId; + return this; + } + public GetManagedHardwareSecurityModuleKeyResult build() { + final var _resultValue = new GetManagedHardwareSecurityModuleKeyResult(); + _resultValue.curve = curve; + _resultValue.expirationDate = expirationDate; + _resultValue.id = id; + _resultValue.keyOpts = keyOpts; + _resultValue.keySize = keySize; + _resultValue.keyType = keyType; + _resultValue.managedHsmId = managedHsmId; + _resultValue.name = name; + _resultValue.notBeforeDate = notBeforeDate; + _resultValue.tags = tags; + _resultValue.version = version; + _resultValue.versionedId = versionedId; + return _resultValue; + } + } +} diff --git a/sdk/java/src/main/java/com/pulumi/azure/mssql/inputs/DatabaseLongTermRetentionPolicyArgs.java b/sdk/java/src/main/java/com/pulumi/azure/mssql/inputs/DatabaseLongTermRetentionPolicyArgs.java index 6ebdbe0663..caf5dd9753 100644 --- a/sdk/java/src/main/java/com/pulumi/azure/mssql/inputs/DatabaseLongTermRetentionPolicyArgs.java +++ b/sdk/java/src/main/java/com/pulumi/azure/mssql/inputs/DatabaseLongTermRetentionPolicyArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import java.lang.Boolean; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -16,15 +17,22 @@ public final class DatabaseLongTermRetentionPolicyArgs extends com.pulumi.resour public static final DatabaseLongTermRetentionPolicyArgs Empty = new DatabaseLongTermRetentionPolicyArgs(); + @Import(name="immutableBackupsEnabled") + private @Nullable Output immutableBackupsEnabled; + + public Optional> immutableBackupsEnabled() { + return Optional.ofNullable(this.immutableBackupsEnabled); + } + /** - * The monthly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 120 months. e.g. `P1Y`, `P1M`, `P4W` or `P30D`. + * The monthly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 120 months. e.g. `P1Y`, `P1M`, `P4W` or `P30D`. Defaults to `PT0S`. * */ @Import(name="monthlyRetention") private @Nullable Output monthlyRetention; /** - * @return The monthly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 120 months. e.g. `P1Y`, `P1M`, `P4W` or `P30D`. + * @return The monthly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 120 months. e.g. `P1Y`, `P1M`, `P4W` or `P30D`. Defaults to `PT0S`. * */ public Optional> monthlyRetention() { @@ -47,14 +55,14 @@ public Optional> weekOfYear() { } /** - * The weekly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 520 weeks. e.g. `P1Y`, `P1M`, `P1W` or `P7D`. + * The weekly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 520 weeks. e.g. `P1Y`, `P1M`, `P1W` or `P7D`. Defaults to `PT0S`. * */ @Import(name="weeklyRetention") private @Nullable Output weeklyRetention; /** - * @return The weekly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 520 weeks. e.g. `P1Y`, `P1M`, `P1W` or `P7D`. + * @return The weekly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 520 weeks. e.g. `P1Y`, `P1M`, `P1W` or `P7D`. Defaults to `PT0S`. * */ public Optional> weeklyRetention() { @@ -62,14 +70,14 @@ public Optional> weeklyRetention() { } /** - * The yearly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 10 years. e.g. `P1Y`, `P12M`, `P52W` or `P365D`. + * The yearly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 10 years. e.g. `P1Y`, `P12M`, `P52W` or `P365D`. Defaults to `PT0S`. * */ @Import(name="yearlyRetention") private @Nullable Output yearlyRetention; /** - * @return The yearly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 10 years. e.g. `P1Y`, `P12M`, `P52W` or `P365D`. + * @return The yearly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 10 years. e.g. `P1Y`, `P12M`, `P52W` or `P365D`. Defaults to `PT0S`. * */ public Optional> yearlyRetention() { @@ -79,6 +87,7 @@ public Optional> yearlyRetention() { private DatabaseLongTermRetentionPolicyArgs() {} private DatabaseLongTermRetentionPolicyArgs(DatabaseLongTermRetentionPolicyArgs $) { + this.immutableBackupsEnabled = $.immutableBackupsEnabled; this.monthlyRetention = $.monthlyRetention; this.weekOfYear = $.weekOfYear; this.weeklyRetention = $.weeklyRetention; @@ -103,8 +112,17 @@ public Builder(DatabaseLongTermRetentionPolicyArgs defaults) { $ = new DatabaseLongTermRetentionPolicyArgs(Objects.requireNonNull(defaults)); } + public Builder immutableBackupsEnabled(@Nullable Output immutableBackupsEnabled) { + $.immutableBackupsEnabled = immutableBackupsEnabled; + return this; + } + + public Builder immutableBackupsEnabled(Boolean immutableBackupsEnabled) { + return immutableBackupsEnabled(Output.of(immutableBackupsEnabled)); + } + /** - * @param monthlyRetention The monthly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 120 months. e.g. `P1Y`, `P1M`, `P4W` or `P30D`. + * @param monthlyRetention The monthly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 120 months. e.g. `P1Y`, `P1M`, `P4W` or `P30D`. Defaults to `PT0S`. * * @return builder * @@ -115,7 +133,7 @@ public Builder monthlyRetention(@Nullable Output monthlyRetention) { } /** - * @param monthlyRetention The monthly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 120 months. e.g. `P1Y`, `P1M`, `P4W` or `P30D`. + * @param monthlyRetention The monthly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 120 months. e.g. `P1Y`, `P1M`, `P4W` or `P30D`. Defaults to `PT0S`. * * @return builder * @@ -146,7 +164,7 @@ public Builder weekOfYear(Integer weekOfYear) { } /** - * @param weeklyRetention The weekly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 520 weeks. e.g. `P1Y`, `P1M`, `P1W` or `P7D`. + * @param weeklyRetention The weekly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 520 weeks. e.g. `P1Y`, `P1M`, `P1W` or `P7D`. Defaults to `PT0S`. * * @return builder * @@ -157,7 +175,7 @@ public Builder weeklyRetention(@Nullable Output weeklyRetention) { } /** - * @param weeklyRetention The weekly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 520 weeks. e.g. `P1Y`, `P1M`, `P1W` or `P7D`. + * @param weeklyRetention The weekly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 520 weeks. e.g. `P1Y`, `P1M`, `P1W` or `P7D`. Defaults to `PT0S`. * * @return builder * @@ -167,7 +185,7 @@ public Builder weeklyRetention(String weeklyRetention) { } /** - * @param yearlyRetention The yearly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 10 years. e.g. `P1Y`, `P12M`, `P52W` or `P365D`. + * @param yearlyRetention The yearly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 10 years. e.g. `P1Y`, `P12M`, `P52W` or `P365D`. Defaults to `PT0S`. * * @return builder * @@ -178,7 +196,7 @@ public Builder yearlyRetention(@Nullable Output yearlyRetention) { } /** - * @param yearlyRetention The yearly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 10 years. e.g. `P1Y`, `P12M`, `P52W` or `P365D`. + * @param yearlyRetention The yearly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 10 years. e.g. `P1Y`, `P12M`, `P52W` or `P365D`. Defaults to `PT0S`. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/azure/mssql/inputs/ManagedDatabaseLongTermRetentionPolicyArgs.java b/sdk/java/src/main/java/com/pulumi/azure/mssql/inputs/ManagedDatabaseLongTermRetentionPolicyArgs.java index 9e42bc8988..db7bbdc405 100644 --- a/sdk/java/src/main/java/com/pulumi/azure/mssql/inputs/ManagedDatabaseLongTermRetentionPolicyArgs.java +++ b/sdk/java/src/main/java/com/pulumi/azure/mssql/inputs/ManagedDatabaseLongTermRetentionPolicyArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import java.lang.Boolean; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -16,15 +17,22 @@ public final class ManagedDatabaseLongTermRetentionPolicyArgs extends com.pulumi public static final ManagedDatabaseLongTermRetentionPolicyArgs Empty = new ManagedDatabaseLongTermRetentionPolicyArgs(); + @Import(name="immutableBackupsEnabled") + private @Nullable Output immutableBackupsEnabled; + + public Optional> immutableBackupsEnabled() { + return Optional.ofNullable(this.immutableBackupsEnabled); + } + /** - * The monthly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 120 months. e.g. `P1Y`, `P1M`, `P4W` or `P30D`. + * The monthly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 120 months. e.g. `P1Y`, `P1M`, `P4W` or `P30D`. Defaults to `PT0S`. * */ @Import(name="monthlyRetention") private @Nullable Output monthlyRetention; /** - * @return The monthly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 120 months. e.g. `P1Y`, `P1M`, `P4W` or `P30D`. + * @return The monthly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 120 months. e.g. `P1Y`, `P1M`, `P4W` or `P30D`. Defaults to `PT0S`. * */ public Optional> monthlyRetention() { @@ -47,14 +55,14 @@ public Optional> weekOfYear() { } /** - * The weekly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 520 weeks. e.g. `P1Y`, `P1M`, `P1W` or `P7D`. + * The weekly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 520 weeks. e.g. `P1Y`, `P1M`, `P1W` or `P7D`. Defaults to `PT0S`. * */ @Import(name="weeklyRetention") private @Nullable Output weeklyRetention; /** - * @return The weekly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 520 weeks. e.g. `P1Y`, `P1M`, `P1W` or `P7D`. + * @return The weekly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 520 weeks. e.g. `P1Y`, `P1M`, `P1W` or `P7D`. Defaults to `PT0S`. * */ public Optional> weeklyRetention() { @@ -62,14 +70,14 @@ public Optional> weeklyRetention() { } /** - * The yearly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 10 years. e.g. `P1Y`, `P12M`, `P52W` or `P365D`. + * The yearly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 10 years. e.g. `P1Y`, `P12M`, `P52W` or `P365D`. Defaults to `PT0S`. * */ @Import(name="yearlyRetention") private @Nullable Output yearlyRetention; /** - * @return The yearly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 10 years. e.g. `P1Y`, `P12M`, `P52W` or `P365D`. + * @return The yearly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 10 years. e.g. `P1Y`, `P12M`, `P52W` or `P365D`. Defaults to `PT0S`. * */ public Optional> yearlyRetention() { @@ -79,6 +87,7 @@ public Optional> yearlyRetention() { private ManagedDatabaseLongTermRetentionPolicyArgs() {} private ManagedDatabaseLongTermRetentionPolicyArgs(ManagedDatabaseLongTermRetentionPolicyArgs $) { + this.immutableBackupsEnabled = $.immutableBackupsEnabled; this.monthlyRetention = $.monthlyRetention; this.weekOfYear = $.weekOfYear; this.weeklyRetention = $.weeklyRetention; @@ -103,8 +112,17 @@ public Builder(ManagedDatabaseLongTermRetentionPolicyArgs defaults) { $ = new ManagedDatabaseLongTermRetentionPolicyArgs(Objects.requireNonNull(defaults)); } + public Builder immutableBackupsEnabled(@Nullable Output immutableBackupsEnabled) { + $.immutableBackupsEnabled = immutableBackupsEnabled; + return this; + } + + public Builder immutableBackupsEnabled(Boolean immutableBackupsEnabled) { + return immutableBackupsEnabled(Output.of(immutableBackupsEnabled)); + } + /** - * @param monthlyRetention The monthly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 120 months. e.g. `P1Y`, `P1M`, `P4W` or `P30D`. + * @param monthlyRetention The monthly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 120 months. e.g. `P1Y`, `P1M`, `P4W` or `P30D`. Defaults to `PT0S`. * * @return builder * @@ -115,7 +133,7 @@ public Builder monthlyRetention(@Nullable Output monthlyRetention) { } /** - * @param monthlyRetention The monthly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 120 months. e.g. `P1Y`, `P1M`, `P4W` or `P30D`. + * @param monthlyRetention The monthly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 120 months. e.g. `P1Y`, `P1M`, `P4W` or `P30D`. Defaults to `PT0S`. * * @return builder * @@ -146,7 +164,7 @@ public Builder weekOfYear(Integer weekOfYear) { } /** - * @param weeklyRetention The weekly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 520 weeks. e.g. `P1Y`, `P1M`, `P1W` or `P7D`. + * @param weeklyRetention The weekly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 520 weeks. e.g. `P1Y`, `P1M`, `P1W` or `P7D`. Defaults to `PT0S`. * * @return builder * @@ -157,7 +175,7 @@ public Builder weeklyRetention(@Nullable Output weeklyRetention) { } /** - * @param weeklyRetention The weekly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 520 weeks. e.g. `P1Y`, `P1M`, `P1W` or `P7D`. + * @param weeklyRetention The weekly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 520 weeks. e.g. `P1Y`, `P1M`, `P1W` or `P7D`. Defaults to `PT0S`. * * @return builder * @@ -167,7 +185,7 @@ public Builder weeklyRetention(String weeklyRetention) { } /** - * @param yearlyRetention The yearly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 10 years. e.g. `P1Y`, `P12M`, `P52W` or `P365D`. + * @param yearlyRetention The yearly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 10 years. e.g. `P1Y`, `P12M`, `P52W` or `P365D`. Defaults to `PT0S`. * * @return builder * @@ -178,7 +196,7 @@ public Builder yearlyRetention(@Nullable Output yearlyRetention) { } /** - * @param yearlyRetention The yearly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 10 years. e.g. `P1Y`, `P12M`, `P52W` or `P365D`. + * @param yearlyRetention The yearly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 10 years. e.g. `P1Y`, `P12M`, `P52W` or `P365D`. Defaults to `PT0S`. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/azure/mssql/outputs/DatabaseLongTermRetentionPolicy.java b/sdk/java/src/main/java/com/pulumi/azure/mssql/outputs/DatabaseLongTermRetentionPolicy.java index 764b560d14..d2e1f21677 100644 --- a/sdk/java/src/main/java/com/pulumi/azure/mssql/outputs/DatabaseLongTermRetentionPolicy.java +++ b/sdk/java/src/main/java/com/pulumi/azure/mssql/outputs/DatabaseLongTermRetentionPolicy.java @@ -4,6 +4,7 @@ package com.pulumi.azure.mssql.outputs; import com.pulumi.core.annotations.CustomType; +import java.lang.Boolean; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -12,8 +13,9 @@ @CustomType public final class DatabaseLongTermRetentionPolicy { + private @Nullable Boolean immutableBackupsEnabled; /** - * @return The monthly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 120 months. e.g. `P1Y`, `P1M`, `P4W` or `P30D`. + * @return The monthly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 120 months. e.g. `P1Y`, `P1M`, `P4W` or `P30D`. Defaults to `PT0S`. * */ private @Nullable String monthlyRetention; @@ -23,19 +25,22 @@ public final class DatabaseLongTermRetentionPolicy { */ private @Nullable Integer weekOfYear; /** - * @return The weekly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 520 weeks. e.g. `P1Y`, `P1M`, `P1W` or `P7D`. + * @return The weekly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 520 weeks. e.g. `P1Y`, `P1M`, `P1W` or `P7D`. Defaults to `PT0S`. * */ private @Nullable String weeklyRetention; /** - * @return The yearly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 10 years. e.g. `P1Y`, `P12M`, `P52W` or `P365D`. + * @return The yearly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 10 years. e.g. `P1Y`, `P12M`, `P52W` or `P365D`. Defaults to `PT0S`. * */ private @Nullable String yearlyRetention; private DatabaseLongTermRetentionPolicy() {} + public Optional immutableBackupsEnabled() { + return Optional.ofNullable(this.immutableBackupsEnabled); + } /** - * @return The monthly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 120 months. e.g. `P1Y`, `P1M`, `P4W` or `P30D`. + * @return The monthly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 120 months. e.g. `P1Y`, `P1M`, `P4W` or `P30D`. Defaults to `PT0S`. * */ public Optional monthlyRetention() { @@ -49,14 +54,14 @@ public Optional weekOfYear() { return Optional.ofNullable(this.weekOfYear); } /** - * @return The weekly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 520 weeks. e.g. `P1Y`, `P1M`, `P1W` or `P7D`. + * @return The weekly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 520 weeks. e.g. `P1Y`, `P1M`, `P1W` or `P7D`. Defaults to `PT0S`. * */ public Optional weeklyRetention() { return Optional.ofNullable(this.weeklyRetention); } /** - * @return The yearly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 10 years. e.g. `P1Y`, `P12M`, `P52W` or `P365D`. + * @return The yearly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 10 years. e.g. `P1Y`, `P12M`, `P52W` or `P365D`. Defaults to `PT0S`. * */ public Optional yearlyRetention() { @@ -72,6 +77,7 @@ public static Builder builder(DatabaseLongTermRetentionPolicy defaults) { } @CustomType.Builder public static final class Builder { + private @Nullable Boolean immutableBackupsEnabled; private @Nullable String monthlyRetention; private @Nullable Integer weekOfYear; private @Nullable String weeklyRetention; @@ -79,12 +85,19 @@ public static final class Builder { public Builder() {} public Builder(DatabaseLongTermRetentionPolicy defaults) { Objects.requireNonNull(defaults); + this.immutableBackupsEnabled = defaults.immutableBackupsEnabled; this.monthlyRetention = defaults.monthlyRetention; this.weekOfYear = defaults.weekOfYear; this.weeklyRetention = defaults.weeklyRetention; this.yearlyRetention = defaults.yearlyRetention; } + @CustomType.Setter + public Builder immutableBackupsEnabled(@Nullable Boolean immutableBackupsEnabled) { + + this.immutableBackupsEnabled = immutableBackupsEnabled; + return this; + } @CustomType.Setter public Builder monthlyRetention(@Nullable String monthlyRetention) { @@ -111,6 +124,7 @@ public Builder yearlyRetention(@Nullable String yearlyRetention) { } public DatabaseLongTermRetentionPolicy build() { final var _resultValue = new DatabaseLongTermRetentionPolicy(); + _resultValue.immutableBackupsEnabled = immutableBackupsEnabled; _resultValue.monthlyRetention = monthlyRetention; _resultValue.weekOfYear = weekOfYear; _resultValue.weeklyRetention = weeklyRetention; diff --git a/sdk/java/src/main/java/com/pulumi/azure/mssql/outputs/ManagedDatabaseLongTermRetentionPolicy.java b/sdk/java/src/main/java/com/pulumi/azure/mssql/outputs/ManagedDatabaseLongTermRetentionPolicy.java index 3f1553f2f6..4ca46fe2c4 100644 --- a/sdk/java/src/main/java/com/pulumi/azure/mssql/outputs/ManagedDatabaseLongTermRetentionPolicy.java +++ b/sdk/java/src/main/java/com/pulumi/azure/mssql/outputs/ManagedDatabaseLongTermRetentionPolicy.java @@ -4,6 +4,7 @@ package com.pulumi.azure.mssql.outputs; import com.pulumi.core.annotations.CustomType; +import java.lang.Boolean; import java.lang.Integer; import java.lang.String; import java.util.Objects; @@ -12,8 +13,9 @@ @CustomType public final class ManagedDatabaseLongTermRetentionPolicy { + private @Nullable Boolean immutableBackupsEnabled; /** - * @return The monthly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 120 months. e.g. `P1Y`, `P1M`, `P4W` or `P30D`. + * @return The monthly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 120 months. e.g. `P1Y`, `P1M`, `P4W` or `P30D`. Defaults to `PT0S`. * */ private @Nullable String monthlyRetention; @@ -23,19 +25,22 @@ public final class ManagedDatabaseLongTermRetentionPolicy { */ private @Nullable Integer weekOfYear; /** - * @return The weekly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 520 weeks. e.g. `P1Y`, `P1M`, `P1W` or `P7D`. + * @return The weekly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 520 weeks. e.g. `P1Y`, `P1M`, `P1W` or `P7D`. Defaults to `PT0S`. * */ private @Nullable String weeklyRetention; /** - * @return The yearly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 10 years. e.g. `P1Y`, `P12M`, `P52W` or `P365D`. + * @return The yearly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 10 years. e.g. `P1Y`, `P12M`, `P52W` or `P365D`. Defaults to `PT0S`. * */ private @Nullable String yearlyRetention; private ManagedDatabaseLongTermRetentionPolicy() {} + public Optional immutableBackupsEnabled() { + return Optional.ofNullable(this.immutableBackupsEnabled); + } /** - * @return The monthly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 120 months. e.g. `P1Y`, `P1M`, `P4W` or `P30D`. + * @return The monthly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 120 months. e.g. `P1Y`, `P1M`, `P4W` or `P30D`. Defaults to `PT0S`. * */ public Optional monthlyRetention() { @@ -49,14 +54,14 @@ public Optional weekOfYear() { return Optional.ofNullable(this.weekOfYear); } /** - * @return The weekly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 520 weeks. e.g. `P1Y`, `P1M`, `P1W` or `P7D`. + * @return The weekly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 520 weeks. e.g. `P1Y`, `P1M`, `P1W` or `P7D`. Defaults to `PT0S`. * */ public Optional weeklyRetention() { return Optional.ofNullable(this.weeklyRetention); } /** - * @return The yearly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 10 years. e.g. `P1Y`, `P12M`, `P52W` or `P365D`. + * @return The yearly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 10 years. e.g. `P1Y`, `P12M`, `P52W` or `P365D`. Defaults to `PT0S`. * */ public Optional yearlyRetention() { @@ -72,6 +77,7 @@ public static Builder builder(ManagedDatabaseLongTermRetentionPolicy defaults) { } @CustomType.Builder public static final class Builder { + private @Nullable Boolean immutableBackupsEnabled; private @Nullable String monthlyRetention; private @Nullable Integer weekOfYear; private @Nullable String weeklyRetention; @@ -79,12 +85,19 @@ public static final class Builder { public Builder() {} public Builder(ManagedDatabaseLongTermRetentionPolicy defaults) { Objects.requireNonNull(defaults); + this.immutableBackupsEnabled = defaults.immutableBackupsEnabled; this.monthlyRetention = defaults.monthlyRetention; this.weekOfYear = defaults.weekOfYear; this.weeklyRetention = defaults.weeklyRetention; this.yearlyRetention = defaults.yearlyRetention; } + @CustomType.Setter + public Builder immutableBackupsEnabled(@Nullable Boolean immutableBackupsEnabled) { + + this.immutableBackupsEnabled = immutableBackupsEnabled; + return this; + } @CustomType.Setter public Builder monthlyRetention(@Nullable String monthlyRetention) { @@ -111,6 +124,7 @@ public Builder yearlyRetention(@Nullable String yearlyRetention) { } public ManagedDatabaseLongTermRetentionPolicy build() { final var _resultValue = new ManagedDatabaseLongTermRetentionPolicy(); + _resultValue.immutableBackupsEnabled = immutableBackupsEnabled; _resultValue.monthlyRetention = monthlyRetention; _resultValue.weekOfYear = weekOfYear; _resultValue.weeklyRetention = weeklyRetention; diff --git a/sdk/java/src/main/java/com/pulumi/azure/netapp/BackupPolicy.java b/sdk/java/src/main/java/com/pulumi/azure/netapp/BackupPolicy.java new file mode 100644 index 0000000000..1932b40e52 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/azure/netapp/BackupPolicy.java @@ -0,0 +1,274 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.azure.netapp; + +import com.pulumi.azure.Utilities; +import com.pulumi.azure.netapp.BackupPolicyArgs; +import com.pulumi.azure.netapp.inputs.BackupPolicyState; +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Export; +import com.pulumi.core.annotations.ResourceType; +import com.pulumi.core.internal.Codegen; +import java.lang.Boolean; +import java.lang.Integer; +import java.lang.String; +import java.util.Map; +import java.util.Optional; +import javax.annotation.Nullable; + +/** + * Manages a NetApp Backup Policy. + * + * ## NetApp Backup Policy Usage + * + * <!--Start PulumiCodeChooser --> + *
+ * {@code
+ * package generated_program;
+ * 
+ * import com.pulumi.Context;
+ * import com.pulumi.Pulumi;
+ * import com.pulumi.core.Output;
+ * import com.pulumi.azure.core.ResourceGroup;
+ * import com.pulumi.azure.core.ResourceGroupArgs;
+ * import com.pulumi.azure.netapp.Account;
+ * import com.pulumi.azure.netapp.AccountArgs;
+ * import com.pulumi.azure.netapp.BackupPolicy;
+ * import com.pulumi.azure.netapp.BackupPolicyArgs;
+ * import java.util.List;
+ * import java.util.ArrayList;
+ * import java.util.Map;
+ * import java.io.File;
+ * import java.nio.file.Files;
+ * import java.nio.file.Paths;
+ * 
+ * public class App {
+ *     public static void main(String[] args) {
+ *         Pulumi.run(App::stack);
+ *     }
+ * 
+ *     public static void stack(Context ctx) {
+ *         var example = new ResourceGroup("example", ResourceGroupArgs.builder()
+ *             .name("example-resources")
+ *             .location("West Europe")
+ *             .build());
+ * 
+ *         var exampleAccount = new Account("exampleAccount", AccountArgs.builder()
+ *             .name("example-netappaccount")
+ *             .location(example.location())
+ *             .resourceGroupName(example.name())
+ *             .build());
+ * 
+ *         var exampleBackupPolicy = new BackupPolicy("exampleBackupPolicy", BackupPolicyArgs.builder()
+ *             .name("example-netappbackuppolicy")
+ *             .resourceGroupName(example.name())
+ *             .location(example.location())
+ *             .accountName(exampleAccount.name())
+ *             .enabled(true)
+ *             .build());
+ * 
+ *     }
+ * }
+ * }
+ * 
+ * <!--End PulumiCodeChooser --> + * + * ## Import + * + * NetApp Backup Policy can be imported using the `resource id`, e.g. + * + * ```sh + * $ pulumi import azure:netapp/backupPolicy:BackupPolicy example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.NetApp/netAppAccounts/account1/backupPolicies/backuppolicy1 + * ``` + * + */ +@ResourceType(type="azure:netapp/backupPolicy:BackupPolicy") +public class BackupPolicy extends com.pulumi.resources.CustomResource { + /** + * The name of the NetApp account in which the NetApp Policy should be created under. Changing this forces a new resource to be created. + * + */ + @Export(name="accountName", refs={String.class}, tree="[0]") + private Output accountName; + + /** + * @return The name of the NetApp account in which the NetApp Policy should be created under. Changing this forces a new resource to be created. + * + */ + public Output accountName() { + return this.accountName; + } + /** + * Provides the number of daily backups to keep, defaults to `2` which is the minimum, maximum is 1019. + * + */ + @Export(name="dailyBackupsToKeep", refs={Integer.class}, tree="[0]") + private Output dailyBackupsToKeep; + + /** + * @return Provides the number of daily backups to keep, defaults to `2` which is the minimum, maximum is 1019. + * + */ + public Output> dailyBackupsToKeep() { + return Codegen.optional(this.dailyBackupsToKeep); + } + /** + * Whether the Backup Policy is enabled. Defaults to `true`. + * + */ + @Export(name="enabled", refs={Boolean.class}, tree="[0]") + private Output enabled; + + /** + * @return Whether the Backup Policy is enabled. Defaults to `true`. + * + */ + public Output> enabled() { + return Codegen.optional(this.enabled); + } + /** + * Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. + * + */ + @Export(name="location", refs={String.class}, tree="[0]") + private Output location; + + /** + * @return Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. + * + */ + public Output location() { + return this.location; + } + /** + * Provides the number of monthly backups to keep, defaults to `1` which is the minimum, maximum is 1019. + * + * > **Note:** Currently, the combined (daily + weekly + monthy) retention counts cannot exceed 1019. + * + */ + @Export(name="monthlyBackupsToKeep", refs={Integer.class}, tree="[0]") + private Output monthlyBackupsToKeep; + + /** + * @return Provides the number of monthly backups to keep, defaults to `1` which is the minimum, maximum is 1019. + * + * > **Note:** Currently, the combined (daily + weekly + monthy) retention counts cannot exceed 1019. + * + */ + public Output> monthlyBackupsToKeep() { + return Codegen.optional(this.monthlyBackupsToKeep); + } + /** + * The name of the NetApp Backup Policy. Changing this forces a new resource to be created. + * + */ + @Export(name="name", refs={String.class}, tree="[0]") + private Output name; + + /** + * @return The name of the NetApp Backup Policy. Changing this forces a new resource to be created. + * + */ + public Output name() { + return this.name; + } + /** + * The name of the resource group where the NetApp Backup Policy should be created. Changing this forces a new resource to be created. + * + */ + @Export(name="resourceGroupName", refs={String.class}, tree="[0]") + private Output resourceGroupName; + + /** + * @return The name of the resource group where the NetApp Backup Policy should be created. Changing this forces a new resource to be created. + * + */ + public Output resourceGroupName() { + return this.resourceGroupName; + } + /** + * A mapping of tags to assign to the resource. + * + */ + @Export(name="tags", refs={Map.class,String.class}, tree="[0,1,1]") + private Output> tags; + + /** + * @return A mapping of tags to assign to the resource. + * + */ + public Output>> tags() { + return Codegen.optional(this.tags); + } + /** + * Provides the number of weekly backups to keep, defaults to `1` which is the minimum, maximum is 1019. + * + */ + @Export(name="weeklyBackupsToKeep", refs={Integer.class}, tree="[0]") + private Output weeklyBackupsToKeep; + + /** + * @return Provides the number of weekly backups to keep, defaults to `1` which is the minimum, maximum is 1019. + * + */ + public Output> weeklyBackupsToKeep() { + return Codegen.optional(this.weeklyBackupsToKeep); + } + + /** + * + * @param name The _unique_ name of the resulting resource. + */ + public BackupPolicy(java.lang.String name) { + this(name, BackupPolicyArgs.Empty); + } + /** + * + * @param name The _unique_ name of the resulting resource. + * @param args The arguments to use to populate this resource's properties. + */ + public BackupPolicy(java.lang.String name, BackupPolicyArgs args) { + this(name, args, null); + } + /** + * + * @param name The _unique_ name of the resulting resource. + * @param args The arguments to use to populate this resource's properties. + * @param options A bag of options that control this resource's behavior. + */ + public BackupPolicy(java.lang.String name, BackupPolicyArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("azure:netapp/backupPolicy:BackupPolicy", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); + } + + private BackupPolicy(java.lang.String name, Output id, @Nullable BackupPolicyState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("azure:netapp/backupPolicy:BackupPolicy", name, state, makeResourceOptions(options, id), false); + } + + private static BackupPolicyArgs makeArgs(BackupPolicyArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? BackupPolicyArgs.Empty : args; + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() + .version(Utilities.getVersion()) + .build(); + return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id); + } + + /** + * Get an existing Host resource's state with the given name, ID, and optional extra + * properties used to qualify the lookup. + * + * @param name The _unique_ name of the resulting resource. + * @param id The _unique_ provider ID of the resource to lookup. + * @param state + * @param options Optional settings to control the behavior of the CustomResource. + */ + public static BackupPolicy get(java.lang.String name, Output id, @Nullable BackupPolicyState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + return new BackupPolicy(name, id, state, options); + } +} diff --git a/sdk/java/src/main/java/com/pulumi/azure/netapp/BackupPolicyArgs.java b/sdk/java/src/main/java/com/pulumi/azure/netapp/BackupPolicyArgs.java new file mode 100644 index 0000000000..11b3217b36 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/azure/netapp/BackupPolicyArgs.java @@ -0,0 +1,397 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.azure.netapp; + +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; +import java.lang.Boolean; +import java.lang.Integer; +import java.lang.String; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + + +public final class BackupPolicyArgs extends com.pulumi.resources.ResourceArgs { + + public static final BackupPolicyArgs Empty = new BackupPolicyArgs(); + + /** + * The name of the NetApp account in which the NetApp Policy should be created under. Changing this forces a new resource to be created. + * + */ + @Import(name="accountName", required=true) + private Output accountName; + + /** + * @return The name of the NetApp account in which the NetApp Policy should be created under. Changing this forces a new resource to be created. + * + */ + public Output accountName() { + return this.accountName; + } + + /** + * Provides the number of daily backups to keep, defaults to `2` which is the minimum, maximum is 1019. + * + */ + @Import(name="dailyBackupsToKeep") + private @Nullable Output dailyBackupsToKeep; + + /** + * @return Provides the number of daily backups to keep, defaults to `2` which is the minimum, maximum is 1019. + * + */ + public Optional> dailyBackupsToKeep() { + return Optional.ofNullable(this.dailyBackupsToKeep); + } + + /** + * Whether the Backup Policy is enabled. Defaults to `true`. + * + */ + @Import(name="enabled") + private @Nullable Output enabled; + + /** + * @return Whether the Backup Policy is enabled. Defaults to `true`. + * + */ + public Optional> enabled() { + return Optional.ofNullable(this.enabled); + } + + /** + * Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. + * + */ + @Import(name="location") + private @Nullable Output location; + + /** + * @return Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. + * + */ + public Optional> location() { + return Optional.ofNullable(this.location); + } + + /** + * Provides the number of monthly backups to keep, defaults to `1` which is the minimum, maximum is 1019. + * + * > **Note:** Currently, the combined (daily + weekly + monthy) retention counts cannot exceed 1019. + * + */ + @Import(name="monthlyBackupsToKeep") + private @Nullable Output monthlyBackupsToKeep; + + /** + * @return Provides the number of monthly backups to keep, defaults to `1` which is the minimum, maximum is 1019. + * + * > **Note:** Currently, the combined (daily + weekly + monthy) retention counts cannot exceed 1019. + * + */ + public Optional> monthlyBackupsToKeep() { + return Optional.ofNullable(this.monthlyBackupsToKeep); + } + + /** + * The name of the NetApp Backup Policy. Changing this forces a new resource to be created. + * + */ + @Import(name="name") + private @Nullable Output name; + + /** + * @return The name of the NetApp Backup Policy. Changing this forces a new resource to be created. + * + */ + public Optional> name() { + return Optional.ofNullable(this.name); + } + + /** + * The name of the resource group where the NetApp Backup Policy should be created. Changing this forces a new resource to be created. + * + */ + @Import(name="resourceGroupName", required=true) + private Output resourceGroupName; + + /** + * @return The name of the resource group where the NetApp Backup Policy should be created. Changing this forces a new resource to be created. + * + */ + public Output resourceGroupName() { + return this.resourceGroupName; + } + + /** + * A mapping of tags to assign to the resource. + * + */ + @Import(name="tags") + private @Nullable Output> tags; + + /** + * @return A mapping of tags to assign to the resource. + * + */ + public Optional>> tags() { + return Optional.ofNullable(this.tags); + } + + /** + * Provides the number of weekly backups to keep, defaults to `1` which is the minimum, maximum is 1019. + * + */ + @Import(name="weeklyBackupsToKeep") + private @Nullable Output weeklyBackupsToKeep; + + /** + * @return Provides the number of weekly backups to keep, defaults to `1` which is the minimum, maximum is 1019. + * + */ + public Optional> weeklyBackupsToKeep() { + return Optional.ofNullable(this.weeklyBackupsToKeep); + } + + private BackupPolicyArgs() {} + + private BackupPolicyArgs(BackupPolicyArgs $) { + this.accountName = $.accountName; + this.dailyBackupsToKeep = $.dailyBackupsToKeep; + this.enabled = $.enabled; + this.location = $.location; + this.monthlyBackupsToKeep = $.monthlyBackupsToKeep; + this.name = $.name; + this.resourceGroupName = $.resourceGroupName; + this.tags = $.tags; + this.weeklyBackupsToKeep = $.weeklyBackupsToKeep; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(BackupPolicyArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private BackupPolicyArgs $; + + public Builder() { + $ = new BackupPolicyArgs(); + } + + public Builder(BackupPolicyArgs defaults) { + $ = new BackupPolicyArgs(Objects.requireNonNull(defaults)); + } + + /** + * @param accountName The name of the NetApp account in which the NetApp Policy should be created under. Changing this forces a new resource to be created. + * + * @return builder + * + */ + public Builder accountName(Output accountName) { + $.accountName = accountName; + return this; + } + + /** + * @param accountName The name of the NetApp account in which the NetApp Policy should be created under. Changing this forces a new resource to be created. + * + * @return builder + * + */ + public Builder accountName(String accountName) { + return accountName(Output.of(accountName)); + } + + /** + * @param dailyBackupsToKeep Provides the number of daily backups to keep, defaults to `2` which is the minimum, maximum is 1019. + * + * @return builder + * + */ + public Builder dailyBackupsToKeep(@Nullable Output dailyBackupsToKeep) { + $.dailyBackupsToKeep = dailyBackupsToKeep; + return this; + } + + /** + * @param dailyBackupsToKeep Provides the number of daily backups to keep, defaults to `2` which is the minimum, maximum is 1019. + * + * @return builder + * + */ + public Builder dailyBackupsToKeep(Integer dailyBackupsToKeep) { + return dailyBackupsToKeep(Output.of(dailyBackupsToKeep)); + } + + /** + * @param enabled Whether the Backup Policy is enabled. Defaults to `true`. + * + * @return builder + * + */ + public Builder enabled(@Nullable Output enabled) { + $.enabled = enabled; + return this; + } + + /** + * @param enabled Whether the Backup Policy is enabled. Defaults to `true`. + * + * @return builder + * + */ + public Builder enabled(Boolean enabled) { + return enabled(Output.of(enabled)); + } + + /** + * @param location Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. + * + * @return builder + * + */ + public Builder location(@Nullable Output location) { + $.location = location; + return this; + } + + /** + * @param location Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. + * + * @return builder + * + */ + public Builder location(String location) { + return location(Output.of(location)); + } + + /** + * @param monthlyBackupsToKeep Provides the number of monthly backups to keep, defaults to `1` which is the minimum, maximum is 1019. + * + * > **Note:** Currently, the combined (daily + weekly + monthy) retention counts cannot exceed 1019. + * + * @return builder + * + */ + public Builder monthlyBackupsToKeep(@Nullable Output monthlyBackupsToKeep) { + $.monthlyBackupsToKeep = monthlyBackupsToKeep; + return this; + } + + /** + * @param monthlyBackupsToKeep Provides the number of monthly backups to keep, defaults to `1` which is the minimum, maximum is 1019. + * + * > **Note:** Currently, the combined (daily + weekly + monthy) retention counts cannot exceed 1019. + * + * @return builder + * + */ + public Builder monthlyBackupsToKeep(Integer monthlyBackupsToKeep) { + return monthlyBackupsToKeep(Output.of(monthlyBackupsToKeep)); + } + + /** + * @param name The name of the NetApp Backup Policy. Changing this forces a new resource to be created. + * + * @return builder + * + */ + public Builder name(@Nullable Output name) { + $.name = name; + return this; + } + + /** + * @param name The name of the NetApp Backup Policy. Changing this forces a new resource to be created. + * + * @return builder + * + */ + public Builder name(String name) { + return name(Output.of(name)); + } + + /** + * @param resourceGroupName The name of the resource group where the NetApp Backup Policy should be created. Changing this forces a new resource to be created. + * + * @return builder + * + */ + public Builder resourceGroupName(Output resourceGroupName) { + $.resourceGroupName = resourceGroupName; + return this; + } + + /** + * @param resourceGroupName The name of the resource group where the NetApp Backup Policy should be created. Changing this forces a new resource to be created. + * + * @return builder + * + */ + public Builder resourceGroupName(String resourceGroupName) { + return resourceGroupName(Output.of(resourceGroupName)); + } + + /** + * @param tags A mapping of tags to assign to the resource. + * + * @return builder + * + */ + public Builder tags(@Nullable Output> tags) { + $.tags = tags; + return this; + } + + /** + * @param tags A mapping of tags to assign to the resource. + * + * @return builder + * + */ + public Builder tags(Map tags) { + return tags(Output.of(tags)); + } + + /** + * @param weeklyBackupsToKeep Provides the number of weekly backups to keep, defaults to `1` which is the minimum, maximum is 1019. + * + * @return builder + * + */ + public Builder weeklyBackupsToKeep(@Nullable Output weeklyBackupsToKeep) { + $.weeklyBackupsToKeep = weeklyBackupsToKeep; + return this; + } + + /** + * @param weeklyBackupsToKeep Provides the number of weekly backups to keep, defaults to `1` which is the minimum, maximum is 1019. + * + * @return builder + * + */ + public Builder weeklyBackupsToKeep(Integer weeklyBackupsToKeep) { + return weeklyBackupsToKeep(Output.of(weeklyBackupsToKeep)); + } + + public BackupPolicyArgs build() { + if ($.accountName == null) { + throw new MissingRequiredPropertyException("BackupPolicyArgs", "accountName"); + } + if ($.resourceGroupName == null) { + throw new MissingRequiredPropertyException("BackupPolicyArgs", "resourceGroupName"); + } + return $; + } + } + +} diff --git a/sdk/java/src/main/java/com/pulumi/azure/netapp/BackupVault.java b/sdk/java/src/main/java/com/pulumi/azure/netapp/BackupVault.java new file mode 100644 index 0000000000..522dc17f72 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/azure/netapp/BackupVault.java @@ -0,0 +1,211 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.azure.netapp; + +import com.pulumi.azure.Utilities; +import com.pulumi.azure.netapp.BackupVaultArgs; +import com.pulumi.azure.netapp.inputs.BackupVaultState; +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Export; +import com.pulumi.core.annotations.ResourceType; +import com.pulumi.core.internal.Codegen; +import java.lang.String; +import java.util.Map; +import java.util.Optional; +import javax.annotation.Nullable; + +/** + * Manages a NetApp Backup Vault. + * + * ## NetApp Backup Vault Usage + * + * <!--Start PulumiCodeChooser --> + *
+ * {@code
+ * package generated_program;
+ * 
+ * import com.pulumi.Context;
+ * import com.pulumi.Pulumi;
+ * import com.pulumi.core.Output;
+ * import com.pulumi.azure.core.ResourceGroup;
+ * import com.pulumi.azure.core.ResourceGroupArgs;
+ * import com.pulumi.azure.netapp.Account;
+ * import com.pulumi.azure.netapp.AccountArgs;
+ * import com.pulumi.azure.netapp.BackupVault;
+ * import com.pulumi.azure.netapp.BackupVaultArgs;
+ * import java.util.List;
+ * import java.util.ArrayList;
+ * import java.util.Map;
+ * import java.io.File;
+ * import java.nio.file.Files;
+ * import java.nio.file.Paths;
+ * 
+ * public class App {
+ *     public static void main(String[] args) {
+ *         Pulumi.run(App::stack);
+ *     }
+ * 
+ *     public static void stack(Context ctx) {
+ *         var example = new ResourceGroup("example", ResourceGroupArgs.builder()
+ *             .name("example-resources")
+ *             .location("West Europe")
+ *             .build());
+ * 
+ *         var exampleAccount = new Account("exampleAccount", AccountArgs.builder()
+ *             .name("example-netappaccount")
+ *             .location(example.location())
+ *             .resourceGroupName(example.name())
+ *             .build());
+ * 
+ *         var exampleBackupVault = new BackupVault("exampleBackupVault", BackupVaultArgs.builder()
+ *             .name("example-netappbackupvault")
+ *             .resourceGroupName(example.name())
+ *             .location(example.location())
+ *             .accountName(exampleAccount.name())
+ *             .build());
+ * 
+ *     }
+ * }
+ * }
+ * 
+ * <!--End PulumiCodeChooser --> + * + * ## Import + * + * NetApp Backup Vault can be imported using the `resource id`, e.g. + * + * ```sh + * $ pulumi import azure:netapp/backupVault:BackupVault example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.NetApp/netAppAccounts/account1/backupVaults/backupVault1 + * ``` + * + */ +@ResourceType(type="azure:netapp/backupVault:BackupVault") +public class BackupVault extends com.pulumi.resources.CustomResource { + /** + * The name of the NetApp account in which the NetApp Vault should be created under. Changing this forces a new resource to be created. + * + */ + @Export(name="accountName", refs={String.class}, tree="[0]") + private Output accountName; + + /** + * @return The name of the NetApp account in which the NetApp Vault should be created under. Changing this forces a new resource to be created. + * + */ + public Output accountName() { + return this.accountName; + } + /** + * Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. + * + */ + @Export(name="location", refs={String.class}, tree="[0]") + private Output location; + + /** + * @return Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. + * + */ + public Output location() { + return this.location; + } + /** + * The name of the NetApp Backup Vault. Changing this forces a new resource to be created. + * + */ + @Export(name="name", refs={String.class}, tree="[0]") + private Output name; + + /** + * @return The name of the NetApp Backup Vault. Changing this forces a new resource to be created. + * + */ + public Output name() { + return this.name; + } + /** + * The name of the resource group where the NetApp Backup Vault should be created. Changing this forces a new resource to be created. + * + */ + @Export(name="resourceGroupName", refs={String.class}, tree="[0]") + private Output resourceGroupName; + + /** + * @return The name of the resource group where the NetApp Backup Vault should be created. Changing this forces a new resource to be created. + * + */ + public Output resourceGroupName() { + return this.resourceGroupName; + } + /** + * A mapping of tags to assign to the resource. + * + */ + @Export(name="tags", refs={Map.class,String.class}, tree="[0,1,1]") + private Output> tags; + + /** + * @return A mapping of tags to assign to the resource. + * + */ + public Output>> tags() { + return Codegen.optional(this.tags); + } + + /** + * + * @param name The _unique_ name of the resulting resource. + */ + public BackupVault(java.lang.String name) { + this(name, BackupVaultArgs.Empty); + } + /** + * + * @param name The _unique_ name of the resulting resource. + * @param args The arguments to use to populate this resource's properties. + */ + public BackupVault(java.lang.String name, BackupVaultArgs args) { + this(name, args, null); + } + /** + * + * @param name The _unique_ name of the resulting resource. + * @param args The arguments to use to populate this resource's properties. + * @param options A bag of options that control this resource's behavior. + */ + public BackupVault(java.lang.String name, BackupVaultArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("azure:netapp/backupVault:BackupVault", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); + } + + private BackupVault(java.lang.String name, Output id, @Nullable BackupVaultState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("azure:netapp/backupVault:BackupVault", name, state, makeResourceOptions(options, id), false); + } + + private static BackupVaultArgs makeArgs(BackupVaultArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? BackupVaultArgs.Empty : args; + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() + .version(Utilities.getVersion()) + .build(); + return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id); + } + + /** + * Get an existing Host resource's state with the given name, ID, and optional extra + * properties used to qualify the lookup. + * + * @param name The _unique_ name of the resulting resource. + * @param id The _unique_ provider ID of the resource to lookup. + * @param state + * @param options Optional settings to control the behavior of the CustomResource. + */ + public static BackupVault get(java.lang.String name, Output id, @Nullable BackupVaultState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + return new BackupVault(name, id, state, options); + } +} diff --git a/sdk/java/src/main/java/com/pulumi/azure/netapp/BackupVaultArgs.java b/sdk/java/src/main/java/com/pulumi/azure/netapp/BackupVaultArgs.java new file mode 100644 index 0000000000..dd96085096 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/azure/netapp/BackupVaultArgs.java @@ -0,0 +1,239 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.azure.netapp; + +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; +import java.lang.String; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + + +public final class BackupVaultArgs extends com.pulumi.resources.ResourceArgs { + + public static final BackupVaultArgs Empty = new BackupVaultArgs(); + + /** + * The name of the NetApp account in which the NetApp Vault should be created under. Changing this forces a new resource to be created. + * + */ + @Import(name="accountName", required=true) + private Output accountName; + + /** + * @return The name of the NetApp account in which the NetApp Vault should be created under. Changing this forces a new resource to be created. + * + */ + public Output accountName() { + return this.accountName; + } + + /** + * Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. + * + */ + @Import(name="location") + private @Nullable Output location; + + /** + * @return Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. + * + */ + public Optional> location() { + return Optional.ofNullable(this.location); + } + + /** + * The name of the NetApp Backup Vault. Changing this forces a new resource to be created. + * + */ + @Import(name="name") + private @Nullable Output name; + + /** + * @return The name of the NetApp Backup Vault. Changing this forces a new resource to be created. + * + */ + public Optional> name() { + return Optional.ofNullable(this.name); + } + + /** + * The name of the resource group where the NetApp Backup Vault should be created. Changing this forces a new resource to be created. + * + */ + @Import(name="resourceGroupName", required=true) + private Output resourceGroupName; + + /** + * @return The name of the resource group where the NetApp Backup Vault should be created. Changing this forces a new resource to be created. + * + */ + public Output resourceGroupName() { + return this.resourceGroupName; + } + + /** + * A mapping of tags to assign to the resource. + * + */ + @Import(name="tags") + private @Nullable Output> tags; + + /** + * @return A mapping of tags to assign to the resource. + * + */ + public Optional>> tags() { + return Optional.ofNullable(this.tags); + } + + private BackupVaultArgs() {} + + private BackupVaultArgs(BackupVaultArgs $) { + this.accountName = $.accountName; + this.location = $.location; + this.name = $.name; + this.resourceGroupName = $.resourceGroupName; + this.tags = $.tags; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(BackupVaultArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private BackupVaultArgs $; + + public Builder() { + $ = new BackupVaultArgs(); + } + + public Builder(BackupVaultArgs defaults) { + $ = new BackupVaultArgs(Objects.requireNonNull(defaults)); + } + + /** + * @param accountName The name of the NetApp account in which the NetApp Vault should be created under. Changing this forces a new resource to be created. + * + * @return builder + * + */ + public Builder accountName(Output accountName) { + $.accountName = accountName; + return this; + } + + /** + * @param accountName The name of the NetApp account in which the NetApp Vault should be created under. Changing this forces a new resource to be created. + * + * @return builder + * + */ + public Builder accountName(String accountName) { + return accountName(Output.of(accountName)); + } + + /** + * @param location Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. + * + * @return builder + * + */ + public Builder location(@Nullable Output location) { + $.location = location; + return this; + } + + /** + * @param location Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. + * + * @return builder + * + */ + public Builder location(String location) { + return location(Output.of(location)); + } + + /** + * @param name The name of the NetApp Backup Vault. Changing this forces a new resource to be created. + * + * @return builder + * + */ + public Builder name(@Nullable Output name) { + $.name = name; + return this; + } + + /** + * @param name The name of the NetApp Backup Vault. Changing this forces a new resource to be created. + * + * @return builder + * + */ + public Builder name(String name) { + return name(Output.of(name)); + } + + /** + * @param resourceGroupName The name of the resource group where the NetApp Backup Vault should be created. Changing this forces a new resource to be created. + * + * @return builder + * + */ + public Builder resourceGroupName(Output resourceGroupName) { + $.resourceGroupName = resourceGroupName; + return this; + } + + /** + * @param resourceGroupName The name of the resource group where the NetApp Backup Vault should be created. Changing this forces a new resource to be created. + * + * @return builder + * + */ + public Builder resourceGroupName(String resourceGroupName) { + return resourceGroupName(Output.of(resourceGroupName)); + } + + /** + * @param tags A mapping of tags to assign to the resource. + * + * @return builder + * + */ + public Builder tags(@Nullable Output> tags) { + $.tags = tags; + return this; + } + + /** + * @param tags A mapping of tags to assign to the resource. + * + * @return builder + * + */ + public Builder tags(Map tags) { + return tags(Output.of(tags)); + } + + public BackupVaultArgs build() { + if ($.accountName == null) { + throw new MissingRequiredPropertyException("BackupVaultArgs", "accountName"); + } + if ($.resourceGroupName == null) { + throw new MissingRequiredPropertyException("BackupVaultArgs", "resourceGroupName"); + } + return $; + } + } + +} diff --git a/sdk/java/src/main/java/com/pulumi/azure/netapp/NetappFunctions.java b/sdk/java/src/main/java/com/pulumi/azure/netapp/NetappFunctions.java index 20f9ba4314..41b454a9bb 100644 --- a/sdk/java/src/main/java/com/pulumi/azure/netapp/NetappFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/azure/netapp/NetappFunctions.java @@ -8,6 +8,10 @@ import com.pulumi.azure.netapp.inputs.GetAccountEncryptionArgs; import com.pulumi.azure.netapp.inputs.GetAccountEncryptionPlainArgs; import com.pulumi.azure.netapp.inputs.GetAccountPlainArgs; +import com.pulumi.azure.netapp.inputs.GetBackupPolicyArgs; +import com.pulumi.azure.netapp.inputs.GetBackupPolicyPlainArgs; +import com.pulumi.azure.netapp.inputs.GetBackupVaultArgs; +import com.pulumi.azure.netapp.inputs.GetBackupVaultPlainArgs; import com.pulumi.azure.netapp.inputs.GetPoolArgs; import com.pulumi.azure.netapp.inputs.GetPoolPlainArgs; import com.pulumi.azure.netapp.inputs.GetSnapshotArgs; @@ -22,6 +26,8 @@ import com.pulumi.azure.netapp.inputs.GetVolumeQuotaRulePlainArgs; import com.pulumi.azure.netapp.outputs.GetAccountEncryptionResult; import com.pulumi.azure.netapp.outputs.GetAccountResult; +import com.pulumi.azure.netapp.outputs.GetBackupPolicyResult; +import com.pulumi.azure.netapp.outputs.GetBackupVaultResult; import com.pulumi.azure.netapp.outputs.GetPoolResult; import com.pulumi.azure.netapp.outputs.GetSnapshotPolicyResult; import com.pulumi.azure.netapp.outputs.GetSnapshotResult; @@ -383,6 +389,366 @@ public static Output getAccountEncryption(GetAccount public static CompletableFuture getAccountEncryptionPlain(GetAccountEncryptionPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("azure:netapp/getAccountEncryption:getAccountEncryption", TypeShape.of(GetAccountEncryptionResult.class), args, Utilities.withVersion(options)); } + /** + * Use this data source to access information about an existing NetApp Backup Vault. + * + * ## NetApp Backup Policy Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.azure.netapp.NetappFunctions;
+     * import com.pulumi.azure.netapp.inputs.GetBackupPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = NetappFunctions.getBackupPolicy(GetBackupPolicyArgs.builder()
+     *             .resourceGroupName("example-resource-group")
+     *             .accountName("example-netappaccount")
+     *             .name("example-backuppolicy")
+     *             .build());
+     * 
+     *         ctx.export("backupPolicyId", example.applyValue(getBackupPolicyResult -> getBackupPolicyResult.id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getBackupPolicy(GetBackupPolicyArgs args) { + return getBackupPolicy(args, InvokeOptions.Empty); + } + /** + * Use this data source to access information about an existing NetApp Backup Vault. + * + * ## NetApp Backup Policy Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.azure.netapp.NetappFunctions;
+     * import com.pulumi.azure.netapp.inputs.GetBackupPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = NetappFunctions.getBackupPolicy(GetBackupPolicyArgs.builder()
+     *             .resourceGroupName("example-resource-group")
+     *             .accountName("example-netappaccount")
+     *             .name("example-backuppolicy")
+     *             .build());
+     * 
+     *         ctx.export("backupPolicyId", example.applyValue(getBackupPolicyResult -> getBackupPolicyResult.id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static CompletableFuture getBackupPolicyPlain(GetBackupPolicyPlainArgs args) { + return getBackupPolicyPlain(args, InvokeOptions.Empty); + } + /** + * Use this data source to access information about an existing NetApp Backup Vault. + * + * ## NetApp Backup Policy Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.azure.netapp.NetappFunctions;
+     * import com.pulumi.azure.netapp.inputs.GetBackupPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = NetappFunctions.getBackupPolicy(GetBackupPolicyArgs.builder()
+     *             .resourceGroupName("example-resource-group")
+     *             .accountName("example-netappaccount")
+     *             .name("example-backuppolicy")
+     *             .build());
+     * 
+     *         ctx.export("backupPolicyId", example.applyValue(getBackupPolicyResult -> getBackupPolicyResult.id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getBackupPolicy(GetBackupPolicyArgs args, InvokeOptions options) { + return Deployment.getInstance().invoke("azure:netapp/getBackupPolicy:getBackupPolicy", TypeShape.of(GetBackupPolicyResult.class), args, Utilities.withVersion(options)); + } + /** + * Use this data source to access information about an existing NetApp Backup Vault. + * + * ## NetApp Backup Policy Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.azure.netapp.NetappFunctions;
+     * import com.pulumi.azure.netapp.inputs.GetBackupPolicyArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = NetappFunctions.getBackupPolicy(GetBackupPolicyArgs.builder()
+     *             .resourceGroupName("example-resource-group")
+     *             .accountName("example-netappaccount")
+     *             .name("example-backuppolicy")
+     *             .build());
+     * 
+     *         ctx.export("backupPolicyId", example.applyValue(getBackupPolicyResult -> getBackupPolicyResult.id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static CompletableFuture getBackupPolicyPlain(GetBackupPolicyPlainArgs args, InvokeOptions options) { + return Deployment.getInstance().invokeAsync("azure:netapp/getBackupPolicy:getBackupPolicy", TypeShape.of(GetBackupPolicyResult.class), args, Utilities.withVersion(options)); + } + /** + * Use this data source to access information about an existing NetApp Backup Vault. + * + * ## NetApp Backup Vault Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.azure.netapp.NetappFunctions;
+     * import com.pulumi.azure.netapp.inputs.GetBackupVaultArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = NetappFunctions.getBackupVault(GetBackupVaultArgs.builder()
+     *             .resourceGroupName("example-resource-group")
+     *             .accountName("example-netappaccount")
+     *             .name("example-backupvault")
+     *             .build());
+     * 
+     *         ctx.export("backupVaultId", example.applyValue(getBackupVaultResult -> getBackupVaultResult.id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getBackupVault(GetBackupVaultArgs args) { + return getBackupVault(args, InvokeOptions.Empty); + } + /** + * Use this data source to access information about an existing NetApp Backup Vault. + * + * ## NetApp Backup Vault Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.azure.netapp.NetappFunctions;
+     * import com.pulumi.azure.netapp.inputs.GetBackupVaultArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = NetappFunctions.getBackupVault(GetBackupVaultArgs.builder()
+     *             .resourceGroupName("example-resource-group")
+     *             .accountName("example-netappaccount")
+     *             .name("example-backupvault")
+     *             .build());
+     * 
+     *         ctx.export("backupVaultId", example.applyValue(getBackupVaultResult -> getBackupVaultResult.id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static CompletableFuture getBackupVaultPlain(GetBackupVaultPlainArgs args) { + return getBackupVaultPlain(args, InvokeOptions.Empty); + } + /** + * Use this data source to access information about an existing NetApp Backup Vault. + * + * ## NetApp Backup Vault Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.azure.netapp.NetappFunctions;
+     * import com.pulumi.azure.netapp.inputs.GetBackupVaultArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = NetappFunctions.getBackupVault(GetBackupVaultArgs.builder()
+     *             .resourceGroupName("example-resource-group")
+     *             .accountName("example-netappaccount")
+     *             .name("example-backupvault")
+     *             .build());
+     * 
+     *         ctx.export("backupVaultId", example.applyValue(getBackupVaultResult -> getBackupVaultResult.id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getBackupVault(GetBackupVaultArgs args, InvokeOptions options) { + return Deployment.getInstance().invoke("azure:netapp/getBackupVault:getBackupVault", TypeShape.of(GetBackupVaultResult.class), args, Utilities.withVersion(options)); + } + /** + * Use this data source to access information about an existing NetApp Backup Vault. + * + * ## NetApp Backup Vault Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.azure.netapp.NetappFunctions;
+     * import com.pulumi.azure.netapp.inputs.GetBackupVaultArgs;
+     * import java.util.List;
+     * import java.util.ArrayList;
+     * import java.util.Map;
+     * import java.io.File;
+     * import java.nio.file.Files;
+     * import java.nio.file.Paths;
+     * 
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
+     * 
+     *     public static void stack(Context ctx) {
+     *         final var example = NetappFunctions.getBackupVault(GetBackupVaultArgs.builder()
+     *             .resourceGroupName("example-resource-group")
+     *             .accountName("example-netappaccount")
+     *             .name("example-backupvault")
+     *             .build());
+     * 
+     *         ctx.export("backupVaultId", example.applyValue(getBackupVaultResult -> getBackupVaultResult.id()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static CompletableFuture getBackupVaultPlain(GetBackupVaultPlainArgs args, InvokeOptions options) { + return Deployment.getInstance().invokeAsync("azure:netapp/getBackupVault:getBackupVault", TypeShape.of(GetBackupVaultResult.class), args, Utilities.withVersion(options)); + } /** * Uses this data source to access information about an existing NetApp Pool. * diff --git a/sdk/java/src/main/java/com/pulumi/azure/netapp/Volume.java b/sdk/java/src/main/java/com/pulumi/azure/netapp/Volume.java index 3d1ba7fb5a..aa410ec0f4 100644 --- a/sdk/java/src/main/java/com/pulumi/azure/netapp/Volume.java +++ b/sdk/java/src/main/java/com/pulumi/azure/netapp/Volume.java @@ -6,6 +6,7 @@ import com.pulumi.azure.Utilities; import com.pulumi.azure.netapp.VolumeArgs; import com.pulumi.azure.netapp.inputs.VolumeState; +import com.pulumi.azure.netapp.outputs.VolumeDataProtectionBackupPolicy; import com.pulumi.azure.netapp.outputs.VolumeDataProtectionReplication; import com.pulumi.azure.netapp.outputs.VolumeDataProtectionSnapshotPolicy; import com.pulumi.azure.netapp.outputs.VolumeExportPolicyRule; @@ -23,6 +24,10 @@ import javax.annotation.Nullable; /** + * Manages a NetApp Volume. + * + * !>**IMPORTANT:** This resource uses a feature to prevent deletion called `prevent_volume_destruction`, defaulting to `true`. It is intentionally set to `true` to prevent the possibility of accidental data loss. The example in this page shows all possible protection options you can apply, it is using same values as the defaults. + * * ## Import * * NetApp Volumes can be imported using the `resource id`, e.g. @@ -76,6 +81,20 @@ public Output> azureVmwareDataStoreEnabled() { public Output> createFromSnapshotResourceId() { return Codegen.optional(this.createFromSnapshotResourceId); } + /** + * A `data_protection_backup_policy` block as defined below. + * + */ + @Export(name="dataProtectionBackupPolicy", refs={VolumeDataProtectionBackupPolicy.class}, tree="[0]") + private Output dataProtectionBackupPolicy; + + /** + * @return A `data_protection_backup_policy` block as defined below. + * + */ + public Output> dataProtectionBackupPolicy() { + return Codegen.optional(this.dataProtectionBackupPolicy); + } /** * A `data_protection_replication` block as defined below. Changing this forces a new resource to be created. * @@ -349,14 +368,14 @@ public Output> smbNonBrowsableEnabled() { * */ @Export(name="snapshotDirectoryVisible", refs={Boolean.class}, tree="[0]") - private Output snapshotDirectoryVisible; + private Output snapshotDirectoryVisible; /** * @return Specifies whether the .snapshot (NFS clients) or ~snapshot (SMB clients) path of a volume is visible, default value is true. * */ - public Output snapshotDirectoryVisible() { - return this.snapshotDirectoryVisible; + public Output> snapshotDirectoryVisible() { + return Codegen.optional(this.snapshotDirectoryVisible); } /** * The maximum Storage Quota allowed for a file system in Gigabytes. diff --git a/sdk/java/src/main/java/com/pulumi/azure/netapp/VolumeArgs.java b/sdk/java/src/main/java/com/pulumi/azure/netapp/VolumeArgs.java index f97925c37c..b74f1571f6 100644 --- a/sdk/java/src/main/java/com/pulumi/azure/netapp/VolumeArgs.java +++ b/sdk/java/src/main/java/com/pulumi/azure/netapp/VolumeArgs.java @@ -3,6 +3,7 @@ package com.pulumi.azure.netapp; +import com.pulumi.azure.netapp.inputs.VolumeDataProtectionBackupPolicyArgs; import com.pulumi.azure.netapp.inputs.VolumeDataProtectionReplicationArgs; import com.pulumi.azure.netapp.inputs.VolumeDataProtectionSnapshotPolicyArgs; import com.pulumi.azure.netapp.inputs.VolumeExportPolicyRuleArgs; @@ -69,6 +70,21 @@ public Optional> createFromSnapshotResourceId() { return Optional.ofNullable(this.createFromSnapshotResourceId); } + /** + * A `data_protection_backup_policy` block as defined below. + * + */ + @Import(name="dataProtectionBackupPolicy") + private @Nullable Output dataProtectionBackupPolicy; + + /** + * @return A `data_protection_backup_policy` block as defined below. + * + */ + public Optional> dataProtectionBackupPolicy() { + return Optional.ofNullable(this.dataProtectionBackupPolicy); + } + /** * A `data_protection_replication` block as defined below. Changing this forces a new resource to be created. * @@ -456,6 +472,7 @@ private VolumeArgs(VolumeArgs $) { this.accountName = $.accountName; this.azureVmwareDataStoreEnabled = $.azureVmwareDataStoreEnabled; this.createFromSnapshotResourceId = $.createFromSnapshotResourceId; + this.dataProtectionBackupPolicy = $.dataProtectionBackupPolicy; this.dataProtectionReplication = $.dataProtectionReplication; this.dataProtectionSnapshotPolicy = $.dataProtectionSnapshotPolicy; this.encryptionKeySource = $.encryptionKeySource; @@ -564,6 +581,27 @@ public Builder createFromSnapshotResourceId(String createFromSnapshotResourceId) return createFromSnapshotResourceId(Output.of(createFromSnapshotResourceId)); } + /** + * @param dataProtectionBackupPolicy A `data_protection_backup_policy` block as defined below. + * + * @return builder + * + */ + public Builder dataProtectionBackupPolicy(@Nullable Output dataProtectionBackupPolicy) { + $.dataProtectionBackupPolicy = dataProtectionBackupPolicy; + return this; + } + + /** + * @param dataProtectionBackupPolicy A `data_protection_backup_policy` block as defined below. + * + * @return builder + * + */ + public Builder dataProtectionBackupPolicy(VolumeDataProtectionBackupPolicyArgs dataProtectionBackupPolicy) { + return dataProtectionBackupPolicy(Output.of(dataProtectionBackupPolicy)); + } + /** * @param dataProtectionReplication A `data_protection_replication` block as defined below. Changing this forces a new resource to be created. * diff --git a/sdk/java/src/main/java/com/pulumi/azure/netapp/inputs/BackupPolicyState.java b/sdk/java/src/main/java/com/pulumi/azure/netapp/inputs/BackupPolicyState.java new file mode 100644 index 0000000000..69c54445a3 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/azure/netapp/inputs/BackupPolicyState.java @@ -0,0 +1,390 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.azure.netapp.inputs; + +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import java.lang.Boolean; +import java.lang.Integer; +import java.lang.String; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + + +public final class BackupPolicyState extends com.pulumi.resources.ResourceArgs { + + public static final BackupPolicyState Empty = new BackupPolicyState(); + + /** + * The name of the NetApp account in which the NetApp Policy should be created under. Changing this forces a new resource to be created. + * + */ + @Import(name="accountName") + private @Nullable Output accountName; + + /** + * @return The name of the NetApp account in which the NetApp Policy should be created under. Changing this forces a new resource to be created. + * + */ + public Optional> accountName() { + return Optional.ofNullable(this.accountName); + } + + /** + * Provides the number of daily backups to keep, defaults to `2` which is the minimum, maximum is 1019. + * + */ + @Import(name="dailyBackupsToKeep") + private @Nullable Output dailyBackupsToKeep; + + /** + * @return Provides the number of daily backups to keep, defaults to `2` which is the minimum, maximum is 1019. + * + */ + public Optional> dailyBackupsToKeep() { + return Optional.ofNullable(this.dailyBackupsToKeep); + } + + /** + * Whether the Backup Policy is enabled. Defaults to `true`. + * + */ + @Import(name="enabled") + private @Nullable Output enabled; + + /** + * @return Whether the Backup Policy is enabled. Defaults to `true`. + * + */ + public Optional> enabled() { + return Optional.ofNullable(this.enabled); + } + + /** + * Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. + * + */ + @Import(name="location") + private @Nullable Output location; + + /** + * @return Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. + * + */ + public Optional> location() { + return Optional.ofNullable(this.location); + } + + /** + * Provides the number of monthly backups to keep, defaults to `1` which is the minimum, maximum is 1019. + * + * > **Note:** Currently, the combined (daily + weekly + monthy) retention counts cannot exceed 1019. + * + */ + @Import(name="monthlyBackupsToKeep") + private @Nullable Output monthlyBackupsToKeep; + + /** + * @return Provides the number of monthly backups to keep, defaults to `1` which is the minimum, maximum is 1019. + * + * > **Note:** Currently, the combined (daily + weekly + monthy) retention counts cannot exceed 1019. + * + */ + public Optional> monthlyBackupsToKeep() { + return Optional.ofNullable(this.monthlyBackupsToKeep); + } + + /** + * The name of the NetApp Backup Policy. Changing this forces a new resource to be created. + * + */ + @Import(name="name") + private @Nullable Output name; + + /** + * @return The name of the NetApp Backup Policy. Changing this forces a new resource to be created. + * + */ + public Optional> name() { + return Optional.ofNullable(this.name); + } + + /** + * The name of the resource group where the NetApp Backup Policy should be created. Changing this forces a new resource to be created. + * + */ + @Import(name="resourceGroupName") + private @Nullable Output resourceGroupName; + + /** + * @return The name of the resource group where the NetApp Backup Policy should be created. Changing this forces a new resource to be created. + * + */ + public Optional> resourceGroupName() { + return Optional.ofNullable(this.resourceGroupName); + } + + /** + * A mapping of tags to assign to the resource. + * + */ + @Import(name="tags") + private @Nullable Output> tags; + + /** + * @return A mapping of tags to assign to the resource. + * + */ + public Optional>> tags() { + return Optional.ofNullable(this.tags); + } + + /** + * Provides the number of weekly backups to keep, defaults to `1` which is the minimum, maximum is 1019. + * + */ + @Import(name="weeklyBackupsToKeep") + private @Nullable Output weeklyBackupsToKeep; + + /** + * @return Provides the number of weekly backups to keep, defaults to `1` which is the minimum, maximum is 1019. + * + */ + public Optional> weeklyBackupsToKeep() { + return Optional.ofNullable(this.weeklyBackupsToKeep); + } + + private BackupPolicyState() {} + + private BackupPolicyState(BackupPolicyState $) { + this.accountName = $.accountName; + this.dailyBackupsToKeep = $.dailyBackupsToKeep; + this.enabled = $.enabled; + this.location = $.location; + this.monthlyBackupsToKeep = $.monthlyBackupsToKeep; + this.name = $.name; + this.resourceGroupName = $.resourceGroupName; + this.tags = $.tags; + this.weeklyBackupsToKeep = $.weeklyBackupsToKeep; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(BackupPolicyState defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private BackupPolicyState $; + + public Builder() { + $ = new BackupPolicyState(); + } + + public Builder(BackupPolicyState defaults) { + $ = new BackupPolicyState(Objects.requireNonNull(defaults)); + } + + /** + * @param accountName The name of the NetApp account in which the NetApp Policy should be created under. Changing this forces a new resource to be created. + * + * @return builder + * + */ + public Builder accountName(@Nullable Output accountName) { + $.accountName = accountName; + return this; + } + + /** + * @param accountName The name of the NetApp account in which the NetApp Policy should be created under. Changing this forces a new resource to be created. + * + * @return builder + * + */ + public Builder accountName(String accountName) { + return accountName(Output.of(accountName)); + } + + /** + * @param dailyBackupsToKeep Provides the number of daily backups to keep, defaults to `2` which is the minimum, maximum is 1019. + * + * @return builder + * + */ + public Builder dailyBackupsToKeep(@Nullable Output dailyBackupsToKeep) { + $.dailyBackupsToKeep = dailyBackupsToKeep; + return this; + } + + /** + * @param dailyBackupsToKeep Provides the number of daily backups to keep, defaults to `2` which is the minimum, maximum is 1019. + * + * @return builder + * + */ + public Builder dailyBackupsToKeep(Integer dailyBackupsToKeep) { + return dailyBackupsToKeep(Output.of(dailyBackupsToKeep)); + } + + /** + * @param enabled Whether the Backup Policy is enabled. Defaults to `true`. + * + * @return builder + * + */ + public Builder enabled(@Nullable Output enabled) { + $.enabled = enabled; + return this; + } + + /** + * @param enabled Whether the Backup Policy is enabled. Defaults to `true`. + * + * @return builder + * + */ + public Builder enabled(Boolean enabled) { + return enabled(Output.of(enabled)); + } + + /** + * @param location Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. + * + * @return builder + * + */ + public Builder location(@Nullable Output location) { + $.location = location; + return this; + } + + /** + * @param location Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. + * + * @return builder + * + */ + public Builder location(String location) { + return location(Output.of(location)); + } + + /** + * @param monthlyBackupsToKeep Provides the number of monthly backups to keep, defaults to `1` which is the minimum, maximum is 1019. + * + * > **Note:** Currently, the combined (daily + weekly + monthy) retention counts cannot exceed 1019. + * + * @return builder + * + */ + public Builder monthlyBackupsToKeep(@Nullable Output monthlyBackupsToKeep) { + $.monthlyBackupsToKeep = monthlyBackupsToKeep; + return this; + } + + /** + * @param monthlyBackupsToKeep Provides the number of monthly backups to keep, defaults to `1` which is the minimum, maximum is 1019. + * + * > **Note:** Currently, the combined (daily + weekly + monthy) retention counts cannot exceed 1019. + * + * @return builder + * + */ + public Builder monthlyBackupsToKeep(Integer monthlyBackupsToKeep) { + return monthlyBackupsToKeep(Output.of(monthlyBackupsToKeep)); + } + + /** + * @param name The name of the NetApp Backup Policy. Changing this forces a new resource to be created. + * + * @return builder + * + */ + public Builder name(@Nullable Output name) { + $.name = name; + return this; + } + + /** + * @param name The name of the NetApp Backup Policy. Changing this forces a new resource to be created. + * + * @return builder + * + */ + public Builder name(String name) { + return name(Output.of(name)); + } + + /** + * @param resourceGroupName The name of the resource group where the NetApp Backup Policy should be created. Changing this forces a new resource to be created. + * + * @return builder + * + */ + public Builder resourceGroupName(@Nullable Output resourceGroupName) { + $.resourceGroupName = resourceGroupName; + return this; + } + + /** + * @param resourceGroupName The name of the resource group where the NetApp Backup Policy should be created. Changing this forces a new resource to be created. + * + * @return builder + * + */ + public Builder resourceGroupName(String resourceGroupName) { + return resourceGroupName(Output.of(resourceGroupName)); + } + + /** + * @param tags A mapping of tags to assign to the resource. + * + * @return builder + * + */ + public Builder tags(@Nullable Output> tags) { + $.tags = tags; + return this; + } + + /** + * @param tags A mapping of tags to assign to the resource. + * + * @return builder + * + */ + public Builder tags(Map tags) { + return tags(Output.of(tags)); + } + + /** + * @param weeklyBackupsToKeep Provides the number of weekly backups to keep, defaults to `1` which is the minimum, maximum is 1019. + * + * @return builder + * + */ + public Builder weeklyBackupsToKeep(@Nullable Output weeklyBackupsToKeep) { + $.weeklyBackupsToKeep = weeklyBackupsToKeep; + return this; + } + + /** + * @param weeklyBackupsToKeep Provides the number of weekly backups to keep, defaults to `1` which is the minimum, maximum is 1019. + * + * @return builder + * + */ + public Builder weeklyBackupsToKeep(Integer weeklyBackupsToKeep) { + return weeklyBackupsToKeep(Output.of(weeklyBackupsToKeep)); + } + + public BackupPolicyState build() { + return $; + } + } + +} diff --git a/sdk/java/src/main/java/com/pulumi/azure/netapp/inputs/BackupVaultState.java b/sdk/java/src/main/java/com/pulumi/azure/netapp/inputs/BackupVaultState.java new file mode 100644 index 0000000000..bc2e9e2929 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/azure/netapp/inputs/BackupVaultState.java @@ -0,0 +1,232 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.azure.netapp.inputs; + +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import java.lang.String; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + + +public final class BackupVaultState extends com.pulumi.resources.ResourceArgs { + + public static final BackupVaultState Empty = new BackupVaultState(); + + /** + * The name of the NetApp account in which the NetApp Vault should be created under. Changing this forces a new resource to be created. + * + */ + @Import(name="accountName") + private @Nullable Output accountName; + + /** + * @return The name of the NetApp account in which the NetApp Vault should be created under. Changing this forces a new resource to be created. + * + */ + public Optional> accountName() { + return Optional.ofNullable(this.accountName); + } + + /** + * Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. + * + */ + @Import(name="location") + private @Nullable Output location; + + /** + * @return Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. + * + */ + public Optional> location() { + return Optional.ofNullable(this.location); + } + + /** + * The name of the NetApp Backup Vault. Changing this forces a new resource to be created. + * + */ + @Import(name="name") + private @Nullable Output name; + + /** + * @return The name of the NetApp Backup Vault. Changing this forces a new resource to be created. + * + */ + public Optional> name() { + return Optional.ofNullable(this.name); + } + + /** + * The name of the resource group where the NetApp Backup Vault should be created. Changing this forces a new resource to be created. + * + */ + @Import(name="resourceGroupName") + private @Nullable Output resourceGroupName; + + /** + * @return The name of the resource group where the NetApp Backup Vault should be created. Changing this forces a new resource to be created. + * + */ + public Optional> resourceGroupName() { + return Optional.ofNullable(this.resourceGroupName); + } + + /** + * A mapping of tags to assign to the resource. + * + */ + @Import(name="tags") + private @Nullable Output> tags; + + /** + * @return A mapping of tags to assign to the resource. + * + */ + public Optional>> tags() { + return Optional.ofNullable(this.tags); + } + + private BackupVaultState() {} + + private BackupVaultState(BackupVaultState $) { + this.accountName = $.accountName; + this.location = $.location; + this.name = $.name; + this.resourceGroupName = $.resourceGroupName; + this.tags = $.tags; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(BackupVaultState defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private BackupVaultState $; + + public Builder() { + $ = new BackupVaultState(); + } + + public Builder(BackupVaultState defaults) { + $ = new BackupVaultState(Objects.requireNonNull(defaults)); + } + + /** + * @param accountName The name of the NetApp account in which the NetApp Vault should be created under. Changing this forces a new resource to be created. + * + * @return builder + * + */ + public Builder accountName(@Nullable Output accountName) { + $.accountName = accountName; + return this; + } + + /** + * @param accountName The name of the NetApp account in which the NetApp Vault should be created under. Changing this forces a new resource to be created. + * + * @return builder + * + */ + public Builder accountName(String accountName) { + return accountName(Output.of(accountName)); + } + + /** + * @param location Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. + * + * @return builder + * + */ + public Builder location(@Nullable Output location) { + $.location = location; + return this; + } + + /** + * @param location Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. + * + * @return builder + * + */ + public Builder location(String location) { + return location(Output.of(location)); + } + + /** + * @param name The name of the NetApp Backup Vault. Changing this forces a new resource to be created. + * + * @return builder + * + */ + public Builder name(@Nullable Output name) { + $.name = name; + return this; + } + + /** + * @param name The name of the NetApp Backup Vault. Changing this forces a new resource to be created. + * + * @return builder + * + */ + public Builder name(String name) { + return name(Output.of(name)); + } + + /** + * @param resourceGroupName The name of the resource group where the NetApp Backup Vault should be created. Changing this forces a new resource to be created. + * + * @return builder + * + */ + public Builder resourceGroupName(@Nullable Output resourceGroupName) { + $.resourceGroupName = resourceGroupName; + return this; + } + + /** + * @param resourceGroupName The name of the resource group where the NetApp Backup Vault should be created. Changing this forces a new resource to be created. + * + * @return builder + * + */ + public Builder resourceGroupName(String resourceGroupName) { + return resourceGroupName(Output.of(resourceGroupName)); + } + + /** + * @param tags A mapping of tags to assign to the resource. + * + * @return builder + * + */ + public Builder tags(@Nullable Output> tags) { + $.tags = tags; + return this; + } + + /** + * @param tags A mapping of tags to assign to the resource. + * + * @return builder + * + */ + public Builder tags(Map tags) { + return tags(Output.of(tags)); + } + + public BackupVaultState build() { + return $; + } + } + +} diff --git a/sdk/java/src/main/java/com/pulumi/azure/netapp/inputs/GetAccountEncryptionArgs.java b/sdk/java/src/main/java/com/pulumi/azure/netapp/inputs/GetAccountEncryptionArgs.java index ec6088108d..bde248ded5 100644 --- a/sdk/java/src/main/java/com/pulumi/azure/netapp/inputs/GetAccountEncryptionArgs.java +++ b/sdk/java/src/main/java/com/pulumi/azure/netapp/inputs/GetAccountEncryptionArgs.java @@ -8,29 +8,12 @@ import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; -import java.util.Optional; -import javax.annotation.Nullable; public final class GetAccountEncryptionArgs extends com.pulumi.resources.InvokeArgs { public static final GetAccountEncryptionArgs Empty = new GetAccountEncryptionArgs(); - /** - * The key vault encryption key. - * - */ - @Import(name="encryptionKey") - private @Nullable Output encryptionKey; - - /** - * @return The key vault encryption key. - * - */ - public Optional> encryptionKey() { - return Optional.ofNullable(this.encryptionKey); - } - /** * The ID of the NetApp account where customer managed keys-based encryption is enabled. * @@ -46,43 +29,10 @@ public Output netappAccountId() { return this.netappAccountId; } - /** - * The ID of the System Assigned Manged Identity. - * - */ - @Import(name="systemAssignedIdentityPrincipalId") - private @Nullable Output systemAssignedIdentityPrincipalId; - - /** - * @return The ID of the System Assigned Manged Identity. - * - */ - public Optional> systemAssignedIdentityPrincipalId() { - return Optional.ofNullable(this.systemAssignedIdentityPrincipalId); - } - - /** - * The ID of the User Assigned Managed Identity. - * - */ - @Import(name="userAssignedIdentityId") - private @Nullable Output userAssignedIdentityId; - - /** - * @return The ID of the User Assigned Managed Identity. - * - */ - public Optional> userAssignedIdentityId() { - return Optional.ofNullable(this.userAssignedIdentityId); - } - private GetAccountEncryptionArgs() {} private GetAccountEncryptionArgs(GetAccountEncryptionArgs $) { - this.encryptionKey = $.encryptionKey; this.netappAccountId = $.netappAccountId; - this.systemAssignedIdentityPrincipalId = $.systemAssignedIdentityPrincipalId; - this.userAssignedIdentityId = $.userAssignedIdentityId; } public static Builder builder() { @@ -103,27 +53,6 @@ public Builder(GetAccountEncryptionArgs defaults) { $ = new GetAccountEncryptionArgs(Objects.requireNonNull(defaults)); } - /** - * @param encryptionKey The key vault encryption key. - * - * @return builder - * - */ - public Builder encryptionKey(@Nullable Output encryptionKey) { - $.encryptionKey = encryptionKey; - return this; - } - - /** - * @param encryptionKey The key vault encryption key. - * - * @return builder - * - */ - public Builder encryptionKey(String encryptionKey) { - return encryptionKey(Output.of(encryptionKey)); - } - /** * @param netappAccountId The ID of the NetApp account where customer managed keys-based encryption is enabled. * @@ -145,48 +74,6 @@ public Builder netappAccountId(String netappAccountId) { return netappAccountId(Output.of(netappAccountId)); } - /** - * @param systemAssignedIdentityPrincipalId The ID of the System Assigned Manged Identity. - * - * @return builder - * - */ - public Builder systemAssignedIdentityPrincipalId(@Nullable Output systemAssignedIdentityPrincipalId) { - $.systemAssignedIdentityPrincipalId = systemAssignedIdentityPrincipalId; - return this; - } - - /** - * @param systemAssignedIdentityPrincipalId The ID of the System Assigned Manged Identity. - * - * @return builder - * - */ - public Builder systemAssignedIdentityPrincipalId(String systemAssignedIdentityPrincipalId) { - return systemAssignedIdentityPrincipalId(Output.of(systemAssignedIdentityPrincipalId)); - } - - /** - * @param userAssignedIdentityId The ID of the User Assigned Managed Identity. - * - * @return builder - * - */ - public Builder userAssignedIdentityId(@Nullable Output userAssignedIdentityId) { - $.userAssignedIdentityId = userAssignedIdentityId; - return this; - } - - /** - * @param userAssignedIdentityId The ID of the User Assigned Managed Identity. - * - * @return builder - * - */ - public Builder userAssignedIdentityId(String userAssignedIdentityId) { - return userAssignedIdentityId(Output.of(userAssignedIdentityId)); - } - public GetAccountEncryptionArgs build() { if ($.netappAccountId == null) { throw new MissingRequiredPropertyException("GetAccountEncryptionArgs", "netappAccountId"); diff --git a/sdk/java/src/main/java/com/pulumi/azure/netapp/inputs/GetAccountEncryptionPlainArgs.java b/sdk/java/src/main/java/com/pulumi/azure/netapp/inputs/GetAccountEncryptionPlainArgs.java index 8d98a2fd0b..f49c97a60e 100644 --- a/sdk/java/src/main/java/com/pulumi/azure/netapp/inputs/GetAccountEncryptionPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/azure/netapp/inputs/GetAccountEncryptionPlainArgs.java @@ -7,29 +7,12 @@ import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; -import java.util.Optional; -import javax.annotation.Nullable; public final class GetAccountEncryptionPlainArgs extends com.pulumi.resources.InvokeArgs { public static final GetAccountEncryptionPlainArgs Empty = new GetAccountEncryptionPlainArgs(); - /** - * The key vault encryption key. - * - */ - @Import(name="encryptionKey") - private @Nullable String encryptionKey; - - /** - * @return The key vault encryption key. - * - */ - public Optional encryptionKey() { - return Optional.ofNullable(this.encryptionKey); - } - /** * The ID of the NetApp account where customer managed keys-based encryption is enabled. * @@ -45,43 +28,10 @@ public String netappAccountId() { return this.netappAccountId; } - /** - * The ID of the System Assigned Manged Identity. - * - */ - @Import(name="systemAssignedIdentityPrincipalId") - private @Nullable String systemAssignedIdentityPrincipalId; - - /** - * @return The ID of the System Assigned Manged Identity. - * - */ - public Optional systemAssignedIdentityPrincipalId() { - return Optional.ofNullable(this.systemAssignedIdentityPrincipalId); - } - - /** - * The ID of the User Assigned Managed Identity. - * - */ - @Import(name="userAssignedIdentityId") - private @Nullable String userAssignedIdentityId; - - /** - * @return The ID of the User Assigned Managed Identity. - * - */ - public Optional userAssignedIdentityId() { - return Optional.ofNullable(this.userAssignedIdentityId); - } - private GetAccountEncryptionPlainArgs() {} private GetAccountEncryptionPlainArgs(GetAccountEncryptionPlainArgs $) { - this.encryptionKey = $.encryptionKey; this.netappAccountId = $.netappAccountId; - this.systemAssignedIdentityPrincipalId = $.systemAssignedIdentityPrincipalId; - this.userAssignedIdentityId = $.userAssignedIdentityId; } public static Builder builder() { @@ -102,17 +52,6 @@ public Builder(GetAccountEncryptionPlainArgs defaults) { $ = new GetAccountEncryptionPlainArgs(Objects.requireNonNull(defaults)); } - /** - * @param encryptionKey The key vault encryption key. - * - * @return builder - * - */ - public Builder encryptionKey(@Nullable String encryptionKey) { - $.encryptionKey = encryptionKey; - return this; - } - /** * @param netappAccountId The ID of the NetApp account where customer managed keys-based encryption is enabled. * @@ -124,28 +63,6 @@ public Builder netappAccountId(String netappAccountId) { return this; } - /** - * @param systemAssignedIdentityPrincipalId The ID of the System Assigned Manged Identity. - * - * @return builder - * - */ - public Builder systemAssignedIdentityPrincipalId(@Nullable String systemAssignedIdentityPrincipalId) { - $.systemAssignedIdentityPrincipalId = systemAssignedIdentityPrincipalId; - return this; - } - - /** - * @param userAssignedIdentityId The ID of the User Assigned Managed Identity. - * - * @return builder - * - */ - public Builder userAssignedIdentityId(@Nullable String userAssignedIdentityId) { - $.userAssignedIdentityId = userAssignedIdentityId; - return this; - } - public GetAccountEncryptionPlainArgs build() { if ($.netappAccountId == null) { throw new MissingRequiredPropertyException("GetAccountEncryptionPlainArgs", "netappAccountId"); diff --git a/sdk/java/src/main/java/com/pulumi/azure/netapp/inputs/GetBackupPolicyArgs.java b/sdk/java/src/main/java/com/pulumi/azure/netapp/inputs/GetBackupPolicyArgs.java new file mode 100644 index 0000000000..23546bb89a --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/azure/netapp/inputs/GetBackupPolicyArgs.java @@ -0,0 +1,165 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.azure.netapp.inputs; + +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; +import java.lang.String; +import java.util.Objects; + + +public final class GetBackupPolicyArgs extends com.pulumi.resources.InvokeArgs { + + public static final GetBackupPolicyArgs Empty = new GetBackupPolicyArgs(); + + /** + * The name of the NetApp Account in which the NetApp Policy exists. + * + */ + @Import(name="accountName", required=true) + private Output accountName; + + /** + * @return The name of the NetApp Account in which the NetApp Policy exists. + * + */ + public Output accountName() { + return this.accountName; + } + + /** + * The name of the NetApp Backup Policy. + * + */ + @Import(name="name", required=true) + private Output name; + + /** + * @return The name of the NetApp Backup Policy. + * + */ + public Output name() { + return this.name; + } + + /** + * The name of the resource group where the NetApp Backup Policy exists. + * + */ + @Import(name="resourceGroupName", required=true) + private Output resourceGroupName; + + /** + * @return The name of the resource group where the NetApp Backup Policy exists. + * + */ + public Output resourceGroupName() { + return this.resourceGroupName; + } + + private GetBackupPolicyArgs() {} + + private GetBackupPolicyArgs(GetBackupPolicyArgs $) { + this.accountName = $.accountName; + this.name = $.name; + this.resourceGroupName = $.resourceGroupName; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(GetBackupPolicyArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private GetBackupPolicyArgs $; + + public Builder() { + $ = new GetBackupPolicyArgs(); + } + + public Builder(GetBackupPolicyArgs defaults) { + $ = new GetBackupPolicyArgs(Objects.requireNonNull(defaults)); + } + + /** + * @param accountName The name of the NetApp Account in which the NetApp Policy exists. + * + * @return builder + * + */ + public Builder accountName(Output accountName) { + $.accountName = accountName; + return this; + } + + /** + * @param accountName The name of the NetApp Account in which the NetApp Policy exists. + * + * @return builder + * + */ + public Builder accountName(String accountName) { + return accountName(Output.of(accountName)); + } + + /** + * @param name The name of the NetApp Backup Policy. + * + * @return builder + * + */ + public Builder name(Output name) { + $.name = name; + return this; + } + + /** + * @param name The name of the NetApp Backup Policy. + * + * @return builder + * + */ + public Builder name(String name) { + return name(Output.of(name)); + } + + /** + * @param resourceGroupName The name of the resource group where the NetApp Backup Policy exists. + * + * @return builder + * + */ + public Builder resourceGroupName(Output resourceGroupName) { + $.resourceGroupName = resourceGroupName; + return this; + } + + /** + * @param resourceGroupName The name of the resource group where the NetApp Backup Policy exists. + * + * @return builder + * + */ + public Builder resourceGroupName(String resourceGroupName) { + return resourceGroupName(Output.of(resourceGroupName)); + } + + public GetBackupPolicyArgs build() { + if ($.accountName == null) { + throw new MissingRequiredPropertyException("GetBackupPolicyArgs", "accountName"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("GetBackupPolicyArgs", "name"); + } + if ($.resourceGroupName == null) { + throw new MissingRequiredPropertyException("GetBackupPolicyArgs", "resourceGroupName"); + } + return $; + } + } + +} diff --git a/sdk/java/src/main/java/com/pulumi/azure/netapp/inputs/GetBackupPolicyPlainArgs.java b/sdk/java/src/main/java/com/pulumi/azure/netapp/inputs/GetBackupPolicyPlainArgs.java new file mode 100644 index 0000000000..6ba0065fe7 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/azure/netapp/inputs/GetBackupPolicyPlainArgs.java @@ -0,0 +1,134 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.azure.netapp.inputs; + +import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; +import java.lang.String; +import java.util.Objects; + + +public final class GetBackupPolicyPlainArgs extends com.pulumi.resources.InvokeArgs { + + public static final GetBackupPolicyPlainArgs Empty = new GetBackupPolicyPlainArgs(); + + /** + * The name of the NetApp Account in which the NetApp Policy exists. + * + */ + @Import(name="accountName", required=true) + private String accountName; + + /** + * @return The name of the NetApp Account in which the NetApp Policy exists. + * + */ + public String accountName() { + return this.accountName; + } + + /** + * The name of the NetApp Backup Policy. + * + */ + @Import(name="name", required=true) + private String name; + + /** + * @return The name of the NetApp Backup Policy. + * + */ + public String name() { + return this.name; + } + + /** + * The name of the resource group where the NetApp Backup Policy exists. + * + */ + @Import(name="resourceGroupName", required=true) + private String resourceGroupName; + + /** + * @return The name of the resource group where the NetApp Backup Policy exists. + * + */ + public String resourceGroupName() { + return this.resourceGroupName; + } + + private GetBackupPolicyPlainArgs() {} + + private GetBackupPolicyPlainArgs(GetBackupPolicyPlainArgs $) { + this.accountName = $.accountName; + this.name = $.name; + this.resourceGroupName = $.resourceGroupName; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(GetBackupPolicyPlainArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private GetBackupPolicyPlainArgs $; + + public Builder() { + $ = new GetBackupPolicyPlainArgs(); + } + + public Builder(GetBackupPolicyPlainArgs defaults) { + $ = new GetBackupPolicyPlainArgs(Objects.requireNonNull(defaults)); + } + + /** + * @param accountName The name of the NetApp Account in which the NetApp Policy exists. + * + * @return builder + * + */ + public Builder accountName(String accountName) { + $.accountName = accountName; + return this; + } + + /** + * @param name The name of the NetApp Backup Policy. + * + * @return builder + * + */ + public Builder name(String name) { + $.name = name; + return this; + } + + /** + * @param resourceGroupName The name of the resource group where the NetApp Backup Policy exists. + * + * @return builder + * + */ + public Builder resourceGroupName(String resourceGroupName) { + $.resourceGroupName = resourceGroupName; + return this; + } + + public GetBackupPolicyPlainArgs build() { + if ($.accountName == null) { + throw new MissingRequiredPropertyException("GetBackupPolicyPlainArgs", "accountName"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("GetBackupPolicyPlainArgs", "name"); + } + if ($.resourceGroupName == null) { + throw new MissingRequiredPropertyException("GetBackupPolicyPlainArgs", "resourceGroupName"); + } + return $; + } + } + +} diff --git a/sdk/java/src/main/java/com/pulumi/azure/netapp/inputs/GetBackupVaultArgs.java b/sdk/java/src/main/java/com/pulumi/azure/netapp/inputs/GetBackupVaultArgs.java new file mode 100644 index 0000000000..244314e983 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/azure/netapp/inputs/GetBackupVaultArgs.java @@ -0,0 +1,165 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.azure.netapp.inputs; + +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; +import java.lang.String; +import java.util.Objects; + + +public final class GetBackupVaultArgs extends com.pulumi.resources.InvokeArgs { + + public static final GetBackupVaultArgs Empty = new GetBackupVaultArgs(); + + /** + * The name of the NetApp Account in which the NetApp Vault exists. + * + */ + @Import(name="accountName", required=true) + private Output accountName; + + /** + * @return The name of the NetApp Account in which the NetApp Vault exists. + * + */ + public Output accountName() { + return this.accountName; + } + + /** + * The name of the NetApp Backup Vault. + * + */ + @Import(name="name", required=true) + private Output name; + + /** + * @return The name of the NetApp Backup Vault. + * + */ + public Output name() { + return this.name; + } + + /** + * The name of the resource group where the NetApp Backup Vault exists. + * + */ + @Import(name="resourceGroupName", required=true) + private Output resourceGroupName; + + /** + * @return The name of the resource group where the NetApp Backup Vault exists. + * + */ + public Output resourceGroupName() { + return this.resourceGroupName; + } + + private GetBackupVaultArgs() {} + + private GetBackupVaultArgs(GetBackupVaultArgs $) { + this.accountName = $.accountName; + this.name = $.name; + this.resourceGroupName = $.resourceGroupName; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(GetBackupVaultArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private GetBackupVaultArgs $; + + public Builder() { + $ = new GetBackupVaultArgs(); + } + + public Builder(GetBackupVaultArgs defaults) { + $ = new GetBackupVaultArgs(Objects.requireNonNull(defaults)); + } + + /** + * @param accountName The name of the NetApp Account in which the NetApp Vault exists. + * + * @return builder + * + */ + public Builder accountName(Output accountName) { + $.accountName = accountName; + return this; + } + + /** + * @param accountName The name of the NetApp Account in which the NetApp Vault exists. + * + * @return builder + * + */ + public Builder accountName(String accountName) { + return accountName(Output.of(accountName)); + } + + /** + * @param name The name of the NetApp Backup Vault. + * + * @return builder + * + */ + public Builder name(Output name) { + $.name = name; + return this; + } + + /** + * @param name The name of the NetApp Backup Vault. + * + * @return builder + * + */ + public Builder name(String name) { + return name(Output.of(name)); + } + + /** + * @param resourceGroupName The name of the resource group where the NetApp Backup Vault exists. + * + * @return builder + * + */ + public Builder resourceGroupName(Output resourceGroupName) { + $.resourceGroupName = resourceGroupName; + return this; + } + + /** + * @param resourceGroupName The name of the resource group where the NetApp Backup Vault exists. + * + * @return builder + * + */ + public Builder resourceGroupName(String resourceGroupName) { + return resourceGroupName(Output.of(resourceGroupName)); + } + + public GetBackupVaultArgs build() { + if ($.accountName == null) { + throw new MissingRequiredPropertyException("GetBackupVaultArgs", "accountName"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("GetBackupVaultArgs", "name"); + } + if ($.resourceGroupName == null) { + throw new MissingRequiredPropertyException("GetBackupVaultArgs", "resourceGroupName"); + } + return $; + } + } + +} diff --git a/sdk/java/src/main/java/com/pulumi/azure/netapp/inputs/GetBackupVaultPlainArgs.java b/sdk/java/src/main/java/com/pulumi/azure/netapp/inputs/GetBackupVaultPlainArgs.java new file mode 100644 index 0000000000..0ea3073285 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/azure/netapp/inputs/GetBackupVaultPlainArgs.java @@ -0,0 +1,134 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.azure.netapp.inputs; + +import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; +import java.lang.String; +import java.util.Objects; + + +public final class GetBackupVaultPlainArgs extends com.pulumi.resources.InvokeArgs { + + public static final GetBackupVaultPlainArgs Empty = new GetBackupVaultPlainArgs(); + + /** + * The name of the NetApp Account in which the NetApp Vault exists. + * + */ + @Import(name="accountName", required=true) + private String accountName; + + /** + * @return The name of the NetApp Account in which the NetApp Vault exists. + * + */ + public String accountName() { + return this.accountName; + } + + /** + * The name of the NetApp Backup Vault. + * + */ + @Import(name="name", required=true) + private String name; + + /** + * @return The name of the NetApp Backup Vault. + * + */ + public String name() { + return this.name; + } + + /** + * The name of the resource group where the NetApp Backup Vault exists. + * + */ + @Import(name="resourceGroupName", required=true) + private String resourceGroupName; + + /** + * @return The name of the resource group where the NetApp Backup Vault exists. + * + */ + public String resourceGroupName() { + return this.resourceGroupName; + } + + private GetBackupVaultPlainArgs() {} + + private GetBackupVaultPlainArgs(GetBackupVaultPlainArgs $) { + this.accountName = $.accountName; + this.name = $.name; + this.resourceGroupName = $.resourceGroupName; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(GetBackupVaultPlainArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private GetBackupVaultPlainArgs $; + + public Builder() { + $ = new GetBackupVaultPlainArgs(); + } + + public Builder(GetBackupVaultPlainArgs defaults) { + $ = new GetBackupVaultPlainArgs(Objects.requireNonNull(defaults)); + } + + /** + * @param accountName The name of the NetApp Account in which the NetApp Vault exists. + * + * @return builder + * + */ + public Builder accountName(String accountName) { + $.accountName = accountName; + return this; + } + + /** + * @param name The name of the NetApp Backup Vault. + * + * @return builder + * + */ + public Builder name(String name) { + $.name = name; + return this; + } + + /** + * @param resourceGroupName The name of the resource group where the NetApp Backup Vault exists. + * + * @return builder + * + */ + public Builder resourceGroupName(String resourceGroupName) { + $.resourceGroupName = resourceGroupName; + return this; + } + + public GetBackupVaultPlainArgs build() { + if ($.accountName == null) { + throw new MissingRequiredPropertyException("GetBackupVaultPlainArgs", "accountName"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("GetBackupVaultPlainArgs", "name"); + } + if ($.resourceGroupName == null) { + throw new MissingRequiredPropertyException("GetBackupVaultPlainArgs", "resourceGroupName"); + } + return $; + } + } + +} diff --git a/sdk/java/src/main/java/com/pulumi/azure/netapp/inputs/VolumeDataProtectionBackupPolicyArgs.java b/sdk/java/src/main/java/com/pulumi/azure/netapp/inputs/VolumeDataProtectionBackupPolicyArgs.java new file mode 100644 index 0000000000..261bbba656 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/azure/netapp/inputs/VolumeDataProtectionBackupPolicyArgs.java @@ -0,0 +1,173 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.azure.netapp.inputs; + +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; +import java.lang.Boolean; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + + +public final class VolumeDataProtectionBackupPolicyArgs extends com.pulumi.resources.ResourceArgs { + + public static final VolumeDataProtectionBackupPolicyArgs Empty = new VolumeDataProtectionBackupPolicyArgs(); + + /** + * Resource ID of the backup policy to apply to the volume. + * + */ + @Import(name="backupPolicyId", required=true) + private Output backupPolicyId; + + /** + * @return Resource ID of the backup policy to apply to the volume. + * + */ + public Output backupPolicyId() { + return this.backupPolicyId; + } + + /** + * Resource ID of the backup backup vault to associate this volume to. + * + */ + @Import(name="backupVaultId", required=true) + private Output backupVaultId; + + /** + * @return Resource ID of the backup backup vault to associate this volume to. + * + */ + public Output backupVaultId() { + return this.backupVaultId; + } + + /** + * Enables the backup policy on the volume, defaults to `true`. + * + * For more information on Azure NetApp Files Backup feature please see [Understand Azure NetApp Files backup](https://learn.microsoft.com/en-us/azure/azure-netapp-files/backup-introduction) + * + */ + @Import(name="policyEnabled") + private @Nullable Output policyEnabled; + + /** + * @return Enables the backup policy on the volume, defaults to `true`. + * + * For more information on Azure NetApp Files Backup feature please see [Understand Azure NetApp Files backup](https://learn.microsoft.com/en-us/azure/azure-netapp-files/backup-introduction) + * + */ + public Optional> policyEnabled() { + return Optional.ofNullable(this.policyEnabled); + } + + private VolumeDataProtectionBackupPolicyArgs() {} + + private VolumeDataProtectionBackupPolicyArgs(VolumeDataProtectionBackupPolicyArgs $) { + this.backupPolicyId = $.backupPolicyId; + this.backupVaultId = $.backupVaultId; + this.policyEnabled = $.policyEnabled; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(VolumeDataProtectionBackupPolicyArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private VolumeDataProtectionBackupPolicyArgs $; + + public Builder() { + $ = new VolumeDataProtectionBackupPolicyArgs(); + } + + public Builder(VolumeDataProtectionBackupPolicyArgs defaults) { + $ = new VolumeDataProtectionBackupPolicyArgs(Objects.requireNonNull(defaults)); + } + + /** + * @param backupPolicyId Resource ID of the backup policy to apply to the volume. + * + * @return builder + * + */ + public Builder backupPolicyId(Output backupPolicyId) { + $.backupPolicyId = backupPolicyId; + return this; + } + + /** + * @param backupPolicyId Resource ID of the backup policy to apply to the volume. + * + * @return builder + * + */ + public Builder backupPolicyId(String backupPolicyId) { + return backupPolicyId(Output.of(backupPolicyId)); + } + + /** + * @param backupVaultId Resource ID of the backup backup vault to associate this volume to. + * + * @return builder + * + */ + public Builder backupVaultId(Output backupVaultId) { + $.backupVaultId = backupVaultId; + return this; + } + + /** + * @param backupVaultId Resource ID of the backup backup vault to associate this volume to. + * + * @return builder + * + */ + public Builder backupVaultId(String backupVaultId) { + return backupVaultId(Output.of(backupVaultId)); + } + + /** + * @param policyEnabled Enables the backup policy on the volume, defaults to `true`. + * + * For more information on Azure NetApp Files Backup feature please see [Understand Azure NetApp Files backup](https://learn.microsoft.com/en-us/azure/azure-netapp-files/backup-introduction) + * + * @return builder + * + */ + public Builder policyEnabled(@Nullable Output policyEnabled) { + $.policyEnabled = policyEnabled; + return this; + } + + /** + * @param policyEnabled Enables the backup policy on the volume, defaults to `true`. + * + * For more information on Azure NetApp Files Backup feature please see [Understand Azure NetApp Files backup](https://learn.microsoft.com/en-us/azure/azure-netapp-files/backup-introduction) + * + * @return builder + * + */ + public Builder policyEnabled(Boolean policyEnabled) { + return policyEnabled(Output.of(policyEnabled)); + } + + public VolumeDataProtectionBackupPolicyArgs build() { + if ($.backupPolicyId == null) { + throw new MissingRequiredPropertyException("VolumeDataProtectionBackupPolicyArgs", "backupPolicyId"); + } + if ($.backupVaultId == null) { + throw new MissingRequiredPropertyException("VolumeDataProtectionBackupPolicyArgs", "backupVaultId"); + } + return $; + } + } + +} diff --git a/sdk/java/src/main/java/com/pulumi/azure/netapp/inputs/VolumeState.java b/sdk/java/src/main/java/com/pulumi/azure/netapp/inputs/VolumeState.java index b04bb5b7ed..1ae45061e3 100644 --- a/sdk/java/src/main/java/com/pulumi/azure/netapp/inputs/VolumeState.java +++ b/sdk/java/src/main/java/com/pulumi/azure/netapp/inputs/VolumeState.java @@ -3,6 +3,7 @@ package com.pulumi.azure.netapp.inputs; +import com.pulumi.azure.netapp.inputs.VolumeDataProtectionBackupPolicyArgs; import com.pulumi.azure.netapp.inputs.VolumeDataProtectionReplicationArgs; import com.pulumi.azure.netapp.inputs.VolumeDataProtectionSnapshotPolicyArgs; import com.pulumi.azure.netapp.inputs.VolumeExportPolicyRuleArgs; @@ -68,6 +69,21 @@ public Optional> createFromSnapshotResourceId() { return Optional.ofNullable(this.createFromSnapshotResourceId); } + /** + * A `data_protection_backup_policy` block as defined below. + * + */ + @Import(name="dataProtectionBackupPolicy") + private @Nullable Output dataProtectionBackupPolicy; + + /** + * @return A `data_protection_backup_policy` block as defined below. + * + */ + public Optional> dataProtectionBackupPolicy() { + return Optional.ofNullable(this.dataProtectionBackupPolicy); + } + /** * A `data_protection_replication` block as defined below. Changing this forces a new resource to be created. * @@ -470,6 +486,7 @@ private VolumeState(VolumeState $) { this.accountName = $.accountName; this.azureVmwareDataStoreEnabled = $.azureVmwareDataStoreEnabled; this.createFromSnapshotResourceId = $.createFromSnapshotResourceId; + this.dataProtectionBackupPolicy = $.dataProtectionBackupPolicy; this.dataProtectionReplication = $.dataProtectionReplication; this.dataProtectionSnapshotPolicy = $.dataProtectionSnapshotPolicy; this.encryptionKeySource = $.encryptionKeySource; @@ -579,6 +596,27 @@ public Builder createFromSnapshotResourceId(String createFromSnapshotResourceId) return createFromSnapshotResourceId(Output.of(createFromSnapshotResourceId)); } + /** + * @param dataProtectionBackupPolicy A `data_protection_backup_policy` block as defined below. + * + * @return builder + * + */ + public Builder dataProtectionBackupPolicy(@Nullable Output dataProtectionBackupPolicy) { + $.dataProtectionBackupPolicy = dataProtectionBackupPolicy; + return this; + } + + /** + * @param dataProtectionBackupPolicy A `data_protection_backup_policy` block as defined below. + * + * @return builder + * + */ + public Builder dataProtectionBackupPolicy(VolumeDataProtectionBackupPolicyArgs dataProtectionBackupPolicy) { + return dataProtectionBackupPolicy(Output.of(dataProtectionBackupPolicy)); + } + /** * @param dataProtectionReplication A `data_protection_replication` block as defined below. Changing this forces a new resource to be created. * diff --git a/sdk/java/src/main/java/com/pulumi/azure/netapp/outputs/GetAccountEncryptionResult.java b/sdk/java/src/main/java/com/pulumi/azure/netapp/outputs/GetAccountEncryptionResult.java index d0175b77ba..f3a7962d8e 100644 --- a/sdk/java/src/main/java/com/pulumi/azure/netapp/outputs/GetAccountEncryptionResult.java +++ b/sdk/java/src/main/java/com/pulumi/azure/netapp/outputs/GetAccountEncryptionResult.java @@ -7,24 +7,22 @@ import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; -import java.util.Optional; -import javax.annotation.Nullable; @CustomType public final class GetAccountEncryptionResult { - private @Nullable String encryptionKey; + private String encryptionKey; /** * @return The provider-assigned unique ID for this managed resource. * */ private String id; private String netappAccountId; - private @Nullable String systemAssignedIdentityPrincipalId; - private @Nullable String userAssignedIdentityId; + private String systemAssignedIdentityPrincipalId; + private String userAssignedIdentityId; private GetAccountEncryptionResult() {} - public Optional encryptionKey() { - return Optional.ofNullable(this.encryptionKey); + public String encryptionKey() { + return this.encryptionKey; } /** * @return The provider-assigned unique ID for this managed resource. @@ -36,11 +34,11 @@ public String id() { public String netappAccountId() { return this.netappAccountId; } - public Optional systemAssignedIdentityPrincipalId() { - return Optional.ofNullable(this.systemAssignedIdentityPrincipalId); + public String systemAssignedIdentityPrincipalId() { + return this.systemAssignedIdentityPrincipalId; } - public Optional userAssignedIdentityId() { - return Optional.ofNullable(this.userAssignedIdentityId); + public String userAssignedIdentityId() { + return this.userAssignedIdentityId; } public static Builder builder() { @@ -52,11 +50,11 @@ public static Builder builder(GetAccountEncryptionResult defaults) { } @CustomType.Builder public static final class Builder { - private @Nullable String encryptionKey; + private String encryptionKey; private String id; private String netappAccountId; - private @Nullable String systemAssignedIdentityPrincipalId; - private @Nullable String userAssignedIdentityId; + private String systemAssignedIdentityPrincipalId; + private String userAssignedIdentityId; public Builder() {} public Builder(GetAccountEncryptionResult defaults) { Objects.requireNonNull(defaults); @@ -68,8 +66,10 @@ public Builder(GetAccountEncryptionResult defaults) { } @CustomType.Setter - public Builder encryptionKey(@Nullable String encryptionKey) { - + public Builder encryptionKey(String encryptionKey) { + if (encryptionKey == null) { + throw new MissingRequiredPropertyException("GetAccountEncryptionResult", "encryptionKey"); + } this.encryptionKey = encryptionKey; return this; } @@ -90,14 +90,18 @@ public Builder netappAccountId(String netappAccountId) { return this; } @CustomType.Setter - public Builder systemAssignedIdentityPrincipalId(@Nullable String systemAssignedIdentityPrincipalId) { - + public Builder systemAssignedIdentityPrincipalId(String systemAssignedIdentityPrincipalId) { + if (systemAssignedIdentityPrincipalId == null) { + throw new MissingRequiredPropertyException("GetAccountEncryptionResult", "systemAssignedIdentityPrincipalId"); + } this.systemAssignedIdentityPrincipalId = systemAssignedIdentityPrincipalId; return this; } @CustomType.Setter - public Builder userAssignedIdentityId(@Nullable String userAssignedIdentityId) { - + public Builder userAssignedIdentityId(String userAssignedIdentityId) { + if (userAssignedIdentityId == null) { + throw new MissingRequiredPropertyException("GetAccountEncryptionResult", "userAssignedIdentityId"); + } this.userAssignedIdentityId = userAssignedIdentityId; return this; } diff --git a/sdk/java/src/main/java/com/pulumi/azure/netapp/outputs/GetBackupPolicyResult.java b/sdk/java/src/main/java/com/pulumi/azure/netapp/outputs/GetBackupPolicyResult.java new file mode 100644 index 0000000000..0f38708d4e --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/azure/netapp/outputs/GetBackupPolicyResult.java @@ -0,0 +1,252 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.azure.netapp.outputs; + +import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; +import java.lang.Boolean; +import java.lang.Integer; +import java.lang.String; +import java.util.Map; +import java.util.Objects; + +@CustomType +public final class GetBackupPolicyResult { + /** + * @return The name of the NetApp account in which the NetApp Policy exists. + * + */ + private String accountName; + /** + * @return The number of daily backups to keep. + * + */ + private Integer dailyBackupsToKeep; + /** + * @return Whether the Backup Policy is enabled. + * + */ + private Boolean enabled; + /** + * @return The provider-assigned unique ID for this managed resource. + * + */ + private String id; + /** + * @return NetApp Backup Policy location. + * + */ + private String location; + /** + * @return The number of monthly backups to keep. + * + */ + private Integer monthlyBackupsToKeep; + private String name; + private String resourceGroupName; + /** + * @return List of tags assigned to the resource. + * + */ + private Map tags; + /** + * @return The number of weekly backups to keep. + * + */ + private Integer weeklyBackupsToKeep; + + private GetBackupPolicyResult() {} + /** + * @return The name of the NetApp account in which the NetApp Policy exists. + * + */ + public String accountName() { + return this.accountName; + } + /** + * @return The number of daily backups to keep. + * + */ + public Integer dailyBackupsToKeep() { + return this.dailyBackupsToKeep; + } + /** + * @return Whether the Backup Policy is enabled. + * + */ + public Boolean enabled() { + return this.enabled; + } + /** + * @return The provider-assigned unique ID for this managed resource. + * + */ + public String id() { + return this.id; + } + /** + * @return NetApp Backup Policy location. + * + */ + public String location() { + return this.location; + } + /** + * @return The number of monthly backups to keep. + * + */ + public Integer monthlyBackupsToKeep() { + return this.monthlyBackupsToKeep; + } + public String name() { + return this.name; + } + public String resourceGroupName() { + return this.resourceGroupName; + } + /** + * @return List of tags assigned to the resource. + * + */ + public Map tags() { + return this.tags; + } + /** + * @return The number of weekly backups to keep. + * + */ + public Integer weeklyBackupsToKeep() { + return this.weeklyBackupsToKeep; + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(GetBackupPolicyResult defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private String accountName; + private Integer dailyBackupsToKeep; + private Boolean enabled; + private String id; + private String location; + private Integer monthlyBackupsToKeep; + private String name; + private String resourceGroupName; + private Map tags; + private Integer weeklyBackupsToKeep; + public Builder() {} + public Builder(GetBackupPolicyResult defaults) { + Objects.requireNonNull(defaults); + this.accountName = defaults.accountName; + this.dailyBackupsToKeep = defaults.dailyBackupsToKeep; + this.enabled = defaults.enabled; + this.id = defaults.id; + this.location = defaults.location; + this.monthlyBackupsToKeep = defaults.monthlyBackupsToKeep; + this.name = defaults.name; + this.resourceGroupName = defaults.resourceGroupName; + this.tags = defaults.tags; + this.weeklyBackupsToKeep = defaults.weeklyBackupsToKeep; + } + + @CustomType.Setter + public Builder accountName(String accountName) { + if (accountName == null) { + throw new MissingRequiredPropertyException("GetBackupPolicyResult", "accountName"); + } + this.accountName = accountName; + return this; + } + @CustomType.Setter + public Builder dailyBackupsToKeep(Integer dailyBackupsToKeep) { + if (dailyBackupsToKeep == null) { + throw new MissingRequiredPropertyException("GetBackupPolicyResult", "dailyBackupsToKeep"); + } + this.dailyBackupsToKeep = dailyBackupsToKeep; + return this; + } + @CustomType.Setter + public Builder enabled(Boolean enabled) { + if (enabled == null) { + throw new MissingRequiredPropertyException("GetBackupPolicyResult", "enabled"); + } + this.enabled = enabled; + return this; + } + @CustomType.Setter + public Builder id(String id) { + if (id == null) { + throw new MissingRequiredPropertyException("GetBackupPolicyResult", "id"); + } + this.id = id; + return this; + } + @CustomType.Setter + public Builder location(String location) { + if (location == null) { + throw new MissingRequiredPropertyException("GetBackupPolicyResult", "location"); + } + this.location = location; + return this; + } + @CustomType.Setter + public Builder monthlyBackupsToKeep(Integer monthlyBackupsToKeep) { + if (monthlyBackupsToKeep == null) { + throw new MissingRequiredPropertyException("GetBackupPolicyResult", "monthlyBackupsToKeep"); + } + this.monthlyBackupsToKeep = monthlyBackupsToKeep; + return this; + } + @CustomType.Setter + public Builder name(String name) { + if (name == null) { + throw new MissingRequiredPropertyException("GetBackupPolicyResult", "name"); + } + this.name = name; + return this; + } + @CustomType.Setter + public Builder resourceGroupName(String resourceGroupName) { + if (resourceGroupName == null) { + throw new MissingRequiredPropertyException("GetBackupPolicyResult", "resourceGroupName"); + } + this.resourceGroupName = resourceGroupName; + return this; + } + @CustomType.Setter + public Builder tags(Map tags) { + if (tags == null) { + throw new MissingRequiredPropertyException("GetBackupPolicyResult", "tags"); + } + this.tags = tags; + return this; + } + @CustomType.Setter + public Builder weeklyBackupsToKeep(Integer weeklyBackupsToKeep) { + if (weeklyBackupsToKeep == null) { + throw new MissingRequiredPropertyException("GetBackupPolicyResult", "weeklyBackupsToKeep"); + } + this.weeklyBackupsToKeep = weeklyBackupsToKeep; + return this; + } + public GetBackupPolicyResult build() { + final var _resultValue = new GetBackupPolicyResult(); + _resultValue.accountName = accountName; + _resultValue.dailyBackupsToKeep = dailyBackupsToKeep; + _resultValue.enabled = enabled; + _resultValue.id = id; + _resultValue.location = location; + _resultValue.monthlyBackupsToKeep = monthlyBackupsToKeep; + _resultValue.name = name; + _resultValue.resourceGroupName = resourceGroupName; + _resultValue.tags = tags; + _resultValue.weeklyBackupsToKeep = weeklyBackupsToKeep; + return _resultValue; + } + } +} diff --git a/sdk/java/src/main/java/com/pulumi/azure/netapp/outputs/GetBackupVaultResult.java b/sdk/java/src/main/java/com/pulumi/azure/netapp/outputs/GetBackupVaultResult.java new file mode 100644 index 0000000000..c6437c3aa3 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/azure/netapp/outputs/GetBackupVaultResult.java @@ -0,0 +1,134 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.azure.netapp.outputs; + +import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; +import java.lang.String; +import java.util.Map; +import java.util.Objects; + +@CustomType +public final class GetBackupVaultResult { + private String accountName; + /** + * @return The provider-assigned unique ID for this managed resource. + * + */ + private String id; + private String location; + private String name; + private String resourceGroupName; + private Map tags; + + private GetBackupVaultResult() {} + public String accountName() { + return this.accountName; + } + /** + * @return The provider-assigned unique ID for this managed resource. + * + */ + public String id() { + return this.id; + } + public String location() { + return this.location; + } + public String name() { + return this.name; + } + public String resourceGroupName() { + return this.resourceGroupName; + } + public Map tags() { + return this.tags; + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(GetBackupVaultResult defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private String accountName; + private String id; + private String location; + private String name; + private String resourceGroupName; + private Map tags; + public Builder() {} + public Builder(GetBackupVaultResult defaults) { + Objects.requireNonNull(defaults); + this.accountName = defaults.accountName; + this.id = defaults.id; + this.location = defaults.location; + this.name = defaults.name; + this.resourceGroupName = defaults.resourceGroupName; + this.tags = defaults.tags; + } + + @CustomType.Setter + public Builder accountName(String accountName) { + if (accountName == null) { + throw new MissingRequiredPropertyException("GetBackupVaultResult", "accountName"); + } + this.accountName = accountName; + return this; + } + @CustomType.Setter + public Builder id(String id) { + if (id == null) { + throw new MissingRequiredPropertyException("GetBackupVaultResult", "id"); + } + this.id = id; + return this; + } + @CustomType.Setter + public Builder location(String location) { + if (location == null) { + throw new MissingRequiredPropertyException("GetBackupVaultResult", "location"); + } + this.location = location; + return this; + } + @CustomType.Setter + public Builder name(String name) { + if (name == null) { + throw new MissingRequiredPropertyException("GetBackupVaultResult", "name"); + } + this.name = name; + return this; + } + @CustomType.Setter + public Builder resourceGroupName(String resourceGroupName) { + if (resourceGroupName == null) { + throw new MissingRequiredPropertyException("GetBackupVaultResult", "resourceGroupName"); + } + this.resourceGroupName = resourceGroupName; + return this; + } + @CustomType.Setter + public Builder tags(Map tags) { + if (tags == null) { + throw new MissingRequiredPropertyException("GetBackupVaultResult", "tags"); + } + this.tags = tags; + return this; + } + public GetBackupVaultResult build() { + final var _resultValue = new GetBackupVaultResult(); + _resultValue.accountName = accountName; + _resultValue.id = id; + _resultValue.location = location; + _resultValue.name = name; + _resultValue.resourceGroupName = resourceGroupName; + _resultValue.tags = tags; + return _resultValue; + } + } +} diff --git a/sdk/java/src/main/java/com/pulumi/azure/netapp/outputs/GetVolumeDataProtectionBackupPolicy.java b/sdk/java/src/main/java/com/pulumi/azure/netapp/outputs/GetVolumeDataProtectionBackupPolicy.java new file mode 100644 index 0000000000..1407d3eb5d --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/azure/netapp/outputs/GetVolumeDataProtectionBackupPolicy.java @@ -0,0 +1,105 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.azure.netapp.outputs; + +import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; +import java.lang.Boolean; +import java.lang.String; +import java.util.Objects; + +@CustomType +public final class GetVolumeDataProtectionBackupPolicy { + /** + * @return The Resource ID of the backup policy. + * + */ + private String backupPolicyId; + /** + * @return The Resource ID of the backup backup vault. + * + */ + private String backupVaultId; + /** + * @return Backup policy is enabled or not. + * + */ + private Boolean policyEnabled; + + private GetVolumeDataProtectionBackupPolicy() {} + /** + * @return The Resource ID of the backup policy. + * + */ + public String backupPolicyId() { + return this.backupPolicyId; + } + /** + * @return The Resource ID of the backup backup vault. + * + */ + public String backupVaultId() { + return this.backupVaultId; + } + /** + * @return Backup policy is enabled or not. + * + */ + public Boolean policyEnabled() { + return this.policyEnabled; + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(GetVolumeDataProtectionBackupPolicy defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private String backupPolicyId; + private String backupVaultId; + private Boolean policyEnabled; + public Builder() {} + public Builder(GetVolumeDataProtectionBackupPolicy defaults) { + Objects.requireNonNull(defaults); + this.backupPolicyId = defaults.backupPolicyId; + this.backupVaultId = defaults.backupVaultId; + this.policyEnabled = defaults.policyEnabled; + } + + @CustomType.Setter + public Builder backupPolicyId(String backupPolicyId) { + if (backupPolicyId == null) { + throw new MissingRequiredPropertyException("GetVolumeDataProtectionBackupPolicy", "backupPolicyId"); + } + this.backupPolicyId = backupPolicyId; + return this; + } + @CustomType.Setter + public Builder backupVaultId(String backupVaultId) { + if (backupVaultId == null) { + throw new MissingRequiredPropertyException("GetVolumeDataProtectionBackupPolicy", "backupVaultId"); + } + this.backupVaultId = backupVaultId; + return this; + } + @CustomType.Setter + public Builder policyEnabled(Boolean policyEnabled) { + if (policyEnabled == null) { + throw new MissingRequiredPropertyException("GetVolumeDataProtectionBackupPolicy", "policyEnabled"); + } + this.policyEnabled = policyEnabled; + return this; + } + public GetVolumeDataProtectionBackupPolicy build() { + final var _resultValue = new GetVolumeDataProtectionBackupPolicy(); + _resultValue.backupPolicyId = backupPolicyId; + _resultValue.backupVaultId = backupVaultId; + _resultValue.policyEnabled = policyEnabled; + return _resultValue; + } + } +} diff --git a/sdk/java/src/main/java/com/pulumi/azure/netapp/outputs/GetVolumeResult.java b/sdk/java/src/main/java/com/pulumi/azure/netapp/outputs/GetVolumeResult.java index f1f5d2b7d0..1c38c6aa1c 100644 --- a/sdk/java/src/main/java/com/pulumi/azure/netapp/outputs/GetVolumeResult.java +++ b/sdk/java/src/main/java/com/pulumi/azure/netapp/outputs/GetVolumeResult.java @@ -3,6 +3,7 @@ package com.pulumi.azure.netapp.outputs; +import com.pulumi.azure.netapp.outputs.GetVolumeDataProtectionBackupPolicy; import com.pulumi.azure.netapp.outputs.GetVolumeDataProtectionReplication; import com.pulumi.core.annotations.CustomType; import com.pulumi.exceptions.MissingRequiredPropertyException; @@ -18,7 +19,12 @@ public final class GetVolumeResult { private String accountName; /** - * @return Volume data protection block + * @return A data protecion backup policy block + * + */ + private List dataProtectionBackupPolicies; + /** + * @return Volume data protection replication block * */ private List dataProtectionReplications; @@ -98,7 +104,14 @@ public String accountName() { return this.accountName; } /** - * @return Volume data protection block + * @return A data protecion backup policy block + * + */ + public List dataProtectionBackupPolicies() { + return this.dataProtectionBackupPolicies; + } + /** + * @return Volume data protection replication block * */ public List dataProtectionReplications() { @@ -221,6 +234,7 @@ public static Builder builder(GetVolumeResult defaults) { @CustomType.Builder public static final class Builder { private String accountName; + private List dataProtectionBackupPolicies; private List dataProtectionReplications; private String encryptionKeySource; private String id; @@ -244,6 +258,7 @@ public Builder() {} public Builder(GetVolumeResult defaults) { Objects.requireNonNull(defaults); this.accountName = defaults.accountName; + this.dataProtectionBackupPolicies = defaults.dataProtectionBackupPolicies; this.dataProtectionReplications = defaults.dataProtectionReplications; this.encryptionKeySource = defaults.encryptionKeySource; this.id = defaults.id; @@ -274,6 +289,17 @@ public Builder accountName(String accountName) { return this; } @CustomType.Setter + public Builder dataProtectionBackupPolicies(List dataProtectionBackupPolicies) { + if (dataProtectionBackupPolicies == null) { + throw new MissingRequiredPropertyException("GetVolumeResult", "dataProtectionBackupPolicies"); + } + this.dataProtectionBackupPolicies = dataProtectionBackupPolicies; + return this; + } + public Builder dataProtectionBackupPolicies(GetVolumeDataProtectionBackupPolicy... dataProtectionBackupPolicies) { + return dataProtectionBackupPolicies(List.of(dataProtectionBackupPolicies)); + } + @CustomType.Setter public Builder dataProtectionReplications(List dataProtectionReplications) { if (dataProtectionReplications == null) { throw new MissingRequiredPropertyException("GetVolumeResult", "dataProtectionReplications"); @@ -435,6 +461,7 @@ public Builder zone(String zone) { public GetVolumeResult build() { final var _resultValue = new GetVolumeResult(); _resultValue.accountName = accountName; + _resultValue.dataProtectionBackupPolicies = dataProtectionBackupPolicies; _resultValue.dataProtectionReplications = dataProtectionReplications; _resultValue.encryptionKeySource = encryptionKeySource; _resultValue.id = id; diff --git a/sdk/java/src/main/java/com/pulumi/azure/netapp/outputs/VolumeDataProtectionBackupPolicy.java b/sdk/java/src/main/java/com/pulumi/azure/netapp/outputs/VolumeDataProtectionBackupPolicy.java new file mode 100644 index 0000000000..3e6b5080b7 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/azure/netapp/outputs/VolumeDataProtectionBackupPolicy.java @@ -0,0 +1,109 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.azure.netapp.outputs; + +import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; +import java.lang.Boolean; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + +@CustomType +public final class VolumeDataProtectionBackupPolicy { + /** + * @return Resource ID of the backup policy to apply to the volume. + * + */ + private String backupPolicyId; + /** + * @return Resource ID of the backup backup vault to associate this volume to. + * + */ + private String backupVaultId; + /** + * @return Enables the backup policy on the volume, defaults to `true`. + * + * For more information on Azure NetApp Files Backup feature please see [Understand Azure NetApp Files backup](https://learn.microsoft.com/en-us/azure/azure-netapp-files/backup-introduction) + * + */ + private @Nullable Boolean policyEnabled; + + private VolumeDataProtectionBackupPolicy() {} + /** + * @return Resource ID of the backup policy to apply to the volume. + * + */ + public String backupPolicyId() { + return this.backupPolicyId; + } + /** + * @return Resource ID of the backup backup vault to associate this volume to. + * + */ + public String backupVaultId() { + return this.backupVaultId; + } + /** + * @return Enables the backup policy on the volume, defaults to `true`. + * + * For more information on Azure NetApp Files Backup feature please see [Understand Azure NetApp Files backup](https://learn.microsoft.com/en-us/azure/azure-netapp-files/backup-introduction) + * + */ + public Optional policyEnabled() { + return Optional.ofNullable(this.policyEnabled); + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(VolumeDataProtectionBackupPolicy defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private String backupPolicyId; + private String backupVaultId; + private @Nullable Boolean policyEnabled; + public Builder() {} + public Builder(VolumeDataProtectionBackupPolicy defaults) { + Objects.requireNonNull(defaults); + this.backupPolicyId = defaults.backupPolicyId; + this.backupVaultId = defaults.backupVaultId; + this.policyEnabled = defaults.policyEnabled; + } + + @CustomType.Setter + public Builder backupPolicyId(String backupPolicyId) { + if (backupPolicyId == null) { + throw new MissingRequiredPropertyException("VolumeDataProtectionBackupPolicy", "backupPolicyId"); + } + this.backupPolicyId = backupPolicyId; + return this; + } + @CustomType.Setter + public Builder backupVaultId(String backupVaultId) { + if (backupVaultId == null) { + throw new MissingRequiredPropertyException("VolumeDataProtectionBackupPolicy", "backupVaultId"); + } + this.backupVaultId = backupVaultId; + return this; + } + @CustomType.Setter + public Builder policyEnabled(@Nullable Boolean policyEnabled) { + + this.policyEnabled = policyEnabled; + return this; + } + public VolumeDataProtectionBackupPolicy build() { + final var _resultValue = new VolumeDataProtectionBackupPolicy(); + _resultValue.backupPolicyId = backupPolicyId; + _resultValue.backupVaultId = backupVaultId; + _resultValue.policyEnabled = policyEnabled; + return _resultValue; + } + } +} diff --git a/sdk/java/src/main/java/com/pulumi/azure/network/TrafficManagerAzureEndpoint.java b/sdk/java/src/main/java/com/pulumi/azure/network/TrafficManagerAzureEndpoint.java index db04a48237..e41efef6a2 100644 --- a/sdk/java/src/main/java/com/pulumi/azure/network/TrafficManagerAzureEndpoint.java +++ b/sdk/java/src/main/java/com/pulumi/azure/network/TrafficManagerAzureEndpoint.java @@ -183,18 +183,18 @@ public Output name() { return this.name; } /** - * Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. Defaults to `1`. + * Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. * */ @Export(name="priority", refs={Integer.class}, tree="[0]") - private Output priority; + private Output priority; /** - * @return Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. Defaults to `1`. + * @return Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. * */ - public Output> priority() { - return Codegen.optional(this.priority); + public Output priority() { + return this.priority; } /** * The ID of the Traffic Manager Profile that this Azure Endpoint should be created within. Changing this forces a new resource to be created. diff --git a/sdk/java/src/main/java/com/pulumi/azure/network/TrafficManagerAzureEndpointArgs.java b/sdk/java/src/main/java/com/pulumi/azure/network/TrafficManagerAzureEndpointArgs.java index b3254337c9..c90f9cfbe5 100644 --- a/sdk/java/src/main/java/com/pulumi/azure/network/TrafficManagerAzureEndpointArgs.java +++ b/sdk/java/src/main/java/com/pulumi/azure/network/TrafficManagerAzureEndpointArgs.java @@ -97,14 +97,14 @@ public Optional> name() { } /** - * Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. Defaults to `1`. + * Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. * */ @Import(name="priority") private @Nullable Output priority; /** - * @return Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. Defaults to `1`. + * @return Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. * */ public Optional> priority() { @@ -330,7 +330,7 @@ public Builder name(String name) { } /** - * @param priority Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. Defaults to `1`. + * @param priority Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. * * @return builder * @@ -341,7 +341,7 @@ public Builder priority(@Nullable Output priority) { } /** - * @param priority Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. Defaults to `1`. + * @param priority Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/azure/network/TrafficManagerExternalEndpoint.java b/sdk/java/src/main/java/com/pulumi/azure/network/TrafficManagerExternalEndpoint.java index dfc15fe87b..65a947f78d 100644 --- a/sdk/java/src/main/java/com/pulumi/azure/network/TrafficManagerExternalEndpoint.java +++ b/sdk/java/src/main/java/com/pulumi/azure/network/TrafficManagerExternalEndpoint.java @@ -187,18 +187,18 @@ public Output name() { return this.name; } /** - * Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. Defaults to `1`. + * Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. * */ @Export(name="priority", refs={Integer.class}, tree="[0]") - private Output priority; + private Output priority; /** - * @return Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. Defaults to `1`. + * @return Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. * */ - public Output> priority() { - return Codegen.optional(this.priority); + public Output priority() { + return this.priority; } /** * The ID of the Traffic Manager Profile that this External Endpoint should be created within. Changing this forces a new resource to be created. diff --git a/sdk/java/src/main/java/com/pulumi/azure/network/TrafficManagerExternalEndpointArgs.java b/sdk/java/src/main/java/com/pulumi/azure/network/TrafficManagerExternalEndpointArgs.java index 3ef290fbdd..241df5964e 100644 --- a/sdk/java/src/main/java/com/pulumi/azure/network/TrafficManagerExternalEndpointArgs.java +++ b/sdk/java/src/main/java/com/pulumi/azure/network/TrafficManagerExternalEndpointArgs.java @@ -112,14 +112,14 @@ public Optional> name() { } /** - * Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. Defaults to `1`. + * Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. * */ @Import(name="priority") private @Nullable Output priority; /** - * @return Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. Defaults to `1`. + * @return Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. * */ public Optional> priority() { @@ -367,7 +367,7 @@ public Builder name(String name) { } /** - * @param priority Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. Defaults to `1`. + * @param priority Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. * * @return builder * @@ -378,7 +378,7 @@ public Builder priority(@Nullable Output priority) { } /** - * @param priority Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. Defaults to `1`. + * @param priority Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/azure/network/inputs/ApplicationGatewayCustomErrorConfigurationArgs.java b/sdk/java/src/main/java/com/pulumi/azure/network/inputs/ApplicationGatewayCustomErrorConfigurationArgs.java index a12365e21f..792f0dcaee 100644 --- a/sdk/java/src/main/java/com/pulumi/azure/network/inputs/ApplicationGatewayCustomErrorConfigurationArgs.java +++ b/sdk/java/src/main/java/com/pulumi/azure/network/inputs/ApplicationGatewayCustomErrorConfigurationArgs.java @@ -47,14 +47,14 @@ public Optional> id() { } /** - * Status code of the application gateway customer error. Possible values are `HttpStatus403` and `HttpStatus502` + * Status code of the application gateway customer error. Possible values are `HttpStatus400`, `HttpStatus403`, `HttpStatus404`, `HttpStatus405`, `HttpStatus408`, `HttpStatus500`, `HttpStatus502`, `HttpStatus503` and `HttpStatus504` * */ @Import(name="statusCode", required=true) private Output statusCode; /** - * @return Status code of the application gateway customer error. Possible values are `HttpStatus403` and `HttpStatus502` + * @return Status code of the application gateway customer error. Possible values are `HttpStatus400`, `HttpStatus403`, `HttpStatus404`, `HttpStatus405`, `HttpStatus408`, `HttpStatus500`, `HttpStatus502`, `HttpStatus503` and `HttpStatus504` * */ public Output statusCode() { @@ -130,7 +130,7 @@ public Builder id(String id) { } /** - * @param statusCode Status code of the application gateway customer error. Possible values are `HttpStatus403` and `HttpStatus502` + * @param statusCode Status code of the application gateway customer error. Possible values are `HttpStatus400`, `HttpStatus403`, `HttpStatus404`, `HttpStatus405`, `HttpStatus408`, `HttpStatus500`, `HttpStatus502`, `HttpStatus503` and `HttpStatus504` * * @return builder * @@ -141,7 +141,7 @@ public Builder statusCode(Output statusCode) { } /** - * @param statusCode Status code of the application gateway customer error. Possible values are `HttpStatus403` and `HttpStatus502` + * @param statusCode Status code of the application gateway customer error. Possible values are `HttpStatus400`, `HttpStatus403`, `HttpStatus404`, `HttpStatus405`, `HttpStatus408`, `HttpStatus500`, `HttpStatus502`, `HttpStatus503` and `HttpStatus504` * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/azure/network/inputs/ApplicationGatewayHttpListenerCustomErrorConfigurationArgs.java b/sdk/java/src/main/java/com/pulumi/azure/network/inputs/ApplicationGatewayHttpListenerCustomErrorConfigurationArgs.java index cbaafbf756..76ef2286b2 100644 --- a/sdk/java/src/main/java/com/pulumi/azure/network/inputs/ApplicationGatewayHttpListenerCustomErrorConfigurationArgs.java +++ b/sdk/java/src/main/java/com/pulumi/azure/network/inputs/ApplicationGatewayHttpListenerCustomErrorConfigurationArgs.java @@ -47,14 +47,14 @@ public Optional> id() { } /** - * Status code of the application gateway customer error. Possible values are `HttpStatus403` and `HttpStatus502` + * Status code of the application gateway customer error. Possible values are `HttpStatus400`, `HttpStatus403`, `HttpStatus404`, `HttpStatus405`, `HttpStatus408`, `HttpStatus500`, `HttpStatus502`, `HttpStatus503` and `HttpStatus504` * */ @Import(name="statusCode", required=true) private Output statusCode; /** - * @return Status code of the application gateway customer error. Possible values are `HttpStatus403` and `HttpStatus502` + * @return Status code of the application gateway customer error. Possible values are `HttpStatus400`, `HttpStatus403`, `HttpStatus404`, `HttpStatus405`, `HttpStatus408`, `HttpStatus500`, `HttpStatus502`, `HttpStatus503` and `HttpStatus504` * */ public Output statusCode() { @@ -130,7 +130,7 @@ public Builder id(String id) { } /** - * @param statusCode Status code of the application gateway customer error. Possible values are `HttpStatus403` and `HttpStatus502` + * @param statusCode Status code of the application gateway customer error. Possible values are `HttpStatus400`, `HttpStatus403`, `HttpStatus404`, `HttpStatus405`, `HttpStatus408`, `HttpStatus500`, `HttpStatus502`, `HttpStatus503` and `HttpStatus504` * * @return builder * @@ -141,7 +141,7 @@ public Builder statusCode(Output statusCode) { } /** - * @param statusCode Status code of the application gateway customer error. Possible values are `HttpStatus403` and `HttpStatus502` + * @param statusCode Status code of the application gateway customer error. Possible values are `HttpStatus400`, `HttpStatus403`, `HttpStatus404`, `HttpStatus405`, `HttpStatus408`, `HttpStatus500`, `HttpStatus502`, `HttpStatus503` and `HttpStatus504` * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/azure/network/inputs/TrafficManagerAzureEndpointState.java b/sdk/java/src/main/java/com/pulumi/azure/network/inputs/TrafficManagerAzureEndpointState.java index 2cea215dee..f22b7c9b7b 100644 --- a/sdk/java/src/main/java/com/pulumi/azure/network/inputs/TrafficManagerAzureEndpointState.java +++ b/sdk/java/src/main/java/com/pulumi/azure/network/inputs/TrafficManagerAzureEndpointState.java @@ -96,14 +96,14 @@ public Optional> name() { } /** - * Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. Defaults to `1`. + * Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. * */ @Import(name="priority") private @Nullable Output priority; /** - * @return Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. Defaults to `1`. + * @return Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. * */ public Optional> priority() { @@ -329,7 +329,7 @@ public Builder name(String name) { } /** - * @param priority Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. Defaults to `1`. + * @param priority Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. * * @return builder * @@ -340,7 +340,7 @@ public Builder priority(@Nullable Output priority) { } /** - * @param priority Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. Defaults to `1`. + * @param priority Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/azure/network/inputs/TrafficManagerExternalEndpointState.java b/sdk/java/src/main/java/com/pulumi/azure/network/inputs/TrafficManagerExternalEndpointState.java index 8157eaaaee..c8ff1b3dc8 100644 --- a/sdk/java/src/main/java/com/pulumi/azure/network/inputs/TrafficManagerExternalEndpointState.java +++ b/sdk/java/src/main/java/com/pulumi/azure/network/inputs/TrafficManagerExternalEndpointState.java @@ -111,14 +111,14 @@ public Optional> name() { } /** - * Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. Defaults to `1`. + * Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. * */ @Import(name="priority") private @Nullable Output priority; /** - * @return Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. Defaults to `1`. + * @return Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. * */ public Optional> priority() { @@ -366,7 +366,7 @@ public Builder name(String name) { } /** - * @param priority Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. Defaults to `1`. + * @param priority Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. * * @return builder * @@ -377,7 +377,7 @@ public Builder priority(@Nullable Output priority) { } /** - * @param priority Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. Defaults to `1`. + * @param priority Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/azure/network/outputs/ApplicationGatewayCustomErrorConfiguration.java b/sdk/java/src/main/java/com/pulumi/azure/network/outputs/ApplicationGatewayCustomErrorConfiguration.java index 2fda7f8cc9..1ac32049f7 100644 --- a/sdk/java/src/main/java/com/pulumi/azure/network/outputs/ApplicationGatewayCustomErrorConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/azure/network/outputs/ApplicationGatewayCustomErrorConfiguration.java @@ -23,7 +23,7 @@ public final class ApplicationGatewayCustomErrorConfiguration { */ private @Nullable String id; /** - * @return Status code of the application gateway customer error. Possible values are `HttpStatus403` and `HttpStatus502` + * @return Status code of the application gateway customer error. Possible values are `HttpStatus400`, `HttpStatus403`, `HttpStatus404`, `HttpStatus405`, `HttpStatus408`, `HttpStatus500`, `HttpStatus502`, `HttpStatus503` and `HttpStatus504` * */ private String statusCode; @@ -44,7 +44,7 @@ public Optional id() { return Optional.ofNullable(this.id); } /** - * @return Status code of the application gateway customer error. Possible values are `HttpStatus403` and `HttpStatus502` + * @return Status code of the application gateway customer error. Possible values are `HttpStatus400`, `HttpStatus403`, `HttpStatus404`, `HttpStatus405`, `HttpStatus408`, `HttpStatus500`, `HttpStatus502`, `HttpStatus503` and `HttpStatus504` * */ public String statusCode() { diff --git a/sdk/java/src/main/java/com/pulumi/azure/network/outputs/ApplicationGatewayHttpListenerCustomErrorConfiguration.java b/sdk/java/src/main/java/com/pulumi/azure/network/outputs/ApplicationGatewayHttpListenerCustomErrorConfiguration.java index 766da9f72d..867850cca8 100644 --- a/sdk/java/src/main/java/com/pulumi/azure/network/outputs/ApplicationGatewayHttpListenerCustomErrorConfiguration.java +++ b/sdk/java/src/main/java/com/pulumi/azure/network/outputs/ApplicationGatewayHttpListenerCustomErrorConfiguration.java @@ -23,7 +23,7 @@ public final class ApplicationGatewayHttpListenerCustomErrorConfiguration { */ private @Nullable String id; /** - * @return Status code of the application gateway customer error. Possible values are `HttpStatus403` and `HttpStatus502` + * @return Status code of the application gateway customer error. Possible values are `HttpStatus400`, `HttpStatus403`, `HttpStatus404`, `HttpStatus405`, `HttpStatus408`, `HttpStatus500`, `HttpStatus502`, `HttpStatus503` and `HttpStatus504` * */ private String statusCode; @@ -44,7 +44,7 @@ public Optional id() { return Optional.ofNullable(this.id); } /** - * @return Status code of the application gateway customer error. Possible values are `HttpStatus403` and `HttpStatus502` + * @return Status code of the application gateway customer error. Possible values are `HttpStatus400`, `HttpStatus403`, `HttpStatus404`, `HttpStatus405`, `HttpStatus408`, `HttpStatus500`, `HttpStatus502`, `HttpStatus503` and `HttpStatus504` * */ public String statusCode() { diff --git a/sdk/nodejs/automation/jobSchedule.ts b/sdk/nodejs/automation/jobSchedule.ts index da2601b753..f652c0ae7f 100644 --- a/sdk/nodejs/automation/jobSchedule.ts +++ b/sdk/nodejs/automation/jobSchedule.ts @@ -7,7 +7,7 @@ import * as utilities from "../utilities"; /** * Links an Automation Runbook and Schedule. * - * > **NOTE** AzureRM provides this stand-alone azure.automation.JobSchedule and an inlined `jobSchdule` property in azurermRunbook to manage the job schedules. You can only make use of one of these methods to manage a job schedule. + * > **NOTE** AzureRM provides this stand-alone azure.automation.JobSchedule and an inlined `jobSchedule` property in azurermRunbook to manage the job schedules. You can only make use of one of these methods to manage a job schedule. * * ## Example Usage * diff --git a/sdk/nodejs/automation/runBook.ts b/sdk/nodejs/automation/runBook.ts index 354596c4f1..c6cd5972dd 100644 --- a/sdk/nodejs/automation/runBook.ts +++ b/sdk/nodejs/automation/runBook.ts @@ -97,7 +97,7 @@ export class RunBook extends pulumi.CustomResource { /** * One or more `jobSchedule` block as defined below. * - * > **NOTE** AzureRM provides a stand-alone azure.automation.JobSchedule and this inlined `jobSchdule` property to manage the job schedules. At this time you should choose one of them to manage the job schedule resources. + * > **NOTE** AzureRM provides a stand-alone azure.automation.JobSchedule and this inlined `jobSchedule` property to manage the job schedules. At this time you should choose one of them to manage the job schedule resources. */ public readonly jobSchedules!: pulumi.Output; /** @@ -226,7 +226,7 @@ export interface RunBookState { /** * One or more `jobSchedule` block as defined below. * - * > **NOTE** AzureRM provides a stand-alone azure.automation.JobSchedule and this inlined `jobSchdule` property to manage the job schedules. At this time you should choose one of them to manage the job schedule resources. + * > **NOTE** AzureRM provides a stand-alone azure.automation.JobSchedule and this inlined `jobSchedule` property to manage the job schedules. At this time you should choose one of them to manage the job schedule resources. */ jobSchedules?: pulumi.Input[]>; /** @@ -292,7 +292,7 @@ export interface RunBookArgs { /** * One or more `jobSchedule` block as defined below. * - * > **NOTE** AzureRM provides a stand-alone azure.automation.JobSchedule and this inlined `jobSchdule` property to manage the job schedules. At this time you should choose one of them to manage the job schedule resources. + * > **NOTE** AzureRM provides a stand-alone azure.automation.JobSchedule and this inlined `jobSchedule` property to manage the job schedules. At this time you should choose one of them to manage the job schedule resources. */ jobSchedules?: pulumi.Input[]>; /** diff --git a/sdk/nodejs/cognitive/getAccount.ts b/sdk/nodejs/cognitive/getAccount.ts index a6e425de67..bbebe9cb47 100644 --- a/sdk/nodejs/cognitive/getAccount.ts +++ b/sdk/nodejs/cognitive/getAccount.ts @@ -69,6 +69,10 @@ export interface GetAccountResult { * The kind of the Cognitive Services Account */ readonly kind: string; + /** + * Whether local authentication methods is enabled for the Cognitive Account. + */ + readonly localAuthEnabled: boolean; /** * The Azure location where the Cognitive Services Account exists */ diff --git a/sdk/nodejs/communication/emailService.ts b/sdk/nodejs/communication/emailService.ts index 22b1f7f0c7..ae8cb0026c 100644 --- a/sdk/nodejs/communication/emailService.ts +++ b/sdk/nodejs/communication/emailService.ts @@ -61,7 +61,7 @@ export class EmailService extends pulumi.CustomResource { } /** - * The location where the Email Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` and `United States`. Changing this forces a new Email Communication Service to be created. + * The location where the Email Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` `usgov` and `United States`. Changing this forces a new Email Communication Service to be created. */ public readonly dataLocation!: pulumi.Output; /** @@ -117,7 +117,7 @@ export class EmailService extends pulumi.CustomResource { */ export interface EmailServiceState { /** - * The location where the Email Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` and `United States`. Changing this forces a new Email Communication Service to be created. + * The location where the Email Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` `usgov` and `United States`. Changing this forces a new Email Communication Service to be created. */ dataLocation?: pulumi.Input; /** @@ -139,7 +139,7 @@ export interface EmailServiceState { */ export interface EmailServiceArgs { /** - * The location where the Email Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` and `United States`. Changing this forces a new Email Communication Service to be created. + * The location where the Email Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` `usgov` and `United States`. Changing this forces a new Email Communication Service to be created. */ dataLocation: pulumi.Input; /** diff --git a/sdk/nodejs/communication/service.ts b/sdk/nodejs/communication/service.ts index a18624dd61..39ae788add 100644 --- a/sdk/nodejs/communication/service.ts +++ b/sdk/nodejs/communication/service.ts @@ -61,7 +61,7 @@ export class Service extends pulumi.CustomResource { } /** - * The location where the Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` and `United States`. Defaults to `United States`. Changing this forces a new Communication Service to be created. + * The location where the Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK`, `usgov` and `United States`. Defaults to `United States`. Changing this forces a new Communication Service to be created. */ public readonly dataLocation!: pulumi.Output; /** @@ -140,7 +140,7 @@ export class Service extends pulumi.CustomResource { */ export interface ServiceState { /** - * The location where the Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` and `United States`. Defaults to `United States`. Changing this forces a new Communication Service to be created. + * The location where the Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK`, `usgov` and `United States`. Defaults to `United States`. Changing this forces a new Communication Service to be created. */ dataLocation?: pulumi.Input; /** @@ -178,7 +178,7 @@ export interface ServiceState { */ export interface ServiceArgs { /** - * The location where the Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` and `United States`. Defaults to `United States`. Changing this forces a new Communication Service to be created. + * The location where the Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK`, `usgov` and `United States`. Defaults to `United States`. Changing this forces a new Communication Service to be created. */ dataLocation?: pulumi.Input; /** diff --git a/sdk/nodejs/compute/bastionHost.ts b/sdk/nodejs/compute/bastionHost.ts index 7d9893fe1c..432d628c06 100644 --- a/sdk/nodejs/compute/bastionHost.ts +++ b/sdk/nodejs/compute/bastionHost.ts @@ -168,6 +168,10 @@ export class BastionHost extends pulumi.CustomResource { * The ID of the Virtual Network for the Developer Bastion Host. Changing this forces a new resource to be created. */ public readonly virtualNetworkId!: pulumi.Output; + /** + * Specifies a list of Availability Zones in which this Public Bastion Host should be located. Changing this forces a new resource to be created. + */ + public readonly zones!: pulumi.Output; /** * Create a BastionHost resource with the given unique name, arguments, and options. @@ -198,6 +202,7 @@ export class BastionHost extends pulumi.CustomResource { resourceInputs["tags"] = state ? state.tags : undefined; resourceInputs["tunnelingEnabled"] = state ? state.tunnelingEnabled : undefined; resourceInputs["virtualNetworkId"] = state ? state.virtualNetworkId : undefined; + resourceInputs["zones"] = state ? state.zones : undefined; } else { const args = argsOrState as BastionHostArgs | undefined; if ((!args || args.resourceGroupName === undefined) && !opts.urn) { @@ -218,6 +223,7 @@ export class BastionHost extends pulumi.CustomResource { resourceInputs["tags"] = args ? args.tags : undefined; resourceInputs["tunnelingEnabled"] = args ? args.tunnelingEnabled : undefined; resourceInputs["virtualNetworkId"] = args ? args.virtualNetworkId : undefined; + resourceInputs["zones"] = args ? args.zones : undefined; resourceInputs["dnsName"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); @@ -309,6 +315,10 @@ export interface BastionHostState { * The ID of the Virtual Network for the Developer Bastion Host. Changing this forces a new resource to be created. */ virtualNetworkId?: pulumi.Input; + /** + * Specifies a list of Availability Zones in which this Public Bastion Host should be located. Changing this forces a new resource to be created. + */ + zones?: pulumi.Input[]>; } /** @@ -391,4 +401,8 @@ export interface BastionHostArgs { * The ID of the Virtual Network for the Developer Bastion Host. Changing this forces a new resource to be created. */ virtualNetworkId?: pulumi.Input; + /** + * Specifies a list of Availability Zones in which this Public Bastion Host should be located. Changing this forces a new resource to be created. + */ + zones?: pulumi.Input[]>; } diff --git a/sdk/nodejs/compute/getBastionHost.ts b/sdk/nodejs/compute/getBastionHost.ts index 66202ebb7b..3c2a582a94 100644 --- a/sdk/nodejs/compute/getBastionHost.ts +++ b/sdk/nodejs/compute/getBastionHost.ts @@ -105,6 +105,10 @@ export interface GetBastionHostResult { * Is Tunneling feature enabled for the Bastion Host. */ readonly tunnelingEnabled: boolean; + /** + * A list of Availability Zones in which this Bastion Host is located. + */ + readonly zones: string[]; } /** * Use this data source to access information about an existing Bastion Host. diff --git a/sdk/nodejs/fluidrelay/server.ts b/sdk/nodejs/fluidrelay/server.ts index db15f4b3d8..89de95a17b 100644 --- a/sdk/nodejs/fluidrelay/server.ts +++ b/sdk/nodejs/fluidrelay/server.ts @@ -62,6 +62,9 @@ export class Server extends pulumi.CustomResource { return obj['__pulumiType'] === Server.__pulumiType; } + /** + * A `customerManagedKey` block as defined below. Changing this forces a new resource to be created. + */ public readonly customerManagedKey!: pulumi.Output; /** * The Fluid tenantId for this server. @@ -168,6 +171,9 @@ export class Server extends pulumi.CustomResource { * Input properties used for looking up and filtering Server resources. */ export interface ServerState { + /** + * A `customerManagedKey` block as defined below. Changing this forces a new resource to be created. + */ customerManagedKey?: pulumi.Input; /** * The Fluid tenantId for this server. @@ -223,6 +229,9 @@ export interface ServerState { * The set of arguments for constructing a Server resource. */ export interface ServerArgs { + /** + * A `customerManagedKey` block as defined below. Changing this forces a new resource to be created. + */ customerManagedKey?: pulumi.Input; /** * An `identity` block as defined below. diff --git a/sdk/nodejs/keyvault/getManagedHardwareSecurityModuleKey.ts b/sdk/nodejs/keyvault/getManagedHardwareSecurityModuleKey.ts new file mode 100644 index 0000000000..f9542fe421 --- /dev/null +++ b/sdk/nodejs/keyvault/getManagedHardwareSecurityModuleKey.ts @@ -0,0 +1,140 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +import * as pulumi from "@pulumi/pulumi"; +import * as utilities from "../utilities"; + +/** + * Use this data source to access information about an existing Managed Hardware Security Module Key. + * + * > **Note:** All arguments including the secret value will be stored in the raw state as plain-text. + * [Read more about sensitive data in state](https://www.terraform.io/docs/state/sensitive-data.html). + * + * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as azure from "@pulumi/azure"; + * + * export = async () => { + * const example = await azure.keyvault.getManagedHardwareSecurityModuleKey({ + * managedHsmId: exampleAzurermKeyVaultManagedHardwareSecurityModule.id, + * name: exampleAzurermKeyVaultManagedHardwareSecurityModuleKey.name, + * }); + * return { + * "hsm-key-vesrion": example.version, + * }; + * } + * ``` + */ +export function getManagedHardwareSecurityModuleKey(args: GetManagedHardwareSecurityModuleKeyArgs, opts?: pulumi.InvokeOptions): Promise { + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invoke("azure:keyvault/getManagedHardwareSecurityModuleKey:getManagedHardwareSecurityModuleKey", { + "managedHsmId": args.managedHsmId, + "name": args.name, + }, opts); +} + +/** + * A collection of arguments for invoking getManagedHardwareSecurityModuleKey. + */ +export interface GetManagedHardwareSecurityModuleKeyArgs { + /** + * Specifies the ID of the Managed Hardware Security Module instance where the Secret resides, available on the `azure.keyvault.ManagedHardwareSecurityModuleKey` Data Source / Resource. + * + * **NOTE:** The Managed Hardware Security Module must be in the same subscription as the provider. If the Managed Hardware Security Module is in another subscription, you must create an aliased provider for that subscription. + */ + managedHsmId: string; + /** + * Specifies the name of the Managed Hardware Security Module Key. + */ + name: string; +} + +/** + * A collection of values returned by getManagedHardwareSecurityModuleKey. + */ +export interface GetManagedHardwareSecurityModuleKeyResult { + /** + * The EC Curve name of this Managed Hardware Security Module Key. + */ + readonly curve: string; + readonly expirationDate: string; + /** + * The provider-assigned unique ID for this managed resource. + */ + readonly id: string; + /** + * A list of JSON web key operations assigned to this Managed Hardware Security Module Key + */ + readonly keyOpts: string[]; + /** + * Specifies the Size of this Managed Hardware Security Module Key. + */ + readonly keySize: number; + /** + * Specifies the Key Type of this Managed Hardware Security Module Key + */ + readonly keyType: string; + readonly managedHsmId: string; + readonly name: string; + readonly notBeforeDate: string; + /** + * A mapping of tags assigned to this Managed Hardware Security Module Key. + */ + readonly tags: {[key: string]: string}; + /** + * The current version of the Managed Hardware Security Module Key. + */ + readonly version: string; + /** + * The versioned ID of the Managed Hardware Security Module Key. + */ + readonly versionedId: string; +} +/** + * Use this data source to access information about an existing Managed Hardware Security Module Key. + * + * > **Note:** All arguments including the secret value will be stored in the raw state as plain-text. + * [Read more about sensitive data in state](https://www.terraform.io/docs/state/sensitive-data.html). + * + * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as azure from "@pulumi/azure"; + * + * export = async () => { + * const example = await azure.keyvault.getManagedHardwareSecurityModuleKey({ + * managedHsmId: exampleAzurermKeyVaultManagedHardwareSecurityModule.id, + * name: exampleAzurermKeyVaultManagedHardwareSecurityModuleKey.name, + * }); + * return { + * "hsm-key-vesrion": example.version, + * }; + * } + * ``` + */ +export function getManagedHardwareSecurityModuleKeyOutput(args: GetManagedHardwareSecurityModuleKeyOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("azure:keyvault/getManagedHardwareSecurityModuleKey:getManagedHardwareSecurityModuleKey", { + "managedHsmId": args.managedHsmId, + "name": args.name, + }, opts); +} + +/** + * A collection of arguments for invoking getManagedHardwareSecurityModuleKey. + */ +export interface GetManagedHardwareSecurityModuleKeyOutputArgs { + /** + * Specifies the ID of the Managed Hardware Security Module instance where the Secret resides, available on the `azure.keyvault.ManagedHardwareSecurityModuleKey` Data Source / Resource. + * + * **NOTE:** The Managed Hardware Security Module must be in the same subscription as the provider. If the Managed Hardware Security Module is in another subscription, you must create an aliased provider for that subscription. + */ + managedHsmId: pulumi.Input; + /** + * Specifies the name of the Managed Hardware Security Module Key. + */ + name: pulumi.Input; +} diff --git a/sdk/nodejs/keyvault/index.ts b/sdk/nodejs/keyvault/index.ts index 074d1d043e..5a57438253 100644 --- a/sdk/nodejs/keyvault/index.ts +++ b/sdk/nodejs/keyvault/index.ts @@ -75,6 +75,11 @@ export const getManagedHardwareSecurityModule: typeof import("./getManagedHardwa export const getManagedHardwareSecurityModuleOutput: typeof import("./getManagedHardwareSecurityModule").getManagedHardwareSecurityModuleOutput = null as any; utilities.lazyLoad(exports, ["getManagedHardwareSecurityModule","getManagedHardwareSecurityModuleOutput"], () => require("./getManagedHardwareSecurityModule")); +export { GetManagedHardwareSecurityModuleKeyArgs, GetManagedHardwareSecurityModuleKeyResult, GetManagedHardwareSecurityModuleKeyOutputArgs } from "./getManagedHardwareSecurityModuleKey"; +export const getManagedHardwareSecurityModuleKey: typeof import("./getManagedHardwareSecurityModuleKey").getManagedHardwareSecurityModuleKey = null as any; +export const getManagedHardwareSecurityModuleKeyOutput: typeof import("./getManagedHardwareSecurityModuleKey").getManagedHardwareSecurityModuleKeyOutput = null as any; +utilities.lazyLoad(exports, ["getManagedHardwareSecurityModuleKey","getManagedHardwareSecurityModuleKeyOutput"], () => require("./getManagedHardwareSecurityModuleKey")); + export { GetManagedHardwareSecurityModuleRoleDefinitionArgs, GetManagedHardwareSecurityModuleRoleDefinitionResult, GetManagedHardwareSecurityModuleRoleDefinitionOutputArgs } from "./getManagedHardwareSecurityModuleRoleDefinition"; export const getManagedHardwareSecurityModuleRoleDefinition: typeof import("./getManagedHardwareSecurityModuleRoleDefinition").getManagedHardwareSecurityModuleRoleDefinition = null as any; export const getManagedHardwareSecurityModuleRoleDefinitionOutput: typeof import("./getManagedHardwareSecurityModuleRoleDefinition").getManagedHardwareSecurityModuleRoleDefinitionOutput = null as any; diff --git a/sdk/nodejs/netapp/backupPolicy.ts b/sdk/nodejs/netapp/backupPolicy.ts new file mode 100644 index 0000000000..34223e11f6 --- /dev/null +++ b/sdk/nodejs/netapp/backupPolicy.ts @@ -0,0 +1,240 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +import * as pulumi from "@pulumi/pulumi"; +import * as utilities from "../utilities"; + +/** + * Manages a NetApp Backup Policy. + * + * ## NetApp Backup Policy Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as azure from "@pulumi/azure"; + * + * const example = new azure.core.ResourceGroup("example", { + * name: "example-resources", + * location: "West Europe", + * }); + * const exampleAccount = new azure.netapp.Account("example", { + * name: "example-netappaccount", + * location: example.location, + * resourceGroupName: example.name, + * }); + * const exampleBackupPolicy = new azure.netapp.BackupPolicy("example", { + * name: "example-netappbackuppolicy", + * resourceGroupName: example.name, + * location: example.location, + * accountName: exampleAccount.name, + * enabled: true, + * }); + * ``` + * + * ## Import + * + * NetApp Backup Policy can be imported using the `resource id`, e.g. + * + * ```sh + * $ pulumi import azure:netapp/backupPolicy:BackupPolicy example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.NetApp/netAppAccounts/account1/backupPolicies/backuppolicy1 + * ``` + */ +export class BackupPolicy extends pulumi.CustomResource { + /** + * Get an existing BackupPolicy resource's state with the given name, ID, and optional extra + * properties used to qualify the lookup. + * + * @param name The _unique_ name of the resulting resource. + * @param id The _unique_ provider ID of the resource to lookup. + * @param state Any extra arguments used during the lookup. + * @param opts Optional settings to control the behavior of the CustomResource. + */ + public static get(name: string, id: pulumi.Input, state?: BackupPolicyState, opts?: pulumi.CustomResourceOptions): BackupPolicy { + return new BackupPolicy(name, state, { ...opts, id: id }); + } + + /** @internal */ + public static readonly __pulumiType = 'azure:netapp/backupPolicy:BackupPolicy'; + + /** + * Returns true if the given object is an instance of BackupPolicy. This is designed to work even + * when multiple copies of the Pulumi SDK have been loaded into the same process. + */ + public static isInstance(obj: any): obj is BackupPolicy { + if (obj === undefined || obj === null) { + return false; + } + return obj['__pulumiType'] === BackupPolicy.__pulumiType; + } + + /** + * The name of the NetApp account in which the NetApp Policy should be created under. Changing this forces a new resource to be created. + */ + public readonly accountName!: pulumi.Output; + /** + * Provides the number of daily backups to keep, defaults to `2` which is the minimum, maximum is 1019. + */ + public readonly dailyBackupsToKeep!: pulumi.Output; + /** + * Whether the Backup Policy is enabled. Defaults to `true`. + */ + public readonly enabled!: pulumi.Output; + /** + * Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. + */ + public readonly location!: pulumi.Output; + /** + * Provides the number of monthly backups to keep, defaults to `1` which is the minimum, maximum is 1019. + * + * > **Note:** Currently, the combined (daily + weekly + monthy) retention counts cannot exceed 1019. + */ + public readonly monthlyBackupsToKeep!: pulumi.Output; + /** + * The name of the NetApp Backup Policy. Changing this forces a new resource to be created. + */ + public readonly name!: pulumi.Output; + /** + * The name of the resource group where the NetApp Backup Policy should be created. Changing this forces a new resource to be created. + */ + public readonly resourceGroupName!: pulumi.Output; + /** + * A mapping of tags to assign to the resource. + */ + public readonly tags!: pulumi.Output<{[key: string]: string} | undefined>; + /** + * Provides the number of weekly backups to keep, defaults to `1` which is the minimum, maximum is 1019. + */ + public readonly weeklyBackupsToKeep!: pulumi.Output; + + /** + * Create a BackupPolicy resource with the given unique name, arguments, and options. + * + * @param name The _unique_ name of the resource. + * @param args The arguments to use to populate this resource's properties. + * @param opts A bag of options that control this resource's behavior. + */ + constructor(name: string, args: BackupPolicyArgs, opts?: pulumi.CustomResourceOptions) + constructor(name: string, argsOrState?: BackupPolicyArgs | BackupPolicyState, opts?: pulumi.CustomResourceOptions) { + let resourceInputs: pulumi.Inputs = {}; + opts = opts || {}; + if (opts.id) { + const state = argsOrState as BackupPolicyState | undefined; + resourceInputs["accountName"] = state ? state.accountName : undefined; + resourceInputs["dailyBackupsToKeep"] = state ? state.dailyBackupsToKeep : undefined; + resourceInputs["enabled"] = state ? state.enabled : undefined; + resourceInputs["location"] = state ? state.location : undefined; + resourceInputs["monthlyBackupsToKeep"] = state ? state.monthlyBackupsToKeep : undefined; + resourceInputs["name"] = state ? state.name : undefined; + resourceInputs["resourceGroupName"] = state ? state.resourceGroupName : undefined; + resourceInputs["tags"] = state ? state.tags : undefined; + resourceInputs["weeklyBackupsToKeep"] = state ? state.weeklyBackupsToKeep : undefined; + } else { + const args = argsOrState as BackupPolicyArgs | undefined; + if ((!args || args.accountName === undefined) && !opts.urn) { + throw new Error("Missing required property 'accountName'"); + } + if ((!args || args.resourceGroupName === undefined) && !opts.urn) { + throw new Error("Missing required property 'resourceGroupName'"); + } + resourceInputs["accountName"] = args ? args.accountName : undefined; + resourceInputs["dailyBackupsToKeep"] = args ? args.dailyBackupsToKeep : undefined; + resourceInputs["enabled"] = args ? args.enabled : undefined; + resourceInputs["location"] = args ? args.location : undefined; + resourceInputs["monthlyBackupsToKeep"] = args ? args.monthlyBackupsToKeep : undefined; + resourceInputs["name"] = args ? args.name : undefined; + resourceInputs["resourceGroupName"] = args ? args.resourceGroupName : undefined; + resourceInputs["tags"] = args ? args.tags : undefined; + resourceInputs["weeklyBackupsToKeep"] = args ? args.weeklyBackupsToKeep : undefined; + } + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); + super(BackupPolicy.__pulumiType, name, resourceInputs, opts); + } +} + +/** + * Input properties used for looking up and filtering BackupPolicy resources. + */ +export interface BackupPolicyState { + /** + * The name of the NetApp account in which the NetApp Policy should be created under. Changing this forces a new resource to be created. + */ + accountName?: pulumi.Input; + /** + * Provides the number of daily backups to keep, defaults to `2` which is the minimum, maximum is 1019. + */ + dailyBackupsToKeep?: pulumi.Input; + /** + * Whether the Backup Policy is enabled. Defaults to `true`. + */ + enabled?: pulumi.Input; + /** + * Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. + */ + location?: pulumi.Input; + /** + * Provides the number of monthly backups to keep, defaults to `1` which is the minimum, maximum is 1019. + * + * > **Note:** Currently, the combined (daily + weekly + monthy) retention counts cannot exceed 1019. + */ + monthlyBackupsToKeep?: pulumi.Input; + /** + * The name of the NetApp Backup Policy. Changing this forces a new resource to be created. + */ + name?: pulumi.Input; + /** + * The name of the resource group where the NetApp Backup Policy should be created. Changing this forces a new resource to be created. + */ + resourceGroupName?: pulumi.Input; + /** + * A mapping of tags to assign to the resource. + */ + tags?: pulumi.Input<{[key: string]: pulumi.Input}>; + /** + * Provides the number of weekly backups to keep, defaults to `1` which is the minimum, maximum is 1019. + */ + weeklyBackupsToKeep?: pulumi.Input; +} + +/** + * The set of arguments for constructing a BackupPolicy resource. + */ +export interface BackupPolicyArgs { + /** + * The name of the NetApp account in which the NetApp Policy should be created under. Changing this forces a new resource to be created. + */ + accountName: pulumi.Input; + /** + * Provides the number of daily backups to keep, defaults to `2` which is the minimum, maximum is 1019. + */ + dailyBackupsToKeep?: pulumi.Input; + /** + * Whether the Backup Policy is enabled. Defaults to `true`. + */ + enabled?: pulumi.Input; + /** + * Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. + */ + location?: pulumi.Input; + /** + * Provides the number of monthly backups to keep, defaults to `1` which is the minimum, maximum is 1019. + * + * > **Note:** Currently, the combined (daily + weekly + monthy) retention counts cannot exceed 1019. + */ + monthlyBackupsToKeep?: pulumi.Input; + /** + * The name of the NetApp Backup Policy. Changing this forces a new resource to be created. + */ + name?: pulumi.Input; + /** + * The name of the resource group where the NetApp Backup Policy should be created. Changing this forces a new resource to be created. + */ + resourceGroupName: pulumi.Input; + /** + * A mapping of tags to assign to the resource. + */ + tags?: pulumi.Input<{[key: string]: pulumi.Input}>; + /** + * Provides the number of weekly backups to keep, defaults to `1` which is the minimum, maximum is 1019. + */ + weeklyBackupsToKeep?: pulumi.Input; +} diff --git a/sdk/nodejs/netapp/backupVault.ts b/sdk/nodejs/netapp/backupVault.ts new file mode 100644 index 0000000000..ec8d431750 --- /dev/null +++ b/sdk/nodejs/netapp/backupVault.ts @@ -0,0 +1,177 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +import * as pulumi from "@pulumi/pulumi"; +import * as utilities from "../utilities"; + +/** + * Manages a NetApp Backup Vault. + * + * ## NetApp Backup Vault Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as azure from "@pulumi/azure"; + * + * const example = new azure.core.ResourceGroup("example", { + * name: "example-resources", + * location: "West Europe", + * }); + * const exampleAccount = new azure.netapp.Account("example", { + * name: "example-netappaccount", + * location: example.location, + * resourceGroupName: example.name, + * }); + * const exampleBackupVault = new azure.netapp.BackupVault("example", { + * name: "example-netappbackupvault", + * resourceGroupName: example.name, + * location: example.location, + * accountName: exampleAccount.name, + * }); + * ``` + * + * ## Import + * + * NetApp Backup Vault can be imported using the `resource id`, e.g. + * + * ```sh + * $ pulumi import azure:netapp/backupVault:BackupVault example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.NetApp/netAppAccounts/account1/backupVaults/backupVault1 + * ``` + */ +export class BackupVault extends pulumi.CustomResource { + /** + * Get an existing BackupVault resource's state with the given name, ID, and optional extra + * properties used to qualify the lookup. + * + * @param name The _unique_ name of the resulting resource. + * @param id The _unique_ provider ID of the resource to lookup. + * @param state Any extra arguments used during the lookup. + * @param opts Optional settings to control the behavior of the CustomResource. + */ + public static get(name: string, id: pulumi.Input, state?: BackupVaultState, opts?: pulumi.CustomResourceOptions): BackupVault { + return new BackupVault(name, state, { ...opts, id: id }); + } + + /** @internal */ + public static readonly __pulumiType = 'azure:netapp/backupVault:BackupVault'; + + /** + * Returns true if the given object is an instance of BackupVault. This is designed to work even + * when multiple copies of the Pulumi SDK have been loaded into the same process. + */ + public static isInstance(obj: any): obj is BackupVault { + if (obj === undefined || obj === null) { + return false; + } + return obj['__pulumiType'] === BackupVault.__pulumiType; + } + + /** + * The name of the NetApp account in which the NetApp Vault should be created under. Changing this forces a new resource to be created. + */ + public readonly accountName!: pulumi.Output; + /** + * Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. + */ + public readonly location!: pulumi.Output; + /** + * The name of the NetApp Backup Vault. Changing this forces a new resource to be created. + */ + public readonly name!: pulumi.Output; + /** + * The name of the resource group where the NetApp Backup Vault should be created. Changing this forces a new resource to be created. + */ + public readonly resourceGroupName!: pulumi.Output; + /** + * A mapping of tags to assign to the resource. + */ + public readonly tags!: pulumi.Output<{[key: string]: string} | undefined>; + + /** + * Create a BackupVault resource with the given unique name, arguments, and options. + * + * @param name The _unique_ name of the resource. + * @param args The arguments to use to populate this resource's properties. + * @param opts A bag of options that control this resource's behavior. + */ + constructor(name: string, args: BackupVaultArgs, opts?: pulumi.CustomResourceOptions) + constructor(name: string, argsOrState?: BackupVaultArgs | BackupVaultState, opts?: pulumi.CustomResourceOptions) { + let resourceInputs: pulumi.Inputs = {}; + opts = opts || {}; + if (opts.id) { + const state = argsOrState as BackupVaultState | undefined; + resourceInputs["accountName"] = state ? state.accountName : undefined; + resourceInputs["location"] = state ? state.location : undefined; + resourceInputs["name"] = state ? state.name : undefined; + resourceInputs["resourceGroupName"] = state ? state.resourceGroupName : undefined; + resourceInputs["tags"] = state ? state.tags : undefined; + } else { + const args = argsOrState as BackupVaultArgs | undefined; + if ((!args || args.accountName === undefined) && !opts.urn) { + throw new Error("Missing required property 'accountName'"); + } + if ((!args || args.resourceGroupName === undefined) && !opts.urn) { + throw new Error("Missing required property 'resourceGroupName'"); + } + resourceInputs["accountName"] = args ? args.accountName : undefined; + resourceInputs["location"] = args ? args.location : undefined; + resourceInputs["name"] = args ? args.name : undefined; + resourceInputs["resourceGroupName"] = args ? args.resourceGroupName : undefined; + resourceInputs["tags"] = args ? args.tags : undefined; + } + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); + super(BackupVault.__pulumiType, name, resourceInputs, opts); + } +} + +/** + * Input properties used for looking up and filtering BackupVault resources. + */ +export interface BackupVaultState { + /** + * The name of the NetApp account in which the NetApp Vault should be created under. Changing this forces a new resource to be created. + */ + accountName?: pulumi.Input; + /** + * Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. + */ + location?: pulumi.Input; + /** + * The name of the NetApp Backup Vault. Changing this forces a new resource to be created. + */ + name?: pulumi.Input; + /** + * The name of the resource group where the NetApp Backup Vault should be created. Changing this forces a new resource to be created. + */ + resourceGroupName?: pulumi.Input; + /** + * A mapping of tags to assign to the resource. + */ + tags?: pulumi.Input<{[key: string]: pulumi.Input}>; +} + +/** + * The set of arguments for constructing a BackupVault resource. + */ +export interface BackupVaultArgs { + /** + * The name of the NetApp account in which the NetApp Vault should be created under. Changing this forces a new resource to be created. + */ + accountName: pulumi.Input; + /** + * Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. + */ + location?: pulumi.Input; + /** + * The name of the NetApp Backup Vault. Changing this forces a new resource to be created. + */ + name?: pulumi.Input; + /** + * The name of the resource group where the NetApp Backup Vault should be created. Changing this forces a new resource to be created. + */ + resourceGroupName: pulumi.Input; + /** + * A mapping of tags to assign to the resource. + */ + tags?: pulumi.Input<{[key: string]: pulumi.Input}>; +} diff --git a/sdk/nodejs/netapp/getAccountEncryption.ts b/sdk/nodejs/netapp/getAccountEncryption.ts index 5e8cf06b31..aded140e71 100644 --- a/sdk/nodejs/netapp/getAccountEncryption.ts +++ b/sdk/nodejs/netapp/getAccountEncryption.ts @@ -22,10 +22,7 @@ import * as utilities from "../utilities"; export function getAccountEncryption(args: GetAccountEncryptionArgs, opts?: pulumi.InvokeOptions): Promise { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("azure:netapp/getAccountEncryption:getAccountEncryption", { - "encryptionKey": args.encryptionKey, "netappAccountId": args.netappAccountId, - "systemAssignedIdentityPrincipalId": args.systemAssignedIdentityPrincipalId, - "userAssignedIdentityId": args.userAssignedIdentityId, }, opts); } @@ -33,36 +30,24 @@ export function getAccountEncryption(args: GetAccountEncryptionArgs, opts?: pulu * A collection of arguments for invoking getAccountEncryption. */ export interface GetAccountEncryptionArgs { - /** - * The key vault encryption key. - */ - encryptionKey?: string; /** * The ID of the NetApp account where customer managed keys-based encryption is enabled. */ netappAccountId: string; - /** - * The ID of the System Assigned Manged Identity. - */ - systemAssignedIdentityPrincipalId?: string; - /** - * The ID of the User Assigned Managed Identity. - */ - userAssignedIdentityId?: string; } /** * A collection of values returned by getAccountEncryption. */ export interface GetAccountEncryptionResult { - readonly encryptionKey?: string; + readonly encryptionKey: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly netappAccountId: string; - readonly systemAssignedIdentityPrincipalId?: string; - readonly userAssignedIdentityId?: string; + readonly systemAssignedIdentityPrincipalId: string; + readonly userAssignedIdentityId: string; } /** * Use this data source to access information about an existing NetApp Account Encryption Resource. @@ -82,10 +67,7 @@ export interface GetAccountEncryptionResult { export function getAccountEncryptionOutput(args: GetAccountEncryptionOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("azure:netapp/getAccountEncryption:getAccountEncryption", { - "encryptionKey": args.encryptionKey, "netappAccountId": args.netappAccountId, - "systemAssignedIdentityPrincipalId": args.systemAssignedIdentityPrincipalId, - "userAssignedIdentityId": args.userAssignedIdentityId, }, opts); } @@ -93,20 +75,8 @@ export function getAccountEncryptionOutput(args: GetAccountEncryptionOutputArgs, * A collection of arguments for invoking getAccountEncryption. */ export interface GetAccountEncryptionOutputArgs { - /** - * The key vault encryption key. - */ - encryptionKey?: pulumi.Input; /** * The ID of the NetApp account where customer managed keys-based encryption is enabled. */ netappAccountId: pulumi.Input; - /** - * The ID of the System Assigned Manged Identity. - */ - systemAssignedIdentityPrincipalId?: pulumi.Input; - /** - * The ID of the User Assigned Managed Identity. - */ - userAssignedIdentityId?: pulumi.Input; } diff --git a/sdk/nodejs/netapp/getBackupPolicy.ts b/sdk/nodejs/netapp/getBackupPolicy.ts new file mode 100644 index 0000000000..3d31df7ca3 --- /dev/null +++ b/sdk/nodejs/netapp/getBackupPolicy.ts @@ -0,0 +1,132 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +import * as pulumi from "@pulumi/pulumi"; +import * as utilities from "../utilities"; + +/** + * Use this data source to access information about an existing NetApp Backup Vault. + * + * ## NetApp Backup Policy Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as azure from "@pulumi/azure"; + * + * const example = azure.netapp.getBackupPolicy({ + * resourceGroupName: "example-resource-group", + * accountName: "example-netappaccount", + * name: "example-backuppolicy", + * }); + * export const backupPolicyId = example.then(example => example.id); + * ``` + */ +export function getBackupPolicy(args: GetBackupPolicyArgs, opts?: pulumi.InvokeOptions): Promise { + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invoke("azure:netapp/getBackupPolicy:getBackupPolicy", { + "accountName": args.accountName, + "name": args.name, + "resourceGroupName": args.resourceGroupName, + }, opts); +} + +/** + * A collection of arguments for invoking getBackupPolicy. + */ +export interface GetBackupPolicyArgs { + /** + * The name of the NetApp Account in which the NetApp Policy exists. + */ + accountName: string; + /** + * The name of the NetApp Backup Policy. + */ + name: string; + /** + * The name of the resource group where the NetApp Backup Policy exists. + */ + resourceGroupName: string; +} + +/** + * A collection of values returned by getBackupPolicy. + */ +export interface GetBackupPolicyResult { + /** + * The name of the NetApp account in which the NetApp Policy exists. + */ + readonly accountName: string; + /** + * The number of daily backups to keep. + */ + readonly dailyBackupsToKeep: number; + /** + * Whether the Backup Policy is enabled. + */ + readonly enabled: boolean; + /** + * The provider-assigned unique ID for this managed resource. + */ + readonly id: string; + /** + * NetApp Backup Policy location. + */ + readonly location: string; + /** + * The number of monthly backups to keep. + */ + readonly monthlyBackupsToKeep: number; + readonly name: string; + readonly resourceGroupName: string; + /** + * List of tags assigned to the resource. + */ + readonly tags: {[key: string]: string}; + /** + * The number of weekly backups to keep. + */ + readonly weeklyBackupsToKeep: number; +} +/** + * Use this data source to access information about an existing NetApp Backup Vault. + * + * ## NetApp Backup Policy Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as azure from "@pulumi/azure"; + * + * const example = azure.netapp.getBackupPolicy({ + * resourceGroupName: "example-resource-group", + * accountName: "example-netappaccount", + * name: "example-backuppolicy", + * }); + * export const backupPolicyId = example.then(example => example.id); + * ``` + */ +export function getBackupPolicyOutput(args: GetBackupPolicyOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("azure:netapp/getBackupPolicy:getBackupPolicy", { + "accountName": args.accountName, + "name": args.name, + "resourceGroupName": args.resourceGroupName, + }, opts); +} + +/** + * A collection of arguments for invoking getBackupPolicy. + */ +export interface GetBackupPolicyOutputArgs { + /** + * The name of the NetApp Account in which the NetApp Policy exists. + */ + accountName: pulumi.Input; + /** + * The name of the NetApp Backup Policy. + */ + name: pulumi.Input; + /** + * The name of the resource group where the NetApp Backup Policy exists. + */ + resourceGroupName: pulumi.Input; +} diff --git a/sdk/nodejs/netapp/getBackupVault.ts b/sdk/nodejs/netapp/getBackupVault.ts new file mode 100644 index 0000000000..5950be9eba --- /dev/null +++ b/sdk/nodejs/netapp/getBackupVault.ts @@ -0,0 +1,107 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +import * as pulumi from "@pulumi/pulumi"; +import * as utilities from "../utilities"; + +/** + * Use this data source to access information about an existing NetApp Backup Vault. + * + * ## NetApp Backup Vault Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as azure from "@pulumi/azure"; + * + * const example = azure.netapp.getBackupVault({ + * resourceGroupName: "example-resource-group", + * accountName: "example-netappaccount", + * name: "example-backupvault", + * }); + * export const backupVaultId = example.then(example => example.id); + * ``` + */ +export function getBackupVault(args: GetBackupVaultArgs, opts?: pulumi.InvokeOptions): Promise { + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invoke("azure:netapp/getBackupVault:getBackupVault", { + "accountName": args.accountName, + "name": args.name, + "resourceGroupName": args.resourceGroupName, + }, opts); +} + +/** + * A collection of arguments for invoking getBackupVault. + */ +export interface GetBackupVaultArgs { + /** + * The name of the NetApp Account in which the NetApp Vault exists. + */ + accountName: string; + /** + * The name of the NetApp Backup Vault. + */ + name: string; + /** + * The name of the resource group where the NetApp Backup Vault exists. + */ + resourceGroupName: string; +} + +/** + * A collection of values returned by getBackupVault. + */ +export interface GetBackupVaultResult { + readonly accountName: string; + /** + * The provider-assigned unique ID for this managed resource. + */ + readonly id: string; + readonly location: string; + readonly name: string; + readonly resourceGroupName: string; + readonly tags: {[key: string]: string}; +} +/** + * Use this data source to access information about an existing NetApp Backup Vault. + * + * ## NetApp Backup Vault Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as azure from "@pulumi/azure"; + * + * const example = azure.netapp.getBackupVault({ + * resourceGroupName: "example-resource-group", + * accountName: "example-netappaccount", + * name: "example-backupvault", + * }); + * export const backupVaultId = example.then(example => example.id); + * ``` + */ +export function getBackupVaultOutput(args: GetBackupVaultOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); + return pulumi.runtime.invokeOutput("azure:netapp/getBackupVault:getBackupVault", { + "accountName": args.accountName, + "name": args.name, + "resourceGroupName": args.resourceGroupName, + }, opts); +} + +/** + * A collection of arguments for invoking getBackupVault. + */ +export interface GetBackupVaultOutputArgs { + /** + * The name of the NetApp Account in which the NetApp Vault exists. + */ + accountName: pulumi.Input; + /** + * The name of the NetApp Backup Vault. + */ + name: pulumi.Input; + /** + * The name of the resource group where the NetApp Backup Vault exists. + */ + resourceGroupName: pulumi.Input; +} diff --git a/sdk/nodejs/netapp/getVolume.ts b/sdk/nodejs/netapp/getVolume.ts index a0262052a0..4bb6b40dee 100644 --- a/sdk/nodejs/netapp/getVolume.ts +++ b/sdk/nodejs/netapp/getVolume.ts @@ -67,7 +67,11 @@ export interface GetVolumeArgs { export interface GetVolumeResult { readonly accountName: string; /** - * Volume data protection block + * A data protecion backup policy block + */ + readonly dataProtectionBackupPolicies: outputs.netapp.GetVolumeDataProtectionBackupPolicy[]; + /** + * Volume data protection replication block */ readonly dataProtectionReplications: outputs.netapp.GetVolumeDataProtectionReplication[]; readonly encryptionKeySource: string; diff --git a/sdk/nodejs/netapp/index.ts b/sdk/nodejs/netapp/index.ts index 1ff20e9707..4895bba667 100644 --- a/sdk/nodejs/netapp/index.ts +++ b/sdk/nodejs/netapp/index.ts @@ -15,6 +15,16 @@ export type AccountEncryption = import("./accountEncryption").AccountEncryption; export const AccountEncryption: typeof import("./accountEncryption").AccountEncryption = null as any; utilities.lazyLoad(exports, ["AccountEncryption"], () => require("./accountEncryption")); +export { BackupPolicyArgs, BackupPolicyState } from "./backupPolicy"; +export type BackupPolicy = import("./backupPolicy").BackupPolicy; +export const BackupPolicy: typeof import("./backupPolicy").BackupPolicy = null as any; +utilities.lazyLoad(exports, ["BackupPolicy"], () => require("./backupPolicy")); + +export { BackupVaultArgs, BackupVaultState } from "./backupVault"; +export type BackupVault = import("./backupVault").BackupVault; +export const BackupVault: typeof import("./backupVault").BackupVault = null as any; +utilities.lazyLoad(exports, ["BackupVault"], () => require("./backupVault")); + export { GetAccountArgs, GetAccountResult, GetAccountOutputArgs } from "./getAccount"; export const getAccount: typeof import("./getAccount").getAccount = null as any; export const getAccountOutput: typeof import("./getAccount").getAccountOutput = null as any; @@ -25,6 +35,16 @@ export const getAccountEncryption: typeof import("./getAccountEncryption").getAc export const getAccountEncryptionOutput: typeof import("./getAccountEncryption").getAccountEncryptionOutput = null as any; utilities.lazyLoad(exports, ["getAccountEncryption","getAccountEncryptionOutput"], () => require("./getAccountEncryption")); +export { GetBackupPolicyArgs, GetBackupPolicyResult, GetBackupPolicyOutputArgs } from "./getBackupPolicy"; +export const getBackupPolicy: typeof import("./getBackupPolicy").getBackupPolicy = null as any; +export const getBackupPolicyOutput: typeof import("./getBackupPolicy").getBackupPolicyOutput = null as any; +utilities.lazyLoad(exports, ["getBackupPolicy","getBackupPolicyOutput"], () => require("./getBackupPolicy")); + +export { GetBackupVaultArgs, GetBackupVaultResult, GetBackupVaultOutputArgs } from "./getBackupVault"; +export const getBackupVault: typeof import("./getBackupVault").getBackupVault = null as any; +export const getBackupVaultOutput: typeof import("./getBackupVault").getBackupVaultOutput = null as any; +utilities.lazyLoad(exports, ["getBackupVault","getBackupVaultOutput"], () => require("./getBackupVault")); + export { GetPoolArgs, GetPoolResult, GetPoolOutputArgs } from "./getPool"; export const getPool: typeof import("./getPool").getPool = null as any; export const getPoolOutput: typeof import("./getPool").getPoolOutput = null as any; @@ -94,6 +114,10 @@ const _module = { return new Account(name, undefined, { urn }) case "azure:netapp/accountEncryption:AccountEncryption": return new AccountEncryption(name, undefined, { urn }) + case "azure:netapp/backupPolicy:BackupPolicy": + return new BackupPolicy(name, undefined, { urn }) + case "azure:netapp/backupVault:BackupVault": + return new BackupVault(name, undefined, { urn }) case "azure:netapp/pool:Pool": return new Pool(name, undefined, { urn }) case "azure:netapp/snapshot:Snapshot": @@ -113,6 +137,8 @@ const _module = { }; pulumi.runtime.registerResourceModule("azure", "netapp/account", _module) pulumi.runtime.registerResourceModule("azure", "netapp/accountEncryption", _module) +pulumi.runtime.registerResourceModule("azure", "netapp/backupPolicy", _module) +pulumi.runtime.registerResourceModule("azure", "netapp/backupVault", _module) pulumi.runtime.registerResourceModule("azure", "netapp/pool", _module) pulumi.runtime.registerResourceModule("azure", "netapp/snapshot", _module) pulumi.runtime.registerResourceModule("azure", "netapp/snapshotPolicy", _module) diff --git a/sdk/nodejs/netapp/volume.ts b/sdk/nodejs/netapp/volume.ts index 20e105610b..c441d75193 100644 --- a/sdk/nodejs/netapp/volume.ts +++ b/sdk/nodejs/netapp/volume.ts @@ -7,6 +7,10 @@ import * as outputs from "../types/output"; import * as utilities from "../utilities"; /** + * Manages a NetApp Volume. + * + * !>**IMPORTANT:** This resource uses a feature to prevent deletion called `preventVolumeDestruction`, defaulting to `true`. It is intentionally set to `true` to prevent the possibility of accidental data loss. The example in this page shows all possible protection options you can apply, it is using same values as the defaults. + * * ## Import * * NetApp Volumes can be imported using the `resource id`, e.g. @@ -55,6 +59,10 @@ export class Volume extends pulumi.CustomResource { * Creates volume from snapshot. Following properties must be the same as the original volume where the snapshot was taken from: `protocols`, `subnetId`, `location`, `serviceLevel`, `resourceGroupName`, `accountName` and `poolName`. Changing this forces a new resource to be created. */ public readonly createFromSnapshotResourceId!: pulumi.Output; + /** + * A `dataProtectionBackupPolicy` block as defined below. + */ + public readonly dataProtectionBackupPolicy!: pulumi.Output; /** * A `dataProtectionReplication` block as defined below. Changing this forces a new resource to be created. */ @@ -135,7 +143,7 @@ export class Volume extends pulumi.CustomResource { /** * Specifies whether the .snapshot (NFS clients) or ~snapshot (SMB clients) path of a volume is visible, default value is true. */ - public readonly snapshotDirectoryVisible!: pulumi.Output; + public readonly snapshotDirectoryVisible!: pulumi.Output; /** * The maximum Storage Quota allowed for a file system in Gigabytes. */ @@ -179,6 +187,7 @@ export class Volume extends pulumi.CustomResource { resourceInputs["accountName"] = state ? state.accountName : undefined; resourceInputs["azureVmwareDataStoreEnabled"] = state ? state.azureVmwareDataStoreEnabled : undefined; resourceInputs["createFromSnapshotResourceId"] = state ? state.createFromSnapshotResourceId : undefined; + resourceInputs["dataProtectionBackupPolicy"] = state ? state.dataProtectionBackupPolicy : undefined; resourceInputs["dataProtectionReplication"] = state ? state.dataProtectionReplication : undefined; resourceInputs["dataProtectionSnapshotPolicy"] = state ? state.dataProtectionSnapshotPolicy : undefined; resourceInputs["encryptionKeySource"] = state ? state.encryptionKeySource : undefined; @@ -231,6 +240,7 @@ export class Volume extends pulumi.CustomResource { resourceInputs["accountName"] = args ? args.accountName : undefined; resourceInputs["azureVmwareDataStoreEnabled"] = args ? args.azureVmwareDataStoreEnabled : undefined; resourceInputs["createFromSnapshotResourceId"] = args ? args.createFromSnapshotResourceId : undefined; + resourceInputs["dataProtectionBackupPolicy"] = args ? args.dataProtectionBackupPolicy : undefined; resourceInputs["dataProtectionReplication"] = args ? args.dataProtectionReplication : undefined; resourceInputs["dataProtectionSnapshotPolicy"] = args ? args.dataProtectionSnapshotPolicy : undefined; resourceInputs["encryptionKeySource"] = args ? args.encryptionKeySource : undefined; @@ -279,6 +289,10 @@ export interface VolumeState { * Creates volume from snapshot. Following properties must be the same as the original volume where the snapshot was taken from: `protocols`, `subnetId`, `location`, `serviceLevel`, `resourceGroupName`, `accountName` and `poolName`. Changing this forces a new resource to be created. */ createFromSnapshotResourceId?: pulumi.Input; + /** + * A `dataProtectionBackupPolicy` block as defined below. + */ + dataProtectionBackupPolicy?: pulumi.Input; /** * A `dataProtectionReplication` block as defined below. Changing this forces a new resource to be created. */ @@ -404,6 +418,10 @@ export interface VolumeArgs { * Creates volume from snapshot. Following properties must be the same as the original volume where the snapshot was taken from: `protocols`, `subnetId`, `location`, `serviceLevel`, `resourceGroupName`, `accountName` and `poolName`. Changing this forces a new resource to be created. */ createFromSnapshotResourceId?: pulumi.Input; + /** + * A `dataProtectionBackupPolicy` block as defined below. + */ + dataProtectionBackupPolicy?: pulumi.Input; /** * A `dataProtectionReplication` block as defined below. Changing this forces a new resource to be created. */ diff --git a/sdk/nodejs/network/trafficManagerAzureEndpoint.ts b/sdk/nodejs/network/trafficManagerAzureEndpoint.ts index 66db06d9ee..87db35395f 100644 --- a/sdk/nodejs/network/trafficManagerAzureEndpoint.ts +++ b/sdk/nodejs/network/trafficManagerAzureEndpoint.ts @@ -112,9 +112,9 @@ export class TrafficManagerAzureEndpoint extends pulumi.CustomResource { */ public readonly name!: pulumi.Output; /** - * Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. Defaults to `1`. + * Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. */ - public readonly priority!: pulumi.Output; + public readonly priority!: pulumi.Output; /** * The ID of the Traffic Manager Profile that this Azure Endpoint should be created within. Changing this forces a new resource to be created. */ @@ -204,7 +204,7 @@ export interface TrafficManagerAzureEndpointState { */ name?: pulumi.Input; /** - * Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. Defaults to `1`. + * Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. */ priority?: pulumi.Input; /** @@ -250,7 +250,7 @@ export interface TrafficManagerAzureEndpointArgs { */ name?: pulumi.Input; /** - * Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. Defaults to `1`. + * Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. */ priority?: pulumi.Input; /** diff --git a/sdk/nodejs/network/trafficManagerExternalEndpoint.ts b/sdk/nodejs/network/trafficManagerExternalEndpoint.ts index 451608170d..07fa92406e 100644 --- a/sdk/nodejs/network/trafficManagerExternalEndpoint.ts +++ b/sdk/nodejs/network/trafficManagerExternalEndpoint.ts @@ -109,9 +109,9 @@ export class TrafficManagerExternalEndpoint extends pulumi.CustomResource { */ public readonly name!: pulumi.Output; /** - * Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. Defaults to `1`. + * Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. */ - public readonly priority!: pulumi.Output; + public readonly priority!: pulumi.Output; /** * The ID of the Traffic Manager Profile that this External Endpoint should be created within. Changing this forces a new resource to be created. */ @@ -207,7 +207,7 @@ export interface TrafficManagerExternalEndpointState { */ name?: pulumi.Input; /** - * Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. Defaults to `1`. + * Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. */ priority?: pulumi.Input; /** @@ -257,7 +257,7 @@ export interface TrafficManagerExternalEndpointArgs { */ name?: pulumi.Input; /** - * Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. Defaults to `1`. + * Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. */ priority?: pulumi.Input; /** diff --git a/sdk/nodejs/tsconfig.json b/sdk/nodejs/tsconfig.json index 56ddea4515..b5d31dfee2 100644 --- a/sdk/nodejs/tsconfig.json +++ b/sdk/nodejs/tsconfig.json @@ -848,6 +848,7 @@ "keyvault/getKey.ts", "keyvault/getKeyVault.ts", "keyvault/getManagedHardwareSecurityModule.ts", + "keyvault/getManagedHardwareSecurityModuleKey.ts", "keyvault/getManagedHardwareSecurityModuleRoleDefinition.ts", "keyvault/getSecret.ts", "keyvault/getSecrets.ts", @@ -1075,8 +1076,12 @@ "mysql/index.ts", "netapp/account.ts", "netapp/accountEncryption.ts", + "netapp/backupPolicy.ts", + "netapp/backupVault.ts", "netapp/getAccount.ts", "netapp/getAccountEncryption.ts", + "netapp/getBackupPolicy.ts", + "netapp/getBackupVault.ts", "netapp/getPool.ts", "netapp/getSnapshot.ts", "netapp/getSnapshotPolicy.ts", diff --git a/sdk/nodejs/types/input.ts b/sdk/nodejs/types/input.ts index aadaac00fc..8f764729b2 100644 --- a/sdk/nodejs/types/input.ts +++ b/sdk/nodejs/types/input.ts @@ -14,6 +14,7 @@ export interface ProviderFeatures { logAnalyticsWorkspace?: pulumi.Input; machineLearning?: pulumi.Input; managedDisk?: pulumi.Input; + netapp?: pulumi.Input; postgresqlFlexibleServer?: pulumi.Input; recoveryService?: pulumi.Input; recoveryServicesVaults?: pulumi.Input; @@ -102,6 +103,17 @@ export interface ProviderFeaturesManagedDisk { expandWithoutDowntime?: pulumi.Input; } +export interface ProviderFeaturesNetapp { + /** + * When enabled, backups will be deleted when the `azure.netapp.BackupVault` resource is destroyed + */ + deleteBackupsOnBackupVaultDestroy?: pulumi.Input; + /** + * When enabled, the volume will not be destroyed, safeguarding from severe data loss + */ + preventVolumeDestruction?: pulumi.Input; +} + export interface ProviderFeaturesPostgresqlFlexibleServer { restartServerOnConfigurationValueChange?: pulumi.Input; } @@ -5431,7 +5443,7 @@ export namespace appservice { */ dockers?: pulumi.Input[]>; /** - * The version of .NET to use. Possible values include `3.1`, `6.0`, `7.0` and `8.0`. + * The version of .NET to use. Possible values include `3.1`, `6.0`, `7.0`, `8.0` and `9.0`. */ dotnetVersion?: pulumi.Input; /** @@ -6435,7 +6447,7 @@ export namespace appservice { */ dockers?: pulumi.Input[]>; /** - * The version of .Net. Possible values are `3.1`, `6.0`, `7.0` and `8.0`. + * The version of .Net. Possible values are `3.1`, `6.0`, `7.0`, `8.0` and `9.0`. */ dotnetVersion?: pulumi.Input; /** @@ -7547,7 +7559,7 @@ export namespace appservice { */ dockerRegistryUsername?: pulumi.Input; /** - * The version of .NET to use. Possible values include `3.1`, `5.0`, `6.0`, `7.0` and `8.0`. + * The version of .NET to use. Possible values include `3.1`, `5.0`, `6.0`, `7.0`, `8.0` and `9.0`. */ dotnetVersion?: pulumi.Input; /** @@ -8702,7 +8714,7 @@ export namespace appservice { */ dockerRegistryUsername?: pulumi.Input; /** - * The version of .NET to use. Possible values include `3.1`, `5.0`, `6.0`, `7.0` and `8.0`. + * The version of .NET to use. Possible values include `3.1`, `5.0`, `6.0`, `7.0`, `8.0` and `9.0`. */ dotnetVersion?: pulumi.Input; /** @@ -10555,7 +10567,7 @@ export namespace appservice { export interface WindowsFunctionAppSiteConfigApplicationStack { /** - * The version of .NET to use. Possible values include `v3.0`, `v4.0` `v6.0`, `v7.0` and `v8.0`. Defaults to `v4.0`. + * The version of .NET to use. Possible values include `v3.0`, `v4.0` `v6.0`, `v7.0`, `v8.0` and `v9.0`. Defaults to `v4.0`. */ dotnetVersion?: pulumi.Input; /** @@ -11518,7 +11530,7 @@ export namespace appservice { export interface WindowsFunctionAppSlotSiteConfigApplicationStack { /** - * The version of .Net. Possible values are `v3.0`, `v4.0`, `v6.0`, `v7.0` and `v8.0`. Defaults to `v4.0`. + * The version of .Net. Possible values are `v3.0`, `v4.0`, `v6.0`, `v7.0`, `v8.0` and `v9.0`. Defaults to `v4.0`. */ dotnetVersion?: pulumi.Input; /** @@ -12620,7 +12632,7 @@ export namespace appservice { */ dotnetCoreVersion?: pulumi.Input; /** - * The version of .NET to use when `currentStack` is set to `dotnet`. Possible values include `v2.0`,`v3.0`, `v4.0`, `v5.0`, `v6.0`, `v7.0` and `v8.0`. + * The version of .NET to use when `currentStack` is set to `dotnet`. Possible values include `v2.0`,`v3.0`, `v4.0`, `v5.0`, `v6.0`, `v7.0`, `v8.0` and `v9.0`. * * > **NOTE:** The Portal displayed values and the actual underlying API values differ for this setting, as follows: * Portal Value | API value @@ -12630,6 +12642,7 @@ export namespace appservice { * .NET 6 (LTS) | v6.0 * .NET 7 (STS) | v7.0 * .NET 8 (LTS) | v8.0 + * .NET 9 (STS) | v9.0 */ dotnetVersion?: pulumi.Input; /** @@ -13864,7 +13877,7 @@ export namespace appservice { */ dotnetCoreVersion?: pulumi.Input; /** - * The version of .NET to use when `currentStack` is set to `dotnet`. Possible values include `v2.0`,`v3.0`, `v4.0`, `v5.0`, `v6.0`, `v7.0` and `v8.0`. + * The version of .NET to use when `currentStack` is set to `dotnet`. Possible values include `v2.0`,`v3.0`, `v4.0`, `v5.0`, `v6.0`, `v7.0`, `v8.0` and `v9.0`. */ dotnetVersion?: pulumi.Input; /** @@ -40276,8 +40289,9 @@ export namespace mssql { } export interface DatabaseLongTermRetentionPolicy { + immutableBackupsEnabled?: pulumi.Input; /** - * The monthly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 120 months. e.g. `P1Y`, `P1M`, `P4W` or `P30D`. + * The monthly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 120 months. e.g. `P1Y`, `P1M`, `P4W` or `P30D`. Defaults to `PT0S`. */ monthlyRetention?: pulumi.Input; /** @@ -40285,11 +40299,11 @@ export namespace mssql { */ weekOfYear?: pulumi.Input; /** - * The weekly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 520 weeks. e.g. `P1Y`, `P1M`, `P1W` or `P7D`. + * The weekly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 520 weeks. e.g. `P1Y`, `P1M`, `P1W` or `P7D`. Defaults to `PT0S`. */ weeklyRetention?: pulumi.Input; /** - * The yearly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 10 years. e.g. `P1Y`, `P12M`, `P52W` or `P365D`. + * The yearly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 10 years. e.g. `P1Y`, `P12M`, `P52W` or `P365D`. Defaults to `PT0S`. */ yearlyRetention?: pulumi.Input; } @@ -40400,8 +40414,9 @@ export namespace mssql { } export interface ManagedDatabaseLongTermRetentionPolicy { + immutableBackupsEnabled?: pulumi.Input; /** - * The monthly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 120 months. e.g. `P1Y`, `P1M`, `P4W` or `P30D`. + * The monthly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 120 months. e.g. `P1Y`, `P1M`, `P4W` or `P30D`. Defaults to `PT0S`. */ monthlyRetention?: pulumi.Input; /** @@ -40409,11 +40424,11 @@ export namespace mssql { */ weekOfYear?: pulumi.Input; /** - * The weekly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 520 weeks. e.g. `P1Y`, `P1M`, `P1W` or `P7D`. + * The weekly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 520 weeks. e.g. `P1Y`, `P1M`, `P1W` or `P7D`. Defaults to `PT0S`. */ weeklyRetention?: pulumi.Input; /** - * The yearly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 10 years. e.g. `P1Y`, `P12M`, `P52W` or `P365D`. + * The yearly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 10 years. e.g. `P1Y`, `P12M`, `P52W` or `P365D`. Defaults to `PT0S`. */ yearlyRetention?: pulumi.Input; } @@ -41121,6 +41136,23 @@ export namespace netapp { snapshotsToKeep: pulumi.Input; } + export interface VolumeDataProtectionBackupPolicy { + /** + * Resource ID of the backup policy to apply to the volume. + */ + backupPolicyId: pulumi.Input; + /** + * Resource ID of the backup backup vault to associate this volume to. + */ + backupVaultId: pulumi.Input; + /** + * Enables the backup policy on the volume, defaults to `true`. + * + * For more information on Azure NetApp Files Backup feature please see [Understand Azure NetApp Files backup](https://learn.microsoft.com/en-us/azure/azure-netapp-files/backup-introduction) + */ + policyEnabled?: pulumi.Input; + } + export interface VolumeDataProtectionReplication { /** * The endpoint type, default value is `dst` for destination. @@ -41477,7 +41509,7 @@ export namespace network { */ id?: pulumi.Input; /** - * Status code of the application gateway customer error. Possible values are `HttpStatus403` and `HttpStatus502` + * Status code of the application gateway customer error. Possible values are `HttpStatus400`, `HttpStatus403`, `HttpStatus404`, `HttpStatus405`, `HttpStatus408`, `HttpStatus500`, `HttpStatus502`, `HttpStatus503` and `HttpStatus504` */ statusCode: pulumi.Input; } @@ -41637,7 +41669,7 @@ export namespace network { */ id?: pulumi.Input; /** - * Status code of the application gateway customer error. Possible values are `HttpStatus403` and `HttpStatus502` + * Status code of the application gateway customer error. Possible values are `HttpStatus400`, `HttpStatus403`, `HttpStatus404`, `HttpStatus405`, `HttpStatus408`, `HttpStatus500`, `HttpStatus502`, `HttpStatus503` and `HttpStatus504` */ statusCode: pulumi.Input; } diff --git a/sdk/nodejs/types/output.ts b/sdk/nodejs/types/output.ts index f760393eaf..5482cf2eba 100644 --- a/sdk/nodejs/types/output.ts +++ b/sdk/nodejs/types/output.ts @@ -10580,7 +10580,7 @@ export namespace appservice { */ dockers?: outputs.appservice.LinuxFunctionAppSiteConfigApplicationStackDocker[]; /** - * The version of .NET to use. Possible values include `3.1`, `6.0`, `7.0` and `8.0`. + * The version of .NET to use. Possible values include `3.1`, `6.0`, `7.0`, `8.0` and `9.0`. */ dotnetVersion?: string; /** @@ -11584,7 +11584,7 @@ export namespace appservice { */ dockers?: outputs.appservice.LinuxFunctionAppSlotSiteConfigApplicationStackDocker[]; /** - * The version of .Net. Possible values are `3.1`, `6.0`, `7.0` and `8.0`. + * The version of .Net. Possible values are `3.1`, `6.0`, `7.0`, `8.0` and `9.0`. */ dotnetVersion?: string; /** @@ -12696,7 +12696,7 @@ export namespace appservice { */ dockerRegistryUsername?: string; /** - * The version of .NET to use. Possible values include `3.1`, `5.0`, `6.0`, `7.0` and `8.0`. + * The version of .NET to use. Possible values include `3.1`, `5.0`, `6.0`, `7.0`, `8.0` and `9.0`. */ dotnetVersion?: string; /** @@ -13851,7 +13851,7 @@ export namespace appservice { */ dockerRegistryUsername?: string; /** - * The version of .NET to use. Possible values include `3.1`, `5.0`, `6.0`, `7.0` and `8.0`. + * The version of .NET to use. Possible values include `3.1`, `5.0`, `6.0`, `7.0`, `8.0` and `9.0`. */ dotnetVersion?: string; /** @@ -15704,7 +15704,7 @@ export namespace appservice { export interface WindowsFunctionAppSiteConfigApplicationStack { /** - * The version of .NET to use. Possible values include `v3.0`, `v4.0` `v6.0`, `v7.0` and `v8.0`. Defaults to `v4.0`. + * The version of .NET to use. Possible values include `v3.0`, `v4.0` `v6.0`, `v7.0`, `v8.0` and `v9.0`. Defaults to `v4.0`. */ dotnetVersion?: string; /** @@ -16667,7 +16667,7 @@ export namespace appservice { export interface WindowsFunctionAppSlotSiteConfigApplicationStack { /** - * The version of .Net. Possible values are `v3.0`, `v4.0`, `v6.0`, `v7.0` and `v8.0`. Defaults to `v4.0`. + * The version of .Net. Possible values are `v3.0`, `v4.0`, `v6.0`, `v7.0`, `v8.0` and `v9.0`. Defaults to `v4.0`. */ dotnetVersion?: string; /** @@ -17769,7 +17769,7 @@ export namespace appservice { */ dotnetCoreVersion?: string; /** - * The version of .NET to use when `currentStack` is set to `dotnet`. Possible values include `v2.0`,`v3.0`, `v4.0`, `v5.0`, `v6.0`, `v7.0` and `v8.0`. + * The version of .NET to use when `currentStack` is set to `dotnet`. Possible values include `v2.0`,`v3.0`, `v4.0`, `v5.0`, `v6.0`, `v7.0`, `v8.0` and `v9.0`. * * > **NOTE:** The Portal displayed values and the actual underlying API values differ for this setting, as follows: * Portal Value | API value @@ -17779,6 +17779,7 @@ export namespace appservice { * .NET 6 (LTS) | v6.0 * .NET 7 (STS) | v7.0 * .NET 8 (LTS) | v8.0 + * .NET 9 (STS) | v9.0 */ dotnetVersion: string; /** @@ -19013,7 +19014,7 @@ export namespace appservice { */ dotnetCoreVersion?: string; /** - * The version of .NET to use when `currentStack` is set to `dotnet`. Possible values include `v2.0`,`v3.0`, `v4.0`, `v5.0`, `v6.0`, `v7.0` and `v8.0`. + * The version of .NET to use when `currentStack` is set to `dotnet`. Possible values include `v2.0`,`v3.0`, `v4.0`, `v5.0`, `v6.0`, `v7.0`, `v8.0` and `v9.0`. */ dotnetVersion: string; /** @@ -28471,6 +28472,7 @@ export namespace config { logAnalyticsWorkspace?: outputs.config.FeaturesLogAnalyticsWorkspace; machineLearning?: outputs.config.FeaturesMachineLearning; managedDisk?: outputs.config.FeaturesManagedDisk; + netapp?: outputs.config.FeaturesNetapp; postgresqlFlexibleServer?: outputs.config.FeaturesPostgresqlFlexibleServer; recoveryService?: outputs.config.FeaturesRecoveryService; recoveryServicesVaults?: outputs.config.FeaturesRecoveryServicesVaults; @@ -28559,6 +28561,17 @@ export namespace config { expandWithoutDowntime?: boolean; } + export interface FeaturesNetapp { + /** + * When enabled, backups will be deleted when the `azure.netapp.BackupVault` resource is destroyed + */ + deleteBackupsOnBackupVaultDestroy?: boolean; + /** + * When enabled, the volume will not be destroyed, safeguarding from severe data loss + */ + preventVolumeDestruction?: boolean; + } + export interface FeaturesPostgresqlFlexibleServer { restartServerOnConfigurationValueChange?: boolean; } @@ -51101,8 +51114,9 @@ export namespace mssql { } export interface DatabaseLongTermRetentionPolicy { + immutableBackupsEnabled?: boolean; /** - * The monthly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 120 months. e.g. `P1Y`, `P1M`, `P4W` or `P30D`. + * The monthly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 120 months. e.g. `P1Y`, `P1M`, `P4W` or `P30D`. Defaults to `PT0S`. */ monthlyRetention: string; /** @@ -51110,11 +51124,11 @@ export namespace mssql { */ weekOfYear: number; /** - * The weekly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 520 weeks. e.g. `P1Y`, `P1M`, `P1W` or `P7D`. + * The weekly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 520 weeks. e.g. `P1Y`, `P1M`, `P1W` or `P7D`. Defaults to `PT0S`. */ weeklyRetention: string; /** - * The yearly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 10 years. e.g. `P1Y`, `P12M`, `P52W` or `P365D`. + * The yearly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 10 years. e.g. `P1Y`, `P12M`, `P52W` or `P365D`. Defaults to `PT0S`. */ yearlyRetention: string; } @@ -51293,8 +51307,9 @@ export namespace mssql { } export interface ManagedDatabaseLongTermRetentionPolicy { + immutableBackupsEnabled?: boolean; /** - * The monthly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 120 months. e.g. `P1Y`, `P1M`, `P4W` or `P30D`. + * The monthly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 120 months. e.g. `P1Y`, `P1M`, `P4W` or `P30D`. Defaults to `PT0S`. */ monthlyRetention: string; /** @@ -51302,11 +51317,11 @@ export namespace mssql { */ weekOfYear: number; /** - * The weekly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 520 weeks. e.g. `P1Y`, `P1M`, `P1W` or `P7D`. + * The weekly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 520 weeks. e.g. `P1Y`, `P1M`, `P1W` or `P7D`. Defaults to `PT0S`. */ weeklyRetention: string; /** - * The yearly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 10 years. e.g. `P1Y`, `P12M`, `P52W` or `P365D`. + * The yearly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 10 years. e.g. `P1Y`, `P12M`, `P52W` or `P365D`. Defaults to `PT0S`. */ yearlyRetention: string; } @@ -52050,6 +52065,21 @@ export namespace netapp { snapshotsToKeep: number; } + export interface GetVolumeDataProtectionBackupPolicy { + /** + * The Resource ID of the backup policy. + */ + backupPolicyId: string; + /** + * The Resource ID of the backup backup vault. + */ + backupVaultId: string; + /** + * Backup policy is enabled or not. + */ + policyEnabled: boolean; + } + export interface GetVolumeDataProtectionReplication { /** * The endpoint type. @@ -52265,6 +52295,23 @@ export namespace netapp { snapshotsToKeep: number; } + export interface VolumeDataProtectionBackupPolicy { + /** + * Resource ID of the backup policy to apply to the volume. + */ + backupPolicyId: string; + /** + * Resource ID of the backup backup vault to associate this volume to. + */ + backupVaultId: string; + /** + * Enables the backup policy on the volume, defaults to `true`. + * + * For more information on Azure NetApp Files Backup feature please see [Understand Azure NetApp Files backup](https://learn.microsoft.com/en-us/azure/azure-netapp-files/backup-introduction) + */ + policyEnabled?: boolean; + } + export interface VolumeDataProtectionReplication { /** * The endpoint type, default value is `dst` for destination. @@ -52622,7 +52669,7 @@ export namespace network { */ id: string; /** - * Status code of the application gateway customer error. Possible values are `HttpStatus403` and `HttpStatus502` + * Status code of the application gateway customer error. Possible values are `HttpStatus400`, `HttpStatus403`, `HttpStatus404`, `HttpStatus405`, `HttpStatus408`, `HttpStatus500`, `HttpStatus502`, `HttpStatus503` and `HttpStatus504` */ statusCode: string; } @@ -52782,7 +52829,7 @@ export namespace network { */ id: string; /** - * Status code of the application gateway customer error. Possible values are `HttpStatus403` and `HttpStatus502` + * Status code of the application gateway customer error. Possible values are `HttpStatus400`, `HttpStatus403`, `HttpStatus404`, `HttpStatus405`, `HttpStatus408`, `HttpStatus500`, `HttpStatus502`, `HttpStatus503` and `HttpStatus504` */ statusCode: string; } diff --git a/sdk/python/pulumi_azure/__init__.py b/sdk/python/pulumi_azure/__init__.py index 4e24467e0c..68a88614b4 100644 --- a/sdk/python/pulumi_azure/__init__.py +++ b/sdk/python/pulumi_azure/__init__.py @@ -6203,6 +6203,22 @@ "azure:netapp/accountEncryption:AccountEncryption": "AccountEncryption" } }, + { + "pkg": "azure", + "mod": "netapp/backupPolicy", + "fqn": "pulumi_azure.netapp", + "classes": { + "azure:netapp/backupPolicy:BackupPolicy": "BackupPolicy" + } + }, + { + "pkg": "azure", + "mod": "netapp/backupVault", + "fqn": "pulumi_azure.netapp", + "classes": { + "azure:netapp/backupVault:BackupVault": "BackupVault" + } + }, { "pkg": "azure", "mod": "netapp/pool", diff --git a/sdk/python/pulumi_azure/_inputs.py b/sdk/python/pulumi_azure/_inputs.py index e6e4938e03..6d20e00fe9 100644 --- a/sdk/python/pulumi_azure/_inputs.py +++ b/sdk/python/pulumi_azure/_inputs.py @@ -33,6 +33,8 @@ 'ProviderFeaturesMachineLearningArgsDict', 'ProviderFeaturesManagedDiskArgs', 'ProviderFeaturesManagedDiskArgsDict', + 'ProviderFeaturesNetappArgs', + 'ProviderFeaturesNetappArgsDict', 'ProviderFeaturesPostgresqlFlexibleServerArgs', 'ProviderFeaturesPostgresqlFlexibleServerArgsDict', 'ProviderFeaturesRecoveryServiceArgs', @@ -65,6 +67,7 @@ class ProviderFeaturesArgsDict(TypedDict): log_analytics_workspace: NotRequired[pulumi.Input['ProviderFeaturesLogAnalyticsWorkspaceArgsDict']] machine_learning: NotRequired[pulumi.Input['ProviderFeaturesMachineLearningArgsDict']] managed_disk: NotRequired[pulumi.Input['ProviderFeaturesManagedDiskArgsDict']] + netapp: NotRequired[pulumi.Input['ProviderFeaturesNetappArgsDict']] postgresql_flexible_server: NotRequired[pulumi.Input['ProviderFeaturesPostgresqlFlexibleServerArgsDict']] recovery_service: NotRequired[pulumi.Input['ProviderFeaturesRecoveryServiceArgsDict']] recovery_services_vaults: NotRequired[pulumi.Input['ProviderFeaturesRecoveryServicesVaultsArgsDict']] @@ -88,6 +91,7 @@ def __init__(__self__, *, log_analytics_workspace: Optional[pulumi.Input['ProviderFeaturesLogAnalyticsWorkspaceArgs']] = None, machine_learning: Optional[pulumi.Input['ProviderFeaturesMachineLearningArgs']] = None, managed_disk: Optional[pulumi.Input['ProviderFeaturesManagedDiskArgs']] = None, + netapp: Optional[pulumi.Input['ProviderFeaturesNetappArgs']] = None, postgresql_flexible_server: Optional[pulumi.Input['ProviderFeaturesPostgresqlFlexibleServerArgs']] = None, recovery_service: Optional[pulumi.Input['ProviderFeaturesRecoveryServiceArgs']] = None, recovery_services_vaults: Optional[pulumi.Input['ProviderFeaturesRecoveryServicesVaultsArgs']] = None, @@ -113,6 +117,8 @@ def __init__(__self__, *, pulumi.set(__self__, "machine_learning", machine_learning) if managed_disk is not None: pulumi.set(__self__, "managed_disk", managed_disk) + if netapp is not None: + pulumi.set(__self__, "netapp", netapp) if postgresql_flexible_server is not None: pulumi.set(__self__, "postgresql_flexible_server", postgresql_flexible_server) if recovery_service is not None: @@ -204,6 +210,15 @@ def managed_disk(self) -> Optional[pulumi.Input['ProviderFeaturesManagedDiskArgs def managed_disk(self, value: Optional[pulumi.Input['ProviderFeaturesManagedDiskArgs']]): pulumi.set(self, "managed_disk", value) + @property + @pulumi.getter + def netapp(self) -> Optional[pulumi.Input['ProviderFeaturesNetappArgs']]: + return pulumi.get(self, "netapp") + + @netapp.setter + def netapp(self, value: Optional[pulumi.Input['ProviderFeaturesNetappArgs']]): + pulumi.set(self, "netapp", value) + @property @pulumi.getter(name="postgresqlFlexibleServer") def postgresql_flexible_server(self) -> Optional[pulumi.Input['ProviderFeaturesPostgresqlFlexibleServerArgs']]: @@ -705,6 +720,58 @@ def expand_without_downtime(self, value: Optional[pulumi.Input[bool]]): pulumi.set(self, "expand_without_downtime", value) +if not MYPY: + class ProviderFeaturesNetappArgsDict(TypedDict): + delete_backups_on_backup_vault_destroy: NotRequired[pulumi.Input[bool]] + """ + When enabled, backups will be deleted when the `netapp.BackupVault` resource is destroyed + """ + prevent_volume_destruction: NotRequired[pulumi.Input[bool]] + """ + When enabled, the volume will not be destroyed, safeguarding from severe data loss + """ +elif False: + ProviderFeaturesNetappArgsDict: TypeAlias = Mapping[str, Any] + +@pulumi.input_type +class ProviderFeaturesNetappArgs: + def __init__(__self__, *, + delete_backups_on_backup_vault_destroy: Optional[pulumi.Input[bool]] = None, + prevent_volume_destruction: Optional[pulumi.Input[bool]] = None): + """ + :param pulumi.Input[bool] delete_backups_on_backup_vault_destroy: When enabled, backups will be deleted when the `netapp.BackupVault` resource is destroyed + :param pulumi.Input[bool] prevent_volume_destruction: When enabled, the volume will not be destroyed, safeguarding from severe data loss + """ + if delete_backups_on_backup_vault_destroy is not None: + pulumi.set(__self__, "delete_backups_on_backup_vault_destroy", delete_backups_on_backup_vault_destroy) + if prevent_volume_destruction is not None: + pulumi.set(__self__, "prevent_volume_destruction", prevent_volume_destruction) + + @property + @pulumi.getter(name="deleteBackupsOnBackupVaultDestroy") + def delete_backups_on_backup_vault_destroy(self) -> Optional[pulumi.Input[bool]]: + """ + When enabled, backups will be deleted when the `netapp.BackupVault` resource is destroyed + """ + return pulumi.get(self, "delete_backups_on_backup_vault_destroy") + + @delete_backups_on_backup_vault_destroy.setter + def delete_backups_on_backup_vault_destroy(self, value: Optional[pulumi.Input[bool]]): + pulumi.set(self, "delete_backups_on_backup_vault_destroy", value) + + @property + @pulumi.getter(name="preventVolumeDestruction") + def prevent_volume_destruction(self) -> Optional[pulumi.Input[bool]]: + """ + When enabled, the volume will not be destroyed, safeguarding from severe data loss + """ + return pulumi.get(self, "prevent_volume_destruction") + + @prevent_volume_destruction.setter + def prevent_volume_destruction(self, value: Optional[pulumi.Input[bool]]): + pulumi.set(self, "prevent_volume_destruction", value) + + if not MYPY: class ProviderFeaturesPostgresqlFlexibleServerArgsDict(TypedDict): restart_server_on_configuration_value_change: NotRequired[pulumi.Input[bool]] diff --git a/sdk/python/pulumi_azure/appservice/_inputs.py b/sdk/python/pulumi_azure/appservice/_inputs.py index f99b111a1d..71649d40fc 100644 --- a/sdk/python/pulumi_azure/appservice/_inputs.py +++ b/sdk/python/pulumi_azure/appservice/_inputs.py @@ -12009,7 +12009,7 @@ class LinuxFunctionAppSiteConfigApplicationStackArgsDict(TypedDict): """ dotnet_version: NotRequired[pulumi.Input[str]] """ - The version of .NET to use. Possible values include `3.1`, `6.0`, `7.0` and `8.0`. + The version of .NET to use. Possible values include `3.1`, `6.0`, `7.0`, `8.0` and `9.0`. """ java_version: NotRequired[pulumi.Input[str]] """ @@ -12051,7 +12051,7 @@ def __init__(__self__, *, use_dotnet_isolated_runtime: Optional[pulumi.Input[bool]] = None): """ :param pulumi.Input[Sequence[pulumi.Input['LinuxFunctionAppSiteConfigApplicationStackDockerArgs']]] dockers: One or more `docker` blocks as defined below. - :param pulumi.Input[str] dotnet_version: The version of .NET to use. Possible values include `3.1`, `6.0`, `7.0` and `8.0`. + :param pulumi.Input[str] dotnet_version: The version of .NET to use. Possible values include `3.1`, `6.0`, `7.0`, `8.0` and `9.0`. :param pulumi.Input[str] java_version: The Version of Java to use. Supported versions include `8`, `11` & `17`. :param pulumi.Input[str] node_version: The version of Node to run. Possible values include `12`, `14`, `16`, `18` and `20`. :param pulumi.Input[str] powershell_core_version: The version of PowerShell Core to run. Possible values are `7`, `7.2`, and `7.4`. @@ -12092,7 +12092,7 @@ def dockers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['LinuxFunct @pulumi.getter(name="dotnetVersion") def dotnet_version(self) -> Optional[pulumi.Input[str]]: """ - The version of .NET to use. Possible values include `3.1`, `6.0`, `7.0` and `8.0`. + The version of .NET to use. Possible values include `3.1`, `6.0`, `7.0`, `8.0` and `9.0`. """ return pulumi.get(self, "dotnet_version") @@ -16791,7 +16791,7 @@ class LinuxFunctionAppSlotSiteConfigApplicationStackArgsDict(TypedDict): """ dotnet_version: NotRequired[pulumi.Input[str]] """ - The version of .Net. Possible values are `3.1`, `6.0`, `7.0` and `8.0`. + The version of .Net. Possible values are `3.1`, `6.0`, `7.0`, `8.0` and `9.0`. """ java_version: NotRequired[pulumi.Input[str]] """ @@ -16833,7 +16833,7 @@ def __init__(__self__, *, use_dotnet_isolated_runtime: Optional[pulumi.Input[bool]] = None): """ :param pulumi.Input[Sequence[pulumi.Input['LinuxFunctionAppSlotSiteConfigApplicationStackDockerArgs']]] dockers: a `docker` block as detailed below. - :param pulumi.Input[str] dotnet_version: The version of .Net. Possible values are `3.1`, `6.0`, `7.0` and `8.0`. + :param pulumi.Input[str] dotnet_version: The version of .Net. Possible values are `3.1`, `6.0`, `7.0`, `8.0` and `9.0`. :param pulumi.Input[str] java_version: The version of Java to use. Possible values are `8`, `11` & `17` (In-Preview). :param pulumi.Input[str] node_version: The version of Node to use. Possible values include `12`, `14`, `16`, `18` and `20` :param pulumi.Input[str] powershell_core_version: The version of PowerShell Core to use. Possibles values are `7` , `7.2`, and `7.4`. @@ -16874,7 +16874,7 @@ def dockers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['LinuxFunct @pulumi.getter(name="dotnetVersion") def dotnet_version(self) -> Optional[pulumi.Input[str]]: """ - The version of .Net. Possible values are `3.1`, `6.0`, `7.0` and `8.0`. + The version of .Net. Possible values are `3.1`, `6.0`, `7.0`, `8.0` and `9.0`. """ return pulumi.get(self, "dotnet_version") @@ -22052,7 +22052,7 @@ class LinuxWebAppSiteConfigApplicationStackArgsDict(TypedDict): """ dotnet_version: NotRequired[pulumi.Input[str]] """ - The version of .NET to use. Possible values include `3.1`, `5.0`, `6.0`, `7.0` and `8.0`. + The version of .NET to use. Possible values include `3.1`, `5.0`, `6.0`, `7.0`, `8.0` and `9.0`. """ go_version: NotRequired[pulumi.Input[str]] """ @@ -22122,7 +22122,7 @@ def __init__(__self__, *, > **NOTE:** `docker_registry_url`, `docker_registry_username`, and `docker_registry_password` replace the use of the `app_settings` values of `DOCKER_REGISTRY_SERVER_URL`, `DOCKER_REGISTRY_SERVER_USERNAME` and `DOCKER_REGISTRY_SERVER_PASSWORD` respectively, these values will be managed by the provider and should not be specified in the `app_settings` map. :param pulumi.Input[str] docker_registry_url: The URL of the container registry where the `docker_image_name` is located. e.g. `https://index.docker.io` or `https://mcr.microsoft.com`. This value is required with `docker_image_name`. :param pulumi.Input[str] docker_registry_username: The User Name to use for authentication against the registry to pull the image. - :param pulumi.Input[str] dotnet_version: The version of .NET to use. Possible values include `3.1`, `5.0`, `6.0`, `7.0` and `8.0`. + :param pulumi.Input[str] dotnet_version: The version of .NET to use. Possible values include `3.1`, `5.0`, `6.0`, `7.0`, `8.0` and `9.0`. :param pulumi.Input[str] go_version: The version of Go to use. Possible values include `1.18`, and `1.19`. :param pulumi.Input[str] java_server: The Java server type. Possible values include `JAVA`, `TOMCAT`, and `JBOSSEAP`. @@ -22223,7 +22223,7 @@ def docker_registry_username(self, value: Optional[pulumi.Input[str]]): @pulumi.getter(name="dotnetVersion") def dotnet_version(self) -> Optional[pulumi.Input[str]]: """ - The version of .NET to use. Possible values include `3.1`, `5.0`, `6.0`, `7.0` and `8.0`. + The version of .NET to use. Possible values include `3.1`, `5.0`, `6.0`, `7.0`, `8.0` and `9.0`. """ return pulumi.get(self, "dotnet_version") @@ -27560,7 +27560,7 @@ class LinuxWebAppSlotSiteConfigApplicationStackArgsDict(TypedDict): """ dotnet_version: NotRequired[pulumi.Input[str]] """ - The version of .NET to use. Possible values include `3.1`, `5.0`, `6.0`, `7.0` and `8.0`. + The version of .NET to use. Possible values include `3.1`, `5.0`, `6.0`, `7.0`, `8.0` and `9.0`. """ go_version: NotRequired[pulumi.Input[str]] """ @@ -27628,7 +27628,7 @@ def __init__(__self__, *, > **NOTE:** `docker_registry_url`, `docker_registry_username`, and `docker_registry_password` replace the use of the `app_settings` values of `DOCKER_REGISTRY_SERVER_URL`, `DOCKER_REGISTRY_SERVER_USERNAME` and `DOCKER_REGISTRY_SERVER_PASSWORD` respectively, these values will be managed by the provider and should not be specified in the `app_settings` map. :param pulumi.Input[str] docker_registry_url: The URL of the container registry where the `docker_image_name` is located. e.g. `https://index.docker.io` or `https://mcr.microsoft.com`. This value is required with `docker_image_name`. :param pulumi.Input[str] docker_registry_username: The User Name to use for authentication against the registry to pull the image. - :param pulumi.Input[str] dotnet_version: The version of .NET to use. Possible values include `3.1`, `5.0`, `6.0`, `7.0` and `8.0`. + :param pulumi.Input[str] dotnet_version: The version of .NET to use. Possible values include `3.1`, `5.0`, `6.0`, `7.0`, `8.0` and `9.0`. :param pulumi.Input[str] go_version: The version of Go to use. Possible values include `1.18`, and `1.19`. :param pulumi.Input[str] java_server: The Java server type. Possible values include `JAVA`, `TOMCAT`, and `JBOSSEAP`. @@ -27727,7 +27727,7 @@ def docker_registry_username(self, value: Optional[pulumi.Input[str]]): @pulumi.getter(name="dotnetVersion") def dotnet_version(self) -> Optional[pulumi.Input[str]]: """ - The version of .NET to use. Possible values include `3.1`, `5.0`, `6.0`, `7.0` and `8.0`. + The version of .NET to use. Possible values include `3.1`, `5.0`, `6.0`, `7.0`, `8.0` and `9.0`. """ return pulumi.get(self, "dotnet_version") @@ -36436,7 +36436,7 @@ def retention_period_days(self, value: Optional[pulumi.Input[int]]): class WindowsFunctionAppSiteConfigApplicationStackArgsDict(TypedDict): dotnet_version: NotRequired[pulumi.Input[str]] """ - The version of .NET to use. Possible values include `v3.0`, `v4.0` `v6.0`, `v7.0` and `v8.0`. Defaults to `v4.0`. + The version of .NET to use. Possible values include `v3.0`, `v4.0` `v6.0`, `v7.0`, `v8.0` and `v9.0`. Defaults to `v4.0`. """ java_version: NotRequired[pulumi.Input[str]] """ @@ -36473,7 +36473,7 @@ def __init__(__self__, *, use_custom_runtime: Optional[pulumi.Input[bool]] = None, use_dotnet_isolated_runtime: Optional[pulumi.Input[bool]] = None): """ - :param pulumi.Input[str] dotnet_version: The version of .NET to use. Possible values include `v3.0`, `v4.0` `v6.0`, `v7.0` and `v8.0`. Defaults to `v4.0`. + :param pulumi.Input[str] dotnet_version: The version of .NET to use. Possible values include `v3.0`, `v4.0` `v6.0`, `v7.0`, `v8.0` and `v9.0`. Defaults to `v4.0`. :param pulumi.Input[str] java_version: The Version of Java to use. Supported versions include `1.8`, `11` & `17` (In-Preview). :param pulumi.Input[str] node_version: The version of Node to run. Possible values include `~12`, `~14`, `~16`, `~18` and `~20`. :param pulumi.Input[str] powershell_core_version: The version of PowerShell Core to run. Possible values are `7`, `7.2`, and `7.4`. @@ -36499,7 +36499,7 @@ def __init__(__self__, *, @pulumi.getter(name="dotnetVersion") def dotnet_version(self) -> Optional[pulumi.Input[str]]: """ - The version of .NET to use. Possible values include `v3.0`, `v4.0` `v6.0`, `v7.0` and `v8.0`. Defaults to `v4.0`. + The version of .NET to use. Possible values include `v3.0`, `v4.0` `v6.0`, `v7.0`, `v8.0` and `v9.0`. Defaults to `v4.0`. """ return pulumi.get(self, "dotnet_version") @@ -41023,7 +41023,7 @@ def retention_period_days(self, value: Optional[pulumi.Input[int]]): class WindowsFunctionAppSlotSiteConfigApplicationStackArgsDict(TypedDict): dotnet_version: NotRequired[pulumi.Input[str]] """ - The version of .Net. Possible values are `v3.0`, `v4.0`, `v6.0`, `v7.0` and `v8.0`. Defaults to `v4.0`. + The version of .Net. Possible values are `v3.0`, `v4.0`, `v6.0`, `v7.0`, `v8.0` and `v9.0`. Defaults to `v4.0`. """ java_version: NotRequired[pulumi.Input[str]] """ @@ -41058,7 +41058,7 @@ def __init__(__self__, *, use_custom_runtime: Optional[pulumi.Input[bool]] = None, use_dotnet_isolated_runtime: Optional[pulumi.Input[bool]] = None): """ - :param pulumi.Input[str] dotnet_version: The version of .Net. Possible values are `v3.0`, `v4.0`, `v6.0`, `v7.0` and `v8.0`. Defaults to `v4.0`. + :param pulumi.Input[str] dotnet_version: The version of .Net. Possible values are `v3.0`, `v4.0`, `v6.0`, `v7.0`, `v8.0` and `v9.0`. Defaults to `v4.0`. :param pulumi.Input[str] java_version: The version of Java to use. Possible values are `1.8`, `11` and `17` (In-Preview). :param pulumi.Input[str] node_version: The version of Node to use. Possible values are `~12`, `~14`, `~16`, `~18` and `~20`. :param pulumi.Input[str] powershell_core_version: The PowerShell Core version to use. Possible values are `7`, `7.2`, and `7.4`. @@ -41082,7 +41082,7 @@ def __init__(__self__, *, @pulumi.getter(name="dotnetVersion") def dotnet_version(self) -> Optional[pulumi.Input[str]]: """ - The version of .Net. Possible values are `v3.0`, `v4.0`, `v6.0`, `v7.0` and `v8.0`. Defaults to `v4.0`. + The version of .Net. Possible values are `v3.0`, `v4.0`, `v6.0`, `v7.0`, `v8.0` and `v9.0`. Defaults to `v4.0`. """ return pulumi.get(self, "dotnet_version") @@ -46192,7 +46192,7 @@ class WindowsWebAppSiteConfigApplicationStackArgsDict(TypedDict): """ dotnet_version: NotRequired[pulumi.Input[str]] """ - The version of .NET to use when `current_stack` is set to `dotnet`. Possible values include `v2.0`,`v3.0`, `v4.0`, `v5.0`, `v6.0`, `v7.0` and `v8.0`. + The version of .NET to use when `current_stack` is set to `dotnet`. Possible values include `v2.0`,`v3.0`, `v4.0`, `v5.0`, `v6.0`, `v7.0`, `v8.0` and `v9.0`. > **NOTE:** The Portal displayed values and the actual underlying API values differ for this setting, as follows: Portal Value | API value @@ -46202,6 +46202,7 @@ class WindowsWebAppSiteConfigApplicationStackArgsDict(TypedDict): .NET 6 (LTS) | v6.0 .NET 7 (STS) | v7.0 .NET 8 (LTS) | v8.0 + .NET 9 (STS) | v9.0 """ java_container: NotRequired[pulumi.Input[str]] java_container_version: NotRequired[pulumi.Input[str]] @@ -46271,7 +46272,7 @@ def __init__(__self__, *, :param pulumi.Input[str] docker_registry_url: The URL of the container registry where the `docker_image_name` is located. e.g. `https://index.docker.io` or `https://mcr.microsoft.com`. This value is required with `docker_image_name`. :param pulumi.Input[str] docker_registry_username: The User Name to use for authentication against the registry to pull the image. :param pulumi.Input[str] dotnet_core_version: The version of .NET to use when `current_stack` is set to `dotnetcore`. Possible values include `v4.0`. - :param pulumi.Input[str] dotnet_version: The version of .NET to use when `current_stack` is set to `dotnet`. Possible values include `v2.0`,`v3.0`, `v4.0`, `v5.0`, `v6.0`, `v7.0` and `v8.0`. + :param pulumi.Input[str] dotnet_version: The version of .NET to use when `current_stack` is set to `dotnet`. Possible values include `v2.0`,`v3.0`, `v4.0`, `v5.0`, `v6.0`, `v7.0`, `v8.0` and `v9.0`. > **NOTE:** The Portal displayed values and the actual underlying API values differ for this setting, as follows: Portal Value | API value @@ -46281,6 +46282,7 @@ def __init__(__self__, *, .NET 6 (LTS) | v6.0 .NET 7 (STS) | v7.0 .NET 8 (LTS) | v8.0 + .NET 9 (STS) | v9.0 :param pulumi.Input[bool] java_embedded_server_enabled: Should the Java Embedded Server (Java SE) be used to run the app. :param pulumi.Input[str] java_version: The version of Java to use when `current_stack` is set to `java`. @@ -46415,7 +46417,7 @@ def dotnet_core_version(self, value: Optional[pulumi.Input[str]]): @pulumi.getter(name="dotnetVersion") def dotnet_version(self) -> Optional[pulumi.Input[str]]: """ - The version of .NET to use when `current_stack` is set to `dotnet`. Possible values include `v2.0`,`v3.0`, `v4.0`, `v5.0`, `v6.0`, `v7.0` and `v8.0`. + The version of .NET to use when `current_stack` is set to `dotnet`. Possible values include `v2.0`,`v3.0`, `v4.0`, `v5.0`, `v6.0`, `v7.0`, `v8.0` and `v9.0`. > **NOTE:** The Portal displayed values and the actual underlying API values differ for this setting, as follows: Portal Value | API value @@ -46425,6 +46427,7 @@ def dotnet_version(self) -> Optional[pulumi.Input[str]]: .NET 6 (LTS) | v6.0 .NET 7 (STS) | v7.0 .NET 8 (LTS) | v8.0 + .NET 9 (STS) | v9.0 """ return pulumi.get(self, "dotnet_version") @@ -52105,7 +52108,7 @@ class WindowsWebAppSlotSiteConfigApplicationStackArgsDict(TypedDict): """ dotnet_version: NotRequired[pulumi.Input[str]] """ - The version of .NET to use when `current_stack` is set to `dotnet`. Possible values include `v2.0`,`v3.0`, `v4.0`, `v5.0`, `v6.0`, `v7.0` and `v8.0`. + The version of .NET to use when `current_stack` is set to `dotnet`. Possible values include `v2.0`,`v3.0`, `v4.0`, `v5.0`, `v6.0`, `v7.0`, `v8.0` and `v9.0`. """ java_container: NotRequired[pulumi.Input[str]] java_container_version: NotRequired[pulumi.Input[str]] @@ -52173,7 +52176,7 @@ def __init__(__self__, *, :param pulumi.Input[str] docker_registry_url: The URL of the container registry where the `docker_image_name` is located. e.g. `https://index.docker.io` or `https://mcr.microsoft.com`. This value is required with `docker_image_name`. :param pulumi.Input[str] docker_registry_username: The User Name to use for authentication against the registry to pull the image. :param pulumi.Input[str] dotnet_core_version: The version of .NET to use when `current_stack` is set to `dotnetcore`. Possible values include `v4.0`. - :param pulumi.Input[str] dotnet_version: The version of .NET to use when `current_stack` is set to `dotnet`. Possible values include `v2.0`,`v3.0`, `v4.0`, `v5.0`, `v6.0`, `v7.0` and `v8.0`. + :param pulumi.Input[str] dotnet_version: The version of .NET to use when `current_stack` is set to `dotnet`. Possible values include `v2.0`,`v3.0`, `v4.0`, `v5.0`, `v6.0`, `v7.0`, `v8.0` and `v9.0`. :param pulumi.Input[bool] java_embedded_server_enabled: Should the Java Embedded Server (Java SE) be used to run the app. :param pulumi.Input[str] java_version: The version of Java to use when `current_stack` is set to `java`. Possible values include `1.7`, `1.8`, `11` and `17`. Required with `java_container` and `java_container_version`. @@ -52306,7 +52309,7 @@ def dotnet_core_version(self, value: Optional[pulumi.Input[str]]): @pulumi.getter(name="dotnetVersion") def dotnet_version(self) -> Optional[pulumi.Input[str]]: """ - The version of .NET to use when `current_stack` is set to `dotnet`. Possible values include `v2.0`,`v3.0`, `v4.0`, `v5.0`, `v6.0`, `v7.0` and `v8.0`. + The version of .NET to use when `current_stack` is set to `dotnet`. Possible values include `v2.0`,`v3.0`, `v4.0`, `v5.0`, `v6.0`, `v7.0`, `v8.0` and `v9.0`. """ return pulumi.get(self, "dotnet_version") diff --git a/sdk/python/pulumi_azure/appservice/outputs.py b/sdk/python/pulumi_azure/appservice/outputs.py index cc1a5721f3..f2053ee407 100644 --- a/sdk/python/pulumi_azure/appservice/outputs.py +++ b/sdk/python/pulumi_azure/appservice/outputs.py @@ -9282,7 +9282,7 @@ def __init__(__self__, *, use_dotnet_isolated_runtime: Optional[bool] = None): """ :param Sequence['LinuxFunctionAppSiteConfigApplicationStackDockerArgs'] dockers: One or more `docker` blocks as defined below. - :param str dotnet_version: The version of .NET to use. Possible values include `3.1`, `6.0`, `7.0` and `8.0`. + :param str dotnet_version: The version of .NET to use. Possible values include `3.1`, `6.0`, `7.0`, `8.0` and `9.0`. :param str java_version: The Version of Java to use. Supported versions include `8`, `11` & `17`. :param str node_version: The version of Node to run. Possible values include `12`, `14`, `16`, `18` and `20`. :param str powershell_core_version: The version of PowerShell Core to run. Possible values are `7`, `7.2`, and `7.4`. @@ -9319,7 +9319,7 @@ def dockers(self) -> Optional[Sequence['outputs.LinuxFunctionAppSiteConfigApplic @pulumi.getter(name="dotnetVersion") def dotnet_version(self) -> Optional[str]: """ - The version of .NET to use. Possible values include `3.1`, `6.0`, `7.0` and `8.0`. + The version of .NET to use. Possible values include `3.1`, `6.0`, `7.0`, `8.0` and `9.0`. """ return pulumi.get(self, "dotnet_version") @@ -12956,7 +12956,7 @@ def __init__(__self__, *, use_dotnet_isolated_runtime: Optional[bool] = None): """ :param Sequence['LinuxFunctionAppSlotSiteConfigApplicationStackDockerArgs'] dockers: a `docker` block as detailed below. - :param str dotnet_version: The version of .Net. Possible values are `3.1`, `6.0`, `7.0` and `8.0`. + :param str dotnet_version: The version of .Net. Possible values are `3.1`, `6.0`, `7.0`, `8.0` and `9.0`. :param str java_version: The version of Java to use. Possible values are `8`, `11` & `17` (In-Preview). :param str node_version: The version of Node to use. Possible values include `12`, `14`, `16`, `18` and `20` :param str powershell_core_version: The version of PowerShell Core to use. Possibles values are `7` , `7.2`, and `7.4`. @@ -12993,7 +12993,7 @@ def dockers(self) -> Optional[Sequence['outputs.LinuxFunctionAppSlotSiteConfigAp @pulumi.getter(name="dotnetVersion") def dotnet_version(self) -> Optional[str]: """ - The version of .Net. Possible values are `3.1`, `6.0`, `7.0` and `8.0`. + The version of .Net. Possible values are `3.1`, `6.0`, `7.0`, `8.0` and `9.0`. """ return pulumi.get(self, "dotnet_version") @@ -17075,7 +17075,7 @@ def __init__(__self__, *, > **NOTE:** `docker_registry_url`, `docker_registry_username`, and `docker_registry_password` replace the use of the `app_settings` values of `DOCKER_REGISTRY_SERVER_URL`, `DOCKER_REGISTRY_SERVER_USERNAME` and `DOCKER_REGISTRY_SERVER_PASSWORD` respectively, these values will be managed by the provider and should not be specified in the `app_settings` map. :param str docker_registry_url: The URL of the container registry where the `docker_image_name` is located. e.g. `https://index.docker.io` or `https://mcr.microsoft.com`. This value is required with `docker_image_name`. :param str docker_registry_username: The User Name to use for authentication against the registry to pull the image. - :param str dotnet_version: The version of .NET to use. Possible values include `3.1`, `5.0`, `6.0`, `7.0` and `8.0`. + :param str dotnet_version: The version of .NET to use. Possible values include `3.1`, `5.0`, `6.0`, `7.0`, `8.0` and `9.0`. :param str go_version: The version of Go to use. Possible values include `1.18`, and `1.19`. :param str java_server: The Java server type. Possible values include `JAVA`, `TOMCAT`, and `JBOSSEAP`. @@ -17160,7 +17160,7 @@ def docker_registry_username(self) -> Optional[str]: @pulumi.getter(name="dotnetVersion") def dotnet_version(self) -> Optional[str]: """ - The version of .NET to use. Possible values include `3.1`, `5.0`, `6.0`, `7.0` and `8.0`. + The version of .NET to use. Possible values include `3.1`, `5.0`, `6.0`, `7.0`, `8.0` and `9.0`. """ return pulumi.get(self, "dotnet_version") @@ -21349,7 +21349,7 @@ def __init__(__self__, *, > **NOTE:** `docker_registry_url`, `docker_registry_username`, and `docker_registry_password` replace the use of the `app_settings` values of `DOCKER_REGISTRY_SERVER_URL`, `DOCKER_REGISTRY_SERVER_USERNAME` and `DOCKER_REGISTRY_SERVER_PASSWORD` respectively, these values will be managed by the provider and should not be specified in the `app_settings` map. :param str docker_registry_url: The URL of the container registry where the `docker_image_name` is located. e.g. `https://index.docker.io` or `https://mcr.microsoft.com`. This value is required with `docker_image_name`. :param str docker_registry_username: The User Name to use for authentication against the registry to pull the image. - :param str dotnet_version: The version of .NET to use. Possible values include `3.1`, `5.0`, `6.0`, `7.0` and `8.0`. + :param str dotnet_version: The version of .NET to use. Possible values include `3.1`, `5.0`, `6.0`, `7.0`, `8.0` and `9.0`. :param str go_version: The version of Go to use. Possible values include `1.18`, and `1.19`. :param str java_server: The Java server type. Possible values include `JAVA`, `TOMCAT`, and `JBOSSEAP`. @@ -21432,7 +21432,7 @@ def docker_registry_username(self) -> Optional[str]: @pulumi.getter(name="dotnetVersion") def dotnet_version(self) -> Optional[str]: """ - The version of .NET to use. Possible values include `3.1`, `5.0`, `6.0`, `7.0` and `8.0`. + The version of .NET to use. Possible values include `3.1`, `5.0`, `6.0`, `7.0`, `8.0` and `9.0`. """ return pulumi.get(self, "dotnet_version") @@ -28230,7 +28230,7 @@ def __init__(__self__, *, use_custom_runtime: Optional[bool] = None, use_dotnet_isolated_runtime: Optional[bool] = None): """ - :param str dotnet_version: The version of .NET to use. Possible values include `v3.0`, `v4.0` `v6.0`, `v7.0` and `v8.0`. Defaults to `v4.0`. + :param str dotnet_version: The version of .NET to use. Possible values include `v3.0`, `v4.0` `v6.0`, `v7.0`, `v8.0` and `v9.0`. Defaults to `v4.0`. :param str java_version: The Version of Java to use. Supported versions include `1.8`, `11` & `17` (In-Preview). :param str node_version: The version of Node to run. Possible values include `~12`, `~14`, `~16`, `~18` and `~20`. :param str powershell_core_version: The version of PowerShell Core to run. Possible values are `7`, `7.2`, and `7.4`. @@ -28256,7 +28256,7 @@ def __init__(__self__, *, @pulumi.getter(name="dotnetVersion") def dotnet_version(self) -> Optional[str]: """ - The version of .NET to use. Possible values include `v3.0`, `v4.0` `v6.0`, `v7.0` and `v8.0`. Defaults to `v4.0`. + The version of .NET to use. Possible values include `v3.0`, `v4.0` `v6.0`, `v7.0`, `v8.0` and `v9.0`. Defaults to `v4.0`. """ return pulumi.get(self, "dotnet_version") @@ -31757,7 +31757,7 @@ def __init__(__self__, *, use_custom_runtime: Optional[bool] = None, use_dotnet_isolated_runtime: Optional[bool] = None): """ - :param str dotnet_version: The version of .Net. Possible values are `v3.0`, `v4.0`, `v6.0`, `v7.0` and `v8.0`. Defaults to `v4.0`. + :param str dotnet_version: The version of .Net. Possible values are `v3.0`, `v4.0`, `v6.0`, `v7.0`, `v8.0` and `v9.0`. Defaults to `v4.0`. :param str java_version: The version of Java to use. Possible values are `1.8`, `11` and `17` (In-Preview). :param str node_version: The version of Node to use. Possible values are `~12`, `~14`, `~16`, `~18` and `~20`. :param str powershell_core_version: The PowerShell Core version to use. Possible values are `7`, `7.2`, and `7.4`. @@ -31781,7 +31781,7 @@ def __init__(__self__, *, @pulumi.getter(name="dotnetVersion") def dotnet_version(self) -> Optional[str]: """ - The version of .Net. Possible values are `v3.0`, `v4.0`, `v6.0`, `v7.0` and `v8.0`. Defaults to `v4.0`. + The version of .Net. Possible values are `v3.0`, `v4.0`, `v6.0`, `v7.0`, `v8.0` and `v9.0`. Defaults to `v4.0`. """ return pulumi.get(self, "dotnet_version") @@ -35806,7 +35806,7 @@ def __init__(__self__, *, :param str docker_registry_url: The URL of the container registry where the `docker_image_name` is located. e.g. `https://index.docker.io` or `https://mcr.microsoft.com`. This value is required with `docker_image_name`. :param str docker_registry_username: The User Name to use for authentication against the registry to pull the image. :param str dotnet_core_version: The version of .NET to use when `current_stack` is set to `dotnetcore`. Possible values include `v4.0`. - :param str dotnet_version: The version of .NET to use when `current_stack` is set to `dotnet`. Possible values include `v2.0`,`v3.0`, `v4.0`, `v5.0`, `v6.0`, `v7.0` and `v8.0`. + :param str dotnet_version: The version of .NET to use when `current_stack` is set to `dotnet`. Possible values include `v2.0`,`v3.0`, `v4.0`, `v5.0`, `v6.0`, `v7.0`, `v8.0` and `v9.0`. > **NOTE:** The Portal displayed values and the actual underlying API values differ for this setting, as follows: Portal Value | API value @@ -35816,6 +35816,7 @@ def __init__(__self__, *, .NET 6 (LTS) | v6.0 .NET 7 (STS) | v7.0 .NET 8 (LTS) | v8.0 + .NET 9 (STS) | v9.0 :param bool java_embedded_server_enabled: Should the Java Embedded Server (Java SE) be used to run the app. :param str java_version: The version of Java to use when `current_stack` is set to `java`. @@ -35920,7 +35921,7 @@ def dotnet_core_version(self) -> Optional[str]: @pulumi.getter(name="dotnetVersion") def dotnet_version(self) -> Optional[str]: """ - The version of .NET to use when `current_stack` is set to `dotnet`. Possible values include `v2.0`,`v3.0`, `v4.0`, `v5.0`, `v6.0`, `v7.0` and `v8.0`. + The version of .NET to use when `current_stack` is set to `dotnet`. Possible values include `v2.0`,`v3.0`, `v4.0`, `v5.0`, `v6.0`, `v7.0`, `v8.0` and `v9.0`. > **NOTE:** The Portal displayed values and the actual underlying API values differ for this setting, as follows: Portal Value | API value @@ -35930,6 +35931,7 @@ def dotnet_version(self) -> Optional[str]: .NET 6 (LTS) | v6.0 .NET 7 (STS) | v7.0 .NET 8 (LTS) | v8.0 + .NET 9 (STS) | v9.0 """ return pulumi.get(self, "dotnet_version") @@ -40385,7 +40387,7 @@ def __init__(__self__, *, :param str docker_registry_url: The URL of the container registry where the `docker_image_name` is located. e.g. `https://index.docker.io` or `https://mcr.microsoft.com`. This value is required with `docker_image_name`. :param str docker_registry_username: The User Name to use for authentication against the registry to pull the image. :param str dotnet_core_version: The version of .NET to use when `current_stack` is set to `dotnetcore`. Possible values include `v4.0`. - :param str dotnet_version: The version of .NET to use when `current_stack` is set to `dotnet`. Possible values include `v2.0`,`v3.0`, `v4.0`, `v5.0`, `v6.0`, `v7.0` and `v8.0`. + :param str dotnet_version: The version of .NET to use when `current_stack` is set to `dotnet`. Possible values include `v2.0`,`v3.0`, `v4.0`, `v5.0`, `v6.0`, `v7.0`, `v8.0` and `v9.0`. :param bool java_embedded_server_enabled: Should the Java Embedded Server (Java SE) be used to run the app. :param str java_version: The version of Java to use when `current_stack` is set to `java`. Possible values include `1.7`, `1.8`, `11` and `17`. Required with `java_container` and `java_container_version`. @@ -40488,7 +40490,7 @@ def dotnet_core_version(self) -> Optional[str]: @pulumi.getter(name="dotnetVersion") def dotnet_version(self) -> Optional[str]: """ - The version of .NET to use when `current_stack` is set to `dotnet`. Possible values include `v2.0`,`v3.0`, `v4.0`, `v5.0`, `v6.0`, `v7.0` and `v8.0`. + The version of .NET to use when `current_stack` is set to `dotnet`. Possible values include `v2.0`,`v3.0`, `v4.0`, `v5.0`, `v6.0`, `v7.0`, `v8.0` and `v9.0`. """ return pulumi.get(self, "dotnet_version") diff --git a/sdk/python/pulumi_azure/automation/job_schedule.py b/sdk/python/pulumi_azure/automation/job_schedule.py index 2a8333d705..33e2fd06aa 100644 --- a/sdk/python/pulumi_azure/automation/job_schedule.py +++ b/sdk/python/pulumi_azure/automation/job_schedule.py @@ -292,7 +292,7 @@ def __init__(__self__, """ Links an Automation Runbook and Schedule. - > **NOTE** AzureRM provides this stand-alone automation.JobSchedule and an inlined `job_schdule` property in azurerm_runbook to manage the job schedules. You can only make use of one of these methods to manage a job schedule. + > **NOTE** AzureRM provides this stand-alone automation.JobSchedule and an inlined `job_schedule` property in azurerm_runbook to manage the job schedules. You can only make use of one of these methods to manage a job schedule. ## Example Usage @@ -342,7 +342,7 @@ def __init__(__self__, """ Links an Automation Runbook and Schedule. - > **NOTE** AzureRM provides this stand-alone automation.JobSchedule and an inlined `job_schdule` property in azurerm_runbook to manage the job schedules. You can only make use of one of these methods to manage a job schedule. + > **NOTE** AzureRM provides this stand-alone automation.JobSchedule and an inlined `job_schedule` property in azurerm_runbook to manage the job schedules. You can only make use of one of these methods to manage a job schedule. ## Example Usage diff --git a/sdk/python/pulumi_azure/automation/run_book.py b/sdk/python/pulumi_azure/automation/run_book.py index 1d3892abed..596ff798da 100644 --- a/sdk/python/pulumi_azure/automation/run_book.py +++ b/sdk/python/pulumi_azure/automation/run_book.py @@ -49,7 +49,7 @@ def __init__(__self__, *, :param pulumi.Input['RunBookDraftArgs'] draft: A `draft` block as defined below. :param pulumi.Input[Sequence[pulumi.Input['RunBookJobScheduleArgs']]] job_schedules: One or more `job_schedule` block as defined below. - > **NOTE** AzureRM provides a stand-alone automation.JobSchedule and this inlined `job_schdule` property to manage the job schedules. At this time you should choose one of them to manage the job schedule resources. + > **NOTE** AzureRM provides a stand-alone automation.JobSchedule and this inlined `job_schedule` property to manage the job schedules. At this time you should choose one of them to manage the job schedule resources. :param pulumi.Input[str] location: Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. :param pulumi.Input[int] log_activity_trace_level: Specifies the activity-level tracing options of the runbook, available only for Graphical runbooks. Possible values are `0` for None, `9` for Basic, and `15` for Detailed. Must turn on Verbose logging in order to see the tracing. :param pulumi.Input[str] name: Specifies the name of the Runbook. Changing this forces a new resource to be created. @@ -184,7 +184,7 @@ def job_schedules(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['RunBookJ """ One or more `job_schedule` block as defined below. - > **NOTE** AzureRM provides a stand-alone automation.JobSchedule and this inlined `job_schdule` property to manage the job schedules. At this time you should choose one of them to manage the job schedule resources. + > **NOTE** AzureRM provides a stand-alone automation.JobSchedule and this inlined `job_schedule` property to manage the job schedules. At this time you should choose one of them to manage the job schedule resources. """ return pulumi.get(self, "job_schedules") @@ -280,7 +280,7 @@ def __init__(__self__, *, :param pulumi.Input['RunBookDraftArgs'] draft: A `draft` block as defined below. :param pulumi.Input[Sequence[pulumi.Input['RunBookJobScheduleArgs']]] job_schedules: One or more `job_schedule` block as defined below. - > **NOTE** AzureRM provides a stand-alone automation.JobSchedule and this inlined `job_schdule` property to manage the job schedules. At this time you should choose one of them to manage the job schedule resources. + > **NOTE** AzureRM provides a stand-alone automation.JobSchedule and this inlined `job_schedule` property to manage the job schedules. At this time you should choose one of them to manage the job schedule resources. :param pulumi.Input[str] location: Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. :param pulumi.Input[int] log_activity_trace_level: Specifies the activity-level tracing options of the runbook, available only for Graphical runbooks. Possible values are `0` for None, `9` for Basic, and `15` for Detailed. Must turn on Verbose logging in order to see the tracing. :param pulumi.Input[bool] log_progress: Progress log option. @@ -376,7 +376,7 @@ def job_schedules(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['RunBookJ """ One or more `job_schedule` block as defined below. - > **NOTE** AzureRM provides a stand-alone automation.JobSchedule and this inlined `job_schdule` property to manage the job schedules. At this time you should choose one of them to manage the job schedule resources. + > **NOTE** AzureRM provides a stand-alone automation.JobSchedule and this inlined `job_schedule` property to manage the job schedules. At this time you should choose one of them to manage the job schedule resources. """ return pulumi.get(self, "job_schedules") @@ -562,7 +562,7 @@ def __init__(__self__, :param pulumi.Input[Union['RunBookDraftArgs', 'RunBookDraftArgsDict']] draft: A `draft` block as defined below. :param pulumi.Input[Sequence[pulumi.Input[Union['RunBookJobScheduleArgs', 'RunBookJobScheduleArgsDict']]]] job_schedules: One or more `job_schedule` block as defined below. - > **NOTE** AzureRM provides a stand-alone automation.JobSchedule and this inlined `job_schdule` property to manage the job schedules. At this time you should choose one of them to manage the job schedule resources. + > **NOTE** AzureRM provides a stand-alone automation.JobSchedule and this inlined `job_schedule` property to manage the job schedules. At this time you should choose one of them to manage the job schedule resources. :param pulumi.Input[str] location: Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. :param pulumi.Input[int] log_activity_trace_level: Specifies the activity-level tracing options of the runbook, available only for Graphical runbooks. Possible values are `0` for None, `9` for Basic, and `15` for Detailed. Must turn on Verbose logging in order to see the tracing. :param pulumi.Input[bool] log_progress: Progress log option. @@ -719,7 +719,7 @@ def get(resource_name: str, :param pulumi.Input[Union['RunBookDraftArgs', 'RunBookDraftArgsDict']] draft: A `draft` block as defined below. :param pulumi.Input[Sequence[pulumi.Input[Union['RunBookJobScheduleArgs', 'RunBookJobScheduleArgsDict']]]] job_schedules: One or more `job_schedule` block as defined below. - > **NOTE** AzureRM provides a stand-alone automation.JobSchedule and this inlined `job_schdule` property to manage the job schedules. At this time you should choose one of them to manage the job schedule resources. + > **NOTE** AzureRM provides a stand-alone automation.JobSchedule and this inlined `job_schedule` property to manage the job schedules. At this time you should choose one of them to manage the job schedule resources. :param pulumi.Input[str] location: Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. :param pulumi.Input[int] log_activity_trace_level: Specifies the activity-level tracing options of the runbook, available only for Graphical runbooks. Possible values are `0` for None, `9` for Basic, and `15` for Detailed. Must turn on Verbose logging in order to see the tracing. :param pulumi.Input[bool] log_progress: Progress log option. @@ -790,7 +790,7 @@ def job_schedules(self) -> pulumi.Output[Sequence['outputs.RunBookJobSchedule']] """ One or more `job_schedule` block as defined below. - > **NOTE** AzureRM provides a stand-alone automation.JobSchedule and this inlined `job_schdule` property to manage the job schedules. At this time you should choose one of them to manage the job schedule resources. + > **NOTE** AzureRM provides a stand-alone automation.JobSchedule and this inlined `job_schedule` property to manage the job schedules. At this time you should choose one of them to manage the job schedule resources. """ return pulumi.get(self, "job_schedules") diff --git a/sdk/python/pulumi_azure/cognitive/get_account.py b/sdk/python/pulumi_azure/cognitive/get_account.py index 0a7ee61bf8..ea788b946c 100644 --- a/sdk/python/pulumi_azure/cognitive/get_account.py +++ b/sdk/python/pulumi_azure/cognitive/get_account.py @@ -27,7 +27,7 @@ class GetAccountResult: """ A collection of values returned by getAccount. """ - def __init__(__self__, endpoint=None, id=None, identities=None, kind=None, location=None, name=None, primary_access_key=None, qna_runtime_endpoint=None, resource_group_name=None, secondary_access_key=None, sku_name=None, tags=None): + def __init__(__self__, endpoint=None, id=None, identities=None, kind=None, local_auth_enabled=None, location=None, name=None, primary_access_key=None, qna_runtime_endpoint=None, resource_group_name=None, secondary_access_key=None, sku_name=None, tags=None): if endpoint and not isinstance(endpoint, str): raise TypeError("Expected argument 'endpoint' to be a str") pulumi.set(__self__, "endpoint", endpoint) @@ -40,6 +40,9 @@ def __init__(__self__, endpoint=None, id=None, identities=None, kind=None, locat if kind and not isinstance(kind, str): raise TypeError("Expected argument 'kind' to be a str") pulumi.set(__self__, "kind", kind) + if local_auth_enabled and not isinstance(local_auth_enabled, bool): + raise TypeError("Expected argument 'local_auth_enabled' to be a bool") + pulumi.set(__self__, "local_auth_enabled", local_auth_enabled) if location and not isinstance(location, str): raise TypeError("Expected argument 'location' to be a str") pulumi.set(__self__, "location", location) @@ -97,6 +100,14 @@ def kind(self) -> str: """ return pulumi.get(self, "kind") + @property + @pulumi.getter(name="localAuthEnabled") + def local_auth_enabled(self) -> bool: + """ + Whether local authentication methods is enabled for the Cognitive Account. + """ + return pulumi.get(self, "local_auth_enabled") + @property @pulumi.getter def location(self) -> str: @@ -166,6 +177,7 @@ def __await__(self): id=self.id, identities=self.identities, kind=self.kind, + local_auth_enabled=self.local_auth_enabled, location=self.location, name=self.name, primary_access_key=self.primary_access_key, @@ -211,6 +223,7 @@ def get_account(name: Optional[str] = None, id=pulumi.get(__ret__, 'id'), identities=pulumi.get(__ret__, 'identities'), kind=pulumi.get(__ret__, 'kind'), + local_auth_enabled=pulumi.get(__ret__, 'local_auth_enabled'), location=pulumi.get(__ret__, 'location'), name=pulumi.get(__ret__, 'name'), primary_access_key=pulumi.get(__ret__, 'primary_access_key'), @@ -253,6 +266,7 @@ def get_account_output(name: Optional[pulumi.Input[str]] = None, id=pulumi.get(__response__, 'id'), identities=pulumi.get(__response__, 'identities'), kind=pulumi.get(__response__, 'kind'), + local_auth_enabled=pulumi.get(__response__, 'local_auth_enabled'), location=pulumi.get(__response__, 'location'), name=pulumi.get(__response__, 'name'), primary_access_key=pulumi.get(__response__, 'primary_access_key'), diff --git a/sdk/python/pulumi_azure/communication/email_service.py b/sdk/python/pulumi_azure/communication/email_service.py index ddc2d2b940..721ab9f19d 100644 --- a/sdk/python/pulumi_azure/communication/email_service.py +++ b/sdk/python/pulumi_azure/communication/email_service.py @@ -25,7 +25,7 @@ def __init__(__self__, *, tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None): """ The set of arguments for constructing a EmailService resource. - :param pulumi.Input[str] data_location: The location where the Email Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` and `United States`. Changing this forces a new Email Communication Service to be created. + :param pulumi.Input[str] data_location: The location where the Email Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` `usgov` and `United States`. Changing this forces a new Email Communication Service to be created. :param pulumi.Input[str] resource_group_name: The name of the Resource Group where the Email Communication Service should exist. Changing this forces a new Email Communication Service to be created. :param pulumi.Input[str] name: The name of the Email Communication Service resource. Changing this forces a new Email Communication Service to be created. :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A mapping of tags which should be assigned to the Email Communication Service. @@ -41,7 +41,7 @@ def __init__(__self__, *, @pulumi.getter(name="dataLocation") def data_location(self) -> pulumi.Input[str]: """ - The location where the Email Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` and `United States`. Changing this forces a new Email Communication Service to be created. + The location where the Email Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` `usgov` and `United States`. Changing this forces a new Email Communication Service to be created. """ return pulumi.get(self, "data_location") @@ -95,7 +95,7 @@ def __init__(__self__, *, tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None): """ Input properties used for looking up and filtering EmailService resources. - :param pulumi.Input[str] data_location: The location where the Email Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` and `United States`. Changing this forces a new Email Communication Service to be created. + :param pulumi.Input[str] data_location: The location where the Email Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` `usgov` and `United States`. Changing this forces a new Email Communication Service to be created. :param pulumi.Input[str] name: The name of the Email Communication Service resource. Changing this forces a new Email Communication Service to be created. :param pulumi.Input[str] resource_group_name: The name of the Resource Group where the Email Communication Service should exist. Changing this forces a new Email Communication Service to be created. :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A mapping of tags which should be assigned to the Email Communication Service. @@ -113,7 +113,7 @@ def __init__(__self__, *, @pulumi.getter(name="dataLocation") def data_location(self) -> Optional[pulumi.Input[str]]: """ - The location where the Email Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` and `United States`. Changing this forces a new Email Communication Service to be created. + The location where the Email Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` `usgov` and `United States`. Changing this forces a new Email Communication Service to be created. """ return pulumi.get(self, "data_location") @@ -196,7 +196,7 @@ def __init__(__self__, :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[str] data_location: The location where the Email Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` and `United States`. Changing this forces a new Email Communication Service to be created. + :param pulumi.Input[str] data_location: The location where the Email Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` `usgov` and `United States`. Changing this forces a new Email Communication Service to be created. :param pulumi.Input[str] name: The name of the Email Communication Service resource. Changing this forces a new Email Communication Service to be created. :param pulumi.Input[str] resource_group_name: The name of the Resource Group where the Email Communication Service should exist. Changing this forces a new Email Communication Service to be created. :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A mapping of tags which should be assigned to the Email Communication Service. @@ -290,7 +290,7 @@ def get(resource_name: str, :param str resource_name: The unique name of the resulting resource. :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[str] data_location: The location where the Email Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` and `United States`. Changing this forces a new Email Communication Service to be created. + :param pulumi.Input[str] data_location: The location where the Email Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` `usgov` and `United States`. Changing this forces a new Email Communication Service to be created. :param pulumi.Input[str] name: The name of the Email Communication Service resource. Changing this forces a new Email Communication Service to be created. :param pulumi.Input[str] resource_group_name: The name of the Resource Group where the Email Communication Service should exist. Changing this forces a new Email Communication Service to be created. :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A mapping of tags which should be assigned to the Email Communication Service. @@ -309,7 +309,7 @@ def get(resource_name: str, @pulumi.getter(name="dataLocation") def data_location(self) -> pulumi.Output[str]: """ - The location where the Email Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` and `United States`. Changing this forces a new Email Communication Service to be created. + The location where the Email Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` `usgov` and `United States`. Changing this forces a new Email Communication Service to be created. """ return pulumi.get(self, "data_location") diff --git a/sdk/python/pulumi_azure/communication/service.py b/sdk/python/pulumi_azure/communication/service.py index 3b94550ba9..ef707d78b6 100644 --- a/sdk/python/pulumi_azure/communication/service.py +++ b/sdk/python/pulumi_azure/communication/service.py @@ -26,7 +26,7 @@ def __init__(__self__, *, """ The set of arguments for constructing a Service resource. :param pulumi.Input[str] resource_group_name: The name of the Resource Group where the Communication Service should exist. Changing this forces a new Communication Service to be created. - :param pulumi.Input[str] data_location: The location where the Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` and `United States`. Defaults to `United States`. Changing this forces a new Communication Service to be created. + :param pulumi.Input[str] data_location: The location where the Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK`, `usgov` and `United States`. Defaults to `United States`. Changing this forces a new Communication Service to be created. :param pulumi.Input[str] name: The name of the Communication Service resource. Changing this forces a new Communication Service to be created. :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A mapping of tags which should be assigned to the Communication Service. """ @@ -54,7 +54,7 @@ def resource_group_name(self, value: pulumi.Input[str]): @pulumi.getter(name="dataLocation") def data_location(self) -> Optional[pulumi.Input[str]]: """ - The location where the Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` and `United States`. Defaults to `United States`. Changing this forces a new Communication Service to be created. + The location where the Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK`, `usgov` and `United States`. Defaults to `United States`. Changing this forces a new Communication Service to be created. """ return pulumi.get(self, "data_location") @@ -100,7 +100,7 @@ def __init__(__self__, *, tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None): """ Input properties used for looking up and filtering Service resources. - :param pulumi.Input[str] data_location: The location where the Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` and `United States`. Defaults to `United States`. Changing this forces a new Communication Service to be created. + :param pulumi.Input[str] data_location: The location where the Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK`, `usgov` and `United States`. Defaults to `United States`. Changing this forces a new Communication Service to be created. :param pulumi.Input[str] name: The name of the Communication Service resource. Changing this forces a new Communication Service to be created. :param pulumi.Input[str] primary_connection_string: The primary connection string of the Communication Service. :param pulumi.Input[str] primary_key: The primary key of the Communication Service. @@ -130,7 +130,7 @@ def __init__(__self__, *, @pulumi.getter(name="dataLocation") def data_location(self) -> Optional[pulumi.Input[str]]: """ - The location where the Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` and `United States`. Defaults to `United States`. Changing this forces a new Communication Service to be created. + The location where the Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK`, `usgov` and `United States`. Defaults to `United States`. Changing this forces a new Communication Service to be created. """ return pulumi.get(self, "data_location") @@ -261,7 +261,7 @@ def __init__(__self__, :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[str] data_location: The location where the Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` and `United States`. Defaults to `United States`. Changing this forces a new Communication Service to be created. + :param pulumi.Input[str] data_location: The location where the Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK`, `usgov` and `United States`. Defaults to `United States`. Changing this forces a new Communication Service to be created. :param pulumi.Input[str] name: The name of the Communication Service resource. Changing this forces a new Communication Service to be created. :param pulumi.Input[str] resource_group_name: The name of the Resource Group where the Communication Service should exist. Changing this forces a new Communication Service to be created. :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A mapping of tags which should be assigned to the Communication Service. @@ -363,7 +363,7 @@ def get(resource_name: str, :param str resource_name: The unique name of the resulting resource. :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[str] data_location: The location where the Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` and `United States`. Defaults to `United States`. Changing this forces a new Communication Service to be created. + :param pulumi.Input[str] data_location: The location where the Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK`, `usgov` and `United States`. Defaults to `United States`. Changing this forces a new Communication Service to be created. :param pulumi.Input[str] name: The name of the Communication Service resource. Changing this forces a new Communication Service to be created. :param pulumi.Input[str] primary_connection_string: The primary connection string of the Communication Service. :param pulumi.Input[str] primary_key: The primary key of the Communication Service. @@ -390,7 +390,7 @@ def get(resource_name: str, @pulumi.getter(name="dataLocation") def data_location(self) -> pulumi.Output[Optional[str]]: """ - The location where the Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK` and `United States`. Defaults to `United States`. Changing this forces a new Communication Service to be created. + The location where the Communication service stores its data at rest. Possible values are `Africa`, `Asia Pacific`, `Australia`, `Brazil`, `Canada`, `Europe`, `France`, `Germany`, `India`, `Japan`, `Korea`, `Norway`, `Switzerland`, `UAE`, `UK`, `usgov` and `United States`. Defaults to `United States`. Changing this forces a new Communication Service to be created. """ return pulumi.get(self, "data_location") diff --git a/sdk/python/pulumi_azure/compute/bastion_host.py b/sdk/python/pulumi_azure/compute/bastion_host.py index 18ce7e3230..707a722592 100644 --- a/sdk/python/pulumi_azure/compute/bastion_host.py +++ b/sdk/python/pulumi_azure/compute/bastion_host.py @@ -35,7 +35,8 @@ def __init__(__self__, *, sku: Optional[pulumi.Input[str]] = None, tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, tunneling_enabled: Optional[pulumi.Input[bool]] = None, - virtual_network_id: Optional[pulumi.Input[str]] = None): + virtual_network_id: Optional[pulumi.Input[str]] = None, + zones: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None): """ The set of arguments for constructing a BastionHost resource. :param pulumi.Input[str] resource_group_name: The name of the resource group in which to create the Bastion Host. Changing this forces a new resource to be created. @@ -69,6 +70,7 @@ def __init__(__self__, *, > **Note:** `tunneling_enabled` is only supported when `sku` is `Standard` or `Premium`. :param pulumi.Input[str] virtual_network_id: The ID of the Virtual Network for the Developer Bastion Host. Changing this forces a new resource to be created. + :param pulumi.Input[Sequence[pulumi.Input[str]]] zones: Specifies a list of Availability Zones in which this Public Bastion Host should be located. Changing this forces a new resource to be created. """ pulumi.set(__self__, "resource_group_name", resource_group_name) if copy_paste_enabled is not None: @@ -99,6 +101,8 @@ def __init__(__self__, *, pulumi.set(__self__, "tunneling_enabled", tunneling_enabled) if virtual_network_id is not None: pulumi.set(__self__, "virtual_network_id", virtual_network_id) + if zones is not None: + pulumi.set(__self__, "zones", zones) @property @pulumi.getter(name="resourceGroupName") @@ -296,6 +300,18 @@ def virtual_network_id(self) -> Optional[pulumi.Input[str]]: def virtual_network_id(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "virtual_network_id", value) + @property + @pulumi.getter + def zones(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: + """ + Specifies a list of Availability Zones in which this Public Bastion Host should be located. Changing this forces a new resource to be created. + """ + return pulumi.get(self, "zones") + + @zones.setter + def zones(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): + pulumi.set(self, "zones", value) + @pulumi.input_type class _BastionHostState: @@ -315,7 +331,8 @@ def __init__(__self__, *, sku: Optional[pulumi.Input[str]] = None, tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, tunneling_enabled: Optional[pulumi.Input[bool]] = None, - virtual_network_id: Optional[pulumi.Input[str]] = None): + virtual_network_id: Optional[pulumi.Input[str]] = None, + zones: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None): """ Input properties used for looking up and filtering BastionHost resources. :param pulumi.Input[bool] copy_paste_enabled: Is Copy/Paste feature enabled for the Bastion Host. Defaults to `true`. @@ -350,6 +367,7 @@ def __init__(__self__, *, > **Note:** `tunneling_enabled` is only supported when `sku` is `Standard` or `Premium`. :param pulumi.Input[str] virtual_network_id: The ID of the Virtual Network for the Developer Bastion Host. Changing this forces a new resource to be created. + :param pulumi.Input[Sequence[pulumi.Input[str]]] zones: Specifies a list of Availability Zones in which this Public Bastion Host should be located. Changing this forces a new resource to be created. """ if copy_paste_enabled is not None: pulumi.set(__self__, "copy_paste_enabled", copy_paste_enabled) @@ -383,6 +401,8 @@ def __init__(__self__, *, pulumi.set(__self__, "tunneling_enabled", tunneling_enabled) if virtual_network_id is not None: pulumi.set(__self__, "virtual_network_id", virtual_network_id) + if zones is not None: + pulumi.set(__self__, "zones", zones) @property @pulumi.getter(name="copyPasteEnabled") @@ -592,6 +612,18 @@ def virtual_network_id(self) -> Optional[pulumi.Input[str]]: def virtual_network_id(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "virtual_network_id", value) + @property + @pulumi.getter + def zones(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: + """ + Specifies a list of Availability Zones in which this Public Bastion Host should be located. Changing this forces a new resource to be created. + """ + return pulumi.get(self, "zones") + + @zones.setter + def zones(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): + pulumi.set(self, "zones", value) + class BastionHost(pulumi.CustomResource): @overload @@ -613,6 +645,7 @@ def __init__(__self__, tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, tunneling_enabled: Optional[pulumi.Input[bool]] = None, virtual_network_id: Optional[pulumi.Input[str]] = None, + zones: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, __props__=None): """ Manages a Bastion Host. @@ -696,6 +729,7 @@ def __init__(__self__, > **Note:** `tunneling_enabled` is only supported when `sku` is `Standard` or `Premium`. :param pulumi.Input[str] virtual_network_id: The ID of the Virtual Network for the Developer Bastion Host. Changing this forces a new resource to be created. + :param pulumi.Input[Sequence[pulumi.Input[str]]] zones: Specifies a list of Availability Zones in which this Public Bastion Host should be located. Changing this forces a new resource to be created. """ ... @overload @@ -782,6 +816,7 @@ def _internal_init(__self__, tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, tunneling_enabled: Optional[pulumi.Input[bool]] = None, virtual_network_id: Optional[pulumi.Input[str]] = None, + zones: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, __props__=None): opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) if not isinstance(opts, pulumi.ResourceOptions): @@ -808,6 +843,7 @@ def _internal_init(__self__, __props__.__dict__["tags"] = tags __props__.__dict__["tunneling_enabled"] = tunneling_enabled __props__.__dict__["virtual_network_id"] = virtual_network_id + __props__.__dict__["zones"] = zones __props__.__dict__["dns_name"] = None super(BastionHost, __self__).__init__( 'azure:compute/bastionHost:BastionHost', @@ -834,7 +870,8 @@ def get(resource_name: str, sku: Optional[pulumi.Input[str]] = None, tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, tunneling_enabled: Optional[pulumi.Input[bool]] = None, - virtual_network_id: Optional[pulumi.Input[str]] = None) -> 'BastionHost': + virtual_network_id: Optional[pulumi.Input[str]] = None, + zones: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None) -> 'BastionHost': """ Get an existing BastionHost resource's state with the given name, id, and optional extra properties used to qualify the lookup. @@ -874,6 +911,7 @@ def get(resource_name: str, > **Note:** `tunneling_enabled` is only supported when `sku` is `Standard` or `Premium`. :param pulumi.Input[str] virtual_network_id: The ID of the Virtual Network for the Developer Bastion Host. Changing this forces a new resource to be created. + :param pulumi.Input[Sequence[pulumi.Input[str]]] zones: Specifies a list of Availability Zones in which this Public Bastion Host should be located. Changing this forces a new resource to be created. """ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) @@ -895,6 +933,7 @@ def get(resource_name: str, __props__.__dict__["tags"] = tags __props__.__dict__["tunneling_enabled"] = tunneling_enabled __props__.__dict__["virtual_network_id"] = virtual_network_id + __props__.__dict__["zones"] = zones return BastionHost(resource_name, opts=opts, __props__=__props__) @property @@ -1041,3 +1080,11 @@ def virtual_network_id(self) -> pulumi.Output[Optional[str]]: """ return pulumi.get(self, "virtual_network_id") + @property + @pulumi.getter + def zones(self) -> pulumi.Output[Optional[Sequence[str]]]: + """ + Specifies a list of Availability Zones in which this Public Bastion Host should be located. Changing this forces a new resource to be created. + """ + return pulumi.get(self, "zones") + diff --git a/sdk/python/pulumi_azure/compute/get_bastion_host.py b/sdk/python/pulumi_azure/compute/get_bastion_host.py index 656496036d..c5767e7c74 100644 --- a/sdk/python/pulumi_azure/compute/get_bastion_host.py +++ b/sdk/python/pulumi_azure/compute/get_bastion_host.py @@ -27,7 +27,7 @@ class GetBastionHostResult: """ A collection of values returned by getBastionHost. """ - def __init__(__self__, copy_paste_enabled=None, dns_name=None, file_copy_enabled=None, id=None, ip_configurations=None, ip_connect_enabled=None, location=None, name=None, resource_group_name=None, scale_units=None, session_recording_enabled=None, shareable_link_enabled=None, sku=None, tags=None, tunneling_enabled=None): + def __init__(__self__, copy_paste_enabled=None, dns_name=None, file_copy_enabled=None, id=None, ip_configurations=None, ip_connect_enabled=None, location=None, name=None, resource_group_name=None, scale_units=None, session_recording_enabled=None, shareable_link_enabled=None, sku=None, tags=None, tunneling_enabled=None, zones=None): if copy_paste_enabled and not isinstance(copy_paste_enabled, bool): raise TypeError("Expected argument 'copy_paste_enabled' to be a bool") pulumi.set(__self__, "copy_paste_enabled", copy_paste_enabled) @@ -73,6 +73,9 @@ def __init__(__self__, copy_paste_enabled=None, dns_name=None, file_copy_enabled if tunneling_enabled and not isinstance(tunneling_enabled, bool): raise TypeError("Expected argument 'tunneling_enabled' to be a bool") pulumi.set(__self__, "tunneling_enabled", tunneling_enabled) + if zones and not isinstance(zones, list): + raise TypeError("Expected argument 'zones' to be a list") + pulumi.set(__self__, "zones", zones) @property @pulumi.getter(name="copyPasteEnabled") @@ -191,6 +194,14 @@ def tunneling_enabled(self) -> bool: """ return pulumi.get(self, "tunneling_enabled") + @property + @pulumi.getter + def zones(self) -> Sequence[str]: + """ + A list of Availability Zones in which this Bastion Host is located. + """ + return pulumi.get(self, "zones") + class AwaitableGetBastionHostResult(GetBastionHostResult): # pylint: disable=using-constant-test @@ -212,7 +223,8 @@ def __await__(self): shareable_link_enabled=self.shareable_link_enabled, sku=self.sku, tags=self.tags, - tunneling_enabled=self.tunneling_enabled) + tunneling_enabled=self.tunneling_enabled, + zones=self.zones) def get_bastion_host(name: Optional[str] = None, @@ -257,7 +269,8 @@ def get_bastion_host(name: Optional[str] = None, shareable_link_enabled=pulumi.get(__ret__, 'shareable_link_enabled'), sku=pulumi.get(__ret__, 'sku'), tags=pulumi.get(__ret__, 'tags'), - tunneling_enabled=pulumi.get(__ret__, 'tunneling_enabled')) + tunneling_enabled=pulumi.get(__ret__, 'tunneling_enabled'), + zones=pulumi.get(__ret__, 'zones')) def get_bastion_host_output(name: Optional[pulumi.Input[str]] = None, resource_group_name: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetBastionHostResult]: @@ -299,4 +312,5 @@ def get_bastion_host_output(name: Optional[pulumi.Input[str]] = None, shareable_link_enabled=pulumi.get(__response__, 'shareable_link_enabled'), sku=pulumi.get(__response__, 'sku'), tags=pulumi.get(__response__, 'tags'), - tunneling_enabled=pulumi.get(__response__, 'tunneling_enabled'))) + tunneling_enabled=pulumi.get(__response__, 'tunneling_enabled'), + zones=pulumi.get(__response__, 'zones'))) diff --git a/sdk/python/pulumi_azure/config/outputs.py b/sdk/python/pulumi_azure/config/outputs.py index a2d902c6e3..220aa6f801 100644 --- a/sdk/python/pulumi_azure/config/outputs.py +++ b/sdk/python/pulumi_azure/config/outputs.py @@ -25,6 +25,7 @@ 'FeaturesLogAnalyticsWorkspace', 'FeaturesMachineLearning', 'FeaturesManagedDisk', + 'FeaturesNetapp', 'FeaturesPostgresqlFlexibleServer', 'FeaturesRecoveryService', 'FeaturesRecoveryServicesVaults', @@ -47,6 +48,7 @@ def __init__(__self__, *, log_analytics_workspace: Optional['outputs.FeaturesLogAnalyticsWorkspace'] = None, machine_learning: Optional['outputs.FeaturesMachineLearning'] = None, managed_disk: Optional['outputs.FeaturesManagedDisk'] = None, + netapp: Optional['outputs.FeaturesNetapp'] = None, postgresql_flexible_server: Optional['outputs.FeaturesPostgresqlFlexibleServer'] = None, recovery_service: Optional['outputs.FeaturesRecoveryService'] = None, recovery_services_vaults: Optional['outputs.FeaturesRecoveryServicesVaults'] = None, @@ -72,6 +74,8 @@ def __init__(__self__, *, pulumi.set(__self__, "machine_learning", machine_learning) if managed_disk is not None: pulumi.set(__self__, "managed_disk", managed_disk) + if netapp is not None: + pulumi.set(__self__, "netapp", netapp) if postgresql_flexible_server is not None: pulumi.set(__self__, "postgresql_flexible_server", postgresql_flexible_server) if recovery_service is not None: @@ -131,6 +135,11 @@ def machine_learning(self) -> Optional['outputs.FeaturesMachineLearning']: def managed_disk(self) -> Optional['outputs.FeaturesManagedDisk']: return pulumi.get(self, "managed_disk") + @property + @pulumi.getter + def netapp(self) -> Optional['outputs.FeaturesNetapp']: + return pulumi.get(self, "netapp") + @property @pulumi.getter(name="postgresqlFlexibleServer") def postgresql_flexible_server(self) -> Optional['outputs.FeaturesPostgresqlFlexibleServer']: @@ -423,6 +432,37 @@ def expand_without_downtime(self) -> Optional[bool]: return pulumi.get(self, "expand_without_downtime") +@pulumi.output_type +class FeaturesNetapp(dict): + def __init__(__self__, *, + delete_backups_on_backup_vault_destroy: Optional[bool] = None, + prevent_volume_destruction: Optional[bool] = None): + """ + :param bool delete_backups_on_backup_vault_destroy: When enabled, backups will be deleted when the `netapp.BackupVault` resource is destroyed + :param bool prevent_volume_destruction: When enabled, the volume will not be destroyed, safeguarding from severe data loss + """ + if delete_backups_on_backup_vault_destroy is not None: + pulumi.set(__self__, "delete_backups_on_backup_vault_destroy", delete_backups_on_backup_vault_destroy) + if prevent_volume_destruction is not None: + pulumi.set(__self__, "prevent_volume_destruction", prevent_volume_destruction) + + @property + @pulumi.getter(name="deleteBackupsOnBackupVaultDestroy") + def delete_backups_on_backup_vault_destroy(self) -> Optional[bool]: + """ + When enabled, backups will be deleted when the `netapp.BackupVault` resource is destroyed + """ + return pulumi.get(self, "delete_backups_on_backup_vault_destroy") + + @property + @pulumi.getter(name="preventVolumeDestruction") + def prevent_volume_destruction(self) -> Optional[bool]: + """ + When enabled, the volume will not be destroyed, safeguarding from severe data loss + """ + return pulumi.get(self, "prevent_volume_destruction") + + @pulumi.output_type class FeaturesPostgresqlFlexibleServer(dict): def __init__(__self__, *, diff --git a/sdk/python/pulumi_azure/fluidrelay/server.py b/sdk/python/pulumi_azure/fluidrelay/server.py index 7315bc7aca..073aecc105 100644 --- a/sdk/python/pulumi_azure/fluidrelay/server.py +++ b/sdk/python/pulumi_azure/fluidrelay/server.py @@ -31,6 +31,7 @@ def __init__(__self__, *, """ The set of arguments for constructing a Server resource. :param pulumi.Input[str] resource_group_name: The name of the Resource Group where the Fluid Relay Server should exist. Changing this forces a new Fluid Relay Server to be created. + :param pulumi.Input['ServerCustomerManagedKeyArgs'] customer_managed_key: A `customer_managed_key` block as defined below. Changing this forces a new resource to be created. :param pulumi.Input['ServerIdentityArgs'] identity: An `identity` block as defined below. :param pulumi.Input[str] location: The Azure Region where the Fluid Relay Server should exist. Changing this forces a new Fluid Relay Server to be created. :param pulumi.Input[str] name: The name which should be used for this Fluid Relay Server. Changing this forces a new Fluid Relay Server to be created. @@ -66,6 +67,9 @@ def resource_group_name(self, value: pulumi.Input[str]): @property @pulumi.getter(name="customerManagedKey") def customer_managed_key(self) -> Optional[pulumi.Input['ServerCustomerManagedKeyArgs']]: + """ + A `customer_managed_key` block as defined below. Changing this forces a new resource to be created. + """ return pulumi.get(self, "customer_managed_key") @customer_managed_key.setter @@ -151,6 +155,7 @@ def __init__(__self__, *, tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None): """ Input properties used for looking up and filtering Server resources. + :param pulumi.Input['ServerCustomerManagedKeyArgs'] customer_managed_key: A `customer_managed_key` block as defined below. Changing this forces a new resource to be created. :param pulumi.Input[str] frs_tenant_id: The Fluid tenantId for this server. :param pulumi.Input['ServerIdentityArgs'] identity: An `identity` block as defined below. :param pulumi.Input[str] location: The Azure Region where the Fluid Relay Server should exist. Changing this forces a new Fluid Relay Server to be created. @@ -194,6 +199,9 @@ def __init__(__self__, *, @property @pulumi.getter(name="customerManagedKey") def customer_managed_key(self) -> Optional[pulumi.Input['ServerCustomerManagedKeyArgs']]: + """ + A `customer_managed_key` block as defined below. Changing this forces a new resource to be created. + """ return pulumi.get(self, "customer_managed_key") @customer_managed_key.setter @@ -386,6 +394,7 @@ def __init__(__self__, :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[Union['ServerCustomerManagedKeyArgs', 'ServerCustomerManagedKeyArgsDict']] customer_managed_key: A `customer_managed_key` block as defined below. Changing this forces a new resource to be created. :param pulumi.Input[Union['ServerIdentityArgs', 'ServerIdentityArgsDict']] identity: An `identity` block as defined below. :param pulumi.Input[str] location: The Azure Region where the Fluid Relay Server should exist. Changing this forces a new Fluid Relay Server to be created. :param pulumi.Input[str] name: The name which should be used for this Fluid Relay Server. Changing this forces a new Fluid Relay Server to be created. @@ -503,6 +512,7 @@ def get(resource_name: str, :param str resource_name: The unique name of the resulting resource. :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[Union['ServerCustomerManagedKeyArgs', 'ServerCustomerManagedKeyArgsDict']] customer_managed_key: A `customer_managed_key` block as defined below. Changing this forces a new resource to be created. :param pulumi.Input[str] frs_tenant_id: The Fluid tenantId for this server. :param pulumi.Input[Union['ServerIdentityArgs', 'ServerIdentityArgsDict']] identity: An `identity` block as defined below. :param pulumi.Input[str] location: The Azure Region where the Fluid Relay Server should exist. Changing this forces a new Fluid Relay Server to be created. @@ -538,6 +548,9 @@ def get(resource_name: str, @property @pulumi.getter(name="customerManagedKey") def customer_managed_key(self) -> pulumi.Output[Optional['outputs.ServerCustomerManagedKey']]: + """ + A `customer_managed_key` block as defined below. Changing this forces a new resource to be created. + """ return pulumi.get(self, "customer_managed_key") @property diff --git a/sdk/python/pulumi_azure/keyvault/__init__.py b/sdk/python/pulumi_azure/keyvault/__init__.py index b3e8fe9880..b475c36ef3 100644 --- a/sdk/python/pulumi_azure/keyvault/__init__.py +++ b/sdk/python/pulumi_azure/keyvault/__init__.py @@ -19,6 +19,7 @@ from .get_key import * from .get_key_vault import * from .get_managed_hardware_security_module import * +from .get_managed_hardware_security_module_key import * from .get_managed_hardware_security_module_role_definition import * from .get_secret import * from .get_secrets import * diff --git a/sdk/python/pulumi_azure/keyvault/get_managed_hardware_security_module_key.py b/sdk/python/pulumi_azure/keyvault/get_managed_hardware_security_module_key.py new file mode 100644 index 0000000000..d8c6dc8669 --- /dev/null +++ b/sdk/python/pulumi_azure/keyvault/get_managed_hardware_security_module_key.py @@ -0,0 +1,260 @@ +# coding=utf-8 +# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import copy +import warnings +import sys +import pulumi +import pulumi.runtime +from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias +from .. import _utilities + +__all__ = [ + 'GetManagedHardwareSecurityModuleKeyResult', + 'AwaitableGetManagedHardwareSecurityModuleKeyResult', + 'get_managed_hardware_security_module_key', + 'get_managed_hardware_security_module_key_output', +] + +@pulumi.output_type +class GetManagedHardwareSecurityModuleKeyResult: + """ + A collection of values returned by getManagedHardwareSecurityModuleKey. + """ + def __init__(__self__, curve=None, expiration_date=None, id=None, key_opts=None, key_size=None, key_type=None, managed_hsm_id=None, name=None, not_before_date=None, tags=None, version=None, versioned_id=None): + if curve and not isinstance(curve, str): + raise TypeError("Expected argument 'curve' to be a str") + pulumi.set(__self__, "curve", curve) + if expiration_date and not isinstance(expiration_date, str): + raise TypeError("Expected argument 'expiration_date' to be a str") + pulumi.set(__self__, "expiration_date", expiration_date) + if id and not isinstance(id, str): + raise TypeError("Expected argument 'id' to be a str") + pulumi.set(__self__, "id", id) + if key_opts and not isinstance(key_opts, list): + raise TypeError("Expected argument 'key_opts' to be a list") + pulumi.set(__self__, "key_opts", key_opts) + if key_size and not isinstance(key_size, int): + raise TypeError("Expected argument 'key_size' to be a int") + pulumi.set(__self__, "key_size", key_size) + if key_type and not isinstance(key_type, str): + raise TypeError("Expected argument 'key_type' to be a str") + pulumi.set(__self__, "key_type", key_type) + if managed_hsm_id and not isinstance(managed_hsm_id, str): + raise TypeError("Expected argument 'managed_hsm_id' to be a str") + pulumi.set(__self__, "managed_hsm_id", managed_hsm_id) + if name and not isinstance(name, str): + raise TypeError("Expected argument 'name' to be a str") + pulumi.set(__self__, "name", name) + if not_before_date and not isinstance(not_before_date, str): + raise TypeError("Expected argument 'not_before_date' to be a str") + pulumi.set(__self__, "not_before_date", not_before_date) + if tags and not isinstance(tags, dict): + raise TypeError("Expected argument 'tags' to be a dict") + pulumi.set(__self__, "tags", tags) + if version and not isinstance(version, str): + raise TypeError("Expected argument 'version' to be a str") + pulumi.set(__self__, "version", version) + if versioned_id and not isinstance(versioned_id, str): + raise TypeError("Expected argument 'versioned_id' to be a str") + pulumi.set(__self__, "versioned_id", versioned_id) + + @property + @pulumi.getter + def curve(self) -> str: + """ + The EC Curve name of this Managed Hardware Security Module Key. + """ + return pulumi.get(self, "curve") + + @property + @pulumi.getter(name="expirationDate") + def expiration_date(self) -> str: + return pulumi.get(self, "expiration_date") + + @property + @pulumi.getter + def id(self) -> str: + """ + The provider-assigned unique ID for this managed resource. + """ + return pulumi.get(self, "id") + + @property + @pulumi.getter(name="keyOpts") + def key_opts(self) -> Sequence[str]: + """ + A list of JSON web key operations assigned to this Managed Hardware Security Module Key + """ + return pulumi.get(self, "key_opts") + + @property + @pulumi.getter(name="keySize") + def key_size(self) -> int: + """ + Specifies the Size of this Managed Hardware Security Module Key. + """ + return pulumi.get(self, "key_size") + + @property + @pulumi.getter(name="keyType") + def key_type(self) -> str: + """ + Specifies the Key Type of this Managed Hardware Security Module Key + """ + return pulumi.get(self, "key_type") + + @property + @pulumi.getter(name="managedHsmId") + def managed_hsm_id(self) -> str: + return pulumi.get(self, "managed_hsm_id") + + @property + @pulumi.getter + def name(self) -> str: + return pulumi.get(self, "name") + + @property + @pulumi.getter(name="notBeforeDate") + def not_before_date(self) -> str: + return pulumi.get(self, "not_before_date") + + @property + @pulumi.getter + def tags(self) -> Mapping[str, str]: + """ + A mapping of tags assigned to this Managed Hardware Security Module Key. + """ + return pulumi.get(self, "tags") + + @property + @pulumi.getter + def version(self) -> str: + """ + The current version of the Managed Hardware Security Module Key. + """ + return pulumi.get(self, "version") + + @property + @pulumi.getter(name="versionedId") + def versioned_id(self) -> str: + """ + The versioned ID of the Managed Hardware Security Module Key. + """ + return pulumi.get(self, "versioned_id") + + +class AwaitableGetManagedHardwareSecurityModuleKeyResult(GetManagedHardwareSecurityModuleKeyResult): + # pylint: disable=using-constant-test + def __await__(self): + if False: + yield self + return GetManagedHardwareSecurityModuleKeyResult( + curve=self.curve, + expiration_date=self.expiration_date, + id=self.id, + key_opts=self.key_opts, + key_size=self.key_size, + key_type=self.key_type, + managed_hsm_id=self.managed_hsm_id, + name=self.name, + not_before_date=self.not_before_date, + tags=self.tags, + version=self.version, + versioned_id=self.versioned_id) + + +def get_managed_hardware_security_module_key(managed_hsm_id: Optional[str] = None, + name: Optional[str] = None, + opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetManagedHardwareSecurityModuleKeyResult: + """ + Use this data source to access information about an existing Managed Hardware Security Module Key. + + > **Note:** All arguments including the secret value will be stored in the raw state as plain-text. + [Read more about sensitive data in state](https://www.terraform.io/docs/state/sensitive-data.html). + + ## Example Usage + + ```python + import pulumi + import pulumi_azure as azure + + example = azure.keyvault.get_managed_hardware_security_module_key(managed_hsm_id=example_azurerm_key_vault_managed_hardware_security_module["id"], + name=example_azurerm_key_vault_managed_hardware_security_module_key["name"]) + pulumi.export("hsm-key-vesrion", example.version) + ``` + + + :param str managed_hsm_id: Specifies the ID of the Managed Hardware Security Module instance where the Secret resides, available on the `keyvault.ManagedHardwareSecurityModuleKey` Data Source / Resource. + + **NOTE:** The Managed Hardware Security Module must be in the same subscription as the provider. If the Managed Hardware Security Module is in another subscription, you must create an aliased provider for that subscription. + :param str name: Specifies the name of the Managed Hardware Security Module Key. + """ + __args__ = dict() + __args__['managedHsmId'] = managed_hsm_id + __args__['name'] = name + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke('azure:keyvault/getManagedHardwareSecurityModuleKey:getManagedHardwareSecurityModuleKey', __args__, opts=opts, typ=GetManagedHardwareSecurityModuleKeyResult).value + + return AwaitableGetManagedHardwareSecurityModuleKeyResult( + curve=pulumi.get(__ret__, 'curve'), + expiration_date=pulumi.get(__ret__, 'expiration_date'), + id=pulumi.get(__ret__, 'id'), + key_opts=pulumi.get(__ret__, 'key_opts'), + key_size=pulumi.get(__ret__, 'key_size'), + key_type=pulumi.get(__ret__, 'key_type'), + managed_hsm_id=pulumi.get(__ret__, 'managed_hsm_id'), + name=pulumi.get(__ret__, 'name'), + not_before_date=pulumi.get(__ret__, 'not_before_date'), + tags=pulumi.get(__ret__, 'tags'), + version=pulumi.get(__ret__, 'version'), + versioned_id=pulumi.get(__ret__, 'versioned_id')) +def get_managed_hardware_security_module_key_output(managed_hsm_id: Optional[pulumi.Input[str]] = None, + name: Optional[pulumi.Input[str]] = None, + opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetManagedHardwareSecurityModuleKeyResult]: + """ + Use this data source to access information about an existing Managed Hardware Security Module Key. + + > **Note:** All arguments including the secret value will be stored in the raw state as plain-text. + [Read more about sensitive data in state](https://www.terraform.io/docs/state/sensitive-data.html). + + ## Example Usage + + ```python + import pulumi + import pulumi_azure as azure + + example = azure.keyvault.get_managed_hardware_security_module_key(managed_hsm_id=example_azurerm_key_vault_managed_hardware_security_module["id"], + name=example_azurerm_key_vault_managed_hardware_security_module_key["name"]) + pulumi.export("hsm-key-vesrion", example.version) + ``` + + + :param str managed_hsm_id: Specifies the ID of the Managed Hardware Security Module instance where the Secret resides, available on the `keyvault.ManagedHardwareSecurityModuleKey` Data Source / Resource. + + **NOTE:** The Managed Hardware Security Module must be in the same subscription as the provider. If the Managed Hardware Security Module is in another subscription, you must create an aliased provider for that subscription. + :param str name: Specifies the name of the Managed Hardware Security Module Key. + """ + __args__ = dict() + __args__['managedHsmId'] = managed_hsm_id + __args__['name'] = name + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke_output('azure:keyvault/getManagedHardwareSecurityModuleKey:getManagedHardwareSecurityModuleKey', __args__, opts=opts, typ=GetManagedHardwareSecurityModuleKeyResult) + return __ret__.apply(lambda __response__: GetManagedHardwareSecurityModuleKeyResult( + curve=pulumi.get(__response__, 'curve'), + expiration_date=pulumi.get(__response__, 'expiration_date'), + id=pulumi.get(__response__, 'id'), + key_opts=pulumi.get(__response__, 'key_opts'), + key_size=pulumi.get(__response__, 'key_size'), + key_type=pulumi.get(__response__, 'key_type'), + managed_hsm_id=pulumi.get(__response__, 'managed_hsm_id'), + name=pulumi.get(__response__, 'name'), + not_before_date=pulumi.get(__response__, 'not_before_date'), + tags=pulumi.get(__response__, 'tags'), + version=pulumi.get(__response__, 'version'), + versioned_id=pulumi.get(__response__, 'versioned_id'))) diff --git a/sdk/python/pulumi_azure/mssql/_inputs.py b/sdk/python/pulumi_azure/mssql/_inputs.py index f20a681b65..2ab4793d1e 100644 --- a/sdk/python/pulumi_azure/mssql/_inputs.py +++ b/sdk/python/pulumi_azure/mssql/_inputs.py @@ -287,9 +287,10 @@ def storage_account_id(self, value: Optional[pulumi.Input[str]]): if not MYPY: class DatabaseLongTermRetentionPolicyArgsDict(TypedDict): + immutable_backups_enabled: NotRequired[pulumi.Input[bool]] monthly_retention: NotRequired[pulumi.Input[str]] """ - The monthly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 120 months. e.g. `P1Y`, `P1M`, `P4W` or `P30D`. + The monthly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 120 months. e.g. `P1Y`, `P1M`, `P4W` or `P30D`. Defaults to `PT0S`. """ week_of_year: NotRequired[pulumi.Input[int]] """ @@ -297,11 +298,11 @@ class DatabaseLongTermRetentionPolicyArgsDict(TypedDict): """ weekly_retention: NotRequired[pulumi.Input[str]] """ - The weekly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 520 weeks. e.g. `P1Y`, `P1M`, `P1W` or `P7D`. + The weekly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 520 weeks. e.g. `P1Y`, `P1M`, `P1W` or `P7D`. Defaults to `PT0S`. """ yearly_retention: NotRequired[pulumi.Input[str]] """ - The yearly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 10 years. e.g. `P1Y`, `P12M`, `P52W` or `P365D`. + The yearly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 10 years. e.g. `P1Y`, `P12M`, `P52W` or `P365D`. Defaults to `PT0S`. """ elif False: DatabaseLongTermRetentionPolicyArgsDict: TypeAlias = Mapping[str, Any] @@ -309,16 +310,19 @@ class DatabaseLongTermRetentionPolicyArgsDict(TypedDict): @pulumi.input_type class DatabaseLongTermRetentionPolicyArgs: def __init__(__self__, *, + immutable_backups_enabled: Optional[pulumi.Input[bool]] = None, monthly_retention: Optional[pulumi.Input[str]] = None, week_of_year: Optional[pulumi.Input[int]] = None, weekly_retention: Optional[pulumi.Input[str]] = None, yearly_retention: Optional[pulumi.Input[str]] = None): """ - :param pulumi.Input[str] monthly_retention: The monthly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 120 months. e.g. `P1Y`, `P1M`, `P4W` or `P30D`. + :param pulumi.Input[str] monthly_retention: The monthly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 120 months. e.g. `P1Y`, `P1M`, `P4W` or `P30D`. Defaults to `PT0S`. :param pulumi.Input[int] week_of_year: The week of year to take the yearly backup. Value has to be between `1` and `52`. - :param pulumi.Input[str] weekly_retention: The weekly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 520 weeks. e.g. `P1Y`, `P1M`, `P1W` or `P7D`. - :param pulumi.Input[str] yearly_retention: The yearly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 10 years. e.g. `P1Y`, `P12M`, `P52W` or `P365D`. + :param pulumi.Input[str] weekly_retention: The weekly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 520 weeks. e.g. `P1Y`, `P1M`, `P1W` or `P7D`. Defaults to `PT0S`. + :param pulumi.Input[str] yearly_retention: The yearly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 10 years. e.g. `P1Y`, `P12M`, `P52W` or `P365D`. Defaults to `PT0S`. """ + if immutable_backups_enabled is not None: + pulumi.set(__self__, "immutable_backups_enabled", immutable_backups_enabled) if monthly_retention is not None: pulumi.set(__self__, "monthly_retention", monthly_retention) if week_of_year is not None: @@ -328,11 +332,20 @@ def __init__(__self__, *, if yearly_retention is not None: pulumi.set(__self__, "yearly_retention", yearly_retention) + @property + @pulumi.getter(name="immutableBackupsEnabled") + def immutable_backups_enabled(self) -> Optional[pulumi.Input[bool]]: + return pulumi.get(self, "immutable_backups_enabled") + + @immutable_backups_enabled.setter + def immutable_backups_enabled(self, value: Optional[pulumi.Input[bool]]): + pulumi.set(self, "immutable_backups_enabled", value) + @property @pulumi.getter(name="monthlyRetention") def monthly_retention(self) -> Optional[pulumi.Input[str]]: """ - The monthly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 120 months. e.g. `P1Y`, `P1M`, `P4W` or `P30D`. + The monthly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 120 months. e.g. `P1Y`, `P1M`, `P4W` or `P30D`. Defaults to `PT0S`. """ return pulumi.get(self, "monthly_retention") @@ -356,7 +369,7 @@ def week_of_year(self, value: Optional[pulumi.Input[int]]): @pulumi.getter(name="weeklyRetention") def weekly_retention(self) -> Optional[pulumi.Input[str]]: """ - The weekly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 520 weeks. e.g. `P1Y`, `P1M`, `P1W` or `P7D`. + The weekly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 520 weeks. e.g. `P1Y`, `P1M`, `P1W` or `P7D`. Defaults to `PT0S`. """ return pulumi.get(self, "weekly_retention") @@ -368,7 +381,7 @@ def weekly_retention(self, value: Optional[pulumi.Input[str]]): @pulumi.getter(name="yearlyRetention") def yearly_retention(self) -> Optional[pulumi.Input[str]]: """ - The yearly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 10 years. e.g. `P1Y`, `P12M`, `P52W` or `P365D`. + The yearly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 10 years. e.g. `P1Y`, `P12M`, `P52W` or `P365D`. Defaults to `PT0S`. """ return pulumi.get(self, "yearly_retention") @@ -874,9 +887,10 @@ def grace_minutes(self, value: Optional[pulumi.Input[int]]): if not MYPY: class ManagedDatabaseLongTermRetentionPolicyArgsDict(TypedDict): + immutable_backups_enabled: NotRequired[pulumi.Input[bool]] monthly_retention: NotRequired[pulumi.Input[str]] """ - The monthly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 120 months. e.g. `P1Y`, `P1M`, `P4W` or `P30D`. + The monthly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 120 months. e.g. `P1Y`, `P1M`, `P4W` or `P30D`. Defaults to `PT0S`. """ week_of_year: NotRequired[pulumi.Input[int]] """ @@ -884,11 +898,11 @@ class ManagedDatabaseLongTermRetentionPolicyArgsDict(TypedDict): """ weekly_retention: NotRequired[pulumi.Input[str]] """ - The weekly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 520 weeks. e.g. `P1Y`, `P1M`, `P1W` or `P7D`. + The weekly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 520 weeks. e.g. `P1Y`, `P1M`, `P1W` or `P7D`. Defaults to `PT0S`. """ yearly_retention: NotRequired[pulumi.Input[str]] """ - The yearly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 10 years. e.g. `P1Y`, `P12M`, `P52W` or `P365D`. + The yearly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 10 years. e.g. `P1Y`, `P12M`, `P52W` or `P365D`. Defaults to `PT0S`. """ elif False: ManagedDatabaseLongTermRetentionPolicyArgsDict: TypeAlias = Mapping[str, Any] @@ -896,16 +910,19 @@ class ManagedDatabaseLongTermRetentionPolicyArgsDict(TypedDict): @pulumi.input_type class ManagedDatabaseLongTermRetentionPolicyArgs: def __init__(__self__, *, + immutable_backups_enabled: Optional[pulumi.Input[bool]] = None, monthly_retention: Optional[pulumi.Input[str]] = None, week_of_year: Optional[pulumi.Input[int]] = None, weekly_retention: Optional[pulumi.Input[str]] = None, yearly_retention: Optional[pulumi.Input[str]] = None): """ - :param pulumi.Input[str] monthly_retention: The monthly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 120 months. e.g. `P1Y`, `P1M`, `P4W` or `P30D`. + :param pulumi.Input[str] monthly_retention: The monthly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 120 months. e.g. `P1Y`, `P1M`, `P4W` or `P30D`. Defaults to `PT0S`. :param pulumi.Input[int] week_of_year: The week of year to take the yearly backup. Value has to be between `1` and `52`. - :param pulumi.Input[str] weekly_retention: The weekly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 520 weeks. e.g. `P1Y`, `P1M`, `P1W` or `P7D`. - :param pulumi.Input[str] yearly_retention: The yearly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 10 years. e.g. `P1Y`, `P12M`, `P52W` or `P365D`. + :param pulumi.Input[str] weekly_retention: The weekly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 520 weeks. e.g. `P1Y`, `P1M`, `P1W` or `P7D`. Defaults to `PT0S`. + :param pulumi.Input[str] yearly_retention: The yearly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 10 years. e.g. `P1Y`, `P12M`, `P52W` or `P365D`. Defaults to `PT0S`. """ + if immutable_backups_enabled is not None: + pulumi.set(__self__, "immutable_backups_enabled", immutable_backups_enabled) if monthly_retention is not None: pulumi.set(__self__, "monthly_retention", monthly_retention) if week_of_year is not None: @@ -915,11 +932,20 @@ def __init__(__self__, *, if yearly_retention is not None: pulumi.set(__self__, "yearly_retention", yearly_retention) + @property + @pulumi.getter(name="immutableBackupsEnabled") + def immutable_backups_enabled(self) -> Optional[pulumi.Input[bool]]: + return pulumi.get(self, "immutable_backups_enabled") + + @immutable_backups_enabled.setter + def immutable_backups_enabled(self, value: Optional[pulumi.Input[bool]]): + pulumi.set(self, "immutable_backups_enabled", value) + @property @pulumi.getter(name="monthlyRetention") def monthly_retention(self) -> Optional[pulumi.Input[str]]: """ - The monthly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 120 months. e.g. `P1Y`, `P1M`, `P4W` or `P30D`. + The monthly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 120 months. e.g. `P1Y`, `P1M`, `P4W` or `P30D`. Defaults to `PT0S`. """ return pulumi.get(self, "monthly_retention") @@ -943,7 +969,7 @@ def week_of_year(self, value: Optional[pulumi.Input[int]]): @pulumi.getter(name="weeklyRetention") def weekly_retention(self) -> Optional[pulumi.Input[str]]: """ - The weekly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 520 weeks. e.g. `P1Y`, `P1M`, `P1W` or `P7D`. + The weekly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 520 weeks. e.g. `P1Y`, `P1M`, `P1W` or `P7D`. Defaults to `PT0S`. """ return pulumi.get(self, "weekly_retention") @@ -955,7 +981,7 @@ def weekly_retention(self, value: Optional[pulumi.Input[str]]): @pulumi.getter(name="yearlyRetention") def yearly_retention(self) -> Optional[pulumi.Input[str]]: """ - The yearly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 10 years. e.g. `P1Y`, `P12M`, `P52W` or `P365D`. + The yearly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 10 years. e.g. `P1Y`, `P12M`, `P52W` or `P365D`. Defaults to `PT0S`. """ return pulumi.get(self, "yearly_retention") diff --git a/sdk/python/pulumi_azure/mssql/outputs.py b/sdk/python/pulumi_azure/mssql/outputs.py index 2e046b9d6b..311173d592 100644 --- a/sdk/python/pulumi_azure/mssql/outputs.py +++ b/sdk/python/pulumi_azure/mssql/outputs.py @@ -222,7 +222,9 @@ class DatabaseLongTermRetentionPolicy(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "monthlyRetention": + if key == "immutableBackupsEnabled": + suggest = "immutable_backups_enabled" + elif key == "monthlyRetention": suggest = "monthly_retention" elif key == "weekOfYear": suggest = "week_of_year" @@ -243,16 +245,19 @@ def get(self, key: str, default = None) -> Any: return super().get(key, default) def __init__(__self__, *, + immutable_backups_enabled: Optional[bool] = None, monthly_retention: Optional[str] = None, week_of_year: Optional[int] = None, weekly_retention: Optional[str] = None, yearly_retention: Optional[str] = None): """ - :param str monthly_retention: The monthly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 120 months. e.g. `P1Y`, `P1M`, `P4W` or `P30D`. + :param str monthly_retention: The monthly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 120 months. e.g. `P1Y`, `P1M`, `P4W` or `P30D`. Defaults to `PT0S`. :param int week_of_year: The week of year to take the yearly backup. Value has to be between `1` and `52`. - :param str weekly_retention: The weekly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 520 weeks. e.g. `P1Y`, `P1M`, `P1W` or `P7D`. - :param str yearly_retention: The yearly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 10 years. e.g. `P1Y`, `P12M`, `P52W` or `P365D`. + :param str weekly_retention: The weekly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 520 weeks. e.g. `P1Y`, `P1M`, `P1W` or `P7D`. Defaults to `PT0S`. + :param str yearly_retention: The yearly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 10 years. e.g. `P1Y`, `P12M`, `P52W` or `P365D`. Defaults to `PT0S`. """ + if immutable_backups_enabled is not None: + pulumi.set(__self__, "immutable_backups_enabled", immutable_backups_enabled) if monthly_retention is not None: pulumi.set(__self__, "monthly_retention", monthly_retention) if week_of_year is not None: @@ -262,11 +267,16 @@ def __init__(__self__, *, if yearly_retention is not None: pulumi.set(__self__, "yearly_retention", yearly_retention) + @property + @pulumi.getter(name="immutableBackupsEnabled") + def immutable_backups_enabled(self) -> Optional[bool]: + return pulumi.get(self, "immutable_backups_enabled") + @property @pulumi.getter(name="monthlyRetention") def monthly_retention(self) -> Optional[str]: """ - The monthly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 120 months. e.g. `P1Y`, `P1M`, `P4W` or `P30D`. + The monthly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 120 months. e.g. `P1Y`, `P1M`, `P4W` or `P30D`. Defaults to `PT0S`. """ return pulumi.get(self, "monthly_retention") @@ -282,7 +292,7 @@ def week_of_year(self) -> Optional[int]: @pulumi.getter(name="weeklyRetention") def weekly_retention(self) -> Optional[str]: """ - The weekly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 520 weeks. e.g. `P1Y`, `P1M`, `P1W` or `P7D`. + The weekly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 520 weeks. e.g. `P1Y`, `P1M`, `P1W` or `P7D`. Defaults to `PT0S`. """ return pulumi.get(self, "weekly_retention") @@ -290,7 +300,7 @@ def weekly_retention(self) -> Optional[str]: @pulumi.getter(name="yearlyRetention") def yearly_retention(self) -> Optional[str]: """ - The yearly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 10 years. e.g. `P1Y`, `P12M`, `P52W` or `P365D`. + The yearly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 10 years. e.g. `P1Y`, `P12M`, `P52W` or `P365D`. Defaults to `PT0S`. """ return pulumi.get(self, "yearly_retention") @@ -674,7 +684,9 @@ class ManagedDatabaseLongTermRetentionPolicy(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "monthlyRetention": + if key == "immutableBackupsEnabled": + suggest = "immutable_backups_enabled" + elif key == "monthlyRetention": suggest = "monthly_retention" elif key == "weekOfYear": suggest = "week_of_year" @@ -695,16 +707,19 @@ def get(self, key: str, default = None) -> Any: return super().get(key, default) def __init__(__self__, *, + immutable_backups_enabled: Optional[bool] = None, monthly_retention: Optional[str] = None, week_of_year: Optional[int] = None, weekly_retention: Optional[str] = None, yearly_retention: Optional[str] = None): """ - :param str monthly_retention: The monthly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 120 months. e.g. `P1Y`, `P1M`, `P4W` or `P30D`. + :param str monthly_retention: The monthly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 120 months. e.g. `P1Y`, `P1M`, `P4W` or `P30D`. Defaults to `PT0S`. :param int week_of_year: The week of year to take the yearly backup. Value has to be between `1` and `52`. - :param str weekly_retention: The weekly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 520 weeks. e.g. `P1Y`, `P1M`, `P1W` or `P7D`. - :param str yearly_retention: The yearly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 10 years. e.g. `P1Y`, `P12M`, `P52W` or `P365D`. + :param str weekly_retention: The weekly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 520 weeks. e.g. `P1Y`, `P1M`, `P1W` or `P7D`. Defaults to `PT0S`. + :param str yearly_retention: The yearly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 10 years. e.g. `P1Y`, `P12M`, `P52W` or `P365D`. Defaults to `PT0S`. """ + if immutable_backups_enabled is not None: + pulumi.set(__self__, "immutable_backups_enabled", immutable_backups_enabled) if monthly_retention is not None: pulumi.set(__self__, "monthly_retention", monthly_retention) if week_of_year is not None: @@ -714,11 +729,16 @@ def __init__(__self__, *, if yearly_retention is not None: pulumi.set(__self__, "yearly_retention", yearly_retention) + @property + @pulumi.getter(name="immutableBackupsEnabled") + def immutable_backups_enabled(self) -> Optional[bool]: + return pulumi.get(self, "immutable_backups_enabled") + @property @pulumi.getter(name="monthlyRetention") def monthly_retention(self) -> Optional[str]: """ - The monthly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 120 months. e.g. `P1Y`, `P1M`, `P4W` or `P30D`. + The monthly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 120 months. e.g. `P1Y`, `P1M`, `P4W` or `P30D`. Defaults to `PT0S`. """ return pulumi.get(self, "monthly_retention") @@ -734,7 +754,7 @@ def week_of_year(self) -> Optional[int]: @pulumi.getter(name="weeklyRetention") def weekly_retention(self) -> Optional[str]: """ - The weekly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 520 weeks. e.g. `P1Y`, `P1M`, `P1W` or `P7D`. + The weekly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 520 weeks. e.g. `P1Y`, `P1M`, `P1W` or `P7D`. Defaults to `PT0S`. """ return pulumi.get(self, "weekly_retention") @@ -742,7 +762,7 @@ def weekly_retention(self) -> Optional[str]: @pulumi.getter(name="yearlyRetention") def yearly_retention(self) -> Optional[str]: """ - The yearly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 10 years. e.g. `P1Y`, `P12M`, `P52W` or `P365D`. + The yearly retention policy for an LTR backup in an ISO 8601 format. Valid value is between 1 to 10 years. e.g. `P1Y`, `P12M`, `P52W` or `P365D`. Defaults to `PT0S`. """ return pulumi.get(self, "yearly_retention") diff --git a/sdk/python/pulumi_azure/netapp/__init__.py b/sdk/python/pulumi_azure/netapp/__init__.py index 5dc4609248..87ed65f4a7 100644 --- a/sdk/python/pulumi_azure/netapp/__init__.py +++ b/sdk/python/pulumi_azure/netapp/__init__.py @@ -7,8 +7,12 @@ # Export this package's modules as members: from .account import * from .account_encryption import * +from .backup_policy import * +from .backup_vault import * from .get_account import * from .get_account_encryption import * +from .get_backup_policy import * +from .get_backup_vault import * from .get_pool import * from .get_snapshot import * from .get_snapshot_policy import * diff --git a/sdk/python/pulumi_azure/netapp/_inputs.py b/sdk/python/pulumi_azure/netapp/_inputs.py index 2fb51cceb1..a69222ec19 100644 --- a/sdk/python/pulumi_azure/netapp/_inputs.py +++ b/sdk/python/pulumi_azure/netapp/_inputs.py @@ -27,6 +27,8 @@ 'SnapshotPolicyMonthlyScheduleArgsDict', 'SnapshotPolicyWeeklyScheduleArgs', 'SnapshotPolicyWeeklyScheduleArgsDict', + 'VolumeDataProtectionBackupPolicyArgs', + 'VolumeDataProtectionBackupPolicyArgsDict', 'VolumeDataProtectionReplicationArgs', 'VolumeDataProtectionReplicationArgsDict', 'VolumeDataProtectionSnapshotPolicyArgs', @@ -712,6 +714,82 @@ def snapshots_to_keep(self, value: pulumi.Input[int]): pulumi.set(self, "snapshots_to_keep", value) +if not MYPY: + class VolumeDataProtectionBackupPolicyArgsDict(TypedDict): + backup_policy_id: pulumi.Input[str] + """ + Resource ID of the backup policy to apply to the volume. + """ + backup_vault_id: pulumi.Input[str] + """ + Resource ID of the backup backup vault to associate this volume to. + """ + policy_enabled: NotRequired[pulumi.Input[bool]] + """ + Enables the backup policy on the volume, defaults to `true`. + + For more information on Azure NetApp Files Backup feature please see [Understand Azure NetApp Files backup](https://learn.microsoft.com/en-us/azure/azure-netapp-files/backup-introduction) + """ +elif False: + VolumeDataProtectionBackupPolicyArgsDict: TypeAlias = Mapping[str, Any] + +@pulumi.input_type +class VolumeDataProtectionBackupPolicyArgs: + def __init__(__self__, *, + backup_policy_id: pulumi.Input[str], + backup_vault_id: pulumi.Input[str], + policy_enabled: Optional[pulumi.Input[bool]] = None): + """ + :param pulumi.Input[str] backup_policy_id: Resource ID of the backup policy to apply to the volume. + :param pulumi.Input[str] backup_vault_id: Resource ID of the backup backup vault to associate this volume to. + :param pulumi.Input[bool] policy_enabled: Enables the backup policy on the volume, defaults to `true`. + + For more information on Azure NetApp Files Backup feature please see [Understand Azure NetApp Files backup](https://learn.microsoft.com/en-us/azure/azure-netapp-files/backup-introduction) + """ + pulumi.set(__self__, "backup_policy_id", backup_policy_id) + pulumi.set(__self__, "backup_vault_id", backup_vault_id) + if policy_enabled is not None: + pulumi.set(__self__, "policy_enabled", policy_enabled) + + @property + @pulumi.getter(name="backupPolicyId") + def backup_policy_id(self) -> pulumi.Input[str]: + """ + Resource ID of the backup policy to apply to the volume. + """ + return pulumi.get(self, "backup_policy_id") + + @backup_policy_id.setter + def backup_policy_id(self, value: pulumi.Input[str]): + pulumi.set(self, "backup_policy_id", value) + + @property + @pulumi.getter(name="backupVaultId") + def backup_vault_id(self) -> pulumi.Input[str]: + """ + Resource ID of the backup backup vault to associate this volume to. + """ + return pulumi.get(self, "backup_vault_id") + + @backup_vault_id.setter + def backup_vault_id(self, value: pulumi.Input[str]): + pulumi.set(self, "backup_vault_id", value) + + @property + @pulumi.getter(name="policyEnabled") + def policy_enabled(self) -> Optional[pulumi.Input[bool]]: + """ + Enables the backup policy on the volume, defaults to `true`. + + For more information on Azure NetApp Files Backup feature please see [Understand Azure NetApp Files backup](https://learn.microsoft.com/en-us/azure/azure-netapp-files/backup-introduction) + """ + return pulumi.get(self, "policy_enabled") + + @policy_enabled.setter + def policy_enabled(self, value: Optional[pulumi.Input[bool]]): + pulumi.set(self, "policy_enabled", value) + + if not MYPY: class VolumeDataProtectionReplicationArgsDict(TypedDict): remote_volume_location: pulumi.Input[str] diff --git a/sdk/python/pulumi_azure/netapp/backup_policy.py b/sdk/python/pulumi_azure/netapp/backup_policy.py new file mode 100644 index 0000000000..70779b6d21 --- /dev/null +++ b/sdk/python/pulumi_azure/netapp/backup_policy.py @@ -0,0 +1,600 @@ +# coding=utf-8 +# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import copy +import warnings +import sys +import pulumi +import pulumi.runtime +from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias +from .. import _utilities + +__all__ = ['BackupPolicyArgs', 'BackupPolicy'] + +@pulumi.input_type +class BackupPolicyArgs: + def __init__(__self__, *, + account_name: pulumi.Input[str], + resource_group_name: pulumi.Input[str], + daily_backups_to_keep: Optional[pulumi.Input[int]] = None, + enabled: Optional[pulumi.Input[bool]] = None, + location: Optional[pulumi.Input[str]] = None, + monthly_backups_to_keep: Optional[pulumi.Input[int]] = None, + name: Optional[pulumi.Input[str]] = None, + tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, + weekly_backups_to_keep: Optional[pulumi.Input[int]] = None): + """ + The set of arguments for constructing a BackupPolicy resource. + :param pulumi.Input[str] account_name: The name of the NetApp account in which the NetApp Policy should be created under. Changing this forces a new resource to be created. + :param pulumi.Input[str] resource_group_name: The name of the resource group where the NetApp Backup Policy should be created. Changing this forces a new resource to be created. + :param pulumi.Input[int] daily_backups_to_keep: Provides the number of daily backups to keep, defaults to `2` which is the minimum, maximum is 1019. + :param pulumi.Input[bool] enabled: Whether the Backup Policy is enabled. Defaults to `true`. + :param pulumi.Input[str] location: Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. + :param pulumi.Input[int] monthly_backups_to_keep: Provides the number of monthly backups to keep, defaults to `1` which is the minimum, maximum is 1019. + + > **Note:** Currently, the combined (daily + weekly + monthy) retention counts cannot exceed 1019. + :param pulumi.Input[str] name: The name of the NetApp Backup Policy. Changing this forces a new resource to be created. + :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A mapping of tags to assign to the resource. + :param pulumi.Input[int] weekly_backups_to_keep: Provides the number of weekly backups to keep, defaults to `1` which is the minimum, maximum is 1019. + """ + pulumi.set(__self__, "account_name", account_name) + pulumi.set(__self__, "resource_group_name", resource_group_name) + if daily_backups_to_keep is not None: + pulumi.set(__self__, "daily_backups_to_keep", daily_backups_to_keep) + if enabled is not None: + pulumi.set(__self__, "enabled", enabled) + if location is not None: + pulumi.set(__self__, "location", location) + if monthly_backups_to_keep is not None: + pulumi.set(__self__, "monthly_backups_to_keep", monthly_backups_to_keep) + if name is not None: + pulumi.set(__self__, "name", name) + if tags is not None: + pulumi.set(__self__, "tags", tags) + if weekly_backups_to_keep is not None: + pulumi.set(__self__, "weekly_backups_to_keep", weekly_backups_to_keep) + + @property + @pulumi.getter(name="accountName") + def account_name(self) -> pulumi.Input[str]: + """ + The name of the NetApp account in which the NetApp Policy should be created under. Changing this forces a new resource to be created. + """ + return pulumi.get(self, "account_name") + + @account_name.setter + def account_name(self, value: pulumi.Input[str]): + pulumi.set(self, "account_name", value) + + @property + @pulumi.getter(name="resourceGroupName") + def resource_group_name(self) -> pulumi.Input[str]: + """ + The name of the resource group where the NetApp Backup Policy should be created. Changing this forces a new resource to be created. + """ + return pulumi.get(self, "resource_group_name") + + @resource_group_name.setter + def resource_group_name(self, value: pulumi.Input[str]): + pulumi.set(self, "resource_group_name", value) + + @property + @pulumi.getter(name="dailyBackupsToKeep") + def daily_backups_to_keep(self) -> Optional[pulumi.Input[int]]: + """ + Provides the number of daily backups to keep, defaults to `2` which is the minimum, maximum is 1019. + """ + return pulumi.get(self, "daily_backups_to_keep") + + @daily_backups_to_keep.setter + def daily_backups_to_keep(self, value: Optional[pulumi.Input[int]]): + pulumi.set(self, "daily_backups_to_keep", value) + + @property + @pulumi.getter + def enabled(self) -> Optional[pulumi.Input[bool]]: + """ + Whether the Backup Policy is enabled. Defaults to `true`. + """ + return pulumi.get(self, "enabled") + + @enabled.setter + def enabled(self, value: Optional[pulumi.Input[bool]]): + pulumi.set(self, "enabled", value) + + @property + @pulumi.getter + def location(self) -> Optional[pulumi.Input[str]]: + """ + Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. + """ + return pulumi.get(self, "location") + + @location.setter + def location(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "location", value) + + @property + @pulumi.getter(name="monthlyBackupsToKeep") + def monthly_backups_to_keep(self) -> Optional[pulumi.Input[int]]: + """ + Provides the number of monthly backups to keep, defaults to `1` which is the minimum, maximum is 1019. + + > **Note:** Currently, the combined (daily + weekly + monthy) retention counts cannot exceed 1019. + """ + return pulumi.get(self, "monthly_backups_to_keep") + + @monthly_backups_to_keep.setter + def monthly_backups_to_keep(self, value: Optional[pulumi.Input[int]]): + pulumi.set(self, "monthly_backups_to_keep", value) + + @property + @pulumi.getter + def name(self) -> Optional[pulumi.Input[str]]: + """ + The name of the NetApp Backup Policy. Changing this forces a new resource to be created. + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "name", value) + + @property + @pulumi.getter + def tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]: + """ + A mapping of tags to assign to the resource. + """ + return pulumi.get(self, "tags") + + @tags.setter + def tags(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]): + pulumi.set(self, "tags", value) + + @property + @pulumi.getter(name="weeklyBackupsToKeep") + def weekly_backups_to_keep(self) -> Optional[pulumi.Input[int]]: + """ + Provides the number of weekly backups to keep, defaults to `1` which is the minimum, maximum is 1019. + """ + return pulumi.get(self, "weekly_backups_to_keep") + + @weekly_backups_to_keep.setter + def weekly_backups_to_keep(self, value: Optional[pulumi.Input[int]]): + pulumi.set(self, "weekly_backups_to_keep", value) + + +@pulumi.input_type +class _BackupPolicyState: + def __init__(__self__, *, + account_name: Optional[pulumi.Input[str]] = None, + daily_backups_to_keep: Optional[pulumi.Input[int]] = None, + enabled: Optional[pulumi.Input[bool]] = None, + location: Optional[pulumi.Input[str]] = None, + monthly_backups_to_keep: Optional[pulumi.Input[int]] = None, + name: Optional[pulumi.Input[str]] = None, + resource_group_name: Optional[pulumi.Input[str]] = None, + tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, + weekly_backups_to_keep: Optional[pulumi.Input[int]] = None): + """ + Input properties used for looking up and filtering BackupPolicy resources. + :param pulumi.Input[str] account_name: The name of the NetApp account in which the NetApp Policy should be created under. Changing this forces a new resource to be created. + :param pulumi.Input[int] daily_backups_to_keep: Provides the number of daily backups to keep, defaults to `2` which is the minimum, maximum is 1019. + :param pulumi.Input[bool] enabled: Whether the Backup Policy is enabled. Defaults to `true`. + :param pulumi.Input[str] location: Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. + :param pulumi.Input[int] monthly_backups_to_keep: Provides the number of monthly backups to keep, defaults to `1` which is the minimum, maximum is 1019. + + > **Note:** Currently, the combined (daily + weekly + monthy) retention counts cannot exceed 1019. + :param pulumi.Input[str] name: The name of the NetApp Backup Policy. Changing this forces a new resource to be created. + :param pulumi.Input[str] resource_group_name: The name of the resource group where the NetApp Backup Policy should be created. Changing this forces a new resource to be created. + :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A mapping of tags to assign to the resource. + :param pulumi.Input[int] weekly_backups_to_keep: Provides the number of weekly backups to keep, defaults to `1` which is the minimum, maximum is 1019. + """ + if account_name is not None: + pulumi.set(__self__, "account_name", account_name) + if daily_backups_to_keep is not None: + pulumi.set(__self__, "daily_backups_to_keep", daily_backups_to_keep) + if enabled is not None: + pulumi.set(__self__, "enabled", enabled) + if location is not None: + pulumi.set(__self__, "location", location) + if monthly_backups_to_keep is not None: + pulumi.set(__self__, "monthly_backups_to_keep", monthly_backups_to_keep) + if name is not None: + pulumi.set(__self__, "name", name) + if resource_group_name is not None: + pulumi.set(__self__, "resource_group_name", resource_group_name) + if tags is not None: + pulumi.set(__self__, "tags", tags) + if weekly_backups_to_keep is not None: + pulumi.set(__self__, "weekly_backups_to_keep", weekly_backups_to_keep) + + @property + @pulumi.getter(name="accountName") + def account_name(self) -> Optional[pulumi.Input[str]]: + """ + The name of the NetApp account in which the NetApp Policy should be created under. Changing this forces a new resource to be created. + """ + return pulumi.get(self, "account_name") + + @account_name.setter + def account_name(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "account_name", value) + + @property + @pulumi.getter(name="dailyBackupsToKeep") + def daily_backups_to_keep(self) -> Optional[pulumi.Input[int]]: + """ + Provides the number of daily backups to keep, defaults to `2` which is the minimum, maximum is 1019. + """ + return pulumi.get(self, "daily_backups_to_keep") + + @daily_backups_to_keep.setter + def daily_backups_to_keep(self, value: Optional[pulumi.Input[int]]): + pulumi.set(self, "daily_backups_to_keep", value) + + @property + @pulumi.getter + def enabled(self) -> Optional[pulumi.Input[bool]]: + """ + Whether the Backup Policy is enabled. Defaults to `true`. + """ + return pulumi.get(self, "enabled") + + @enabled.setter + def enabled(self, value: Optional[pulumi.Input[bool]]): + pulumi.set(self, "enabled", value) + + @property + @pulumi.getter + def location(self) -> Optional[pulumi.Input[str]]: + """ + Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. + """ + return pulumi.get(self, "location") + + @location.setter + def location(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "location", value) + + @property + @pulumi.getter(name="monthlyBackupsToKeep") + def monthly_backups_to_keep(self) -> Optional[pulumi.Input[int]]: + """ + Provides the number of monthly backups to keep, defaults to `1` which is the minimum, maximum is 1019. + + > **Note:** Currently, the combined (daily + weekly + monthy) retention counts cannot exceed 1019. + """ + return pulumi.get(self, "monthly_backups_to_keep") + + @monthly_backups_to_keep.setter + def monthly_backups_to_keep(self, value: Optional[pulumi.Input[int]]): + pulumi.set(self, "monthly_backups_to_keep", value) + + @property + @pulumi.getter + def name(self) -> Optional[pulumi.Input[str]]: + """ + The name of the NetApp Backup Policy. Changing this forces a new resource to be created. + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "name", value) + + @property + @pulumi.getter(name="resourceGroupName") + def resource_group_name(self) -> Optional[pulumi.Input[str]]: + """ + The name of the resource group where the NetApp Backup Policy should be created. Changing this forces a new resource to be created. + """ + return pulumi.get(self, "resource_group_name") + + @resource_group_name.setter + def resource_group_name(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "resource_group_name", value) + + @property + @pulumi.getter + def tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]: + """ + A mapping of tags to assign to the resource. + """ + return pulumi.get(self, "tags") + + @tags.setter + def tags(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]): + pulumi.set(self, "tags", value) + + @property + @pulumi.getter(name="weeklyBackupsToKeep") + def weekly_backups_to_keep(self) -> Optional[pulumi.Input[int]]: + """ + Provides the number of weekly backups to keep, defaults to `1` which is the minimum, maximum is 1019. + """ + return pulumi.get(self, "weekly_backups_to_keep") + + @weekly_backups_to_keep.setter + def weekly_backups_to_keep(self, value: Optional[pulumi.Input[int]]): + pulumi.set(self, "weekly_backups_to_keep", value) + + +class BackupPolicy(pulumi.CustomResource): + @overload + def __init__(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + account_name: Optional[pulumi.Input[str]] = None, + daily_backups_to_keep: Optional[pulumi.Input[int]] = None, + enabled: Optional[pulumi.Input[bool]] = None, + location: Optional[pulumi.Input[str]] = None, + monthly_backups_to_keep: Optional[pulumi.Input[int]] = None, + name: Optional[pulumi.Input[str]] = None, + resource_group_name: Optional[pulumi.Input[str]] = None, + tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, + weekly_backups_to_keep: Optional[pulumi.Input[int]] = None, + __props__=None): + """ + Manages a NetApp Backup Policy. + + ## NetApp Backup Policy Usage + + ```python + import pulumi + import pulumi_azure as azure + + example = azure.core.ResourceGroup("example", + name="example-resources", + location="West Europe") + example_account = azure.netapp.Account("example", + name="example-netappaccount", + location=example.location, + resource_group_name=example.name) + example_backup_policy = azure.netapp.BackupPolicy("example", + name="example-netappbackuppolicy", + resource_group_name=example.name, + location=example.location, + account_name=example_account.name, + enabled=True) + ``` + + ## Import + + NetApp Backup Policy can be imported using the `resource id`, e.g. + + ```sh + $ pulumi import azure:netapp/backupPolicy:BackupPolicy example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.NetApp/netAppAccounts/account1/backupPolicies/backuppolicy1 + ``` + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[str] account_name: The name of the NetApp account in which the NetApp Policy should be created under. Changing this forces a new resource to be created. + :param pulumi.Input[int] daily_backups_to_keep: Provides the number of daily backups to keep, defaults to `2` which is the minimum, maximum is 1019. + :param pulumi.Input[bool] enabled: Whether the Backup Policy is enabled. Defaults to `true`. + :param pulumi.Input[str] location: Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. + :param pulumi.Input[int] monthly_backups_to_keep: Provides the number of monthly backups to keep, defaults to `1` which is the minimum, maximum is 1019. + + > **Note:** Currently, the combined (daily + weekly + monthy) retention counts cannot exceed 1019. + :param pulumi.Input[str] name: The name of the NetApp Backup Policy. Changing this forces a new resource to be created. + :param pulumi.Input[str] resource_group_name: The name of the resource group where the NetApp Backup Policy should be created. Changing this forces a new resource to be created. + :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A mapping of tags to assign to the resource. + :param pulumi.Input[int] weekly_backups_to_keep: Provides the number of weekly backups to keep, defaults to `1` which is the minimum, maximum is 1019. + """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: BackupPolicyArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Manages a NetApp Backup Policy. + + ## NetApp Backup Policy Usage + + ```python + import pulumi + import pulumi_azure as azure + + example = azure.core.ResourceGroup("example", + name="example-resources", + location="West Europe") + example_account = azure.netapp.Account("example", + name="example-netappaccount", + location=example.location, + resource_group_name=example.name) + example_backup_policy = azure.netapp.BackupPolicy("example", + name="example-netappbackuppolicy", + resource_group_name=example.name, + location=example.location, + account_name=example_account.name, + enabled=True) + ``` + + ## Import + + NetApp Backup Policy can be imported using the `resource id`, e.g. + + ```sh + $ pulumi import azure:netapp/backupPolicy:BackupPolicy example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.NetApp/netAppAccounts/account1/backupPolicies/backuppolicy1 + ``` + + :param str resource_name: The name of the resource. + :param BackupPolicyArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(BackupPolicyArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + account_name: Optional[pulumi.Input[str]] = None, + daily_backups_to_keep: Optional[pulumi.Input[int]] = None, + enabled: Optional[pulumi.Input[bool]] = None, + location: Optional[pulumi.Input[str]] = None, + monthly_backups_to_keep: Optional[pulumi.Input[int]] = None, + name: Optional[pulumi.Input[str]] = None, + resource_group_name: Optional[pulumi.Input[str]] = None, + tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, + weekly_backups_to_keep: Optional[pulumi.Input[int]] = None, + __props__=None): + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = BackupPolicyArgs.__new__(BackupPolicyArgs) + + if account_name is None and not opts.urn: + raise TypeError("Missing required property 'account_name'") + __props__.__dict__["account_name"] = account_name + __props__.__dict__["daily_backups_to_keep"] = daily_backups_to_keep + __props__.__dict__["enabled"] = enabled + __props__.__dict__["location"] = location + __props__.__dict__["monthly_backups_to_keep"] = monthly_backups_to_keep + __props__.__dict__["name"] = name + if resource_group_name is None and not opts.urn: + raise TypeError("Missing required property 'resource_group_name'") + __props__.__dict__["resource_group_name"] = resource_group_name + __props__.__dict__["tags"] = tags + __props__.__dict__["weekly_backups_to_keep"] = weekly_backups_to_keep + super(BackupPolicy, __self__).__init__( + 'azure:netapp/backupPolicy:BackupPolicy', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name: str, + id: pulumi.Input[str], + opts: Optional[pulumi.ResourceOptions] = None, + account_name: Optional[pulumi.Input[str]] = None, + daily_backups_to_keep: Optional[pulumi.Input[int]] = None, + enabled: Optional[pulumi.Input[bool]] = None, + location: Optional[pulumi.Input[str]] = None, + monthly_backups_to_keep: Optional[pulumi.Input[int]] = None, + name: Optional[pulumi.Input[str]] = None, + resource_group_name: Optional[pulumi.Input[str]] = None, + tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, + weekly_backups_to_keep: Optional[pulumi.Input[int]] = None) -> 'BackupPolicy': + """ + Get an existing BackupPolicy resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[str] account_name: The name of the NetApp account in which the NetApp Policy should be created under. Changing this forces a new resource to be created. + :param pulumi.Input[int] daily_backups_to_keep: Provides the number of daily backups to keep, defaults to `2` which is the minimum, maximum is 1019. + :param pulumi.Input[bool] enabled: Whether the Backup Policy is enabled. Defaults to `true`. + :param pulumi.Input[str] location: Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. + :param pulumi.Input[int] monthly_backups_to_keep: Provides the number of monthly backups to keep, defaults to `1` which is the minimum, maximum is 1019. + + > **Note:** Currently, the combined (daily + weekly + monthy) retention counts cannot exceed 1019. + :param pulumi.Input[str] name: The name of the NetApp Backup Policy. Changing this forces a new resource to be created. + :param pulumi.Input[str] resource_group_name: The name of the resource group where the NetApp Backup Policy should be created. Changing this forces a new resource to be created. + :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A mapping of tags to assign to the resource. + :param pulumi.Input[int] weekly_backups_to_keep: Provides the number of weekly backups to keep, defaults to `1` which is the minimum, maximum is 1019. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = _BackupPolicyState.__new__(_BackupPolicyState) + + __props__.__dict__["account_name"] = account_name + __props__.__dict__["daily_backups_to_keep"] = daily_backups_to_keep + __props__.__dict__["enabled"] = enabled + __props__.__dict__["location"] = location + __props__.__dict__["monthly_backups_to_keep"] = monthly_backups_to_keep + __props__.__dict__["name"] = name + __props__.__dict__["resource_group_name"] = resource_group_name + __props__.__dict__["tags"] = tags + __props__.__dict__["weekly_backups_to_keep"] = weekly_backups_to_keep + return BackupPolicy(resource_name, opts=opts, __props__=__props__) + + @property + @pulumi.getter(name="accountName") + def account_name(self) -> pulumi.Output[str]: + """ + The name of the NetApp account in which the NetApp Policy should be created under. Changing this forces a new resource to be created. + """ + return pulumi.get(self, "account_name") + + @property + @pulumi.getter(name="dailyBackupsToKeep") + def daily_backups_to_keep(self) -> pulumi.Output[Optional[int]]: + """ + Provides the number of daily backups to keep, defaults to `2` which is the minimum, maximum is 1019. + """ + return pulumi.get(self, "daily_backups_to_keep") + + @property + @pulumi.getter + def enabled(self) -> pulumi.Output[Optional[bool]]: + """ + Whether the Backup Policy is enabled. Defaults to `true`. + """ + return pulumi.get(self, "enabled") + + @property + @pulumi.getter + def location(self) -> pulumi.Output[str]: + """ + Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. + """ + return pulumi.get(self, "location") + + @property + @pulumi.getter(name="monthlyBackupsToKeep") + def monthly_backups_to_keep(self) -> pulumi.Output[Optional[int]]: + """ + Provides the number of monthly backups to keep, defaults to `1` which is the minimum, maximum is 1019. + + > **Note:** Currently, the combined (daily + weekly + monthy) retention counts cannot exceed 1019. + """ + return pulumi.get(self, "monthly_backups_to_keep") + + @property + @pulumi.getter + def name(self) -> pulumi.Output[str]: + """ + The name of the NetApp Backup Policy. Changing this forces a new resource to be created. + """ + return pulumi.get(self, "name") + + @property + @pulumi.getter(name="resourceGroupName") + def resource_group_name(self) -> pulumi.Output[str]: + """ + The name of the resource group where the NetApp Backup Policy should be created. Changing this forces a new resource to be created. + """ + return pulumi.get(self, "resource_group_name") + + @property + @pulumi.getter + def tags(self) -> pulumi.Output[Optional[Mapping[str, str]]]: + """ + A mapping of tags to assign to the resource. + """ + return pulumi.get(self, "tags") + + @property + @pulumi.getter(name="weeklyBackupsToKeep") + def weekly_backups_to_keep(self) -> pulumi.Output[Optional[int]]: + """ + Provides the number of weekly backups to keep, defaults to `1` which is the minimum, maximum is 1019. + """ + return pulumi.get(self, "weekly_backups_to_keep") + diff --git a/sdk/python/pulumi_azure/netapp/backup_vault.py b/sdk/python/pulumi_azure/netapp/backup_vault.py new file mode 100644 index 0000000000..b0e6341cb0 --- /dev/null +++ b/sdk/python/pulumi_azure/netapp/backup_vault.py @@ -0,0 +1,396 @@ +# coding=utf-8 +# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import copy +import warnings +import sys +import pulumi +import pulumi.runtime +from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias +from .. import _utilities + +__all__ = ['BackupVaultArgs', 'BackupVault'] + +@pulumi.input_type +class BackupVaultArgs: + def __init__(__self__, *, + account_name: pulumi.Input[str], + resource_group_name: pulumi.Input[str], + location: Optional[pulumi.Input[str]] = None, + name: Optional[pulumi.Input[str]] = None, + tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None): + """ + The set of arguments for constructing a BackupVault resource. + :param pulumi.Input[str] account_name: The name of the NetApp account in which the NetApp Vault should be created under. Changing this forces a new resource to be created. + :param pulumi.Input[str] resource_group_name: The name of the resource group where the NetApp Backup Vault should be created. Changing this forces a new resource to be created. + :param pulumi.Input[str] location: Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. + :param pulumi.Input[str] name: The name of the NetApp Backup Vault. Changing this forces a new resource to be created. + :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A mapping of tags to assign to the resource. + """ + pulumi.set(__self__, "account_name", account_name) + pulumi.set(__self__, "resource_group_name", resource_group_name) + if location is not None: + pulumi.set(__self__, "location", location) + if name is not None: + pulumi.set(__self__, "name", name) + if tags is not None: + pulumi.set(__self__, "tags", tags) + + @property + @pulumi.getter(name="accountName") + def account_name(self) -> pulumi.Input[str]: + """ + The name of the NetApp account in which the NetApp Vault should be created under. Changing this forces a new resource to be created. + """ + return pulumi.get(self, "account_name") + + @account_name.setter + def account_name(self, value: pulumi.Input[str]): + pulumi.set(self, "account_name", value) + + @property + @pulumi.getter(name="resourceGroupName") + def resource_group_name(self) -> pulumi.Input[str]: + """ + The name of the resource group where the NetApp Backup Vault should be created. Changing this forces a new resource to be created. + """ + return pulumi.get(self, "resource_group_name") + + @resource_group_name.setter + def resource_group_name(self, value: pulumi.Input[str]): + pulumi.set(self, "resource_group_name", value) + + @property + @pulumi.getter + def location(self) -> Optional[pulumi.Input[str]]: + """ + Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. + """ + return pulumi.get(self, "location") + + @location.setter + def location(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "location", value) + + @property + @pulumi.getter + def name(self) -> Optional[pulumi.Input[str]]: + """ + The name of the NetApp Backup Vault. Changing this forces a new resource to be created. + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "name", value) + + @property + @pulumi.getter + def tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]: + """ + A mapping of tags to assign to the resource. + """ + return pulumi.get(self, "tags") + + @tags.setter + def tags(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]): + pulumi.set(self, "tags", value) + + +@pulumi.input_type +class _BackupVaultState: + def __init__(__self__, *, + account_name: Optional[pulumi.Input[str]] = None, + location: Optional[pulumi.Input[str]] = None, + name: Optional[pulumi.Input[str]] = None, + resource_group_name: Optional[pulumi.Input[str]] = None, + tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None): + """ + Input properties used for looking up and filtering BackupVault resources. + :param pulumi.Input[str] account_name: The name of the NetApp account in which the NetApp Vault should be created under. Changing this forces a new resource to be created. + :param pulumi.Input[str] location: Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. + :param pulumi.Input[str] name: The name of the NetApp Backup Vault. Changing this forces a new resource to be created. + :param pulumi.Input[str] resource_group_name: The name of the resource group where the NetApp Backup Vault should be created. Changing this forces a new resource to be created. + :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A mapping of tags to assign to the resource. + """ + if account_name is not None: + pulumi.set(__self__, "account_name", account_name) + if location is not None: + pulumi.set(__self__, "location", location) + if name is not None: + pulumi.set(__self__, "name", name) + if resource_group_name is not None: + pulumi.set(__self__, "resource_group_name", resource_group_name) + if tags is not None: + pulumi.set(__self__, "tags", tags) + + @property + @pulumi.getter(name="accountName") + def account_name(self) -> Optional[pulumi.Input[str]]: + """ + The name of the NetApp account in which the NetApp Vault should be created under. Changing this forces a new resource to be created. + """ + return pulumi.get(self, "account_name") + + @account_name.setter + def account_name(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "account_name", value) + + @property + @pulumi.getter + def location(self) -> Optional[pulumi.Input[str]]: + """ + Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. + """ + return pulumi.get(self, "location") + + @location.setter + def location(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "location", value) + + @property + @pulumi.getter + def name(self) -> Optional[pulumi.Input[str]]: + """ + The name of the NetApp Backup Vault. Changing this forces a new resource to be created. + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "name", value) + + @property + @pulumi.getter(name="resourceGroupName") + def resource_group_name(self) -> Optional[pulumi.Input[str]]: + """ + The name of the resource group where the NetApp Backup Vault should be created. Changing this forces a new resource to be created. + """ + return pulumi.get(self, "resource_group_name") + + @resource_group_name.setter + def resource_group_name(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "resource_group_name", value) + + @property + @pulumi.getter + def tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]: + """ + A mapping of tags to assign to the resource. + """ + return pulumi.get(self, "tags") + + @tags.setter + def tags(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]): + pulumi.set(self, "tags", value) + + +class BackupVault(pulumi.CustomResource): + @overload + def __init__(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + account_name: Optional[pulumi.Input[str]] = None, + location: Optional[pulumi.Input[str]] = None, + name: Optional[pulumi.Input[str]] = None, + resource_group_name: Optional[pulumi.Input[str]] = None, + tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, + __props__=None): + """ + Manages a NetApp Backup Vault. + + ## NetApp Backup Vault Usage + + ```python + import pulumi + import pulumi_azure as azure + + example = azure.core.ResourceGroup("example", + name="example-resources", + location="West Europe") + example_account = azure.netapp.Account("example", + name="example-netappaccount", + location=example.location, + resource_group_name=example.name) + example_backup_vault = azure.netapp.BackupVault("example", + name="example-netappbackupvault", + resource_group_name=example.name, + location=example.location, + account_name=example_account.name) + ``` + + ## Import + + NetApp Backup Vault can be imported using the `resource id`, e.g. + + ```sh + $ pulumi import azure:netapp/backupVault:BackupVault example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.NetApp/netAppAccounts/account1/backupVaults/backupVault1 + ``` + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[str] account_name: The name of the NetApp account in which the NetApp Vault should be created under. Changing this forces a new resource to be created. + :param pulumi.Input[str] location: Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. + :param pulumi.Input[str] name: The name of the NetApp Backup Vault. Changing this forces a new resource to be created. + :param pulumi.Input[str] resource_group_name: The name of the resource group where the NetApp Backup Vault should be created. Changing this forces a new resource to be created. + :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A mapping of tags to assign to the resource. + """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: BackupVaultArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Manages a NetApp Backup Vault. + + ## NetApp Backup Vault Usage + + ```python + import pulumi + import pulumi_azure as azure + + example = azure.core.ResourceGroup("example", + name="example-resources", + location="West Europe") + example_account = azure.netapp.Account("example", + name="example-netappaccount", + location=example.location, + resource_group_name=example.name) + example_backup_vault = azure.netapp.BackupVault("example", + name="example-netappbackupvault", + resource_group_name=example.name, + location=example.location, + account_name=example_account.name) + ``` + + ## Import + + NetApp Backup Vault can be imported using the `resource id`, e.g. + + ```sh + $ pulumi import azure:netapp/backupVault:BackupVault example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.NetApp/netAppAccounts/account1/backupVaults/backupVault1 + ``` + + :param str resource_name: The name of the resource. + :param BackupVaultArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(BackupVaultArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + account_name: Optional[pulumi.Input[str]] = None, + location: Optional[pulumi.Input[str]] = None, + name: Optional[pulumi.Input[str]] = None, + resource_group_name: Optional[pulumi.Input[str]] = None, + tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, + __props__=None): + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = BackupVaultArgs.__new__(BackupVaultArgs) + + if account_name is None and not opts.urn: + raise TypeError("Missing required property 'account_name'") + __props__.__dict__["account_name"] = account_name + __props__.__dict__["location"] = location + __props__.__dict__["name"] = name + if resource_group_name is None and not opts.urn: + raise TypeError("Missing required property 'resource_group_name'") + __props__.__dict__["resource_group_name"] = resource_group_name + __props__.__dict__["tags"] = tags + super(BackupVault, __self__).__init__( + 'azure:netapp/backupVault:BackupVault', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name: str, + id: pulumi.Input[str], + opts: Optional[pulumi.ResourceOptions] = None, + account_name: Optional[pulumi.Input[str]] = None, + location: Optional[pulumi.Input[str]] = None, + name: Optional[pulumi.Input[str]] = None, + resource_group_name: Optional[pulumi.Input[str]] = None, + tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None) -> 'BackupVault': + """ + Get an existing BackupVault resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[str] account_name: The name of the NetApp account in which the NetApp Vault should be created under. Changing this forces a new resource to be created. + :param pulumi.Input[str] location: Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. + :param pulumi.Input[str] name: The name of the NetApp Backup Vault. Changing this forces a new resource to be created. + :param pulumi.Input[str] resource_group_name: The name of the resource group where the NetApp Backup Vault should be created. Changing this forces a new resource to be created. + :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A mapping of tags to assign to the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = _BackupVaultState.__new__(_BackupVaultState) + + __props__.__dict__["account_name"] = account_name + __props__.__dict__["location"] = location + __props__.__dict__["name"] = name + __props__.__dict__["resource_group_name"] = resource_group_name + __props__.__dict__["tags"] = tags + return BackupVault(resource_name, opts=opts, __props__=__props__) + + @property + @pulumi.getter(name="accountName") + def account_name(self) -> pulumi.Output[str]: + """ + The name of the NetApp account in which the NetApp Vault should be created under. Changing this forces a new resource to be created. + """ + return pulumi.get(self, "account_name") + + @property + @pulumi.getter + def location(self) -> pulumi.Output[str]: + """ + Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. + """ + return pulumi.get(self, "location") + + @property + @pulumi.getter + def name(self) -> pulumi.Output[str]: + """ + The name of the NetApp Backup Vault. Changing this forces a new resource to be created. + """ + return pulumi.get(self, "name") + + @property + @pulumi.getter(name="resourceGroupName") + def resource_group_name(self) -> pulumi.Output[str]: + """ + The name of the resource group where the NetApp Backup Vault should be created. Changing this forces a new resource to be created. + """ + return pulumi.get(self, "resource_group_name") + + @property + @pulumi.getter + def tags(self) -> pulumi.Output[Optional[Mapping[str, str]]]: + """ + A mapping of tags to assign to the resource. + """ + return pulumi.get(self, "tags") + diff --git a/sdk/python/pulumi_azure/netapp/get_account_encryption.py b/sdk/python/pulumi_azure/netapp/get_account_encryption.py index 49ffdfa4b1..7ef2adeacb 100644 --- a/sdk/python/pulumi_azure/netapp/get_account_encryption.py +++ b/sdk/python/pulumi_azure/netapp/get_account_encryption.py @@ -45,7 +45,7 @@ def __init__(__self__, encryption_key=None, id=None, netapp_account_id=None, sys @property @pulumi.getter(name="encryptionKey") - def encryption_key(self) -> Optional[str]: + def encryption_key(self) -> str: return pulumi.get(self, "encryption_key") @property @@ -63,12 +63,12 @@ def netapp_account_id(self) -> str: @property @pulumi.getter(name="systemAssignedIdentityPrincipalId") - def system_assigned_identity_principal_id(self) -> Optional[str]: + def system_assigned_identity_principal_id(self) -> str: return pulumi.get(self, "system_assigned_identity_principal_id") @property @pulumi.getter(name="userAssignedIdentityId") - def user_assigned_identity_id(self) -> Optional[str]: + def user_assigned_identity_id(self) -> str: return pulumi.get(self, "user_assigned_identity_id") @@ -85,10 +85,7 @@ def __await__(self): user_assigned_identity_id=self.user_assigned_identity_id) -def get_account_encryption(encryption_key: Optional[str] = None, - netapp_account_id: Optional[str] = None, - system_assigned_identity_principal_id: Optional[str] = None, - user_assigned_identity_id: Optional[str] = None, +def get_account_encryption(netapp_account_id: Optional[str] = None, opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetAccountEncryptionResult: """ Use this data source to access information about an existing NetApp Account Encryption Resource. @@ -104,16 +101,10 @@ def get_account_encryption(encryption_key: Optional[str] = None, ``` - :param str encryption_key: The key vault encryption key. :param str netapp_account_id: The ID of the NetApp account where customer managed keys-based encryption is enabled. - :param str system_assigned_identity_principal_id: The ID of the System Assigned Manged Identity. - :param str user_assigned_identity_id: The ID of the User Assigned Managed Identity. """ __args__ = dict() - __args__['encryptionKey'] = encryption_key __args__['netappAccountId'] = netapp_account_id - __args__['systemAssignedIdentityPrincipalId'] = system_assigned_identity_principal_id - __args__['userAssignedIdentityId'] = user_assigned_identity_id opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) __ret__ = pulumi.runtime.invoke('azure:netapp/getAccountEncryption:getAccountEncryption', __args__, opts=opts, typ=GetAccountEncryptionResult).value @@ -123,10 +114,7 @@ def get_account_encryption(encryption_key: Optional[str] = None, netapp_account_id=pulumi.get(__ret__, 'netapp_account_id'), system_assigned_identity_principal_id=pulumi.get(__ret__, 'system_assigned_identity_principal_id'), user_assigned_identity_id=pulumi.get(__ret__, 'user_assigned_identity_id')) -def get_account_encryption_output(encryption_key: Optional[pulumi.Input[Optional[str]]] = None, - netapp_account_id: Optional[pulumi.Input[str]] = None, - system_assigned_identity_principal_id: Optional[pulumi.Input[Optional[str]]] = None, - user_assigned_identity_id: Optional[pulumi.Input[Optional[str]]] = None, +def get_account_encryption_output(netapp_account_id: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetAccountEncryptionResult]: """ Use this data source to access information about an existing NetApp Account Encryption Resource. @@ -142,16 +130,10 @@ def get_account_encryption_output(encryption_key: Optional[pulumi.Input[Optional ``` - :param str encryption_key: The key vault encryption key. :param str netapp_account_id: The ID of the NetApp account where customer managed keys-based encryption is enabled. - :param str system_assigned_identity_principal_id: The ID of the System Assigned Manged Identity. - :param str user_assigned_identity_id: The ID of the User Assigned Managed Identity. """ __args__ = dict() - __args__['encryptionKey'] = encryption_key __args__['netappAccountId'] = netapp_account_id - __args__['systemAssignedIdentityPrincipalId'] = system_assigned_identity_principal_id - __args__['userAssignedIdentityId'] = user_assigned_identity_id opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) __ret__ = pulumi.runtime.invoke_output('azure:netapp/getAccountEncryption:getAccountEncryption', __args__, opts=opts, typ=GetAccountEncryptionResult) return __ret__.apply(lambda __response__: GetAccountEncryptionResult( diff --git a/sdk/python/pulumi_azure/netapp/get_backup_policy.py b/sdk/python/pulumi_azure/netapp/get_backup_policy.py new file mode 100644 index 0000000000..6747a633ee --- /dev/null +++ b/sdk/python/pulumi_azure/netapp/get_backup_policy.py @@ -0,0 +1,236 @@ +# coding=utf-8 +# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import copy +import warnings +import sys +import pulumi +import pulumi.runtime +from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias +from .. import _utilities + +__all__ = [ + 'GetBackupPolicyResult', + 'AwaitableGetBackupPolicyResult', + 'get_backup_policy', + 'get_backup_policy_output', +] + +@pulumi.output_type +class GetBackupPolicyResult: + """ + A collection of values returned by getBackupPolicy. + """ + def __init__(__self__, account_name=None, daily_backups_to_keep=None, enabled=None, id=None, location=None, monthly_backups_to_keep=None, name=None, resource_group_name=None, tags=None, weekly_backups_to_keep=None): + if account_name and not isinstance(account_name, str): + raise TypeError("Expected argument 'account_name' to be a str") + pulumi.set(__self__, "account_name", account_name) + if daily_backups_to_keep and not isinstance(daily_backups_to_keep, int): + raise TypeError("Expected argument 'daily_backups_to_keep' to be a int") + pulumi.set(__self__, "daily_backups_to_keep", daily_backups_to_keep) + if enabled and not isinstance(enabled, bool): + raise TypeError("Expected argument 'enabled' to be a bool") + pulumi.set(__self__, "enabled", enabled) + if id and not isinstance(id, str): + raise TypeError("Expected argument 'id' to be a str") + pulumi.set(__self__, "id", id) + if location and not isinstance(location, str): + raise TypeError("Expected argument 'location' to be a str") + pulumi.set(__self__, "location", location) + if monthly_backups_to_keep and not isinstance(monthly_backups_to_keep, int): + raise TypeError("Expected argument 'monthly_backups_to_keep' to be a int") + pulumi.set(__self__, "monthly_backups_to_keep", monthly_backups_to_keep) + if name and not isinstance(name, str): + raise TypeError("Expected argument 'name' to be a str") + pulumi.set(__self__, "name", name) + if resource_group_name and not isinstance(resource_group_name, str): + raise TypeError("Expected argument 'resource_group_name' to be a str") + pulumi.set(__self__, "resource_group_name", resource_group_name) + if tags and not isinstance(tags, dict): + raise TypeError("Expected argument 'tags' to be a dict") + pulumi.set(__self__, "tags", tags) + if weekly_backups_to_keep and not isinstance(weekly_backups_to_keep, int): + raise TypeError("Expected argument 'weekly_backups_to_keep' to be a int") + pulumi.set(__self__, "weekly_backups_to_keep", weekly_backups_to_keep) + + @property + @pulumi.getter(name="accountName") + def account_name(self) -> str: + """ + The name of the NetApp account in which the NetApp Policy exists. + """ + return pulumi.get(self, "account_name") + + @property + @pulumi.getter(name="dailyBackupsToKeep") + def daily_backups_to_keep(self) -> int: + """ + The number of daily backups to keep. + """ + return pulumi.get(self, "daily_backups_to_keep") + + @property + @pulumi.getter + def enabled(self) -> bool: + """ + Whether the Backup Policy is enabled. + """ + return pulumi.get(self, "enabled") + + @property + @pulumi.getter + def id(self) -> str: + """ + The provider-assigned unique ID for this managed resource. + """ + return pulumi.get(self, "id") + + @property + @pulumi.getter + def location(self) -> str: + """ + NetApp Backup Policy location. + """ + return pulumi.get(self, "location") + + @property + @pulumi.getter(name="monthlyBackupsToKeep") + def monthly_backups_to_keep(self) -> int: + """ + The number of monthly backups to keep. + """ + return pulumi.get(self, "monthly_backups_to_keep") + + @property + @pulumi.getter + def name(self) -> str: + return pulumi.get(self, "name") + + @property + @pulumi.getter(name="resourceGroupName") + def resource_group_name(self) -> str: + return pulumi.get(self, "resource_group_name") + + @property + @pulumi.getter + def tags(self) -> Mapping[str, str]: + """ + List of tags assigned to the resource. + """ + return pulumi.get(self, "tags") + + @property + @pulumi.getter(name="weeklyBackupsToKeep") + def weekly_backups_to_keep(self) -> int: + """ + The number of weekly backups to keep. + """ + return pulumi.get(self, "weekly_backups_to_keep") + + +class AwaitableGetBackupPolicyResult(GetBackupPolicyResult): + # pylint: disable=using-constant-test + def __await__(self): + if False: + yield self + return GetBackupPolicyResult( + account_name=self.account_name, + daily_backups_to_keep=self.daily_backups_to_keep, + enabled=self.enabled, + id=self.id, + location=self.location, + monthly_backups_to_keep=self.monthly_backups_to_keep, + name=self.name, + resource_group_name=self.resource_group_name, + tags=self.tags, + weekly_backups_to_keep=self.weekly_backups_to_keep) + + +def get_backup_policy(account_name: Optional[str] = None, + name: Optional[str] = None, + resource_group_name: Optional[str] = None, + opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetBackupPolicyResult: + """ + Use this data source to access information about an existing NetApp Backup Vault. + + ## NetApp Backup Policy Usage + + ```python + import pulumi + import pulumi_azure as azure + + example = azure.netapp.get_backup_policy(resource_group_name="example-resource-group", + account_name="example-netappaccount", + name="example-backuppolicy") + pulumi.export("backupPolicyId", example.id) + ``` + + + :param str account_name: The name of the NetApp Account in which the NetApp Policy exists. + :param str name: The name of the NetApp Backup Policy. + :param str resource_group_name: The name of the resource group where the NetApp Backup Policy exists. + """ + __args__ = dict() + __args__['accountName'] = account_name + __args__['name'] = name + __args__['resourceGroupName'] = resource_group_name + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke('azure:netapp/getBackupPolicy:getBackupPolicy', __args__, opts=opts, typ=GetBackupPolicyResult).value + + return AwaitableGetBackupPolicyResult( + account_name=pulumi.get(__ret__, 'account_name'), + daily_backups_to_keep=pulumi.get(__ret__, 'daily_backups_to_keep'), + enabled=pulumi.get(__ret__, 'enabled'), + id=pulumi.get(__ret__, 'id'), + location=pulumi.get(__ret__, 'location'), + monthly_backups_to_keep=pulumi.get(__ret__, 'monthly_backups_to_keep'), + name=pulumi.get(__ret__, 'name'), + resource_group_name=pulumi.get(__ret__, 'resource_group_name'), + tags=pulumi.get(__ret__, 'tags'), + weekly_backups_to_keep=pulumi.get(__ret__, 'weekly_backups_to_keep')) +def get_backup_policy_output(account_name: Optional[pulumi.Input[str]] = None, + name: Optional[pulumi.Input[str]] = None, + resource_group_name: Optional[pulumi.Input[str]] = None, + opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetBackupPolicyResult]: + """ + Use this data source to access information about an existing NetApp Backup Vault. + + ## NetApp Backup Policy Usage + + ```python + import pulumi + import pulumi_azure as azure + + example = azure.netapp.get_backup_policy(resource_group_name="example-resource-group", + account_name="example-netappaccount", + name="example-backuppolicy") + pulumi.export("backupPolicyId", example.id) + ``` + + + :param str account_name: The name of the NetApp Account in which the NetApp Policy exists. + :param str name: The name of the NetApp Backup Policy. + :param str resource_group_name: The name of the resource group where the NetApp Backup Policy exists. + """ + __args__ = dict() + __args__['accountName'] = account_name + __args__['name'] = name + __args__['resourceGroupName'] = resource_group_name + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke_output('azure:netapp/getBackupPolicy:getBackupPolicy', __args__, opts=opts, typ=GetBackupPolicyResult) + return __ret__.apply(lambda __response__: GetBackupPolicyResult( + account_name=pulumi.get(__response__, 'account_name'), + daily_backups_to_keep=pulumi.get(__response__, 'daily_backups_to_keep'), + enabled=pulumi.get(__response__, 'enabled'), + id=pulumi.get(__response__, 'id'), + location=pulumi.get(__response__, 'location'), + monthly_backups_to_keep=pulumi.get(__response__, 'monthly_backups_to_keep'), + name=pulumi.get(__response__, 'name'), + resource_group_name=pulumi.get(__response__, 'resource_group_name'), + tags=pulumi.get(__response__, 'tags'), + weekly_backups_to_keep=pulumi.get(__response__, 'weekly_backups_to_keep'))) diff --git a/sdk/python/pulumi_azure/netapp/get_backup_vault.py b/sdk/python/pulumi_azure/netapp/get_backup_vault.py new file mode 100644 index 0000000000..a5cb225d90 --- /dev/null +++ b/sdk/python/pulumi_azure/netapp/get_backup_vault.py @@ -0,0 +1,171 @@ +# coding=utf-8 +# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import copy +import warnings +import sys +import pulumi +import pulumi.runtime +from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias +from .. import _utilities + +__all__ = [ + 'GetBackupVaultResult', + 'AwaitableGetBackupVaultResult', + 'get_backup_vault', + 'get_backup_vault_output', +] + +@pulumi.output_type +class GetBackupVaultResult: + """ + A collection of values returned by getBackupVault. + """ + def __init__(__self__, account_name=None, id=None, location=None, name=None, resource_group_name=None, tags=None): + if account_name and not isinstance(account_name, str): + raise TypeError("Expected argument 'account_name' to be a str") + pulumi.set(__self__, "account_name", account_name) + if id and not isinstance(id, str): + raise TypeError("Expected argument 'id' to be a str") + pulumi.set(__self__, "id", id) + if location and not isinstance(location, str): + raise TypeError("Expected argument 'location' to be a str") + pulumi.set(__self__, "location", location) + if name and not isinstance(name, str): + raise TypeError("Expected argument 'name' to be a str") + pulumi.set(__self__, "name", name) + if resource_group_name and not isinstance(resource_group_name, str): + raise TypeError("Expected argument 'resource_group_name' to be a str") + pulumi.set(__self__, "resource_group_name", resource_group_name) + if tags and not isinstance(tags, dict): + raise TypeError("Expected argument 'tags' to be a dict") + pulumi.set(__self__, "tags", tags) + + @property + @pulumi.getter(name="accountName") + def account_name(self) -> str: + return pulumi.get(self, "account_name") + + @property + @pulumi.getter + def id(self) -> str: + """ + The provider-assigned unique ID for this managed resource. + """ + return pulumi.get(self, "id") + + @property + @pulumi.getter + def location(self) -> str: + return pulumi.get(self, "location") + + @property + @pulumi.getter + def name(self) -> str: + return pulumi.get(self, "name") + + @property + @pulumi.getter(name="resourceGroupName") + def resource_group_name(self) -> str: + return pulumi.get(self, "resource_group_name") + + @property + @pulumi.getter + def tags(self) -> Mapping[str, str]: + return pulumi.get(self, "tags") + + +class AwaitableGetBackupVaultResult(GetBackupVaultResult): + # pylint: disable=using-constant-test + def __await__(self): + if False: + yield self + return GetBackupVaultResult( + account_name=self.account_name, + id=self.id, + location=self.location, + name=self.name, + resource_group_name=self.resource_group_name, + tags=self.tags) + + +def get_backup_vault(account_name: Optional[str] = None, + name: Optional[str] = None, + resource_group_name: Optional[str] = None, + opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetBackupVaultResult: + """ + Use this data source to access information about an existing NetApp Backup Vault. + + ## NetApp Backup Vault Usage + + ```python + import pulumi + import pulumi_azure as azure + + example = azure.netapp.get_backup_vault(resource_group_name="example-resource-group", + account_name="example-netappaccount", + name="example-backupvault") + pulumi.export("backupVaultId", example.id) + ``` + + + :param str account_name: The name of the NetApp Account in which the NetApp Vault exists. + :param str name: The name of the NetApp Backup Vault. + :param str resource_group_name: The name of the resource group where the NetApp Backup Vault exists. + """ + __args__ = dict() + __args__['accountName'] = account_name + __args__['name'] = name + __args__['resourceGroupName'] = resource_group_name + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke('azure:netapp/getBackupVault:getBackupVault', __args__, opts=opts, typ=GetBackupVaultResult).value + + return AwaitableGetBackupVaultResult( + account_name=pulumi.get(__ret__, 'account_name'), + id=pulumi.get(__ret__, 'id'), + location=pulumi.get(__ret__, 'location'), + name=pulumi.get(__ret__, 'name'), + resource_group_name=pulumi.get(__ret__, 'resource_group_name'), + tags=pulumi.get(__ret__, 'tags')) +def get_backup_vault_output(account_name: Optional[pulumi.Input[str]] = None, + name: Optional[pulumi.Input[str]] = None, + resource_group_name: Optional[pulumi.Input[str]] = None, + opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetBackupVaultResult]: + """ + Use this data source to access information about an existing NetApp Backup Vault. + + ## NetApp Backup Vault Usage + + ```python + import pulumi + import pulumi_azure as azure + + example = azure.netapp.get_backup_vault(resource_group_name="example-resource-group", + account_name="example-netappaccount", + name="example-backupvault") + pulumi.export("backupVaultId", example.id) + ``` + + + :param str account_name: The name of the NetApp Account in which the NetApp Vault exists. + :param str name: The name of the NetApp Backup Vault. + :param str resource_group_name: The name of the resource group where the NetApp Backup Vault exists. + """ + __args__ = dict() + __args__['accountName'] = account_name + __args__['name'] = name + __args__['resourceGroupName'] = resource_group_name + opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + __ret__ = pulumi.runtime.invoke_output('azure:netapp/getBackupVault:getBackupVault', __args__, opts=opts, typ=GetBackupVaultResult) + return __ret__.apply(lambda __response__: GetBackupVaultResult( + account_name=pulumi.get(__response__, 'account_name'), + id=pulumi.get(__response__, 'id'), + location=pulumi.get(__response__, 'location'), + name=pulumi.get(__response__, 'name'), + resource_group_name=pulumi.get(__response__, 'resource_group_name'), + tags=pulumi.get(__response__, 'tags'))) diff --git a/sdk/python/pulumi_azure/netapp/get_volume.py b/sdk/python/pulumi_azure/netapp/get_volume.py index b13e55020e..e3c9da6bd1 100644 --- a/sdk/python/pulumi_azure/netapp/get_volume.py +++ b/sdk/python/pulumi_azure/netapp/get_volume.py @@ -27,10 +27,13 @@ class GetVolumeResult: """ A collection of values returned by getVolume. """ - def __init__(__self__, account_name=None, data_protection_replications=None, encryption_key_source=None, id=None, key_vault_private_endpoint_id=None, location=None, mount_ip_addresses=None, name=None, network_features=None, pool_name=None, protocols=None, resource_group_name=None, security_style=None, service_level=None, smb_access_based_enumeration_enabled=None, smb_non_browsable_enabled=None, storage_quota_in_gb=None, subnet_id=None, volume_path=None, zone=None): + def __init__(__self__, account_name=None, data_protection_backup_policies=None, data_protection_replications=None, encryption_key_source=None, id=None, key_vault_private_endpoint_id=None, location=None, mount_ip_addresses=None, name=None, network_features=None, pool_name=None, protocols=None, resource_group_name=None, security_style=None, service_level=None, smb_access_based_enumeration_enabled=None, smb_non_browsable_enabled=None, storage_quota_in_gb=None, subnet_id=None, volume_path=None, zone=None): if account_name and not isinstance(account_name, str): raise TypeError("Expected argument 'account_name' to be a str") pulumi.set(__self__, "account_name", account_name) + if data_protection_backup_policies and not isinstance(data_protection_backup_policies, list): + raise TypeError("Expected argument 'data_protection_backup_policies' to be a list") + pulumi.set(__self__, "data_protection_backup_policies", data_protection_backup_policies) if data_protection_replications and not isinstance(data_protection_replications, list): raise TypeError("Expected argument 'data_protection_replications' to be a list") pulumi.set(__self__, "data_protection_replications", data_protection_replications) @@ -94,11 +97,19 @@ def __init__(__self__, account_name=None, data_protection_replications=None, enc def account_name(self) -> str: return pulumi.get(self, "account_name") + @property + @pulumi.getter(name="dataProtectionBackupPolicies") + def data_protection_backup_policies(self) -> Sequence['outputs.GetVolumeDataProtectionBackupPolicyResult']: + """ + A data protecion backup policy block + """ + return pulumi.get(self, "data_protection_backup_policies") + @property @pulumi.getter(name="dataProtectionReplications") def data_protection_replications(self) -> Sequence['outputs.GetVolumeDataProtectionReplicationResult']: """ - Volume data protection block + Volume data protection replication block """ return pulumi.get(self, "data_protection_replications") @@ -239,6 +250,7 @@ def __await__(self): yield self return GetVolumeResult( account_name=self.account_name, + data_protection_backup_policies=self.data_protection_backup_policies, data_protection_replications=self.data_protection_replications, encryption_key_source=self.encryption_key_source, id=self.id, @@ -300,6 +312,7 @@ def get_volume(account_name: Optional[str] = None, return AwaitableGetVolumeResult( account_name=pulumi.get(__ret__, 'account_name'), + data_protection_backup_policies=pulumi.get(__ret__, 'data_protection_backup_policies'), data_protection_replications=pulumi.get(__ret__, 'data_protection_replications'), encryption_key_source=pulumi.get(__ret__, 'encryption_key_source'), id=pulumi.get(__ret__, 'id'), @@ -358,6 +371,7 @@ def get_volume_output(account_name: Optional[pulumi.Input[str]] = None, __ret__ = pulumi.runtime.invoke_output('azure:netapp/getVolume:getVolume', __args__, opts=opts, typ=GetVolumeResult) return __ret__.apply(lambda __response__: GetVolumeResult( account_name=pulumi.get(__response__, 'account_name'), + data_protection_backup_policies=pulumi.get(__response__, 'data_protection_backup_policies'), data_protection_replications=pulumi.get(__response__, 'data_protection_replications'), encryption_key_source=pulumi.get(__response__, 'encryption_key_source'), id=pulumi.get(__response__, 'id'), diff --git a/sdk/python/pulumi_azure/netapp/outputs.py b/sdk/python/pulumi_azure/netapp/outputs.py index 599af300d1..7f32247459 100644 --- a/sdk/python/pulumi_azure/netapp/outputs.py +++ b/sdk/python/pulumi_azure/netapp/outputs.py @@ -22,6 +22,7 @@ 'SnapshotPolicyHourlySchedule', 'SnapshotPolicyMonthlySchedule', 'SnapshotPolicyWeeklySchedule', + 'VolumeDataProtectionBackupPolicy', 'VolumeDataProtectionReplication', 'VolumeDataProtectionSnapshotPolicy', 'VolumeExportPolicyRule', @@ -34,6 +35,7 @@ 'GetSnapshotPolicyHourlyScheduleResult', 'GetSnapshotPolicyMonthlyScheduleResult', 'GetSnapshotPolicyWeeklyScheduleResult', + 'GetVolumeDataProtectionBackupPolicyResult', 'GetVolumeDataProtectionReplicationResult', 'GetVolumeGroupSapHanaVolumeResult', 'GetVolumeGroupSapHanaVolumeDataProtectionReplicationResult', @@ -562,6 +564,72 @@ def snapshots_to_keep(self) -> int: return pulumi.get(self, "snapshots_to_keep") +@pulumi.output_type +class VolumeDataProtectionBackupPolicy(dict): + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "backupPolicyId": + suggest = "backup_policy_id" + elif key == "backupVaultId": + suggest = "backup_vault_id" + elif key == "policyEnabled": + suggest = "policy_enabled" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in VolumeDataProtectionBackupPolicy. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + VolumeDataProtectionBackupPolicy.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + VolumeDataProtectionBackupPolicy.__key_warning(key) + return super().get(key, default) + + def __init__(__self__, *, + backup_policy_id: str, + backup_vault_id: str, + policy_enabled: Optional[bool] = None): + """ + :param str backup_policy_id: Resource ID of the backup policy to apply to the volume. + :param str backup_vault_id: Resource ID of the backup backup vault to associate this volume to. + :param bool policy_enabled: Enables the backup policy on the volume, defaults to `true`. + + For more information on Azure NetApp Files Backup feature please see [Understand Azure NetApp Files backup](https://learn.microsoft.com/en-us/azure/azure-netapp-files/backup-introduction) + """ + pulumi.set(__self__, "backup_policy_id", backup_policy_id) + pulumi.set(__self__, "backup_vault_id", backup_vault_id) + if policy_enabled is not None: + pulumi.set(__self__, "policy_enabled", policy_enabled) + + @property + @pulumi.getter(name="backupPolicyId") + def backup_policy_id(self) -> str: + """ + Resource ID of the backup policy to apply to the volume. + """ + return pulumi.get(self, "backup_policy_id") + + @property + @pulumi.getter(name="backupVaultId") + def backup_vault_id(self) -> str: + """ + Resource ID of the backup backup vault to associate this volume to. + """ + return pulumi.get(self, "backup_vault_id") + + @property + @pulumi.getter(name="policyEnabled") + def policy_enabled(self) -> Optional[bool]: + """ + Enables the backup policy on the volume, defaults to `true`. + + For more information on Azure NetApp Files Backup feature please see [Understand Azure NetApp Files backup](https://learn.microsoft.com/en-us/azure/azure-netapp-files/backup-introduction) + """ + return pulumi.get(self, "policy_enabled") + + @pulumi.output_type class VolumeDataProtectionReplication(dict): @staticmethod @@ -1553,6 +1621,46 @@ def snapshots_to_keep(self) -> int: return pulumi.get(self, "snapshots_to_keep") +@pulumi.output_type +class GetVolumeDataProtectionBackupPolicyResult(dict): + def __init__(__self__, *, + backup_policy_id: str, + backup_vault_id: str, + policy_enabled: bool): + """ + :param str backup_policy_id: The Resource ID of the backup policy. + :param str backup_vault_id: The Resource ID of the backup backup vault. + :param bool policy_enabled: Backup policy is enabled or not. + """ + pulumi.set(__self__, "backup_policy_id", backup_policy_id) + pulumi.set(__self__, "backup_vault_id", backup_vault_id) + pulumi.set(__self__, "policy_enabled", policy_enabled) + + @property + @pulumi.getter(name="backupPolicyId") + def backup_policy_id(self) -> str: + """ + The Resource ID of the backup policy. + """ + return pulumi.get(self, "backup_policy_id") + + @property + @pulumi.getter(name="backupVaultId") + def backup_vault_id(self) -> str: + """ + The Resource ID of the backup backup vault. + """ + return pulumi.get(self, "backup_vault_id") + + @property + @pulumi.getter(name="policyEnabled") + def policy_enabled(self) -> bool: + """ + Backup policy is enabled or not. + """ + return pulumi.get(self, "policy_enabled") + + @pulumi.output_type class GetVolumeDataProtectionReplicationResult(dict): def __init__(__self__, *, diff --git a/sdk/python/pulumi_azure/netapp/volume.py b/sdk/python/pulumi_azure/netapp/volume.py index 8761e9dd03..feb315c707 100644 --- a/sdk/python/pulumi_azure/netapp/volume.py +++ b/sdk/python/pulumi_azure/netapp/volume.py @@ -30,6 +30,7 @@ def __init__(__self__, *, volume_path: pulumi.Input[str], azure_vmware_data_store_enabled: Optional[pulumi.Input[bool]] = None, create_from_snapshot_resource_id: Optional[pulumi.Input[str]] = None, + data_protection_backup_policy: Optional[pulumi.Input['VolumeDataProtectionBackupPolicyArgs']] = None, data_protection_replication: Optional[pulumi.Input['VolumeDataProtectionReplicationArgs']] = None, data_protection_snapshot_policy: Optional[pulumi.Input['VolumeDataProtectionSnapshotPolicyArgs']] = None, encryption_key_source: Optional[pulumi.Input[str]] = None, @@ -60,6 +61,7 @@ def __init__(__self__, *, :param pulumi.Input[str] volume_path: A unique file path for the volume. Used when creating mount targets. Changing this forces a new resource to be created. :param pulumi.Input[bool] azure_vmware_data_store_enabled: Is the NetApp Volume enabled for Azure VMware Solution (AVS) datastore purpose. Defaults to `false`. Changing this forces a new resource to be created. :param pulumi.Input[str] create_from_snapshot_resource_id: Creates volume from snapshot. Following properties must be the same as the original volume where the snapshot was taken from: `protocols`, `subnet_id`, `location`, `service_level`, `resource_group_name`, `account_name` and `pool_name`. Changing this forces a new resource to be created. + :param pulumi.Input['VolumeDataProtectionBackupPolicyArgs'] data_protection_backup_policy: A `data_protection_backup_policy` block as defined below. :param pulumi.Input['VolumeDataProtectionReplicationArgs'] data_protection_replication: A `data_protection_replication` block as defined below. Changing this forces a new resource to be created. :param pulumi.Input['VolumeDataProtectionSnapshotPolicyArgs'] data_protection_snapshot_policy: A `data_protection_snapshot_policy` block as defined below. :param pulumi.Input[str] encryption_key_source: The encryption key source, it can be `Microsoft.NetApp` for platform managed keys or `Microsoft.KeyVault` for customer-managed keys. This is required with `key_vault_private_endpoint_id`. Changing this forces a new resource to be created. @@ -94,6 +96,8 @@ def __init__(__self__, *, pulumi.set(__self__, "azure_vmware_data_store_enabled", azure_vmware_data_store_enabled) if create_from_snapshot_resource_id is not None: pulumi.set(__self__, "create_from_snapshot_resource_id", create_from_snapshot_resource_id) + if data_protection_backup_policy is not None: + pulumi.set(__self__, "data_protection_backup_policy", data_protection_backup_policy) if data_protection_replication is not None: pulumi.set(__self__, "data_protection_replication", data_protection_replication) if data_protection_snapshot_policy is not None: @@ -241,6 +245,18 @@ def create_from_snapshot_resource_id(self) -> Optional[pulumi.Input[str]]: def create_from_snapshot_resource_id(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "create_from_snapshot_resource_id", value) + @property + @pulumi.getter(name="dataProtectionBackupPolicy") + def data_protection_backup_policy(self) -> Optional[pulumi.Input['VolumeDataProtectionBackupPolicyArgs']]: + """ + A `data_protection_backup_policy` block as defined below. + """ + return pulumi.get(self, "data_protection_backup_policy") + + @data_protection_backup_policy.setter + def data_protection_backup_policy(self, value: Optional[pulumi.Input['VolumeDataProtectionBackupPolicyArgs']]): + pulumi.set(self, "data_protection_backup_policy", value) + @property @pulumi.getter(name="dataProtectionReplication") def data_protection_replication(self) -> Optional[pulumi.Input['VolumeDataProtectionReplicationArgs']]: @@ -479,6 +495,7 @@ def __init__(__self__, *, account_name: Optional[pulumi.Input[str]] = None, azure_vmware_data_store_enabled: Optional[pulumi.Input[bool]] = None, create_from_snapshot_resource_id: Optional[pulumi.Input[str]] = None, + data_protection_backup_policy: Optional[pulumi.Input['VolumeDataProtectionBackupPolicyArgs']] = None, data_protection_replication: Optional[pulumi.Input['VolumeDataProtectionReplicationArgs']] = None, data_protection_snapshot_policy: Optional[pulumi.Input['VolumeDataProtectionSnapshotPolicyArgs']] = None, encryption_key_source: Optional[pulumi.Input[str]] = None, @@ -510,6 +527,7 @@ def __init__(__self__, *, :param pulumi.Input[str] account_name: The name of the NetApp account in which the NetApp Pool should be created. Changing this forces a new resource to be created. :param pulumi.Input[bool] azure_vmware_data_store_enabled: Is the NetApp Volume enabled for Azure VMware Solution (AVS) datastore purpose. Defaults to `false`. Changing this forces a new resource to be created. :param pulumi.Input[str] create_from_snapshot_resource_id: Creates volume from snapshot. Following properties must be the same as the original volume where the snapshot was taken from: `protocols`, `subnet_id`, `location`, `service_level`, `resource_group_name`, `account_name` and `pool_name`. Changing this forces a new resource to be created. + :param pulumi.Input['VolumeDataProtectionBackupPolicyArgs'] data_protection_backup_policy: A `data_protection_backup_policy` block as defined below. :param pulumi.Input['VolumeDataProtectionReplicationArgs'] data_protection_replication: A `data_protection_replication` block as defined below. Changing this forces a new resource to be created. :param pulumi.Input['VolumeDataProtectionSnapshotPolicyArgs'] data_protection_snapshot_policy: A `data_protection_snapshot_policy` block as defined below. :param pulumi.Input[str] encryption_key_source: The encryption key source, it can be `Microsoft.NetApp` for platform managed keys or `Microsoft.KeyVault` for customer-managed keys. This is required with `key_vault_private_endpoint_id`. Changing this forces a new resource to be created. @@ -546,6 +564,8 @@ def __init__(__self__, *, pulumi.set(__self__, "azure_vmware_data_store_enabled", azure_vmware_data_store_enabled) if create_from_snapshot_resource_id is not None: pulumi.set(__self__, "create_from_snapshot_resource_id", create_from_snapshot_resource_id) + if data_protection_backup_policy is not None: + pulumi.set(__self__, "data_protection_backup_policy", data_protection_backup_policy) if data_protection_replication is not None: pulumi.set(__self__, "data_protection_replication", data_protection_replication) if data_protection_snapshot_policy is not None: @@ -635,6 +655,18 @@ def create_from_snapshot_resource_id(self) -> Optional[pulumi.Input[str]]: def create_from_snapshot_resource_id(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "create_from_snapshot_resource_id", value) + @property + @pulumi.getter(name="dataProtectionBackupPolicy") + def data_protection_backup_policy(self) -> Optional[pulumi.Input['VolumeDataProtectionBackupPolicyArgs']]: + """ + A `data_protection_backup_policy` block as defined below. + """ + return pulumi.get(self, "data_protection_backup_policy") + + @data_protection_backup_policy.setter + def data_protection_backup_policy(self, value: Optional[pulumi.Input['VolumeDataProtectionBackupPolicyArgs']]): + pulumi.set(self, "data_protection_backup_policy", value) + @property @pulumi.getter(name="dataProtectionReplication") def data_protection_replication(self) -> Optional[pulumi.Input['VolumeDataProtectionReplicationArgs']]: @@ -959,6 +991,7 @@ def __init__(__self__, account_name: Optional[pulumi.Input[str]] = None, azure_vmware_data_store_enabled: Optional[pulumi.Input[bool]] = None, create_from_snapshot_resource_id: Optional[pulumi.Input[str]] = None, + data_protection_backup_policy: Optional[pulumi.Input[Union['VolumeDataProtectionBackupPolicyArgs', 'VolumeDataProtectionBackupPolicyArgsDict']]] = None, data_protection_replication: Optional[pulumi.Input[Union['VolumeDataProtectionReplicationArgs', 'VolumeDataProtectionReplicationArgsDict']]] = None, data_protection_snapshot_policy: Optional[pulumi.Input[Union['VolumeDataProtectionSnapshotPolicyArgs', 'VolumeDataProtectionSnapshotPolicyArgsDict']]] = None, encryption_key_source: Optional[pulumi.Input[str]] = None, @@ -986,6 +1019,10 @@ def __init__(__self__, zone: Optional[pulumi.Input[str]] = None, __props__=None): """ + Manages a NetApp Volume. + + !>**IMPORTANT:** This resource uses a feature to prevent deletion called `prevent_volume_destruction`, defaulting to `true`. It is intentionally set to `true` to prevent the possibility of accidental data loss. The example in this page shows all possible protection options you can apply, it is using same values as the defaults. + ## Import NetApp Volumes can be imported using the `resource id`, e.g. @@ -999,6 +1036,7 @@ def __init__(__self__, :param pulumi.Input[str] account_name: The name of the NetApp account in which the NetApp Pool should be created. Changing this forces a new resource to be created. :param pulumi.Input[bool] azure_vmware_data_store_enabled: Is the NetApp Volume enabled for Azure VMware Solution (AVS) datastore purpose. Defaults to `false`. Changing this forces a new resource to be created. :param pulumi.Input[str] create_from_snapshot_resource_id: Creates volume from snapshot. Following properties must be the same as the original volume where the snapshot was taken from: `protocols`, `subnet_id`, `location`, `service_level`, `resource_group_name`, `account_name` and `pool_name`. Changing this forces a new resource to be created. + :param pulumi.Input[Union['VolumeDataProtectionBackupPolicyArgs', 'VolumeDataProtectionBackupPolicyArgsDict']] data_protection_backup_policy: A `data_protection_backup_policy` block as defined below. :param pulumi.Input[Union['VolumeDataProtectionReplicationArgs', 'VolumeDataProtectionReplicationArgsDict']] data_protection_replication: A `data_protection_replication` block as defined below. Changing this forces a new resource to be created. :param pulumi.Input[Union['VolumeDataProtectionSnapshotPolicyArgs', 'VolumeDataProtectionSnapshotPolicyArgsDict']] data_protection_snapshot_policy: A `data_protection_snapshot_policy` block as defined below. :param pulumi.Input[str] encryption_key_source: The encryption key source, it can be `Microsoft.NetApp` for platform managed keys or `Microsoft.KeyVault` for customer-managed keys. This is required with `key_vault_private_endpoint_id`. Changing this forces a new resource to be created. @@ -1035,6 +1073,10 @@ def __init__(__self__, args: VolumeArgs, opts: Optional[pulumi.ResourceOptions] = None): """ + Manages a NetApp Volume. + + !>**IMPORTANT:** This resource uses a feature to prevent deletion called `prevent_volume_destruction`, defaulting to `true`. It is intentionally set to `true` to prevent the possibility of accidental data loss. The example in this page shows all possible protection options you can apply, it is using same values as the defaults. + ## Import NetApp Volumes can be imported using the `resource id`, e.g. @@ -1061,6 +1103,7 @@ def _internal_init(__self__, account_name: Optional[pulumi.Input[str]] = None, azure_vmware_data_store_enabled: Optional[pulumi.Input[bool]] = None, create_from_snapshot_resource_id: Optional[pulumi.Input[str]] = None, + data_protection_backup_policy: Optional[pulumi.Input[Union['VolumeDataProtectionBackupPolicyArgs', 'VolumeDataProtectionBackupPolicyArgsDict']]] = None, data_protection_replication: Optional[pulumi.Input[Union['VolumeDataProtectionReplicationArgs', 'VolumeDataProtectionReplicationArgsDict']]] = None, data_protection_snapshot_policy: Optional[pulumi.Input[Union['VolumeDataProtectionSnapshotPolicyArgs', 'VolumeDataProtectionSnapshotPolicyArgsDict']]] = None, encryption_key_source: Optional[pulumi.Input[str]] = None, @@ -1100,6 +1143,7 @@ def _internal_init(__self__, __props__.__dict__["account_name"] = account_name __props__.__dict__["azure_vmware_data_store_enabled"] = azure_vmware_data_store_enabled __props__.__dict__["create_from_snapshot_resource_id"] = create_from_snapshot_resource_id + __props__.__dict__["data_protection_backup_policy"] = data_protection_backup_policy __props__.__dict__["data_protection_replication"] = data_protection_replication __props__.__dict__["data_protection_snapshot_policy"] = data_protection_snapshot_policy __props__.__dict__["encryption_key_source"] = encryption_key_source @@ -1151,6 +1195,7 @@ def get(resource_name: str, account_name: Optional[pulumi.Input[str]] = None, azure_vmware_data_store_enabled: Optional[pulumi.Input[bool]] = None, create_from_snapshot_resource_id: Optional[pulumi.Input[str]] = None, + data_protection_backup_policy: Optional[pulumi.Input[Union['VolumeDataProtectionBackupPolicyArgs', 'VolumeDataProtectionBackupPolicyArgsDict']]] = None, data_protection_replication: Optional[pulumi.Input[Union['VolumeDataProtectionReplicationArgs', 'VolumeDataProtectionReplicationArgsDict']]] = None, data_protection_snapshot_policy: Optional[pulumi.Input[Union['VolumeDataProtectionSnapshotPolicyArgs', 'VolumeDataProtectionSnapshotPolicyArgsDict']]] = None, encryption_key_source: Optional[pulumi.Input[str]] = None, @@ -1187,6 +1232,7 @@ def get(resource_name: str, :param pulumi.Input[str] account_name: The name of the NetApp account in which the NetApp Pool should be created. Changing this forces a new resource to be created. :param pulumi.Input[bool] azure_vmware_data_store_enabled: Is the NetApp Volume enabled for Azure VMware Solution (AVS) datastore purpose. Defaults to `false`. Changing this forces a new resource to be created. :param pulumi.Input[str] create_from_snapshot_resource_id: Creates volume from snapshot. Following properties must be the same as the original volume where the snapshot was taken from: `protocols`, `subnet_id`, `location`, `service_level`, `resource_group_name`, `account_name` and `pool_name`. Changing this forces a new resource to be created. + :param pulumi.Input[Union['VolumeDataProtectionBackupPolicyArgs', 'VolumeDataProtectionBackupPolicyArgsDict']] data_protection_backup_policy: A `data_protection_backup_policy` block as defined below. :param pulumi.Input[Union['VolumeDataProtectionReplicationArgs', 'VolumeDataProtectionReplicationArgsDict']] data_protection_replication: A `data_protection_replication` block as defined below. Changing this forces a new resource to be created. :param pulumi.Input[Union['VolumeDataProtectionSnapshotPolicyArgs', 'VolumeDataProtectionSnapshotPolicyArgsDict']] data_protection_snapshot_policy: A `data_protection_snapshot_policy` block as defined below. :param pulumi.Input[str] encryption_key_source: The encryption key source, it can be `Microsoft.NetApp` for platform managed keys or `Microsoft.KeyVault` for customer-managed keys. This is required with `key_vault_private_endpoint_id`. Changing this forces a new resource to be created. @@ -1224,6 +1270,7 @@ def get(resource_name: str, __props__.__dict__["account_name"] = account_name __props__.__dict__["azure_vmware_data_store_enabled"] = azure_vmware_data_store_enabled __props__.__dict__["create_from_snapshot_resource_id"] = create_from_snapshot_resource_id + __props__.__dict__["data_protection_backup_policy"] = data_protection_backup_policy __props__.__dict__["data_protection_replication"] = data_protection_replication __props__.__dict__["data_protection_snapshot_policy"] = data_protection_snapshot_policy __props__.__dict__["encryption_key_source"] = encryption_key_source @@ -1276,6 +1323,14 @@ def create_from_snapshot_resource_id(self) -> pulumi.Output[Optional[str]]: """ return pulumi.get(self, "create_from_snapshot_resource_id") + @property + @pulumi.getter(name="dataProtectionBackupPolicy") + def data_protection_backup_policy(self) -> pulumi.Output[Optional['outputs.VolumeDataProtectionBackupPolicy']]: + """ + A `data_protection_backup_policy` block as defined below. + """ + return pulumi.get(self, "data_protection_backup_policy") + @property @pulumi.getter(name="dataProtectionReplication") def data_protection_replication(self) -> pulumi.Output[Optional['outputs.VolumeDataProtectionReplication']]: @@ -1431,7 +1486,7 @@ def smb_non_browsable_enabled(self) -> pulumi.Output[Optional[bool]]: @property @pulumi.getter(name="snapshotDirectoryVisible") - def snapshot_directory_visible(self) -> pulumi.Output[bool]: + def snapshot_directory_visible(self) -> pulumi.Output[Optional[bool]]: """ Specifies whether the .snapshot (NFS clients) or ~snapshot (SMB clients) path of a volume is visible, default value is true. """ diff --git a/sdk/python/pulumi_azure/network/_inputs.py b/sdk/python/pulumi_azure/network/_inputs.py index 211a817ba5..5f3880a6a6 100644 --- a/sdk/python/pulumi_azure/network/_inputs.py +++ b/sdk/python/pulumi_azure/network/_inputs.py @@ -988,7 +988,7 @@ class ApplicationGatewayCustomErrorConfigurationArgsDict(TypedDict): """ status_code: pulumi.Input[str] """ - Status code of the application gateway customer error. Possible values are `HttpStatus403` and `HttpStatus502` + Status code of the application gateway customer error. Possible values are `HttpStatus400`, `HttpStatus403`, `HttpStatus404`, `HttpStatus405`, `HttpStatus408`, `HttpStatus500`, `HttpStatus502`, `HttpStatus503` and `HttpStatus504` """ id: NotRequired[pulumi.Input[str]] """ @@ -1005,7 +1005,7 @@ def __init__(__self__, *, id: Optional[pulumi.Input[str]] = None): """ :param pulumi.Input[str] custom_error_page_url: Error page URL of the application gateway customer error. - :param pulumi.Input[str] status_code: Status code of the application gateway customer error. Possible values are `HttpStatus403` and `HttpStatus502` + :param pulumi.Input[str] status_code: Status code of the application gateway customer error. Possible values are `HttpStatus400`, `HttpStatus403`, `HttpStatus404`, `HttpStatus405`, `HttpStatus408`, `HttpStatus500`, `HttpStatus502`, `HttpStatus503` and `HttpStatus504` :param pulumi.Input[str] id: The ID of the Rewrite Rule Set """ pulumi.set(__self__, "custom_error_page_url", custom_error_page_url) @@ -1029,7 +1029,7 @@ def custom_error_page_url(self, value: pulumi.Input[str]): @pulumi.getter(name="statusCode") def status_code(self) -> pulumi.Input[str]: """ - Status code of the application gateway customer error. Possible values are `HttpStatus403` and `HttpStatus502` + Status code of the application gateway customer error. Possible values are `HttpStatus400`, `HttpStatus403`, `HttpStatus404`, `HttpStatus405`, `HttpStatus408`, `HttpStatus500`, `HttpStatus502`, `HttpStatus503` and `HttpStatus504` """ return pulumi.get(self, "status_code") @@ -1753,7 +1753,7 @@ class ApplicationGatewayHttpListenerCustomErrorConfigurationArgsDict(TypedDict): """ status_code: pulumi.Input[str] """ - Status code of the application gateway customer error. Possible values are `HttpStatus403` and `HttpStatus502` + Status code of the application gateway customer error. Possible values are `HttpStatus400`, `HttpStatus403`, `HttpStatus404`, `HttpStatus405`, `HttpStatus408`, `HttpStatus500`, `HttpStatus502`, `HttpStatus503` and `HttpStatus504` """ id: NotRequired[pulumi.Input[str]] """ @@ -1770,7 +1770,7 @@ def __init__(__self__, *, id: Optional[pulumi.Input[str]] = None): """ :param pulumi.Input[str] custom_error_page_url: Error page URL of the application gateway customer error. - :param pulumi.Input[str] status_code: Status code of the application gateway customer error. Possible values are `HttpStatus403` and `HttpStatus502` + :param pulumi.Input[str] status_code: Status code of the application gateway customer error. Possible values are `HttpStatus400`, `HttpStatus403`, `HttpStatus404`, `HttpStatus405`, `HttpStatus408`, `HttpStatus500`, `HttpStatus502`, `HttpStatus503` and `HttpStatus504` :param pulumi.Input[str] id: The ID of the Rewrite Rule Set """ pulumi.set(__self__, "custom_error_page_url", custom_error_page_url) @@ -1794,7 +1794,7 @@ def custom_error_page_url(self, value: pulumi.Input[str]): @pulumi.getter(name="statusCode") def status_code(self) -> pulumi.Input[str]: """ - Status code of the application gateway customer error. Possible values are `HttpStatus403` and `HttpStatus502` + Status code of the application gateway customer error. Possible values are `HttpStatus400`, `HttpStatus403`, `HttpStatus404`, `HttpStatus405`, `HttpStatus408`, `HttpStatus500`, `HttpStatus502`, `HttpStatus503` and `HttpStatus504` """ return pulumi.get(self, "status_code") diff --git a/sdk/python/pulumi_azure/network/outputs.py b/sdk/python/pulumi_azure/network/outputs.py index ba5682c20e..204174cdb7 100644 --- a/sdk/python/pulumi_azure/network/outputs.py +++ b/sdk/python/pulumi_azure/network/outputs.py @@ -753,7 +753,7 @@ def __init__(__self__, *, id: Optional[str] = None): """ :param str custom_error_page_url: Error page URL of the application gateway customer error. - :param str status_code: Status code of the application gateway customer error. Possible values are `HttpStatus403` and `HttpStatus502` + :param str status_code: Status code of the application gateway customer error. Possible values are `HttpStatus400`, `HttpStatus403`, `HttpStatus404`, `HttpStatus405`, `HttpStatus408`, `HttpStatus500`, `HttpStatus502`, `HttpStatus503` and `HttpStatus504` :param str id: The ID of the Rewrite Rule Set """ pulumi.set(__self__, "custom_error_page_url", custom_error_page_url) @@ -773,7 +773,7 @@ def custom_error_page_url(self) -> str: @pulumi.getter(name="statusCode") def status_code(self) -> str: """ - Status code of the application gateway customer error. Possible values are `HttpStatus403` and `HttpStatus502` + Status code of the application gateway customer error. Possible values are `HttpStatus400`, `HttpStatus403`, `HttpStatus404`, `HttpStatus405`, `HttpStatus408`, `HttpStatus500`, `HttpStatus502`, `HttpStatus503` and `HttpStatus504` """ return pulumi.get(self, "status_code") @@ -1329,7 +1329,7 @@ def __init__(__self__, *, id: Optional[str] = None): """ :param str custom_error_page_url: Error page URL of the application gateway customer error. - :param str status_code: Status code of the application gateway customer error. Possible values are `HttpStatus403` and `HttpStatus502` + :param str status_code: Status code of the application gateway customer error. Possible values are `HttpStatus400`, `HttpStatus403`, `HttpStatus404`, `HttpStatus405`, `HttpStatus408`, `HttpStatus500`, `HttpStatus502`, `HttpStatus503` and `HttpStatus504` :param str id: The ID of the Rewrite Rule Set """ pulumi.set(__self__, "custom_error_page_url", custom_error_page_url) @@ -1349,7 +1349,7 @@ def custom_error_page_url(self) -> str: @pulumi.getter(name="statusCode") def status_code(self) -> str: """ - Status code of the application gateway customer error. Possible values are `HttpStatus403` and `HttpStatus502` + Status code of the application gateway customer error. Possible values are `HttpStatus400`, `HttpStatus403`, `HttpStatus404`, `HttpStatus405`, `HttpStatus408`, `HttpStatus500`, `HttpStatus502`, `HttpStatus503` and `HttpStatus504` """ return pulumi.get(self, "status_code") diff --git a/sdk/python/pulumi_azure/network/traffic_manager_azure_endpoint.py b/sdk/python/pulumi_azure/network/traffic_manager_azure_endpoint.py index f175bba5e4..56d8b5ee93 100644 --- a/sdk/python/pulumi_azure/network/traffic_manager_azure_endpoint.py +++ b/sdk/python/pulumi_azure/network/traffic_manager_azure_endpoint.py @@ -40,7 +40,7 @@ def __init__(__self__, *, :param pulumi.Input[bool] enabled: Is the endpoint enabled? Defaults to `true`. :param pulumi.Input[Sequence[pulumi.Input[str]]] geo_mappings: A list of Geographic Regions used to distribute traffic, such as `WORLD`, `UK` or `DE`. The same location can't be specified in two endpoints. [See the Geographic Hierarchies documentation for more information](https://docs.microsoft.com/rest/api/trafficmanager/geographichierarchies/getdefault). :param pulumi.Input[str] name: The name of the Azure Endpoint. Changing this forces a new resource to be created. - :param pulumi.Input[int] priority: Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. Defaults to `1`. + :param pulumi.Input[int] priority: Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. :param pulumi.Input[Sequence[pulumi.Input['TrafficManagerAzureEndpointSubnetArgs']]] subnets: One or more `subnet` blocks as defined below. Changing this forces a new resource to be created. :param pulumi.Input[int] weight: Specifies how much traffic should be distributed to this endpoint, this must be specified for Profiles using the Weighted traffic routing method. Valid values are between `1` and `1000`. Defaults to `1`. """ @@ -151,7 +151,7 @@ def name(self, value: Optional[pulumi.Input[str]]): @pulumi.getter def priority(self) -> Optional[pulumi.Input[int]]: """ - Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. Defaults to `1`. + Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. """ return pulumi.get(self, "priority") @@ -204,7 +204,7 @@ def __init__(__self__, *, :param pulumi.Input[bool] enabled: Is the endpoint enabled? Defaults to `true`. :param pulumi.Input[Sequence[pulumi.Input[str]]] geo_mappings: A list of Geographic Regions used to distribute traffic, such as `WORLD`, `UK` or `DE`. The same location can't be specified in two endpoints. [See the Geographic Hierarchies documentation for more information](https://docs.microsoft.com/rest/api/trafficmanager/geographichierarchies/getdefault). :param pulumi.Input[str] name: The name of the Azure Endpoint. Changing this forces a new resource to be created. - :param pulumi.Input[int] priority: Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. Defaults to `1`. + :param pulumi.Input[int] priority: Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. :param pulumi.Input[str] profile_id: The ID of the Traffic Manager Profile that this Azure Endpoint should be created within. Changing this forces a new resource to be created. :param pulumi.Input[Sequence[pulumi.Input['TrafficManagerAzureEndpointSubnetArgs']]] subnets: One or more `subnet` blocks as defined below. Changing this forces a new resource to be created. :param pulumi.Input[str] target_resource_id: The ID of the Azure Resource which should be used as a target. @@ -295,7 +295,7 @@ def name(self, value: Optional[pulumi.Input[str]]): @pulumi.getter def priority(self) -> Optional[pulumi.Input[int]]: """ - Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. Defaults to `1`. + Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. """ return pulumi.get(self, "priority") @@ -428,7 +428,7 @@ def __init__(__self__, :param pulumi.Input[bool] enabled: Is the endpoint enabled? Defaults to `true`. :param pulumi.Input[Sequence[pulumi.Input[str]]] geo_mappings: A list of Geographic Regions used to distribute traffic, such as `WORLD`, `UK` or `DE`. The same location can't be specified in two endpoints. [See the Geographic Hierarchies documentation for more information](https://docs.microsoft.com/rest/api/trafficmanager/geographichierarchies/getdefault). :param pulumi.Input[str] name: The name of the Azure Endpoint. Changing this forces a new resource to be created. - :param pulumi.Input[int] priority: Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. Defaults to `1`. + :param pulumi.Input[int] priority: Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. :param pulumi.Input[str] profile_id: The ID of the Traffic Manager Profile that this Azure Endpoint should be created within. Changing this forces a new resource to be created. :param pulumi.Input[Sequence[pulumi.Input[Union['TrafficManagerAzureEndpointSubnetArgs', 'TrafficManagerAzureEndpointSubnetArgsDict']]]] subnets: One or more `subnet` blocks as defined below. Changing this forces a new resource to be created. :param pulumi.Input[str] target_resource_id: The ID of the Azure Resource which should be used as a target. @@ -573,7 +573,7 @@ def get(resource_name: str, :param pulumi.Input[bool] enabled: Is the endpoint enabled? Defaults to `true`. :param pulumi.Input[Sequence[pulumi.Input[str]]] geo_mappings: A list of Geographic Regions used to distribute traffic, such as `WORLD`, `UK` or `DE`. The same location can't be specified in two endpoints. [See the Geographic Hierarchies documentation for more information](https://docs.microsoft.com/rest/api/trafficmanager/geographichierarchies/getdefault). :param pulumi.Input[str] name: The name of the Azure Endpoint. Changing this forces a new resource to be created. - :param pulumi.Input[int] priority: Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. Defaults to `1`. + :param pulumi.Input[int] priority: Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. :param pulumi.Input[str] profile_id: The ID of the Traffic Manager Profile that this Azure Endpoint should be created within. Changing this forces a new resource to be created. :param pulumi.Input[Sequence[pulumi.Input[Union['TrafficManagerAzureEndpointSubnetArgs', 'TrafficManagerAzureEndpointSubnetArgsDict']]]] subnets: One or more `subnet` blocks as defined below. Changing this forces a new resource to be created. :param pulumi.Input[str] target_resource_id: The ID of the Azure Resource which should be used as a target. @@ -637,9 +637,9 @@ def name(self) -> pulumi.Output[str]: @property @pulumi.getter - def priority(self) -> pulumi.Output[Optional[int]]: + def priority(self) -> pulumi.Output[int]: """ - Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. Defaults to `1`. + Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. """ return pulumi.get(self, "priority") diff --git a/sdk/python/pulumi_azure/network/traffic_manager_external_endpoint.py b/sdk/python/pulumi_azure/network/traffic_manager_external_endpoint.py index 229a8bfc46..f38e6c7072 100644 --- a/sdk/python/pulumi_azure/network/traffic_manager_external_endpoint.py +++ b/sdk/python/pulumi_azure/network/traffic_manager_external_endpoint.py @@ -42,7 +42,7 @@ def __init__(__self__, *, :param pulumi.Input[str] endpoint_location: Specifies the Azure location of the Endpoint, this must be specified for Profiles using the `Performance` routing method. :param pulumi.Input[Sequence[pulumi.Input[str]]] geo_mappings: A list of Geographic Regions used to distribute traffic, such as `WORLD`, `UK` or `DE`. The same location can't be specified in two endpoints. [See the Geographic Hierarchies documentation for more information](https://docs.microsoft.com/rest/api/trafficmanager/geographichierarchies/getdefault). :param pulumi.Input[str] name: The name of the External Endpoint. Changing this forces a new resource to be created. - :param pulumi.Input[int] priority: Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. Defaults to `1`. + :param pulumi.Input[int] priority: Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. :param pulumi.Input[Sequence[pulumi.Input['TrafficManagerExternalEndpointSubnetArgs']]] subnets: One or more `subnet` blocks as defined below. Changing this forces a new resource to be created. :param pulumi.Input[int] weight: Specifies how much traffic should be distributed to this endpoint, this must be specified for Profiles using the Weighted traffic routing method. Valid values are between `1` and `1000`. Defaults to `1`. """ @@ -167,7 +167,7 @@ def name(self, value: Optional[pulumi.Input[str]]): @pulumi.getter def priority(self) -> Optional[pulumi.Input[int]]: """ - Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. Defaults to `1`. + Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. """ return pulumi.get(self, "priority") @@ -222,7 +222,7 @@ def __init__(__self__, *, :param pulumi.Input[str] endpoint_location: Specifies the Azure location of the Endpoint, this must be specified for Profiles using the `Performance` routing method. :param pulumi.Input[Sequence[pulumi.Input[str]]] geo_mappings: A list of Geographic Regions used to distribute traffic, such as `WORLD`, `UK` or `DE`. The same location can't be specified in two endpoints. [See the Geographic Hierarchies documentation for more information](https://docs.microsoft.com/rest/api/trafficmanager/geographichierarchies/getdefault). :param pulumi.Input[str] name: The name of the External Endpoint. Changing this forces a new resource to be created. - :param pulumi.Input[int] priority: Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. Defaults to `1`. + :param pulumi.Input[int] priority: Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. :param pulumi.Input[str] profile_id: The ID of the Traffic Manager Profile that this External Endpoint should be created within. Changing this forces a new resource to be created. :param pulumi.Input[Sequence[pulumi.Input['TrafficManagerExternalEndpointSubnetArgs']]] subnets: One or more `subnet` blocks as defined below. Changing this forces a new resource to be created. :param pulumi.Input[str] target: The FQDN DNS name of the target. @@ -327,7 +327,7 @@ def name(self, value: Optional[pulumi.Input[str]]): @pulumi.getter def priority(self) -> Optional[pulumi.Input[int]]: """ - Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. Defaults to `1`. + Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. """ return pulumi.get(self, "priority") @@ -456,7 +456,7 @@ def __init__(__self__, :param pulumi.Input[str] endpoint_location: Specifies the Azure location of the Endpoint, this must be specified for Profiles using the `Performance` routing method. :param pulumi.Input[Sequence[pulumi.Input[str]]] geo_mappings: A list of Geographic Regions used to distribute traffic, such as `WORLD`, `UK` or `DE`. The same location can't be specified in two endpoints. [See the Geographic Hierarchies documentation for more information](https://docs.microsoft.com/rest/api/trafficmanager/geographichierarchies/getdefault). :param pulumi.Input[str] name: The name of the External Endpoint. Changing this forces a new resource to be created. - :param pulumi.Input[int] priority: Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. Defaults to `1`. + :param pulumi.Input[int] priority: Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. :param pulumi.Input[str] profile_id: The ID of the Traffic Manager Profile that this External Endpoint should be created within. Changing this forces a new resource to be created. :param pulumi.Input[Sequence[pulumi.Input[Union['TrafficManagerExternalEndpointSubnetArgs', 'TrafficManagerExternalEndpointSubnetArgsDict']]]] subnets: One or more `subnet` blocks as defined below. Changing this forces a new resource to be created. :param pulumi.Input[str] target: The FQDN DNS name of the target. @@ -599,7 +599,7 @@ def get(resource_name: str, :param pulumi.Input[str] endpoint_location: Specifies the Azure location of the Endpoint, this must be specified for Profiles using the `Performance` routing method. :param pulumi.Input[Sequence[pulumi.Input[str]]] geo_mappings: A list of Geographic Regions used to distribute traffic, such as `WORLD`, `UK` or `DE`. The same location can't be specified in two endpoints. [See the Geographic Hierarchies documentation for more information](https://docs.microsoft.com/rest/api/trafficmanager/geographichierarchies/getdefault). :param pulumi.Input[str] name: The name of the External Endpoint. Changing this forces a new resource to be created. - :param pulumi.Input[int] priority: Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. Defaults to `1`. + :param pulumi.Input[int] priority: Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. :param pulumi.Input[str] profile_id: The ID of the Traffic Manager Profile that this External Endpoint should be created within. Changing this forces a new resource to be created. :param pulumi.Input[Sequence[pulumi.Input[Union['TrafficManagerExternalEndpointSubnetArgs', 'TrafficManagerExternalEndpointSubnetArgsDict']]]] subnets: One or more `subnet` blocks as defined below. Changing this forces a new resource to be created. :param pulumi.Input[str] target: The FQDN DNS name of the target. @@ -672,9 +672,9 @@ def name(self) -> pulumi.Output[str]: @property @pulumi.getter - def priority(self) -> pulumi.Output[Optional[int]]: + def priority(self) -> pulumi.Output[int]: """ - Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. Defaults to `1`. + Specifies the priority of this Endpoint, this must be specified for Profiles using the `Priority` traffic routing method. Supports values between 1 and 1000, with no Endpoints sharing the same value. If omitted the value will be computed in order of creation. """ return pulumi.get(self, "priority") diff --git a/upstream b/upstream index 45d09f16c8..7d5c0779bc 160000 --- a/upstream +++ b/upstream @@ -1 +1 @@ -Subproject commit 45d09f16c850081bc9f59442bc5194f99ab08bd9 +Subproject commit 7d5c0779bce9b783e8a7e3ac67f1621c6d757972