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 95d11046d8..ae6160b566 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 @@ -7,19 +7,19 @@ Subject: [PATCH] Ensure servicebus queue & topic have namespaces and RG names These are computed attributes for use in the servicebus mixins in Pulumi. diff --git a/internal/services/servicebus/servicebus_queue_resource.go b/internal/services/servicebus/servicebus_queue_resource.go -index 579c5712ce..cc468319b5 100644 +index b4df3f33be..fc4838204d 100644 --- a/internal/services/servicebus/servicebus_queue_resource.go +++ b/internal/services/servicebus/servicebus_queue_resource.go -@@ -47,6 +47,8 @@ func resourceServiceBusQueue() *pluginsdk.Resource { +@@ -46,6 +46,8 @@ func resourceServiceBusQueue() *pluginsdk.Resource { } } +// FORK: @stack72: Ensured the ResourceGroupName and NamespaceName was available as a computed attribute for use +// in the servicebus mixins in Pulumi func resourceServicebusQueueSchema() map[string]*pluginsdk.Schema { - schema := map[string]*pluginsdk.Schema{ + return map[string]*pluginsdk.Schema{ "name": { -@@ -165,6 +167,16 @@ func resourceServicebusQueueSchema() map[string]*pluginsdk.Schema { +@@ -166,6 +168,16 @@ func resourceServicebusQueueSchema() map[string]*pluginsdk.Schema { ForceNew: true, }, @@ -36,7 +36,7 @@ index 579c5712ce..cc468319b5 100644 "status": { Type: pluginsdk.TypeString, Optional: true, -@@ -480,6 +492,8 @@ func resourceServiceBusQueueRead(d *pluginsdk.ResourceData, meta interface{}) er +@@ -377,6 +389,8 @@ func resourceServiceBusQueueRead(d *pluginsdk.ResourceData, meta interface{}) er d.Set("name", id.QueueName) d.Set("namespace_id", namespaceId.ID()) diff --git a/patches/0013-Update-documentation.patch b/patches/0013-Update-documentation.patch index 00e5e9c594..aa3cf39c6d 100644 --- a/patches/0013-Update-documentation.patch +++ b/patches/0013-Update-documentation.patch @@ -2484,7 +2484,7 @@ index 1e67c40d11..97e4bc8354 100644 } diff --git a/website/docs/r/servicebus_queue.html.markdown b/website/docs/r/servicebus_queue.html.markdown -index 82dfc08917..14bf56bf55 100644 +index 686b756107..f209e721bc 100644 --- a/website/docs/r/servicebus_queue.html.markdown +++ b/website/docs/r/servicebus_queue.html.markdown @@ -14,7 +14,7 @@ Manages a ServiceBus Queue. diff --git a/provider/cmd/pulumi-resource-azure/bridge-metadata.json b/provider/cmd/pulumi-resource-azure/bridge-metadata.json index cfceec7bb3..0600911d02 100644 --- a/provider/cmd/pulumi-resource-azure/bridge-metadata.json +++ b/provider/cmd/pulumi-resource-azure/bridge-metadata.json @@ -1815,6 +1815,14 @@ } } }, + "azurerm_arc_machine": { + "current": "azure:arcmachine/arcMachine:ArcMachine", + "majorVersion": 6 + }, + "azurerm_arc_machine_automanage_configuration_assignment": { + "current": "azure:arcmachine/automanageConfigurationAssignment:AutomanageConfigurationAssignment", + "majorVersion": 6 + }, "azurerm_arc_machine_extension": { "current": "azure:arcmachine/extension:Extension", "majorVersion": 6 @@ -13153,25 +13161,6 @@ "current": "azure:marketplace/roleAssignment:RoleAssignment", "majorVersion": 6 }, - "azurerm_media_services_account_filter": { - "current": "azure:media/accountFilter:AccountFilter", - "majorVersion": 6, - "fields": { - "presentation_time_range": { - "maxItemsOne": true - }, - "track_selection": { - "maxItemsOne": false, - "elem": { - "fields": { - "condition": { - "maxItemsOne": false - } - } - } - } - } - }, "azurerm_mobile_network": { "current": "azure:mobile/network:Network", "majorVersion": 6 diff --git a/provider/cmd/pulumi-resource-azure/schema.json b/provider/cmd/pulumi-resource-azure/schema.json index 68ab348cfd..ee5c7cc94b 100644 --- a/provider/cmd/pulumi-resource-azure/schema.json +++ b/provider/cmd/pulumi-resource-azure/schema.json @@ -100,7 +100,6 @@ "managementresource": "ManagementResource", "maps": "Maps", "marketplace": "Marketplace", - "media": "Media", "mixedreality": "MixedReality", "mobile": "Mobile", "monitoring": "Monitoring", @@ -73046,65 +73045,6 @@ } } }, - "azure:media/AccountFilterPresentationTimeRange:AccountFilterPresentationTimeRange": { - "properties": { - "endInUnits": { - "type": "integer" - }, - "forceEnd": { - "type": "boolean" - }, - "liveBackoffInUnits": { - "type": "integer" - }, - "presentationWindowInUnits": { - "type": "integer" - }, - "startInUnits": { - "type": "integer" - }, - "unitTimescaleInMilliseconds": { - "type": "integer" - } - }, - "type": "object", - "required": [ - "unitTimescaleInMilliseconds" - ] - }, - "azure:media/AccountFilterTrackSelection:AccountFilterTrackSelection": { - "properties": { - "conditions": { - "type": "array", - "items": { - "$ref": "#/types/azure:media/AccountFilterTrackSelectionCondition:AccountFilterTrackSelectionCondition" - } - } - }, - "type": "object", - "required": [ - "conditions" - ] - }, - "azure:media/AccountFilterTrackSelectionCondition:AccountFilterTrackSelectionCondition": { - "properties": { - "operation": { - "type": "string" - }, - "property": { - "type": "string" - }, - "value": { - "type": "string" - } - }, - "type": "object", - "required": [ - "operation", - "property", - "value" - ] - }, "azure:mobile/NetworkAttachedDataNetworkNetworkAddressPortTranslation:NetworkAttachedDataNetworkNetworkAddressPortTranslation": { "properties": { "icmpPinholeTimeoutInSeconds": { @@ -100365,7 +100305,8 @@ "description": "Is Request Body Inspection enabled? Defaults to `true`.\n" }, "requestBodyEnforcement": { - "type": "boolean" + "type": "boolean", + "description": "Whether the firewall should block a request with body size greater then `max_request_body_size_in_kb`. Defaults to `true`.\n" }, "requestBodyInspectLimitInKb": { "type": "integer", @@ -124387,6 +124328,134 @@ "type": "object" } }, + "azure:arcmachine/arcMachine:ArcMachine": { + "description": "Manages a Hybrid Compute Machine.\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 exampleArcMachine = new azure.arcmachine.ArcMachine(\"example\", {\n name: \"example-arcmachine\",\n resourceGroupName: example.name,\n location: example.location,\n kind: \"SCVMM\",\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_arc_machine = azure.arcmachine.ArcMachine(\"example\",\n name=\"example-arcmachine\",\n resource_group_name=example.name,\n location=example.location,\n kind=\"SCVMM\")\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 exampleArcMachine = new Azure.ArcMachine.ArcMachine(\"example\", new()\n {\n Name = \"example-arcmachine\",\n ResourceGroupName = example.Name,\n Location = example.Location,\n Kind = \"SCVMM\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/arcmachine\"\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core\"\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 = arcmachine.NewArcMachine(ctx, \"example\", \u0026arcmachine.ArcMachineArgs{\n\t\t\tName: pulumi.String(\"example-arcmachine\"),\n\t\t\tResourceGroupName: example.Name,\n\t\t\tLocation: example.Location,\n\t\t\tKind: pulumi.String(\"SCVMM\"),\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.arcmachine.ArcMachine;\nimport com.pulumi.azure.arcmachine.ArcMachineArgs;\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 exampleArcMachine = new ArcMachine(\"exampleArcMachine\", ArcMachineArgs.builder()\n .name(\"example-arcmachine\")\n .resourceGroupName(example.name())\n .location(example.location())\n .kind(\"SCVMM\")\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 exampleArcMachine:\n type: azure:arcmachine:ArcMachine\n name: example\n properties:\n name: example-arcmachine\n resourceGroupName: ${example.name}\n location: ${example.location}\n kind: SCVMM\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nArc Machines can be imported using the `resource id`, e.g.\n\n```sh\n$ pulumi import azure:arcmachine/arcMachine:ArcMachine example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.HybridCompute/machines/machine1\n```\n\n", + "properties": { + "kind": { + "type": "string", + "description": "The kind of the Arc Machine. Possible values are `AVS`, `AWS`, `EPS`, `GCP`, `HCI`, `SCVMM` and `VMware`. Changing this forces a new resource to be created.\n" + }, + "location": { + "type": "string", + "description": "The Azure Region where the Arc Machine should exist. Changing this forces a new resource to be created.\n" + }, + "name": { + "type": "string", + "description": "The name of the Arc machine. Changing this forces a new resource to be created.\n" + }, + "resourceGroupName": { + "type": "string", + "description": "The name of the Resource Group where the Arc Machine should exist. Changing this forces a new resource to be created.\n" + } + }, + "required": [ + "kind", + "location", + "name", + "resourceGroupName" + ], + "inputProperties": { + "kind": { + "type": "string", + "description": "The kind of the Arc Machine. Possible values are `AVS`, `AWS`, `EPS`, `GCP`, `HCI`, `SCVMM` and `VMware`. Changing this forces a new resource to be created.\n", + "willReplaceOnChanges": true + }, + "location": { + "type": "string", + "description": "The Azure Region where the Arc Machine should exist. Changing this forces a new resource to be created.\n", + "willReplaceOnChanges": true + }, + "name": { + "type": "string", + "description": "The name of the Arc machine. Changing this forces a new resource to be created.\n", + "willReplaceOnChanges": true + }, + "resourceGroupName": { + "type": "string", + "description": "The name of the Resource Group where the Arc Machine should exist. Changing this forces a new resource to be created.\n", + "willReplaceOnChanges": true + } + }, + "requiredInputs": [ + "kind", + "resourceGroupName" + ], + "stateInputs": { + "description": "Input properties used for looking up and filtering ArcMachine resources.\n", + "properties": { + "kind": { + "type": "string", + "description": "The kind of the Arc Machine. Possible values are `AVS`, `AWS`, `EPS`, `GCP`, `HCI`, `SCVMM` and `VMware`. Changing this forces a new resource to be created.\n", + "willReplaceOnChanges": true + }, + "location": { + "type": "string", + "description": "The Azure Region where the Arc Machine should exist. Changing this forces a new resource to be created.\n", + "willReplaceOnChanges": true + }, + "name": { + "type": "string", + "description": "The name of the Arc machine. Changing this forces a new resource to be created.\n", + "willReplaceOnChanges": true + }, + "resourceGroupName": { + "type": "string", + "description": "The name of the Resource Group where the Arc Machine should exist. Changing this forces a new resource to be created.\n", + "willReplaceOnChanges": true + } + }, + "type": "object" + } + }, + "azure:arcmachine/automanageConfigurationAssignment:AutomanageConfigurationAssignment": { + "description": "Manages an Arc Machine Automanage Configuration Profile Assignment.\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 config = new pulumi.Config();\n// The name of the Arc Machine.\nconst arcMachineName = config.requireObject(\"arcMachineName\");\nconst exampleResourceGroup = new azure.core.ResourceGroup(\"example\", {\n name: \"example-resources\",\n location: \"West Europe\",\n});\nconst example = exampleResourceGroup.name.apply(name =\u003e azure.arcmachine.getOutput({\n name: arcMachineName,\n resourceGroupName: name,\n}));\nconst exampleConfiguration = new azure.automanage.Configuration(\"example\", {\n name: \"example-configuration\",\n resourceGroupName: exampleResourceGroup.name,\n location: exampleResourceGroup.location,\n});\nconst exampleAutomanageConfigurationAssignment = new azure.arcmachine.AutomanageConfigurationAssignment(\"example\", {\n arcMachineId: example.apply(example =\u003e example.id),\n configurationId: exampleConfiguration.id,\n});\n```\n```python\nimport pulumi\nimport pulumi_azure as azure\n\nconfig = pulumi.Config()\n# The name of the Arc Machine.\narc_machine_name = config.require_object(\"arcMachineName\")\nexample_resource_group = azure.core.ResourceGroup(\"example\",\n name=\"example-resources\",\n location=\"West Europe\")\nexample = example_resource_group.name.apply(lambda name: azure.arcmachine.get_output(name=arc_machine_name,\n resource_group_name=name))\nexample_configuration = azure.automanage.Configuration(\"example\",\n name=\"example-configuration\",\n resource_group_name=example_resource_group.name,\n location=example_resource_group.location)\nexample_automanage_configuration_assignment = azure.arcmachine.AutomanageConfigurationAssignment(\"example\",\n arc_machine_id=example.id,\n configuration_id=example_configuration.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 config = new Config();\n // The name of the Arc Machine.\n var arcMachineName = config.RequireObject\u003cdynamic\u003e(\"arcMachineName\");\n var exampleResourceGroup = new Azure.Core.ResourceGroup(\"example\", new()\n {\n Name = \"example-resources\",\n Location = \"West Europe\",\n });\n\n var example = Azure.ArcMachine.Get.Invoke(new()\n {\n Name = arcMachineName,\n ResourceGroupName = exampleResourceGroup.Name,\n });\n\n var exampleConfiguration = new Azure.Automanage.Configuration(\"example\", new()\n {\n Name = \"example-configuration\",\n ResourceGroupName = exampleResourceGroup.Name,\n Location = exampleResourceGroup.Location,\n });\n\n var exampleAutomanageConfigurationAssignment = new Azure.ArcMachine.AutomanageConfigurationAssignment(\"example\", new()\n {\n ArcMachineId = example.Apply(getResult =\u003e getResult.Id),\n ConfigurationId = exampleConfiguration.Id,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/arcmachine\"\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/automanage\"\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tcfg := config.New(ctx, \"\")\n\t\t// The name of the Arc Machine.\n\t\tarcMachineName := cfg.RequireObject(\"arcMachineName\")\n\t\texampleResourceGroup, 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\texample := exampleResourceGroup.Name.ApplyT(func(name string) (arcmachine.GetResult, error) {\n\t\t\treturn arcmachine.GetResult(interface{}(arcmachine.GetOutput(ctx, arcmachine.GetOutputArgs{\n\t\t\t\tName: arcMachineName,\n\t\t\t\tResourceGroupName: name,\n\t\t\t}, nil))), nil\n\t\t}).(arcmachine.GetResultOutput)\n\t\texampleConfiguration, err := automanage.NewConfiguration(ctx, \"example\", \u0026automanage.ConfigurationArgs{\n\t\t\tName: pulumi.String(\"example-configuration\"),\n\t\t\tResourceGroupName: exampleResourceGroup.Name,\n\t\t\tLocation: exampleResourceGroup.Location,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = arcmachine.NewAutomanageConfigurationAssignment(ctx, \"example\", \u0026arcmachine.AutomanageConfigurationAssignmentArgs{\n\t\t\tArcMachineId: pulumi.String(example.ApplyT(func(example arcmachine.GetResult) (*string, error) {\n\t\t\t\treturn \u0026example.Id, nil\n\t\t\t}).(pulumi.StringPtrOutput)),\n\t\t\tConfigurationId: exampleConfiguration.ID(),\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.arcmachine.ArcmachineFunctions;\nimport com.pulumi.azure.arcmachine.inputs.GetArgs;\nimport com.pulumi.azure.automanage.Configuration;\nimport com.pulumi.azure.automanage.ConfigurationArgs;\nimport com.pulumi.azure.arcmachine.AutomanageConfigurationAssignment;\nimport com.pulumi.azure.arcmachine.AutomanageConfigurationAssignmentArgs;\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 config = ctx.config();\n final var arcMachineName = config.get(\"arcMachineName\");\n var exampleResourceGroup = new ResourceGroup(\"exampleResourceGroup\", ResourceGroupArgs.builder()\n .name(\"example-resources\")\n .location(\"West Europe\")\n .build());\n\n final var example = ArcmachineFunctions.get(GetArgs.builder()\n .name(arcMachineName)\n .resourceGroupName(exampleResourceGroup.name())\n .build());\n\n var exampleConfiguration = new Configuration(\"exampleConfiguration\", ConfigurationArgs.builder()\n .name(\"example-configuration\")\n .resourceGroupName(exampleResourceGroup.name())\n .location(exampleResourceGroup.location())\n .build());\n\n var exampleAutomanageConfigurationAssignment = new AutomanageConfigurationAssignment(\"exampleAutomanageConfigurationAssignment\", AutomanageConfigurationAssignmentArgs.builder()\n .arcMachineId(example.applyValue(getResult -\u003e getResult).applyValue(example -\u003e example.applyValue(getResult -\u003e getResult.id())))\n .configurationId(exampleConfiguration.id())\n .build());\n\n }\n}\n```\n```yaml\nconfiguration:\n arcMachineName:\n type: dynamic\nresources:\n exampleResourceGroup:\n type: azure:core:ResourceGroup\n name: example\n properties:\n name: example-resources\n location: West Europe\n exampleConfiguration:\n type: azure:automanage:Configuration\n name: example\n properties:\n name: example-configuration\n resourceGroupName: ${exampleResourceGroup.name}\n location: ${exampleResourceGroup.location}\n exampleAutomanageConfigurationAssignment:\n type: azure:arcmachine:AutomanageConfigurationAssignment\n name: example\n properties:\n arcMachineId: ${example.id}\n configurationId: ${exampleConfiguration.id}\nvariables:\n example:\n fn::invoke:\n Function: azure:arcmachine:get\n Arguments:\n name: ${arcMachineName}\n resourceGroupName: ${exampleResourceGroup.name}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nVirtual Machine Automanage Configuration Profile Assignment can be imported using the `resource id`, e.g.\n\n```sh\n$ pulumi import azure:arcmachine/automanageConfigurationAssignment:AutomanageConfigurationAssignment example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.HybridCompute/Microsoft.HybridCompute/machines/machine1/providers/Microsoft.AutoManage/configurationProfileAssignments/default\n```\n\n", + "properties": { + "arcMachineId": { + "type": "string", + "description": "The ARM resource ID of the Arc Machine to assign the Automanage Configuration to. Changing this forces a new resource to be created.\n" + }, + "configurationId": { + "type": "string", + "description": "The ARM resource ID of the Automanage Configuration to assign to the Virtual Machine. Changing this forces a new resource to be created.\n\n\u003e **NOTE:** For a successful creation of this resource, locate \"Automanage API Access\" app within your Entra ID tenant. Make sure it's granted access to the scope that includes the arc server.\n" + } + }, + "required": [ + "arcMachineId", + "configurationId" + ], + "inputProperties": { + "arcMachineId": { + "type": "string", + "description": "The ARM resource ID of the Arc Machine to assign the Automanage Configuration to. Changing this forces a new resource to be created.\n", + "willReplaceOnChanges": true + }, + "configurationId": { + "type": "string", + "description": "The ARM resource ID of the Automanage Configuration to assign to the Virtual Machine. Changing this forces a new resource to be created.\n\n\u003e **NOTE:** For a successful creation of this resource, locate \"Automanage API Access\" app within your Entra ID tenant. Make sure it's granted access to the scope that includes the arc server.\n", + "willReplaceOnChanges": true + } + }, + "requiredInputs": [ + "arcMachineId", + "configurationId" + ], + "stateInputs": { + "description": "Input properties used for looking up and filtering AutomanageConfigurationAssignment resources.\n", + "properties": { + "arcMachineId": { + "type": "string", + "description": "The ARM resource ID of the Arc Machine to assign the Automanage Configuration to. Changing this forces a new resource to be created.\n", + "willReplaceOnChanges": true + }, + "configurationId": { + "type": "string", + "description": "The ARM resource ID of the Automanage Configuration to assign to the Virtual Machine. Changing this forces a new resource to be created.\n\n\u003e **NOTE:** For a successful creation of this resource, locate \"Automanage API Access\" app within your Entra ID tenant. Make sure it's granted access to the scope that includes the arc server.\n", + "willReplaceOnChanges": true + } + }, + "type": "object" + } + }, "azure:arcmachine/extension:Extension": { "description": "Manages a Hybrid Compute Machine Extension.\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 exampleResourceGroup = new azure.core.ResourceGroup(\"example\", {\n name: \"example\",\n location: \"West Europe\",\n});\nconst example = azure.arcmachine.getOutput({\n name: \"existing-hcmachine\",\n resourceGroupName: exampleResourceGroup.name,\n});\nconst exampleExtension = new azure.arcmachine.Extension(\"example\", {\n name: \"example\",\n location: \"West Europe\",\n arcMachineId: example.apply(example =\u003e example.id),\n publisher: \"Microsoft.Azure.Monitor\",\n type: \"AzureMonitorLinuxAgent\",\n});\n```\n```python\nimport pulumi\nimport pulumi_azure as azure\n\nexample_resource_group = azure.core.ResourceGroup(\"example\",\n name=\"example\",\n location=\"West Europe\")\nexample = azure.arcmachine.get_output(name=\"existing-hcmachine\",\n resource_group_name=example_resource_group.name)\nexample_extension = azure.arcmachine.Extension(\"example\",\n name=\"example\",\n location=\"West Europe\",\n arc_machine_id=example.id,\n publisher=\"Microsoft.Azure.Monitor\",\n type=\"AzureMonitorLinuxAgent\")\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 exampleResourceGroup = new Azure.Core.ResourceGroup(\"example\", new()\n {\n Name = \"example\",\n Location = \"West Europe\",\n });\n\n var example = Azure.ArcMachine.Get.Invoke(new()\n {\n Name = \"existing-hcmachine\",\n ResourceGroupName = exampleResourceGroup.Name,\n });\n\n var exampleExtension = new Azure.ArcMachine.Extension(\"example\", new()\n {\n Name = \"example\",\n Location = \"West Europe\",\n ArcMachineId = example.Apply(getResult =\u003e getResult.Id),\n Publisher = \"Microsoft.Azure.Monitor\",\n Type = \"AzureMonitorLinuxAgent\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/arcmachine\"\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texampleResourceGroup, err := core.NewResourceGroup(ctx, \"example\", \u0026core.ResourceGroupArgs{\n\t\t\tName: pulumi.String(\"example\"),\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\texample := arcmachine.GetOutput(ctx, arcmachine.GetOutputArgs{\n\t\t\tName: pulumi.String(\"existing-hcmachine\"),\n\t\t\tResourceGroupName: exampleResourceGroup.Name,\n\t\t}, nil)\n\t\t_, err = arcmachine.NewExtension(ctx, \"example\", \u0026arcmachine.ExtensionArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tLocation: pulumi.String(\"West Europe\"),\n\t\t\tArcMachineId: pulumi.String(example.ApplyT(func(example arcmachine.GetResult) (*string, error) {\n\t\t\t\treturn \u0026example.Id, nil\n\t\t\t}).(pulumi.StringPtrOutput)),\n\t\t\tPublisher: pulumi.String(\"Microsoft.Azure.Monitor\"),\n\t\t\tType: pulumi.String(\"AzureMonitorLinuxAgent\"),\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.arcmachine.ArcmachineFunctions;\nimport com.pulumi.azure.arcmachine.inputs.GetArgs;\nimport com.pulumi.azure.arcmachine.Extension;\nimport com.pulumi.azure.arcmachine.ExtensionArgs;\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 exampleResourceGroup = new ResourceGroup(\"exampleResourceGroup\", ResourceGroupArgs.builder()\n .name(\"example\")\n .location(\"West Europe\")\n .build());\n\n final var example = ArcmachineFunctions.get(GetArgs.builder()\n .name(\"existing-hcmachine\")\n .resourceGroupName(exampleResourceGroup.name())\n .build());\n\n var exampleExtension = new Extension(\"exampleExtension\", ExtensionArgs.builder()\n .name(\"example\")\n .location(\"West Europe\")\n .arcMachineId(example.applyValue(getResult -\u003e getResult).applyValue(example -\u003e example.applyValue(getResult -\u003e getResult.id())))\n .publisher(\"Microsoft.Azure.Monitor\")\n .type(\"AzureMonitorLinuxAgent\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleResourceGroup:\n type: azure:core:ResourceGroup\n name: example\n properties:\n name: example\n location: West Europe\n exampleExtension:\n type: azure:arcmachine:Extension\n name: example\n properties:\n name: example\n location: West Europe\n arcMachineId: ${example.id}\n publisher: Microsoft.Azure.Monitor\n type: AzureMonitorLinuxAgent\nvariables:\n example:\n fn::invoke:\n Function: azure:arcmachine:get\n Arguments:\n name: existing-hcmachine\n resourceGroupName: ${exampleResourceGroup.name}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nHybrid Compute Machine Extensions can be imported using the `resource id`, e.g.\n\n```sh\n$ pulumi import azure:arcmachine/extension:Extension example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.HybridCompute/machines/hcmachine1/extensions/ext1\n```\n\n", "properties": { @@ -172416,6 +172485,10 @@ "azure:dataprotection/backupVault:BackupVault": { "description": "Manages a Backup Vault.\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 exampleBackupVault = new azure.dataprotection.BackupVault(\"example\", {\n name: \"example-backup-vault\",\n resourceGroupName: example.name,\n location: example.location,\n datastoreType: \"VaultStore\",\n redundancy: \"LocallyRedundant\",\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_backup_vault = azure.dataprotection.BackupVault(\"example\",\n name=\"example-backup-vault\",\n resource_group_name=example.name,\n location=example.location,\n datastore_type=\"VaultStore\",\n redundancy=\"LocallyRedundant\")\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 exampleBackupVault = new Azure.DataProtection.BackupVault(\"example\", new()\n {\n Name = \"example-backup-vault\",\n ResourceGroupName = example.Name,\n Location = example.Location,\n DatastoreType = \"VaultStore\",\n Redundancy = \"LocallyRedundant\",\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/dataprotection\"\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 = dataprotection.NewBackupVault(ctx, \"example\", \u0026dataprotection.BackupVaultArgs{\n\t\t\tName: pulumi.String(\"example-backup-vault\"),\n\t\t\tResourceGroupName: example.Name,\n\t\t\tLocation: example.Location,\n\t\t\tDatastoreType: pulumi.String(\"VaultStore\"),\n\t\t\tRedundancy: pulumi.String(\"LocallyRedundant\"),\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.dataprotection.BackupVault;\nimport com.pulumi.azure.dataprotection.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 exampleBackupVault = new BackupVault(\"exampleBackupVault\", BackupVaultArgs.builder()\n .name(\"example-backup-vault\")\n .resourceGroupName(example.name())\n .location(example.location())\n .datastoreType(\"VaultStore\")\n .redundancy(\"LocallyRedundant\")\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 exampleBackupVault:\n type: azure:dataprotection:BackupVault\n name: example\n properties:\n name: example-backup-vault\n resourceGroupName: ${example.name}\n location: ${example.location}\n datastoreType: VaultStore\n redundancy: LocallyRedundant\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nBackup Vaults can be imported using the `resource id`, e.g.\n\n```sh\n$ pulumi import azure:dataprotection/backupVault:BackupVault example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.DataProtection/backupVaults/vault1\n```\n\n", "properties": { + "crossRegionRestoreEnabled": { + "type": "boolean", + "description": "Whether to enable cross-region restore for the Backup Vault.\n\n\u003e **Note:** The `cross_region_restore_enabled` can only be specified when `redundancy` is specified for `GeoRedundant`. Once `cross_region_restore_enabled` is enabled, it cannot be disabled.\n" + }, "datastoreType": { "type": "string", "description": "Specifies the type of the data store. Possible values are `ArchiveStore`, `OperationalStore`, `SnapshotStore` and `VaultStore`. Changing this forces a new resource to be created.\n\n\u003e **Note:** The `SnapshotStore` will be removed in version 4.0 as it has been replaced by `OperationalStore`.\n" @@ -172464,6 +172537,10 @@ "resourceGroupName" ], "inputProperties": { + "crossRegionRestoreEnabled": { + "type": "boolean", + "description": "Whether to enable cross-region restore for the Backup Vault.\n\n\u003e **Note:** The `cross_region_restore_enabled` can only be specified when `redundancy` is specified for `GeoRedundant`. Once `cross_region_restore_enabled` is enabled, it cannot be disabled.\n" + }, "datastoreType": { "type": "string", "description": "Specifies the type of the data store. Possible values are `ArchiveStore`, `OperationalStore`, `SnapshotStore` and `VaultStore`. Changing this forces a new resource to be created.\n\n\u003e **Note:** The `SnapshotStore` will be removed in version 4.0 as it has been replaced by `OperationalStore`.\n", @@ -172517,6 +172594,10 @@ "stateInputs": { "description": "Input properties used for looking up and filtering BackupVault resources.\n", "properties": { + "crossRegionRestoreEnabled": { + "type": "boolean", + "description": "Whether to enable cross-region restore for the Backup Vault.\n\n\u003e **Note:** The `cross_region_restore_enabled` can only be specified when `redundancy` is specified for `GeoRedundant`. Once `cross_region_restore_enabled` is enabled, it cannot be disabled.\n" + }, "datastoreType": { "type": "string", "description": "Specifies the type of the data store. Possible values are `ArchiveStore`, `OperationalStore`, `SnapshotStore` and `VaultStore`. Changing this forces a new resource to be created.\n\n\u003e **Note:** The `SnapshotStore` will be removed in version 4.0 as it has been replaced by `OperationalStore`.\n", @@ -183360,7 +183441,7 @@ "properties": { "autoDeleteOnIdle": { "type": "string", - "description": "The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. Defaults to `P10675199DT2H48M5.4775807S`.\n" + "description": "The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes.\n" }, "batchedOperationsEnabled": { "type": "boolean", @@ -183372,7 +183453,7 @@ }, "defaultMessageTtl": { "type": "string", - "description": "The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. Defaults to `P10675199DT2H48M5.4775807S`.\n" + "description": "The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself.\n" }, "duplicateDetectionHistoryTimeWindow": { "type": "string", @@ -183400,11 +183481,11 @@ }, "maxMessageSizeInKilobytes": { "type": "integer", - "description": "Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the \"Large messages support\" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). Defaults to `256`.\n" + "description": "Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the \"Large messages support\" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview).\n" }, "maxSizeInMegabytes": { "type": "integer", - "description": "Integer value which controls the size of memory allocated for the queue. For supported values see the \"Queue or topic size\" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). Defaults to `5120`.\n" + "description": "Integer value which controls the size of memory allocated for the queue. For supported values see the \"Queue or topic size\" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas).\n" }, "name": { "type": "string", @@ -183438,6 +183519,8 @@ } }, "required": [ + "autoDeleteOnIdle", + "defaultMessageTtl", "maxMessageSizeInKilobytes", "maxSizeInMegabytes", "name", @@ -183448,7 +183531,7 @@ "inputProperties": { "autoDeleteOnIdle": { "type": "string", - "description": "The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. Defaults to `P10675199DT2H48M5.4775807S`.\n" + "description": "The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes.\n" }, "batchedOperationsEnabled": { "type": "boolean", @@ -183460,7 +183543,7 @@ }, "defaultMessageTtl": { "type": "string", - "description": "The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. Defaults to `P10675199DT2H48M5.4775807S`.\n" + "description": "The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself.\n" }, "duplicateDetectionHistoryTimeWindow": { "type": "string", @@ -183488,11 +183571,11 @@ }, "maxMessageSizeInKilobytes": { "type": "integer", - "description": "Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the \"Large messages support\" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). Defaults to `256`.\n" + "description": "Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the \"Large messages support\" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview).\n" }, "maxSizeInMegabytes": { "type": "integer", - "description": "Integer value which controls the size of memory allocated for the queue. For supported values see the \"Queue or topic size\" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). Defaults to `5120`.\n" + "description": "Integer value which controls the size of memory allocated for the queue. For supported values see the \"Queue or topic size\" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas).\n" }, "name": { "type": "string", @@ -183532,7 +183615,7 @@ "properties": { "autoDeleteOnIdle": { "type": "string", - "description": "The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. Defaults to `P10675199DT2H48M5.4775807S`.\n" + "description": "The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes.\n" }, "batchedOperationsEnabled": { "type": "boolean", @@ -183544,7 +183627,7 @@ }, "defaultMessageTtl": { "type": "string", - "description": "The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. Defaults to `P10675199DT2H48M5.4775807S`.\n" + "description": "The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself.\n" }, "duplicateDetectionHistoryTimeWindow": { "type": "string", @@ -183572,11 +183655,11 @@ }, "maxMessageSizeInKilobytes": { "type": "integer", - "description": "Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the \"Large messages support\" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). Defaults to `256`.\n" + "description": "Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the \"Large messages support\" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview).\n" }, "maxSizeInMegabytes": { "type": "integer", - "description": "Integer value which controls the size of memory allocated for the queue. For supported values see the \"Queue or topic size\" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). Defaults to `5120`.\n" + "description": "Integer value which controls the size of memory allocated for the queue. For supported values see the \"Queue or topic size\" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas).\n" }, "name": { "type": "string", @@ -205971,96 +206054,6 @@ "type": "object" } }, - "azure:media/accountFilter:AccountFilter": { - "properties": { - "firstQualityBitrate": { - "type": "integer" - }, - "mediaServicesAccountName": { - "type": "string" - }, - "name": { - "type": "string" - }, - "presentationTimeRange": { - "$ref": "#/types/azure:media/AccountFilterPresentationTimeRange:AccountFilterPresentationTimeRange" - }, - "resourceGroupName": { - "type": "string" - }, - "trackSelections": { - "type": "array", - "items": { - "$ref": "#/types/azure:media/AccountFilterTrackSelection:AccountFilterTrackSelection" - } - } - }, - "required": [ - "mediaServicesAccountName", - "name", - "resourceGroupName" - ], - "inputProperties": { - "firstQualityBitrate": { - "type": "integer" - }, - "mediaServicesAccountName": { - "type": "string", - "willReplaceOnChanges": true - }, - "name": { - "type": "string", - "willReplaceOnChanges": true - }, - "presentationTimeRange": { - "$ref": "#/types/azure:media/AccountFilterPresentationTimeRange:AccountFilterPresentationTimeRange" - }, - "resourceGroupName": { - "type": "string", - "willReplaceOnChanges": true - }, - "trackSelections": { - "type": "array", - "items": { - "$ref": "#/types/azure:media/AccountFilterTrackSelection:AccountFilterTrackSelection" - } - } - }, - "requiredInputs": [ - "mediaServicesAccountName", - "resourceGroupName" - ], - "stateInputs": { - "description": "Input properties used for looking up and filtering AccountFilter resources.\n", - "properties": { - "firstQualityBitrate": { - "type": "integer" - }, - "mediaServicesAccountName": { - "type": "string", - "willReplaceOnChanges": true - }, - "name": { - "type": "string", - "willReplaceOnChanges": true - }, - "presentationTimeRange": { - "$ref": "#/types/azure:media/AccountFilterPresentationTimeRange:AccountFilterPresentationTimeRange" - }, - "resourceGroupName": { - "type": "string", - "willReplaceOnChanges": true - }, - "trackSelections": { - "type": "array", - "items": { - "$ref": "#/types/azure:media/AccountFilterTrackSelection:AccountFilterTrackSelection" - } - } - }, - "type": "object" - } - }, "azure:mixedreality/spatialAnchorsAccount:SpatialAnchorsAccount": { "description": "Manages an Azure Spatial Anchors Account.\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 exampleSpatialAnchorsAccount = new azure.mixedreality.SpatialAnchorsAccount(\"example\", {\n name: \"example\",\n location: example.location,\n resourceGroupName: example.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_spatial_anchors_account = azure.mixedreality.SpatialAnchorsAccount(\"example\",\n name=\"example\",\n location=example.location,\n resource_group_name=example.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 exampleSpatialAnchorsAccount = new Azure.MixedReality.SpatialAnchorsAccount(\"example\", new()\n {\n Name = \"example\",\n Location = example.Location,\n ResourceGroupName = example.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/mixedreality\"\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 = mixedreality.NewSpatialAnchorsAccount(ctx, \"example\", \u0026mixedreality.SpatialAnchorsAccountArgs{\n\t\t\tName: pulumi.String(\"example\"),\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\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.mixedreality.SpatialAnchorsAccount;\nimport com.pulumi.azure.mixedreality.SpatialAnchorsAccountArgs;\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 exampleSpatialAnchorsAccount = new SpatialAnchorsAccount(\"exampleSpatialAnchorsAccount\", SpatialAnchorsAccountArgs.builder()\n .name(\"example\")\n .location(example.location())\n .resourceGroupName(example.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 exampleSpatialAnchorsAccount:\n type: azure:mixedreality:SpatialAnchorsAccount\n name: example\n properties:\n name: example\n location: ${example.location}\n resourceGroupName: ${example.name}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nSpatial Anchors Account can be imported using the `resource id`, e.g.\n\n```sh\n$ pulumi import azure:mixedreality/spatialAnchorsAccount:SpatialAnchorsAccount example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example/providers/Microsoft.MixedReality/spatialAnchorsAccounts/example\n```\n\n", "properties": { @@ -212692,6 +212685,10 @@ "type": "string", "description": "The name of the resource group in which to create the SQL Managed Instance. Changing this forces a new resource to be created.\n" }, + "servicePrincipalType": { + "type": "string", + "description": "The service principal type. The only possible value is `SystemAssigned`.\n" + }, "skuName": { "type": "string", "description": "Specifies the SKU Name for the SQL Managed Instance. Valid values include `GP_Gen4`, `GP_Gen5`, `GP_Gen8IM`, `GP_Gen8IH`, `BC_Gen4`, `BC_Gen5`, `BC_Gen8IM` or `BC_Gen8IH`.\n" @@ -212801,6 +212798,10 @@ "description": "The name of the resource group in which to create the SQL Managed Instance. Changing this forces a new resource to be created.\n", "willReplaceOnChanges": true }, + "servicePrincipalType": { + "type": "string", + "description": "The service principal type. The only possible value is `SystemAssigned`.\n" + }, "skuName": { "type": "string", "description": "Specifies the SKU Name for the SQL Managed Instance. Valid values include `GP_Gen4`, `GP_Gen5`, `GP_Gen8IM`, `GP_Gen8IH`, `BC_Gen4`, `BC_Gen5`, `BC_Gen8IM` or `BC_Gen8IH`.\n" @@ -212919,6 +212920,10 @@ "description": "The name of the resource group in which to create the SQL Managed Instance. Changing this forces a new resource to be created.\n", "willReplaceOnChanges": true }, + "servicePrincipalType": { + "type": "string", + "description": "The service principal type. The only possible value is `SystemAssigned`.\n" + }, "skuName": { "type": "string", "description": "Specifies the SKU Name for the SQL Managed Instance. Valid values include `GP_Gen4`, `GP_Gen5`, `GP_Gen8IM`, `GP_Gen8IH`, `BC_Gen4`, `BC_Gen5`, `BC_Gen8IM` or `BC_Gen8IH`.\n" @@ -246507,7 +246512,7 @@ "properties": { "autoDeleteOnIdle": { "type": "string", - "description": "The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. Defaults to `P10675199DT2H48M5.4775807S`.\n" + "description": "The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes.\n" }, "batchedOperationsEnabled": { "type": "boolean", @@ -246519,7 +246524,7 @@ }, "defaultMessageTtl": { "type": "string", - "description": "The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. Defaults to `P10675199DT2H48M5.4775807S`.\n" + "description": "The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself.\n" }, "duplicateDetectionHistoryTimeWindow": { "type": "string", @@ -246547,11 +246552,11 @@ }, "maxMessageSizeInKilobytes": { "type": "integer", - "description": "Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the \"Large messages support\" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). Defaults to `256`.\n" + "description": "Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the \"Large messages support\" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview).\n" }, "maxSizeInMegabytes": { "type": "integer", - "description": "Integer value which controls the size of memory allocated for the queue. For supported values see the \"Queue or topic size\" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). Defaults to `5120`.\n" + "description": "Integer value which controls the size of memory allocated for the queue. For supported values see the \"Queue or topic size\" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas).\n" }, "name": { "type": "string", @@ -246585,6 +246590,8 @@ } }, "required": [ + "autoDeleteOnIdle", + "defaultMessageTtl", "maxMessageSizeInKilobytes", "maxSizeInMegabytes", "name", @@ -246595,7 +246602,7 @@ "inputProperties": { "autoDeleteOnIdle": { "type": "string", - "description": "The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. Defaults to `P10675199DT2H48M5.4775807S`.\n" + "description": "The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes.\n" }, "batchedOperationsEnabled": { "type": "boolean", @@ -246607,7 +246614,7 @@ }, "defaultMessageTtl": { "type": "string", - "description": "The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. Defaults to `P10675199DT2H48M5.4775807S`.\n" + "description": "The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself.\n" }, "duplicateDetectionHistoryTimeWindow": { "type": "string", @@ -246635,11 +246642,11 @@ }, "maxMessageSizeInKilobytes": { "type": "integer", - "description": "Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the \"Large messages support\" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). Defaults to `256`.\n" + "description": "Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the \"Large messages support\" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview).\n" }, "maxSizeInMegabytes": { "type": "integer", - "description": "Integer value which controls the size of memory allocated for the queue. For supported values see the \"Queue or topic size\" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). Defaults to `5120`.\n" + "description": "Integer value which controls the size of memory allocated for the queue. For supported values see the \"Queue or topic size\" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas).\n" }, "name": { "type": "string", @@ -246679,7 +246686,7 @@ "properties": { "autoDeleteOnIdle": { "type": "string", - "description": "The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. Defaults to `P10675199DT2H48M5.4775807S`.\n" + "description": "The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes.\n" }, "batchedOperationsEnabled": { "type": "boolean", @@ -246691,7 +246698,7 @@ }, "defaultMessageTtl": { "type": "string", - "description": "The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. Defaults to `P10675199DT2H48M5.4775807S`.\n" + "description": "The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself.\n" }, "duplicateDetectionHistoryTimeWindow": { "type": "string", @@ -246719,11 +246726,11 @@ }, "maxMessageSizeInKilobytes": { "type": "integer", - "description": "Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the \"Large messages support\" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). Defaults to `256`.\n" + "description": "Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the \"Large messages support\" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview).\n" }, "maxSizeInMegabytes": { "type": "integer", - "description": "Integer value which controls the size of memory allocated for the queue. For supported values see the \"Queue or topic size\" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). Defaults to `5120`.\n" + "description": "Integer value which controls the size of memory allocated for the queue. For supported values see the \"Queue or topic size\" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas).\n" }, "name": { "type": "string", diff --git a/provider/resources.go b/provider/resources.go index fd0b101d20..fdf204ffa8 100644 --- a/provider/resources.go +++ b/provider/resources.go @@ -138,7 +138,6 @@ const ( azureMaps = "Maps" // Maps azureMarketPlace = "Marketplace" // Marketplace azureMediaServices = "MediaServices" // Media Services - azureMedia = "Media" // Media azureMixedReality = "MixedReality" // Mixed Reality azureMonitoring = "Monitoring" // Metrics/monitoring resources azureMobile = "Mobile" // Mobile @@ -301,7 +300,6 @@ var moduleMap = map[string]string{ "maps": azureMaps, "marketplace": azureMarketPlace, "media_services": azureMediaServices, - "media": azureMedia, // Ignored: azureMixedReality. The only token is "azurerm_spatial_anchors_account". "monitor": azureMonitoring, "mobile": azureMobile, @@ -1561,9 +1559,6 @@ func Provider() tfbridge.ProviderInfo { "azurerm_maps_account": {Tok: azureResource(azureMaps, "Account")}, "azurerm_maps_creator": {Tok: azureResource(azureMaps, "Creator")}, - // Media - "azurerm_media_services_account_filter": {Tok: azureResource(azureMedia, "AccountFilter"), Docs: &info.Doc{AllowMissing: true}}, - // Monitoring resources "azurerm_monitor_action_group": { Tok: azureResource(azureMonitoring, "ActionGroup"), diff --git a/sdk/dotnet/ArcMachine/ArcMachine.cs b/sdk/dotnet/ArcMachine/ArcMachine.cs new file mode 100644 index 0000000000..d55f36ce30 --- /dev/null +++ b/sdk/dotnet/ArcMachine/ArcMachine.cs @@ -0,0 +1,184 @@ +// *** 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.ArcMachine +{ + /// + /// Manages a Hybrid Compute Machine. + /// + /// ## Example 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 exampleArcMachine = new Azure.ArcMachine.ArcMachine("example", new() + /// { + /// Name = "example-arcmachine", + /// ResourceGroupName = example.Name, + /// Location = example.Location, + /// Kind = "SCVMM", + /// }); + /// + /// }); + /// ``` + /// + /// ## Import + /// + /// Arc Machines can be imported using the `resource id`, e.g. + /// + /// ```sh + /// $ pulumi import azure:arcmachine/arcMachine:ArcMachine example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.HybridCompute/machines/machine1 + /// ``` + /// + [AzureResourceType("azure:arcmachine/arcMachine:ArcMachine")] + public partial class ArcMachine : global::Pulumi.CustomResource + { + /// + /// The kind of the Arc Machine. Possible values are `AVS`, `AWS`, `EPS`, `GCP`, `HCI`, `SCVMM` and `VMware`. Changing this forces a new resource to be created. + /// + [Output("kind")] + public Output Kind { get; private set; } = null!; + + /// + /// The Azure Region where the Arc Machine should exist. Changing this forces a new resource to be created. + /// + [Output("location")] + public Output Location { get; private set; } = null!; + + /// + /// The name of the Arc machine. 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 Arc Machine should exist. Changing this forces a new resource to be created. + /// + [Output("resourceGroupName")] + public Output ResourceGroupName { get; private set; } = null!; + + + /// + /// Create a ArcMachine 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 ArcMachine(string name, ArcMachineArgs args, CustomResourceOptions? options = null) + : base("azure:arcmachine/arcMachine:ArcMachine", name, args ?? new ArcMachineArgs(), MakeResourceOptions(options, "")) + { + } + + private ArcMachine(string name, Input id, ArcMachineState? state = null, CustomResourceOptions? options = null) + : base("azure:arcmachine/arcMachine:ArcMachine", 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 ArcMachine 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 ArcMachine Get(string name, Input id, ArcMachineState? state = null, CustomResourceOptions? options = null) + { + return new ArcMachine(name, id, state, options); + } + } + + public sealed class ArcMachineArgs : global::Pulumi.ResourceArgs + { + /// + /// The kind of the Arc Machine. Possible values are `AVS`, `AWS`, `EPS`, `GCP`, `HCI`, `SCVMM` and `VMware`. Changing this forces a new resource to be created. + /// + [Input("kind", required: true)] + public Input Kind { get; set; } = null!; + + /// + /// The Azure Region where the Arc Machine should exist. Changing this forces a new resource to be created. + /// + [Input("location")] + public Input? Location { get; set; } + + /// + /// The name of the Arc machine. Changing this forces a new resource to be created. + /// + [Input("name")] + public Input? Name { get; set; } + + /// + /// The name of the Resource Group where the Arc Machine should exist. Changing this forces a new resource to be created. + /// + [Input("resourceGroupName", required: true)] + public Input ResourceGroupName { get; set; } = null!; + + public ArcMachineArgs() + { + } + public static new ArcMachineArgs Empty => new ArcMachineArgs(); + } + + public sealed class ArcMachineState : global::Pulumi.ResourceArgs + { + /// + /// The kind of the Arc Machine. Possible values are `AVS`, `AWS`, `EPS`, `GCP`, `HCI`, `SCVMM` and `VMware`. Changing this forces a new resource to be created. + /// + [Input("kind")] + public Input? Kind { get; set; } + + /// + /// The Azure Region where the Arc Machine should exist. Changing this forces a new resource to be created. + /// + [Input("location")] + public Input? Location { get; set; } + + /// + /// The name of the Arc machine. Changing this forces a new resource to be created. + /// + [Input("name")] + public Input? Name { get; set; } + + /// + /// The name of the Resource Group where the Arc Machine should exist. Changing this forces a new resource to be created. + /// + [Input("resourceGroupName")] + public Input? ResourceGroupName { get; set; } + + public ArcMachineState() + { + } + public static new ArcMachineState Empty => new ArcMachineState(); + } +} diff --git a/sdk/dotnet/ArcMachine/AutomanageConfigurationAssignment.cs b/sdk/dotnet/ArcMachine/AutomanageConfigurationAssignment.cs new file mode 100644 index 0000000000..50114a2aa4 --- /dev/null +++ b/sdk/dotnet/ArcMachine/AutomanageConfigurationAssignment.cs @@ -0,0 +1,168 @@ +// *** 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.ArcMachine +{ + /// + /// Manages an Arc Machine Automanage Configuration Profile Assignment. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Azure = Pulumi.Azure; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var config = new Config(); + /// // The name of the Arc Machine. + /// var arcMachineName = config.RequireObject<dynamic>("arcMachineName"); + /// var exampleResourceGroup = new Azure.Core.ResourceGroup("example", new() + /// { + /// Name = "example-resources", + /// Location = "West Europe", + /// }); + /// + /// var example = Azure.ArcMachine.Get.Invoke(new() + /// { + /// Name = arcMachineName, + /// ResourceGroupName = exampleResourceGroup.Name, + /// }); + /// + /// var exampleConfiguration = new Azure.Automanage.Configuration("example", new() + /// { + /// Name = "example-configuration", + /// ResourceGroupName = exampleResourceGroup.Name, + /// Location = exampleResourceGroup.Location, + /// }); + /// + /// var exampleAutomanageConfigurationAssignment = new Azure.ArcMachine.AutomanageConfigurationAssignment("example", new() + /// { + /// ArcMachineId = example.Apply(getResult => getResult.Id), + /// ConfigurationId = exampleConfiguration.Id, + /// }); + /// + /// }); + /// ``` + /// + /// ## Import + /// + /// Virtual Machine Automanage Configuration Profile Assignment can be imported using the `resource id`, e.g. + /// + /// ```sh + /// $ pulumi import azure:arcmachine/automanageConfigurationAssignment:AutomanageConfigurationAssignment example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.HybridCompute/Microsoft.HybridCompute/machines/machine1/providers/Microsoft.AutoManage/configurationProfileAssignments/default + /// ``` + /// + [AzureResourceType("azure:arcmachine/automanageConfigurationAssignment:AutomanageConfigurationAssignment")] + public partial class AutomanageConfigurationAssignment : global::Pulumi.CustomResource + { + /// + /// The ARM resource ID of the Arc Machine to assign the Automanage Configuration to. Changing this forces a new resource to be created. + /// + [Output("arcMachineId")] + public Output ArcMachineId { get; private set; } = null!; + + /// + /// The ARM resource ID of the Automanage Configuration to assign to the Virtual Machine. Changing this forces a new resource to be created. + /// + /// > **NOTE:** For a successful creation of this resource, locate "Automanage API Access" app within your Entra ID tenant. Make sure it's granted access to the scope that includes the arc server. + /// + [Output("configurationId")] + public Output ConfigurationId { get; private set; } = null!; + + + /// + /// Create a AutomanageConfigurationAssignment 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 AutomanageConfigurationAssignment(string name, AutomanageConfigurationAssignmentArgs args, CustomResourceOptions? options = null) + : base("azure:arcmachine/automanageConfigurationAssignment:AutomanageConfigurationAssignment", name, args ?? new AutomanageConfigurationAssignmentArgs(), MakeResourceOptions(options, "")) + { + } + + private AutomanageConfigurationAssignment(string name, Input id, AutomanageConfigurationAssignmentState? state = null, CustomResourceOptions? options = null) + : base("azure:arcmachine/automanageConfigurationAssignment:AutomanageConfigurationAssignment", 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 AutomanageConfigurationAssignment 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 AutomanageConfigurationAssignment Get(string name, Input id, AutomanageConfigurationAssignmentState? state = null, CustomResourceOptions? options = null) + { + return new AutomanageConfigurationAssignment(name, id, state, options); + } + } + + public sealed class AutomanageConfigurationAssignmentArgs : global::Pulumi.ResourceArgs + { + /// + /// The ARM resource ID of the Arc Machine to assign the Automanage Configuration to. Changing this forces a new resource to be created. + /// + [Input("arcMachineId", required: true)] + public Input ArcMachineId { get; set; } = null!; + + /// + /// The ARM resource ID of the Automanage Configuration to assign to the Virtual Machine. Changing this forces a new resource to be created. + /// + /// > **NOTE:** For a successful creation of this resource, locate "Automanage API Access" app within your Entra ID tenant. Make sure it's granted access to the scope that includes the arc server. + /// + [Input("configurationId", required: true)] + public Input ConfigurationId { get; set; } = null!; + + public AutomanageConfigurationAssignmentArgs() + { + } + public static new AutomanageConfigurationAssignmentArgs Empty => new AutomanageConfigurationAssignmentArgs(); + } + + public sealed class AutomanageConfigurationAssignmentState : global::Pulumi.ResourceArgs + { + /// + /// The ARM resource ID of the Arc Machine to assign the Automanage Configuration to. Changing this forces a new resource to be created. + /// + [Input("arcMachineId")] + public Input? ArcMachineId { get; set; } + + /// + /// The ARM resource ID of the Automanage Configuration to assign to the Virtual Machine. Changing this forces a new resource to be created. + /// + /// > **NOTE:** For a successful creation of this resource, locate "Automanage API Access" app within your Entra ID tenant. Make sure it's granted access to the scope that includes the arc server. + /// + [Input("configurationId")] + public Input? ConfigurationId { get; set; } + + public AutomanageConfigurationAssignmentState() + { + } + public static new AutomanageConfigurationAssignmentState Empty => new AutomanageConfigurationAssignmentState(); + } +} diff --git a/sdk/dotnet/DataProtection/BackupVault.cs b/sdk/dotnet/DataProtection/BackupVault.cs index c2814e2a5a..e399126176 100644 --- a/sdk/dotnet/DataProtection/BackupVault.cs +++ b/sdk/dotnet/DataProtection/BackupVault.cs @@ -51,6 +51,14 @@ namespace Pulumi.Azure.DataProtection [AzureResourceType("azure:dataprotection/backupVault:BackupVault")] public partial class BackupVault : global::Pulumi.CustomResource { + /// + /// Whether to enable cross-region restore for the Backup Vault. + /// + /// > **Note:** The `cross_region_restore_enabled` can only be specified when `redundancy` is specified for `GeoRedundant`. Once `cross_region_restore_enabled` is enabled, it cannot be disabled. + /// + [Output("crossRegionRestoreEnabled")] + public Output CrossRegionRestoreEnabled { get; private set; } = null!; + /// /// Specifies the type of the data store. Possible values are `ArchiveStore`, `OperationalStore`, `SnapshotStore` and `VaultStore`. Changing this forces a new resource to be created. /// @@ -157,6 +165,14 @@ public static BackupVault Get(string name, Input id, BackupVaultState? s public sealed class BackupVaultArgs : global::Pulumi.ResourceArgs { + /// + /// Whether to enable cross-region restore for the Backup Vault. + /// + /// > **Note:** The `cross_region_restore_enabled` can only be specified when `redundancy` is specified for `GeoRedundant`. Once `cross_region_restore_enabled` is enabled, it cannot be disabled. + /// + [Input("crossRegionRestoreEnabled")] + public Input? CrossRegionRestoreEnabled { get; set; } + /// /// Specifies the type of the data store. Possible values are `ArchiveStore`, `OperationalStore`, `SnapshotStore` and `VaultStore`. Changing this forces a new resource to be created. /// @@ -231,6 +247,14 @@ public BackupVaultArgs() public sealed class BackupVaultState : global::Pulumi.ResourceArgs { + /// + /// Whether to enable cross-region restore for the Backup Vault. + /// + /// > **Note:** The `cross_region_restore_enabled` can only be specified when `redundancy` is specified for `GeoRedundant`. Once `cross_region_restore_enabled` is enabled, it cannot be disabled. + /// + [Input("crossRegionRestoreEnabled")] + public Input? CrossRegionRestoreEnabled { get; set; } + /// /// Specifies the type of the data store. Possible values are `ArchiveStore`, `OperationalStore`, `SnapshotStore` and `VaultStore`. Changing this forces a new resource to be created. /// diff --git a/sdk/dotnet/EventHub/Queue.cs b/sdk/dotnet/EventHub/Queue.cs index 2c732d5746..a7b7a7f232 100644 --- a/sdk/dotnet/EventHub/Queue.cs +++ b/sdk/dotnet/EventHub/Queue.cs @@ -63,10 +63,10 @@ namespace Pulumi.Azure.EventHub public partial class Queue : global::Pulumi.CustomResource { /// - /// The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. Defaults to `P10675199DT2H48M5.4775807S`. + /// The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. /// [Output("autoDeleteOnIdle")] - public Output AutoDeleteOnIdle { get; private set; } = null!; + public Output AutoDeleteOnIdle { get; private set; } = null!; /// /// Boolean flag which controls whether server-side batched operations are enabled. Defaults to `true`. @@ -81,10 +81,10 @@ public partial class Queue : global::Pulumi.CustomResource public Output DeadLetteringOnMessageExpiration { get; private set; } = null!; /// - /// The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. Defaults to `P10675199DT2H48M5.4775807S`. + /// The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. /// [Output("defaultMessageTtl")] - public Output DefaultMessageTtl { get; private set; } = null!; + public Output DefaultMessageTtl { get; private set; } = null!; /// /// The ISO 8601 timespan duration during which duplicates can be detected. Defaults to `PT10M` (10 Minutes). @@ -125,13 +125,13 @@ public partial class Queue : global::Pulumi.CustomResource public Output MaxDeliveryCount { get; private set; } = null!; /// - /// Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). Defaults to `256`. + /// Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). /// [Output("maxMessageSizeInKilobytes")] public Output MaxMessageSizeInKilobytes { get; private set; } = null!; /// - /// Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). Defaults to `5120`. + /// Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). /// [Output("maxSizeInMegabytes")] public Output MaxSizeInMegabytes { get; private set; } = null!; @@ -227,7 +227,7 @@ public static Queue Get(string name, Input id, QueueState? state = null, public sealed class QueueArgs : global::Pulumi.ResourceArgs { /// - /// The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. Defaults to `P10675199DT2H48M5.4775807S`. + /// The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. /// [Input("autoDeleteOnIdle")] public Input? AutoDeleteOnIdle { get; set; } @@ -245,7 +245,7 @@ public sealed class QueueArgs : global::Pulumi.ResourceArgs public Input? DeadLetteringOnMessageExpiration { get; set; } /// - /// The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. Defaults to `P10675199DT2H48M5.4775807S`. + /// The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. /// [Input("defaultMessageTtl")] public Input? DefaultMessageTtl { get; set; } @@ -289,13 +289,13 @@ public sealed class QueueArgs : global::Pulumi.ResourceArgs public Input? MaxDeliveryCount { get; set; } /// - /// Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). Defaults to `256`. + /// Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). /// [Input("maxMessageSizeInKilobytes")] public Input? MaxMessageSizeInKilobytes { get; set; } /// - /// Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). Defaults to `5120`. + /// Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). /// [Input("maxSizeInMegabytes")] public Input? MaxSizeInMegabytes { get; set; } @@ -347,7 +347,7 @@ public QueueArgs() public sealed class QueueState : global::Pulumi.ResourceArgs { /// - /// The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. Defaults to `P10675199DT2H48M5.4775807S`. + /// The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. /// [Input("autoDeleteOnIdle")] public Input? AutoDeleteOnIdle { get; set; } @@ -365,7 +365,7 @@ public sealed class QueueState : global::Pulumi.ResourceArgs public Input? DeadLetteringOnMessageExpiration { get; set; } /// - /// The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. Defaults to `P10675199DT2H48M5.4775807S`. + /// The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. /// [Input("defaultMessageTtl")] public Input? DefaultMessageTtl { get; set; } @@ -409,13 +409,13 @@ public sealed class QueueState : global::Pulumi.ResourceArgs public Input? MaxDeliveryCount { get; set; } /// - /// Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). Defaults to `256`. + /// Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). /// [Input("maxMessageSizeInKilobytes")] public Input? MaxMessageSizeInKilobytes { get; set; } /// - /// Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). Defaults to `5120`. + /// Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). /// [Input("maxSizeInMegabytes")] public Input? MaxSizeInMegabytes { get; set; } diff --git a/sdk/dotnet/MSSql/ManagedInstance.cs b/sdk/dotnet/MSSql/ManagedInstance.cs index df9469c3df..3c723b05c1 100644 --- a/sdk/dotnet/MSSql/ManagedInstance.cs +++ b/sdk/dotnet/MSSql/ManagedInstance.cs @@ -115,6 +115,12 @@ public partial class ManagedInstance : global::Pulumi.CustomResource [Output("resourceGroupName")] public Output ResourceGroupName { get; private set; } = null!; + /// + /// The service principal type. The only possible value is `SystemAssigned`. + /// + [Output("servicePrincipalType")] + public Output ServicePrincipalType { get; private set; } = null!; + /// /// Specifies the SKU Name for the SQL Managed Instance. Valid values include `GP_Gen4`, `GP_Gen5`, `GP_Gen8IM`, `GP_Gen8IH`, `BC_Gen4`, `BC_Gen5`, `BC_Gen8IM` or `BC_Gen8IH`. /// @@ -305,6 +311,12 @@ public Input? AdministratorLoginPassword [Input("resourceGroupName", required: true)] public Input ResourceGroupName { get; set; } = null!; + /// + /// The service principal type. The only possible value is `SystemAssigned`. + /// + [Input("servicePrincipalType")] + public Input? ServicePrincipalType { get; set; } + /// /// Specifies the SKU Name for the SQL Managed Instance. Valid values include `GP_Gen4`, `GP_Gen5`, `GP_Gen8IM`, `GP_Gen8IH`, `BC_Gen4`, `BC_Gen5`, `BC_Gen8IM` or `BC_Gen8IH`. /// @@ -467,6 +479,12 @@ public Input? AdministratorLoginPassword [Input("resourceGroupName")] public Input? ResourceGroupName { get; set; } + /// + /// The service principal type. The only possible value is `SystemAssigned`. + /// + [Input("servicePrincipalType")] + public Input? ServicePrincipalType { get; set; } + /// /// Specifies the SKU Name for the SQL Managed Instance. Valid values include `GP_Gen4`, `GP_Gen5`, `GP_Gen8IM`, `GP_Gen8IH`, `BC_Gen4`, `BC_Gen5`, `BC_Gen8IM` or `BC_Gen8IH`. /// diff --git a/sdk/dotnet/Media/AccountFilter.cs b/sdk/dotnet/Media/AccountFilter.cs deleted file mode 100644 index 82fed009cb..0000000000 --- a/sdk/dotnet/Media/AccountFilter.cs +++ /dev/null @@ -1,138 +0,0 @@ -// *** 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.Media -{ - [AzureResourceType("azure:media/accountFilter:AccountFilter")] - public partial class AccountFilter : global::Pulumi.CustomResource - { - [Output("firstQualityBitrate")] - public Output FirstQualityBitrate { get; private set; } = null!; - - [Output("mediaServicesAccountName")] - public Output MediaServicesAccountName { get; private set; } = null!; - - [Output("name")] - public Output Name { get; private set; } = null!; - - [Output("presentationTimeRange")] - public Output PresentationTimeRange { get; private set; } = null!; - - [Output("resourceGroupName")] - public Output ResourceGroupName { get; private set; } = null!; - - [Output("trackSelections")] - public Output> TrackSelections { get; private set; } = null!; - - - /// - /// Create a AccountFilter 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 AccountFilter(string name, AccountFilterArgs args, CustomResourceOptions? options = null) - : base("azure:media/accountFilter:AccountFilter", name, args ?? new AccountFilterArgs(), MakeResourceOptions(options, "")) - { - } - - private AccountFilter(string name, Input id, AccountFilterState? state = null, CustomResourceOptions? options = null) - : base("azure:media/accountFilter:AccountFilter", 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 AccountFilter 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 AccountFilter Get(string name, Input id, AccountFilterState? state = null, CustomResourceOptions? options = null) - { - return new AccountFilter(name, id, state, options); - } - } - - public sealed class AccountFilterArgs : global::Pulumi.ResourceArgs - { - [Input("firstQualityBitrate")] - public Input? FirstQualityBitrate { get; set; } - - [Input("mediaServicesAccountName", required: true)] - public Input MediaServicesAccountName { get; set; } = null!; - - [Input("name")] - public Input? Name { get; set; } - - [Input("presentationTimeRange")] - public Input? PresentationTimeRange { get; set; } - - [Input("resourceGroupName", required: true)] - public Input ResourceGroupName { get; set; } = null!; - - [Input("trackSelections")] - private InputList? _trackSelections; - public InputList TrackSelections - { - get => _trackSelections ?? (_trackSelections = new InputList()); - set => _trackSelections = value; - } - - public AccountFilterArgs() - { - } - public static new AccountFilterArgs Empty => new AccountFilterArgs(); - } - - public sealed class AccountFilterState : global::Pulumi.ResourceArgs - { - [Input("firstQualityBitrate")] - public Input? FirstQualityBitrate { get; set; } - - [Input("mediaServicesAccountName")] - public Input? MediaServicesAccountName { get; set; } - - [Input("name")] - public Input? Name { get; set; } - - [Input("presentationTimeRange")] - public Input? PresentationTimeRange { get; set; } - - [Input("resourceGroupName")] - public Input? ResourceGroupName { get; set; } - - [Input("trackSelections")] - private InputList? _trackSelections; - public InputList TrackSelections - { - get => _trackSelections ?? (_trackSelections = new InputList()); - set => _trackSelections = value; - } - - public AccountFilterState() - { - } - public static new AccountFilterState Empty => new AccountFilterState(); - } -} diff --git a/sdk/dotnet/Media/Inputs/AccountFilterPresentationTimeRangeArgs.cs b/sdk/dotnet/Media/Inputs/AccountFilterPresentationTimeRangeArgs.cs deleted file mode 100644 index d3f1b84eb2..0000000000 --- a/sdk/dotnet/Media/Inputs/AccountFilterPresentationTimeRangeArgs.cs +++ /dev/null @@ -1,38 +0,0 @@ -// *** 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.Media.Inputs -{ - - public sealed class AccountFilterPresentationTimeRangeArgs : global::Pulumi.ResourceArgs - { - [Input("endInUnits")] - public Input? EndInUnits { get; set; } - - [Input("forceEnd")] - public Input? ForceEnd { get; set; } - - [Input("liveBackoffInUnits")] - public Input? LiveBackoffInUnits { get; set; } - - [Input("presentationWindowInUnits")] - public Input? PresentationWindowInUnits { get; set; } - - [Input("startInUnits")] - public Input? StartInUnits { get; set; } - - [Input("unitTimescaleInMilliseconds", required: true)] - public Input UnitTimescaleInMilliseconds { get; set; } = null!; - - public AccountFilterPresentationTimeRangeArgs() - { - } - public static new AccountFilterPresentationTimeRangeArgs Empty => new AccountFilterPresentationTimeRangeArgs(); - } -} diff --git a/sdk/dotnet/Media/Inputs/AccountFilterPresentationTimeRangeGetArgs.cs b/sdk/dotnet/Media/Inputs/AccountFilterPresentationTimeRangeGetArgs.cs deleted file mode 100644 index 2877536812..0000000000 --- a/sdk/dotnet/Media/Inputs/AccountFilterPresentationTimeRangeGetArgs.cs +++ /dev/null @@ -1,38 +0,0 @@ -// *** 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.Media.Inputs -{ - - public sealed class AccountFilterPresentationTimeRangeGetArgs : global::Pulumi.ResourceArgs - { - [Input("endInUnits")] - public Input? EndInUnits { get; set; } - - [Input("forceEnd")] - public Input? ForceEnd { get; set; } - - [Input("liveBackoffInUnits")] - public Input? LiveBackoffInUnits { get; set; } - - [Input("presentationWindowInUnits")] - public Input? PresentationWindowInUnits { get; set; } - - [Input("startInUnits")] - public Input? StartInUnits { get; set; } - - [Input("unitTimescaleInMilliseconds", required: true)] - public Input UnitTimescaleInMilliseconds { get; set; } = null!; - - public AccountFilterPresentationTimeRangeGetArgs() - { - } - public static new AccountFilterPresentationTimeRangeGetArgs Empty => new AccountFilterPresentationTimeRangeGetArgs(); - } -} diff --git a/sdk/dotnet/Media/Inputs/AccountFilterTrackSelectionArgs.cs b/sdk/dotnet/Media/Inputs/AccountFilterTrackSelectionArgs.cs deleted file mode 100644 index 22c142c835..0000000000 --- a/sdk/dotnet/Media/Inputs/AccountFilterTrackSelectionArgs.cs +++ /dev/null @@ -1,28 +0,0 @@ -// *** 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.Media.Inputs -{ - - public sealed class AccountFilterTrackSelectionArgs : global::Pulumi.ResourceArgs - { - [Input("conditions", required: true)] - private InputList? _conditions; - public InputList Conditions - { - get => _conditions ?? (_conditions = new InputList()); - set => _conditions = value; - } - - public AccountFilterTrackSelectionArgs() - { - } - public static new AccountFilterTrackSelectionArgs Empty => new AccountFilterTrackSelectionArgs(); - } -} diff --git a/sdk/dotnet/Media/Inputs/AccountFilterTrackSelectionConditionArgs.cs b/sdk/dotnet/Media/Inputs/AccountFilterTrackSelectionConditionArgs.cs deleted file mode 100644 index 2a0044c04b..0000000000 --- a/sdk/dotnet/Media/Inputs/AccountFilterTrackSelectionConditionArgs.cs +++ /dev/null @@ -1,29 +0,0 @@ -// *** 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.Media.Inputs -{ - - public sealed class AccountFilterTrackSelectionConditionArgs : global::Pulumi.ResourceArgs - { - [Input("operation", required: true)] - public Input Operation { get; set; } = null!; - - [Input("property", required: true)] - public Input Property { get; set; } = null!; - - [Input("value", required: true)] - public Input Value { get; set; } = null!; - - public AccountFilterTrackSelectionConditionArgs() - { - } - public static new AccountFilterTrackSelectionConditionArgs Empty => new AccountFilterTrackSelectionConditionArgs(); - } -} diff --git a/sdk/dotnet/Media/Inputs/AccountFilterTrackSelectionConditionGetArgs.cs b/sdk/dotnet/Media/Inputs/AccountFilterTrackSelectionConditionGetArgs.cs deleted file mode 100644 index a32826b745..0000000000 --- a/sdk/dotnet/Media/Inputs/AccountFilterTrackSelectionConditionGetArgs.cs +++ /dev/null @@ -1,29 +0,0 @@ -// *** 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.Media.Inputs -{ - - public sealed class AccountFilterTrackSelectionConditionGetArgs : global::Pulumi.ResourceArgs - { - [Input("operation", required: true)] - public Input Operation { get; set; } = null!; - - [Input("property", required: true)] - public Input Property { get; set; } = null!; - - [Input("value", required: true)] - public Input Value { get; set; } = null!; - - public AccountFilterTrackSelectionConditionGetArgs() - { - } - public static new AccountFilterTrackSelectionConditionGetArgs Empty => new AccountFilterTrackSelectionConditionGetArgs(); - } -} diff --git a/sdk/dotnet/Media/Inputs/AccountFilterTrackSelectionGetArgs.cs b/sdk/dotnet/Media/Inputs/AccountFilterTrackSelectionGetArgs.cs deleted file mode 100644 index d1368df35c..0000000000 --- a/sdk/dotnet/Media/Inputs/AccountFilterTrackSelectionGetArgs.cs +++ /dev/null @@ -1,28 +0,0 @@ -// *** 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.Media.Inputs -{ - - public sealed class AccountFilterTrackSelectionGetArgs : global::Pulumi.ResourceArgs - { - [Input("conditions", required: true)] - private InputList? _conditions; - public InputList Conditions - { - get => _conditions ?? (_conditions = new InputList()); - set => _conditions = value; - } - - public AccountFilterTrackSelectionGetArgs() - { - } - public static new AccountFilterTrackSelectionGetArgs Empty => new AccountFilterTrackSelectionGetArgs(); - } -} diff --git a/sdk/dotnet/Media/Outputs/AccountFilterPresentationTimeRange.cs b/sdk/dotnet/Media/Outputs/AccountFilterPresentationTimeRange.cs deleted file mode 100644 index f2bfe439e3..0000000000 --- a/sdk/dotnet/Media/Outputs/AccountFilterPresentationTimeRange.cs +++ /dev/null @@ -1,45 +0,0 @@ -// *** 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.Media.Outputs -{ - - [OutputType] - public sealed class AccountFilterPresentationTimeRange - { - public readonly int? EndInUnits; - public readonly bool? ForceEnd; - public readonly int? LiveBackoffInUnits; - public readonly int? PresentationWindowInUnits; - public readonly int? StartInUnits; - public readonly int UnitTimescaleInMilliseconds; - - [OutputConstructor] - private AccountFilterPresentationTimeRange( - int? endInUnits, - - bool? forceEnd, - - int? liveBackoffInUnits, - - int? presentationWindowInUnits, - - int? startInUnits, - - int unitTimescaleInMilliseconds) - { - EndInUnits = endInUnits; - ForceEnd = forceEnd; - LiveBackoffInUnits = liveBackoffInUnits; - PresentationWindowInUnits = presentationWindowInUnits; - StartInUnits = startInUnits; - UnitTimescaleInMilliseconds = unitTimescaleInMilliseconds; - } - } -} diff --git a/sdk/dotnet/Media/Outputs/AccountFilterTrackSelection.cs b/sdk/dotnet/Media/Outputs/AccountFilterTrackSelection.cs deleted file mode 100644 index baa22ccdec..0000000000 --- a/sdk/dotnet/Media/Outputs/AccountFilterTrackSelection.cs +++ /dev/null @@ -1,24 +0,0 @@ -// *** 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.Media.Outputs -{ - - [OutputType] - public sealed class AccountFilterTrackSelection - { - public readonly ImmutableArray Conditions; - - [OutputConstructor] - private AccountFilterTrackSelection(ImmutableArray conditions) - { - Conditions = conditions; - } - } -} diff --git a/sdk/dotnet/Media/Outputs/AccountFilterTrackSelectionCondition.cs b/sdk/dotnet/Media/Outputs/AccountFilterTrackSelectionCondition.cs deleted file mode 100644 index da9e5ad4c2..0000000000 --- a/sdk/dotnet/Media/Outputs/AccountFilterTrackSelectionCondition.cs +++ /dev/null @@ -1,33 +0,0 @@ -// *** 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.Media.Outputs -{ - - [OutputType] - public sealed class AccountFilterTrackSelectionCondition - { - public readonly string Operation; - public readonly string Property; - public readonly string Value; - - [OutputConstructor] - private AccountFilterTrackSelectionCondition( - string operation, - - string property, - - string value) - { - Operation = operation; - Property = property; - Value = value; - } - } -} diff --git a/sdk/dotnet/Media/README.md b/sdk/dotnet/Media/README.md deleted file mode 100644 index 286e13b248..0000000000 --- a/sdk/dotnet/Media/README.md +++ /dev/null @@ -1 +0,0 @@ -A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates. diff --git a/sdk/dotnet/ServiceBus/Queue.cs b/sdk/dotnet/ServiceBus/Queue.cs index b5ec44a6ba..314ceb28be 100644 --- a/sdk/dotnet/ServiceBus/Queue.cs +++ b/sdk/dotnet/ServiceBus/Queue.cs @@ -62,10 +62,10 @@ namespace Pulumi.Azure.ServiceBus public partial class Queue : global::Pulumi.CustomResource { /// - /// The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. Defaults to `P10675199DT2H48M5.4775807S`. + /// The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. /// [Output("autoDeleteOnIdle")] - public Output AutoDeleteOnIdle { get; private set; } = null!; + public Output AutoDeleteOnIdle { get; private set; } = null!; /// /// Boolean flag which controls whether server-side batched operations are enabled. Defaults to `true`. @@ -80,10 +80,10 @@ public partial class Queue : global::Pulumi.CustomResource public Output DeadLetteringOnMessageExpiration { get; private set; } = null!; /// - /// The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. Defaults to `P10675199DT2H48M5.4775807S`. + /// The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. /// [Output("defaultMessageTtl")] - public Output DefaultMessageTtl { get; private set; } = null!; + public Output DefaultMessageTtl { get; private set; } = null!; /// /// The ISO 8601 timespan duration during which duplicates can be detected. Defaults to `PT10M` (10 Minutes). @@ -124,13 +124,13 @@ public partial class Queue : global::Pulumi.CustomResource public Output MaxDeliveryCount { get; private set; } = null!; /// - /// Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). Defaults to `256`. + /// Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). /// [Output("maxMessageSizeInKilobytes")] public Output MaxMessageSizeInKilobytes { get; private set; } = null!; /// - /// Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). Defaults to `5120`. + /// Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). /// [Output("maxSizeInMegabytes")] public Output MaxSizeInMegabytes { get; private set; } = null!; @@ -230,7 +230,7 @@ public static Queue Get(string name, Input id, QueueState? state = null, public sealed class QueueArgs : global::Pulumi.ResourceArgs { /// - /// The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. Defaults to `P10675199DT2H48M5.4775807S`. + /// The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. /// [Input("autoDeleteOnIdle")] public Input? AutoDeleteOnIdle { get; set; } @@ -248,7 +248,7 @@ public sealed class QueueArgs : global::Pulumi.ResourceArgs public Input? DeadLetteringOnMessageExpiration { get; set; } /// - /// The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. Defaults to `P10675199DT2H48M5.4775807S`. + /// The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. /// [Input("defaultMessageTtl")] public Input? DefaultMessageTtl { get; set; } @@ -292,13 +292,13 @@ public sealed class QueueArgs : global::Pulumi.ResourceArgs public Input? MaxDeliveryCount { get; set; } /// - /// Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). Defaults to `256`. + /// Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). /// [Input("maxMessageSizeInKilobytes")] public Input? MaxMessageSizeInKilobytes { get; set; } /// - /// Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). Defaults to `5120`. + /// Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). /// [Input("maxSizeInMegabytes")] public Input? MaxSizeInMegabytes { get; set; } @@ -350,7 +350,7 @@ public QueueArgs() public sealed class QueueState : global::Pulumi.ResourceArgs { /// - /// The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. Defaults to `P10675199DT2H48M5.4775807S`. + /// The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. /// [Input("autoDeleteOnIdle")] public Input? AutoDeleteOnIdle { get; set; } @@ -368,7 +368,7 @@ public sealed class QueueState : global::Pulumi.ResourceArgs public Input? DeadLetteringOnMessageExpiration { get; set; } /// - /// The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. Defaults to `P10675199DT2H48M5.4775807S`. + /// The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. /// [Input("defaultMessageTtl")] public Input? DefaultMessageTtl { get; set; } @@ -412,13 +412,13 @@ public sealed class QueueState : global::Pulumi.ResourceArgs public Input? MaxDeliveryCount { get; set; } /// - /// Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). Defaults to `256`. + /// Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). /// [Input("maxMessageSizeInKilobytes")] public Input? MaxMessageSizeInKilobytes { get; set; } /// - /// Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). Defaults to `5120`. + /// Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). /// [Input("maxSizeInMegabytes")] public Input? MaxSizeInMegabytes { get; set; } diff --git a/sdk/dotnet/Waf/Inputs/PolicyPolicySettingsArgs.cs b/sdk/dotnet/Waf/Inputs/PolicyPolicySettingsArgs.cs index e56d141546..19558a9162 100644 --- a/sdk/dotnet/Waf/Inputs/PolicyPolicySettingsArgs.cs +++ b/sdk/dotnet/Waf/Inputs/PolicyPolicySettingsArgs.cs @@ -54,6 +54,9 @@ public sealed class PolicyPolicySettingsArgs : global::Pulumi.ResourceArgs [Input("requestBodyCheck")] public Input? RequestBodyCheck { get; set; } + /// + /// Whether the firewall should block a request with body size greater then `max_request_body_size_in_kb`. Defaults to `true`. + /// [Input("requestBodyEnforcement")] public Input? RequestBodyEnforcement { get; set; } diff --git a/sdk/dotnet/Waf/Inputs/PolicyPolicySettingsGetArgs.cs b/sdk/dotnet/Waf/Inputs/PolicyPolicySettingsGetArgs.cs index 9f44bad7a1..ecda40abb4 100644 --- a/sdk/dotnet/Waf/Inputs/PolicyPolicySettingsGetArgs.cs +++ b/sdk/dotnet/Waf/Inputs/PolicyPolicySettingsGetArgs.cs @@ -54,6 +54,9 @@ public sealed class PolicyPolicySettingsGetArgs : global::Pulumi.ResourceArgs [Input("requestBodyCheck")] public Input? RequestBodyCheck { get; set; } + /// + /// Whether the firewall should block a request with body size greater then `max_request_body_size_in_kb`. Defaults to `true`. + /// [Input("requestBodyEnforcement")] public Input? RequestBodyEnforcement { get; set; } diff --git a/sdk/dotnet/Waf/Outputs/PolicyPolicySettings.cs b/sdk/dotnet/Waf/Outputs/PolicyPolicySettings.cs index 2f3a50849c..de23762ac2 100644 --- a/sdk/dotnet/Waf/Outputs/PolicyPolicySettings.cs +++ b/sdk/dotnet/Waf/Outputs/PolicyPolicySettings.cs @@ -41,6 +41,9 @@ public sealed class PolicyPolicySettings /// Is Request Body Inspection enabled? Defaults to `true`. /// public readonly bool? RequestBodyCheck; + /// + /// Whether the firewall should block a request with body size greater then `max_request_body_size_in_kb`. Defaults to `true`. + /// public readonly bool? RequestBodyEnforcement; /// /// Specifies the maximum request body inspection limit in KB for the Web Application Firewall. Defaults to `128`. diff --git a/sdk/go/azure/arcmachine/arcMachine.go b/sdk/go/azure/arcmachine/arcMachine.go new file mode 100644 index 0000000000..1c84c5abbf --- /dev/null +++ b/sdk/go/azure/arcmachine/arcMachine.go @@ -0,0 +1,312 @@ +// 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 arcmachine + +import ( + "context" + "reflect" + + "errors" + "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" + "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +) + +// Manages a Hybrid Compute Machine. +// +// ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/arcmachine" +// "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core" +// "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 +// } +// _, err = arcmachine.NewArcMachine(ctx, "example", &arcmachine.ArcMachineArgs{ +// Name: pulumi.String("example-arcmachine"), +// ResourceGroupName: example.Name, +// Location: example.Location, +// Kind: pulumi.String("SCVMM"), +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` +// +// ## Import +// +// Arc Machines can be imported using the `resource id`, e.g. +// +// ```sh +// $ pulumi import azure:arcmachine/arcMachine:ArcMachine example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.HybridCompute/machines/machine1 +// ``` +type ArcMachine struct { + pulumi.CustomResourceState + + // The kind of the Arc Machine. Possible values are `AVS`, `AWS`, `EPS`, `GCP`, `HCI`, `SCVMM` and `VMware`. Changing this forces a new resource to be created. + Kind pulumi.StringOutput `pulumi:"kind"` + // The Azure Region where the Arc Machine should exist. Changing this forces a new resource to be created. + Location pulumi.StringOutput `pulumi:"location"` + // The name of the Arc machine. Changing this forces a new resource to be created. + Name pulumi.StringOutput `pulumi:"name"` + // The name of the Resource Group where the Arc Machine should exist. Changing this forces a new resource to be created. + ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` +} + +// NewArcMachine registers a new resource with the given unique name, arguments, and options. +func NewArcMachine(ctx *pulumi.Context, + name string, args *ArcMachineArgs, opts ...pulumi.ResourceOption) (*ArcMachine, error) { + if args == nil { + return nil, errors.New("missing one or more required arguments") + } + + if args.Kind == nil { + return nil, errors.New("invalid value for required argument 'Kind'") + } + if args.ResourceGroupName == nil { + return nil, errors.New("invalid value for required argument 'ResourceGroupName'") + } + opts = internal.PkgResourceDefaultOpts(opts) + var resource ArcMachine + err := ctx.RegisterResource("azure:arcmachine/arcMachine:ArcMachine", name, args, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// GetArcMachine gets an existing ArcMachine 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 GetArcMachine(ctx *pulumi.Context, + name string, id pulumi.IDInput, state *ArcMachineState, opts ...pulumi.ResourceOption) (*ArcMachine, error) { + var resource ArcMachine + err := ctx.ReadResource("azure:arcmachine/arcMachine:ArcMachine", name, id, state, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// Input properties used for looking up and filtering ArcMachine resources. +type arcMachineState struct { + // The kind of the Arc Machine. Possible values are `AVS`, `AWS`, `EPS`, `GCP`, `HCI`, `SCVMM` and `VMware`. Changing this forces a new resource to be created. + Kind *string `pulumi:"kind"` + // The Azure Region where the Arc Machine should exist. Changing this forces a new resource to be created. + Location *string `pulumi:"location"` + // The name of the Arc machine. Changing this forces a new resource to be created. + Name *string `pulumi:"name"` + // The name of the Resource Group where the Arc Machine should exist. Changing this forces a new resource to be created. + ResourceGroupName *string `pulumi:"resourceGroupName"` +} + +type ArcMachineState struct { + // The kind of the Arc Machine. Possible values are `AVS`, `AWS`, `EPS`, `GCP`, `HCI`, `SCVMM` and `VMware`. Changing this forces a new resource to be created. + Kind pulumi.StringPtrInput + // The Azure Region where the Arc Machine should exist. Changing this forces a new resource to be created. + Location pulumi.StringPtrInput + // The name of the Arc machine. Changing this forces a new resource to be created. + Name pulumi.StringPtrInput + // The name of the Resource Group where the Arc Machine should exist. Changing this forces a new resource to be created. + ResourceGroupName pulumi.StringPtrInput +} + +func (ArcMachineState) ElementType() reflect.Type { + return reflect.TypeOf((*arcMachineState)(nil)).Elem() +} + +type arcMachineArgs struct { + // The kind of the Arc Machine. Possible values are `AVS`, `AWS`, `EPS`, `GCP`, `HCI`, `SCVMM` and `VMware`. Changing this forces a new resource to be created. + Kind string `pulumi:"kind"` + // The Azure Region where the Arc Machine should exist. Changing this forces a new resource to be created. + Location *string `pulumi:"location"` + // The name of the Arc machine. Changing this forces a new resource to be created. + Name *string `pulumi:"name"` + // The name of the Resource Group where the Arc Machine should exist. Changing this forces a new resource to be created. + ResourceGroupName string `pulumi:"resourceGroupName"` +} + +// The set of arguments for constructing a ArcMachine resource. +type ArcMachineArgs struct { + // The kind of the Arc Machine. Possible values are `AVS`, `AWS`, `EPS`, `GCP`, `HCI`, `SCVMM` and `VMware`. Changing this forces a new resource to be created. + Kind pulumi.StringInput + // The Azure Region where the Arc Machine should exist. Changing this forces a new resource to be created. + Location pulumi.StringPtrInput + // The name of the Arc machine. Changing this forces a new resource to be created. + Name pulumi.StringPtrInput + // The name of the Resource Group where the Arc Machine should exist. Changing this forces a new resource to be created. + ResourceGroupName pulumi.StringInput +} + +func (ArcMachineArgs) ElementType() reflect.Type { + return reflect.TypeOf((*arcMachineArgs)(nil)).Elem() +} + +type ArcMachineInput interface { + pulumi.Input + + ToArcMachineOutput() ArcMachineOutput + ToArcMachineOutputWithContext(ctx context.Context) ArcMachineOutput +} + +func (*ArcMachine) ElementType() reflect.Type { + return reflect.TypeOf((**ArcMachine)(nil)).Elem() +} + +func (i *ArcMachine) ToArcMachineOutput() ArcMachineOutput { + return i.ToArcMachineOutputWithContext(context.Background()) +} + +func (i *ArcMachine) ToArcMachineOutputWithContext(ctx context.Context) ArcMachineOutput { + return pulumi.ToOutputWithContext(ctx, i).(ArcMachineOutput) +} + +// ArcMachineArrayInput is an input type that accepts ArcMachineArray and ArcMachineArrayOutput values. +// You can construct a concrete instance of `ArcMachineArrayInput` via: +// +// ArcMachineArray{ ArcMachineArgs{...} } +type ArcMachineArrayInput interface { + pulumi.Input + + ToArcMachineArrayOutput() ArcMachineArrayOutput + ToArcMachineArrayOutputWithContext(context.Context) ArcMachineArrayOutput +} + +type ArcMachineArray []ArcMachineInput + +func (ArcMachineArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]*ArcMachine)(nil)).Elem() +} + +func (i ArcMachineArray) ToArcMachineArrayOutput() ArcMachineArrayOutput { + return i.ToArcMachineArrayOutputWithContext(context.Background()) +} + +func (i ArcMachineArray) ToArcMachineArrayOutputWithContext(ctx context.Context) ArcMachineArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(ArcMachineArrayOutput) +} + +// ArcMachineMapInput is an input type that accepts ArcMachineMap and ArcMachineMapOutput values. +// You can construct a concrete instance of `ArcMachineMapInput` via: +// +// ArcMachineMap{ "key": ArcMachineArgs{...} } +type ArcMachineMapInput interface { + pulumi.Input + + ToArcMachineMapOutput() ArcMachineMapOutput + ToArcMachineMapOutputWithContext(context.Context) ArcMachineMapOutput +} + +type ArcMachineMap map[string]ArcMachineInput + +func (ArcMachineMap) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*ArcMachine)(nil)).Elem() +} + +func (i ArcMachineMap) ToArcMachineMapOutput() ArcMachineMapOutput { + return i.ToArcMachineMapOutputWithContext(context.Background()) +} + +func (i ArcMachineMap) ToArcMachineMapOutputWithContext(ctx context.Context) ArcMachineMapOutput { + return pulumi.ToOutputWithContext(ctx, i).(ArcMachineMapOutput) +} + +type ArcMachineOutput struct{ *pulumi.OutputState } + +func (ArcMachineOutput) ElementType() reflect.Type { + return reflect.TypeOf((**ArcMachine)(nil)).Elem() +} + +func (o ArcMachineOutput) ToArcMachineOutput() ArcMachineOutput { + return o +} + +func (o ArcMachineOutput) ToArcMachineOutputWithContext(ctx context.Context) ArcMachineOutput { + return o +} + +// The kind of the Arc Machine. Possible values are `AVS`, `AWS`, `EPS`, `GCP`, `HCI`, `SCVMM` and `VMware`. Changing this forces a new resource to be created. +func (o ArcMachineOutput) Kind() pulumi.StringOutput { + return o.ApplyT(func(v *ArcMachine) pulumi.StringOutput { return v.Kind }).(pulumi.StringOutput) +} + +// The Azure Region where the Arc Machine should exist. Changing this forces a new resource to be created. +func (o ArcMachineOutput) Location() pulumi.StringOutput { + return o.ApplyT(func(v *ArcMachine) pulumi.StringOutput { return v.Location }).(pulumi.StringOutput) +} + +// The name of the Arc machine. Changing this forces a new resource to be created. +func (o ArcMachineOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v *ArcMachine) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) +} + +// The name of the Resource Group where the Arc Machine should exist. Changing this forces a new resource to be created. +func (o ArcMachineOutput) ResourceGroupName() pulumi.StringOutput { + return o.ApplyT(func(v *ArcMachine) pulumi.StringOutput { return v.ResourceGroupName }).(pulumi.StringOutput) +} + +type ArcMachineArrayOutput struct{ *pulumi.OutputState } + +func (ArcMachineArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]*ArcMachine)(nil)).Elem() +} + +func (o ArcMachineArrayOutput) ToArcMachineArrayOutput() ArcMachineArrayOutput { + return o +} + +func (o ArcMachineArrayOutput) ToArcMachineArrayOutputWithContext(ctx context.Context) ArcMachineArrayOutput { + return o +} + +func (o ArcMachineArrayOutput) Index(i pulumi.IntInput) ArcMachineOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) *ArcMachine { + return vs[0].([]*ArcMachine)[vs[1].(int)] + }).(ArcMachineOutput) +} + +type ArcMachineMapOutput struct{ *pulumi.OutputState } + +func (ArcMachineMapOutput) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*ArcMachine)(nil)).Elem() +} + +func (o ArcMachineMapOutput) ToArcMachineMapOutput() ArcMachineMapOutput { + return o +} + +func (o ArcMachineMapOutput) ToArcMachineMapOutputWithContext(ctx context.Context) ArcMachineMapOutput { + return o +} + +func (o ArcMachineMapOutput) MapIndex(k pulumi.StringInput) ArcMachineOutput { + return pulumi.All(o, k).ApplyT(func(vs []interface{}) *ArcMachine { + return vs[0].(map[string]*ArcMachine)[vs[1].(string)] + }).(ArcMachineOutput) +} + +func init() { + pulumi.RegisterInputType(reflect.TypeOf((*ArcMachineInput)(nil)).Elem(), &ArcMachine{}) + pulumi.RegisterInputType(reflect.TypeOf((*ArcMachineArrayInput)(nil)).Elem(), ArcMachineArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*ArcMachineMapInput)(nil)).Elem(), ArcMachineMap{}) + pulumi.RegisterOutputType(ArcMachineOutput{}) + pulumi.RegisterOutputType(ArcMachineArrayOutput{}) + pulumi.RegisterOutputType(ArcMachineMapOutput{}) +} diff --git a/sdk/go/azure/arcmachine/automanageConfigurationAssignment.go b/sdk/go/azure/arcmachine/automanageConfigurationAssignment.go new file mode 100644 index 0000000000..545fae3395 --- /dev/null +++ b/sdk/go/azure/arcmachine/automanageConfigurationAssignment.go @@ -0,0 +1,313 @@ +// 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 arcmachine + +import ( + "context" + "reflect" + + "errors" + "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" + "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +) + +// Manages an Arc Machine Automanage Configuration Profile Assignment. +// +// ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/arcmachine" +// "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/automanage" +// "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi/config" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// cfg := config.New(ctx, "") +// // The name of the Arc Machine. +// arcMachineName := cfg.RequireObject("arcMachineName") +// exampleResourceGroup, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{ +// Name: pulumi.String("example-resources"), +// Location: pulumi.String("West Europe"), +// }) +// if err != nil { +// return err +// } +// example := exampleResourceGroup.Name.ApplyT(func(name string) (arcmachine.GetResult, error) { +// return arcmachine.GetResult(interface{}(arcmachine.GetOutput(ctx, arcmachine.GetOutputArgs{ +// Name: arcMachineName, +// ResourceGroupName: name, +// }, nil))), nil +// }).(arcmachine.GetResultOutput) +// exampleConfiguration, err := automanage.NewConfiguration(ctx, "example", &automanage.ConfigurationArgs{ +// Name: pulumi.String("example-configuration"), +// ResourceGroupName: exampleResourceGroup.Name, +// Location: exampleResourceGroup.Location, +// }) +// if err != nil { +// return err +// } +// _, err = arcmachine.NewAutomanageConfigurationAssignment(ctx, "example", &arcmachine.AutomanageConfigurationAssignmentArgs{ +// ArcMachineId: pulumi.String(example.ApplyT(func(example arcmachine.GetResult) (*string, error) { +// return &example.Id, nil +// }).(pulumi.StringPtrOutput)), +// ConfigurationId: exampleConfiguration.ID(), +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` +// +// ## Import +// +// Virtual Machine Automanage Configuration Profile Assignment can be imported using the `resource id`, e.g. +// +// ```sh +// $ pulumi import azure:arcmachine/automanageConfigurationAssignment:AutomanageConfigurationAssignment example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.HybridCompute/Microsoft.HybridCompute/machines/machine1/providers/Microsoft.AutoManage/configurationProfileAssignments/default +// ``` +type AutomanageConfigurationAssignment struct { + pulumi.CustomResourceState + + // The ARM resource ID of the Arc Machine to assign the Automanage Configuration to. Changing this forces a new resource to be created. + ArcMachineId pulumi.StringOutput `pulumi:"arcMachineId"` + // The ARM resource ID of the Automanage Configuration to assign to the Virtual Machine. Changing this forces a new resource to be created. + // + // > **NOTE:** For a successful creation of this resource, locate "Automanage API Access" app within your Entra ID tenant. Make sure it's granted access to the scope that includes the arc server. + ConfigurationId pulumi.StringOutput `pulumi:"configurationId"` +} + +// NewAutomanageConfigurationAssignment registers a new resource with the given unique name, arguments, and options. +func NewAutomanageConfigurationAssignment(ctx *pulumi.Context, + name string, args *AutomanageConfigurationAssignmentArgs, opts ...pulumi.ResourceOption) (*AutomanageConfigurationAssignment, error) { + if args == nil { + return nil, errors.New("missing one or more required arguments") + } + + if args.ArcMachineId == nil { + return nil, errors.New("invalid value for required argument 'ArcMachineId'") + } + if args.ConfigurationId == nil { + return nil, errors.New("invalid value for required argument 'ConfigurationId'") + } + opts = internal.PkgResourceDefaultOpts(opts) + var resource AutomanageConfigurationAssignment + err := ctx.RegisterResource("azure:arcmachine/automanageConfigurationAssignment:AutomanageConfigurationAssignment", name, args, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// GetAutomanageConfigurationAssignment gets an existing AutomanageConfigurationAssignment 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 GetAutomanageConfigurationAssignment(ctx *pulumi.Context, + name string, id pulumi.IDInput, state *AutomanageConfigurationAssignmentState, opts ...pulumi.ResourceOption) (*AutomanageConfigurationAssignment, error) { + var resource AutomanageConfigurationAssignment + err := ctx.ReadResource("azure:arcmachine/automanageConfigurationAssignment:AutomanageConfigurationAssignment", name, id, state, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// Input properties used for looking up and filtering AutomanageConfigurationAssignment resources. +type automanageConfigurationAssignmentState struct { + // The ARM resource ID of the Arc Machine to assign the Automanage Configuration to. Changing this forces a new resource to be created. + ArcMachineId *string `pulumi:"arcMachineId"` + // The ARM resource ID of the Automanage Configuration to assign to the Virtual Machine. Changing this forces a new resource to be created. + // + // > **NOTE:** For a successful creation of this resource, locate "Automanage API Access" app within your Entra ID tenant. Make sure it's granted access to the scope that includes the arc server. + ConfigurationId *string `pulumi:"configurationId"` +} + +type AutomanageConfigurationAssignmentState struct { + // The ARM resource ID of the Arc Machine to assign the Automanage Configuration to. Changing this forces a new resource to be created. + ArcMachineId pulumi.StringPtrInput + // The ARM resource ID of the Automanage Configuration to assign to the Virtual Machine. Changing this forces a new resource to be created. + // + // > **NOTE:** For a successful creation of this resource, locate "Automanage API Access" app within your Entra ID tenant. Make sure it's granted access to the scope that includes the arc server. + ConfigurationId pulumi.StringPtrInput +} + +func (AutomanageConfigurationAssignmentState) ElementType() reflect.Type { + return reflect.TypeOf((*automanageConfigurationAssignmentState)(nil)).Elem() +} + +type automanageConfigurationAssignmentArgs struct { + // The ARM resource ID of the Arc Machine to assign the Automanage Configuration to. Changing this forces a new resource to be created. + ArcMachineId string `pulumi:"arcMachineId"` + // The ARM resource ID of the Automanage Configuration to assign to the Virtual Machine. Changing this forces a new resource to be created. + // + // > **NOTE:** For a successful creation of this resource, locate "Automanage API Access" app within your Entra ID tenant. Make sure it's granted access to the scope that includes the arc server. + ConfigurationId string `pulumi:"configurationId"` +} + +// The set of arguments for constructing a AutomanageConfigurationAssignment resource. +type AutomanageConfigurationAssignmentArgs struct { + // The ARM resource ID of the Arc Machine to assign the Automanage Configuration to. Changing this forces a new resource to be created. + ArcMachineId pulumi.StringInput + // The ARM resource ID of the Automanage Configuration to assign to the Virtual Machine. Changing this forces a new resource to be created. + // + // > **NOTE:** For a successful creation of this resource, locate "Automanage API Access" app within your Entra ID tenant. Make sure it's granted access to the scope that includes the arc server. + ConfigurationId pulumi.StringInput +} + +func (AutomanageConfigurationAssignmentArgs) ElementType() reflect.Type { + return reflect.TypeOf((*automanageConfigurationAssignmentArgs)(nil)).Elem() +} + +type AutomanageConfigurationAssignmentInput interface { + pulumi.Input + + ToAutomanageConfigurationAssignmentOutput() AutomanageConfigurationAssignmentOutput + ToAutomanageConfigurationAssignmentOutputWithContext(ctx context.Context) AutomanageConfigurationAssignmentOutput +} + +func (*AutomanageConfigurationAssignment) ElementType() reflect.Type { + return reflect.TypeOf((**AutomanageConfigurationAssignment)(nil)).Elem() +} + +func (i *AutomanageConfigurationAssignment) ToAutomanageConfigurationAssignmentOutput() AutomanageConfigurationAssignmentOutput { + return i.ToAutomanageConfigurationAssignmentOutputWithContext(context.Background()) +} + +func (i *AutomanageConfigurationAssignment) ToAutomanageConfigurationAssignmentOutputWithContext(ctx context.Context) AutomanageConfigurationAssignmentOutput { + return pulumi.ToOutputWithContext(ctx, i).(AutomanageConfigurationAssignmentOutput) +} + +// AutomanageConfigurationAssignmentArrayInput is an input type that accepts AutomanageConfigurationAssignmentArray and AutomanageConfigurationAssignmentArrayOutput values. +// You can construct a concrete instance of `AutomanageConfigurationAssignmentArrayInput` via: +// +// AutomanageConfigurationAssignmentArray{ AutomanageConfigurationAssignmentArgs{...} } +type AutomanageConfigurationAssignmentArrayInput interface { + pulumi.Input + + ToAutomanageConfigurationAssignmentArrayOutput() AutomanageConfigurationAssignmentArrayOutput + ToAutomanageConfigurationAssignmentArrayOutputWithContext(context.Context) AutomanageConfigurationAssignmentArrayOutput +} + +type AutomanageConfigurationAssignmentArray []AutomanageConfigurationAssignmentInput + +func (AutomanageConfigurationAssignmentArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]*AutomanageConfigurationAssignment)(nil)).Elem() +} + +func (i AutomanageConfigurationAssignmentArray) ToAutomanageConfigurationAssignmentArrayOutput() AutomanageConfigurationAssignmentArrayOutput { + return i.ToAutomanageConfigurationAssignmentArrayOutputWithContext(context.Background()) +} + +func (i AutomanageConfigurationAssignmentArray) ToAutomanageConfigurationAssignmentArrayOutputWithContext(ctx context.Context) AutomanageConfigurationAssignmentArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(AutomanageConfigurationAssignmentArrayOutput) +} + +// AutomanageConfigurationAssignmentMapInput is an input type that accepts AutomanageConfigurationAssignmentMap and AutomanageConfigurationAssignmentMapOutput values. +// You can construct a concrete instance of `AutomanageConfigurationAssignmentMapInput` via: +// +// AutomanageConfigurationAssignmentMap{ "key": AutomanageConfigurationAssignmentArgs{...} } +type AutomanageConfigurationAssignmentMapInput interface { + pulumi.Input + + ToAutomanageConfigurationAssignmentMapOutput() AutomanageConfigurationAssignmentMapOutput + ToAutomanageConfigurationAssignmentMapOutputWithContext(context.Context) AutomanageConfigurationAssignmentMapOutput +} + +type AutomanageConfigurationAssignmentMap map[string]AutomanageConfigurationAssignmentInput + +func (AutomanageConfigurationAssignmentMap) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*AutomanageConfigurationAssignment)(nil)).Elem() +} + +func (i AutomanageConfigurationAssignmentMap) ToAutomanageConfigurationAssignmentMapOutput() AutomanageConfigurationAssignmentMapOutput { + return i.ToAutomanageConfigurationAssignmentMapOutputWithContext(context.Background()) +} + +func (i AutomanageConfigurationAssignmentMap) ToAutomanageConfigurationAssignmentMapOutputWithContext(ctx context.Context) AutomanageConfigurationAssignmentMapOutput { + return pulumi.ToOutputWithContext(ctx, i).(AutomanageConfigurationAssignmentMapOutput) +} + +type AutomanageConfigurationAssignmentOutput struct{ *pulumi.OutputState } + +func (AutomanageConfigurationAssignmentOutput) ElementType() reflect.Type { + return reflect.TypeOf((**AutomanageConfigurationAssignment)(nil)).Elem() +} + +func (o AutomanageConfigurationAssignmentOutput) ToAutomanageConfigurationAssignmentOutput() AutomanageConfigurationAssignmentOutput { + return o +} + +func (o AutomanageConfigurationAssignmentOutput) ToAutomanageConfigurationAssignmentOutputWithContext(ctx context.Context) AutomanageConfigurationAssignmentOutput { + return o +} + +// The ARM resource ID of the Arc Machine to assign the Automanage Configuration to. Changing this forces a new resource to be created. +func (o AutomanageConfigurationAssignmentOutput) ArcMachineId() pulumi.StringOutput { + return o.ApplyT(func(v *AutomanageConfigurationAssignment) pulumi.StringOutput { return v.ArcMachineId }).(pulumi.StringOutput) +} + +// The ARM resource ID of the Automanage Configuration to assign to the Virtual Machine. Changing this forces a new resource to be created. +// +// > **NOTE:** For a successful creation of this resource, locate "Automanage API Access" app within your Entra ID tenant. Make sure it's granted access to the scope that includes the arc server. +func (o AutomanageConfigurationAssignmentOutput) ConfigurationId() pulumi.StringOutput { + return o.ApplyT(func(v *AutomanageConfigurationAssignment) pulumi.StringOutput { return v.ConfigurationId }).(pulumi.StringOutput) +} + +type AutomanageConfigurationAssignmentArrayOutput struct{ *pulumi.OutputState } + +func (AutomanageConfigurationAssignmentArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]*AutomanageConfigurationAssignment)(nil)).Elem() +} + +func (o AutomanageConfigurationAssignmentArrayOutput) ToAutomanageConfigurationAssignmentArrayOutput() AutomanageConfigurationAssignmentArrayOutput { + return o +} + +func (o AutomanageConfigurationAssignmentArrayOutput) ToAutomanageConfigurationAssignmentArrayOutputWithContext(ctx context.Context) AutomanageConfigurationAssignmentArrayOutput { + return o +} + +func (o AutomanageConfigurationAssignmentArrayOutput) Index(i pulumi.IntInput) AutomanageConfigurationAssignmentOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) *AutomanageConfigurationAssignment { + return vs[0].([]*AutomanageConfigurationAssignment)[vs[1].(int)] + }).(AutomanageConfigurationAssignmentOutput) +} + +type AutomanageConfigurationAssignmentMapOutput struct{ *pulumi.OutputState } + +func (AutomanageConfigurationAssignmentMapOutput) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*AutomanageConfigurationAssignment)(nil)).Elem() +} + +func (o AutomanageConfigurationAssignmentMapOutput) ToAutomanageConfigurationAssignmentMapOutput() AutomanageConfigurationAssignmentMapOutput { + return o +} + +func (o AutomanageConfigurationAssignmentMapOutput) ToAutomanageConfigurationAssignmentMapOutputWithContext(ctx context.Context) AutomanageConfigurationAssignmentMapOutput { + return o +} + +func (o AutomanageConfigurationAssignmentMapOutput) MapIndex(k pulumi.StringInput) AutomanageConfigurationAssignmentOutput { + return pulumi.All(o, k).ApplyT(func(vs []interface{}) *AutomanageConfigurationAssignment { + return vs[0].(map[string]*AutomanageConfigurationAssignment)[vs[1].(string)] + }).(AutomanageConfigurationAssignmentOutput) +} + +func init() { + pulumi.RegisterInputType(reflect.TypeOf((*AutomanageConfigurationAssignmentInput)(nil)).Elem(), &AutomanageConfigurationAssignment{}) + pulumi.RegisterInputType(reflect.TypeOf((*AutomanageConfigurationAssignmentArrayInput)(nil)).Elem(), AutomanageConfigurationAssignmentArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*AutomanageConfigurationAssignmentMapInput)(nil)).Elem(), AutomanageConfigurationAssignmentMap{}) + pulumi.RegisterOutputType(AutomanageConfigurationAssignmentOutput{}) + pulumi.RegisterOutputType(AutomanageConfigurationAssignmentArrayOutput{}) + pulumi.RegisterOutputType(AutomanageConfigurationAssignmentMapOutput{}) +} diff --git a/sdk/go/azure/arcmachine/init.go b/sdk/go/azure/arcmachine/init.go index 9bc3919ebb..e72391101f 100644 --- a/sdk/go/azure/arcmachine/init.go +++ b/sdk/go/azure/arcmachine/init.go @@ -21,6 +21,10 @@ func (m *module) Version() semver.Version { func (m *module) Construct(ctx *pulumi.Context, name, typ, urn string) (r pulumi.Resource, err error) { switch typ { + case "azure:arcmachine/arcMachine:ArcMachine": + r = &ArcMachine{} + case "azure:arcmachine/automanageConfigurationAssignment:AutomanageConfigurationAssignment": + r = &AutomanageConfigurationAssignment{} case "azure:arcmachine/extension:Extension": r = &Extension{} default: @@ -36,6 +40,16 @@ func init() { if err != nil { version = semver.Version{Major: 1} } + pulumi.RegisterResourceModule( + "azure", + "arcmachine/arcMachine", + &module{version}, + ) + pulumi.RegisterResourceModule( + "azure", + "arcmachine/automanageConfigurationAssignment", + &module{version}, + ) pulumi.RegisterResourceModule( "azure", "arcmachine/extension", diff --git a/sdk/go/azure/dataprotection/backupVault.go b/sdk/go/azure/dataprotection/backupVault.go index 4765ee2ea4..075c0151b7 100644 --- a/sdk/go/azure/dataprotection/backupVault.go +++ b/sdk/go/azure/dataprotection/backupVault.go @@ -62,6 +62,10 @@ import ( type BackupVault struct { pulumi.CustomResourceState + // Whether to enable cross-region restore for the Backup Vault. + // + // > **Note:** The `crossRegionRestoreEnabled` can only be specified when `redundancy` is specified for `GeoRedundant`. Once `crossRegionRestoreEnabled` is enabled, it cannot be disabled. + CrossRegionRestoreEnabled pulumi.BoolPtrOutput `pulumi:"crossRegionRestoreEnabled"` // Specifies the type of the data store. Possible values are `ArchiveStore`, `OperationalStore`, `SnapshotStore` and `VaultStore`. Changing this forces a new resource to be created. // // > **Note:** The `SnapshotStore` will be removed in version 4.0 as it has been replaced by `OperationalStore`. @@ -127,6 +131,10 @@ func GetBackupVault(ctx *pulumi.Context, // Input properties used for looking up and filtering BackupVault resources. type backupVaultState struct { + // Whether to enable cross-region restore for the Backup Vault. + // + // > **Note:** The `crossRegionRestoreEnabled` can only be specified when `redundancy` is specified for `GeoRedundant`. Once `crossRegionRestoreEnabled` is enabled, it cannot be disabled. + CrossRegionRestoreEnabled *bool `pulumi:"crossRegionRestoreEnabled"` // Specifies the type of the data store. Possible values are `ArchiveStore`, `OperationalStore`, `SnapshotStore` and `VaultStore`. Changing this forces a new resource to be created. // // > **Note:** The `SnapshotStore` will be removed in version 4.0 as it has been replaced by `OperationalStore`. @@ -154,6 +162,10 @@ type backupVaultState struct { } type BackupVaultState struct { + // Whether to enable cross-region restore for the Backup Vault. + // + // > **Note:** The `crossRegionRestoreEnabled` can only be specified when `redundancy` is specified for `GeoRedundant`. Once `crossRegionRestoreEnabled` is enabled, it cannot be disabled. + CrossRegionRestoreEnabled pulumi.BoolPtrInput // Specifies the type of the data store. Possible values are `ArchiveStore`, `OperationalStore`, `SnapshotStore` and `VaultStore`. Changing this forces a new resource to be created. // // > **Note:** The `SnapshotStore` will be removed in version 4.0 as it has been replaced by `OperationalStore`. @@ -185,6 +197,10 @@ func (BackupVaultState) ElementType() reflect.Type { } type backupVaultArgs struct { + // Whether to enable cross-region restore for the Backup Vault. + // + // > **Note:** The `crossRegionRestoreEnabled` can only be specified when `redundancy` is specified for `GeoRedundant`. Once `crossRegionRestoreEnabled` is enabled, it cannot be disabled. + CrossRegionRestoreEnabled *bool `pulumi:"crossRegionRestoreEnabled"` // Specifies the type of the data store. Possible values are `ArchiveStore`, `OperationalStore`, `SnapshotStore` and `VaultStore`. Changing this forces a new resource to be created. // // > **Note:** The `SnapshotStore` will be removed in version 4.0 as it has been replaced by `OperationalStore`. @@ -213,6 +229,10 @@ type backupVaultArgs struct { // The set of arguments for constructing a BackupVault resource. type BackupVaultArgs struct { + // Whether to enable cross-region restore for the Backup Vault. + // + // > **Note:** The `crossRegionRestoreEnabled` can only be specified when `redundancy` is specified for `GeoRedundant`. Once `crossRegionRestoreEnabled` is enabled, it cannot be disabled. + CrossRegionRestoreEnabled pulumi.BoolPtrInput // Specifies the type of the data store. Possible values are `ArchiveStore`, `OperationalStore`, `SnapshotStore` and `VaultStore`. Changing this forces a new resource to be created. // // > **Note:** The `SnapshotStore` will be removed in version 4.0 as it has been replaced by `OperationalStore`. @@ -326,6 +346,13 @@ func (o BackupVaultOutput) ToBackupVaultOutputWithContext(ctx context.Context) B return o } +// Whether to enable cross-region restore for the Backup Vault. +// +// > **Note:** The `crossRegionRestoreEnabled` can only be specified when `redundancy` is specified for `GeoRedundant`. Once `crossRegionRestoreEnabled` is enabled, it cannot be disabled. +func (o BackupVaultOutput) CrossRegionRestoreEnabled() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *BackupVault) pulumi.BoolPtrOutput { return v.CrossRegionRestoreEnabled }).(pulumi.BoolPtrOutput) +} + // Specifies the type of the data store. Possible values are `ArchiveStore`, `OperationalStore`, `SnapshotStore` and `VaultStore`. Changing this forces a new resource to be created. // // > **Note:** The `SnapshotStore` will be removed in version 4.0 as it has been replaced by `OperationalStore`. diff --git a/sdk/go/azure/eventhub/queue.go b/sdk/go/azure/eventhub/queue.go index 2f90f1e161..b687a1a4cd 100644 --- a/sdk/go/azure/eventhub/queue.go +++ b/sdk/go/azure/eventhub/queue.go @@ -74,14 +74,14 @@ import ( type Queue struct { pulumi.CustomResourceState - // The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. Defaults to `P10675199DT2H48M5.4775807S`. - AutoDeleteOnIdle pulumi.StringPtrOutput `pulumi:"autoDeleteOnIdle"` + // The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. + AutoDeleteOnIdle pulumi.StringOutput `pulumi:"autoDeleteOnIdle"` // Boolean flag which controls whether server-side batched operations are enabled. Defaults to `true`. BatchedOperationsEnabled pulumi.BoolPtrOutput `pulumi:"batchedOperationsEnabled"` // Boolean flag which controls whether the Queue has dead letter support when a message expires. Defaults to `false`. DeadLetteringOnMessageExpiration pulumi.BoolPtrOutput `pulumi:"deadLetteringOnMessageExpiration"` - // The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. Defaults to `P10675199DT2H48M5.4775807S`. - DefaultMessageTtl pulumi.StringPtrOutput `pulumi:"defaultMessageTtl"` + // The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. + DefaultMessageTtl pulumi.StringOutput `pulumi:"defaultMessageTtl"` // The ISO 8601 timespan duration during which duplicates can be detected. Defaults to `PT10M` (10 Minutes). DuplicateDetectionHistoryTimeWindow pulumi.StringPtrOutput `pulumi:"duplicateDetectionHistoryTimeWindow"` // Boolean flag which controls whether Express Entities are enabled. An express queue holds a message in memory temporarily before writing it to persistent storage. Defaults to `false` for Basic and Standard. For Premium, it MUST be set to `false`. @@ -96,9 +96,9 @@ type Queue struct { LockDuration pulumi.StringPtrOutput `pulumi:"lockDuration"` // Integer value which controls when a message is automatically dead lettered. Defaults to `10`. MaxDeliveryCount pulumi.IntPtrOutput `pulumi:"maxDeliveryCount"` - // Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). Defaults to `256`. + // Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). MaxMessageSizeInKilobytes pulumi.IntOutput `pulumi:"maxMessageSizeInKilobytes"` - // Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). Defaults to `5120`. + // Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). MaxSizeInMegabytes pulumi.IntOutput `pulumi:"maxSizeInMegabytes"` // Specifies the name of the ServiceBus Queue resource. Changing this forces a new resource to be created. Name pulumi.StringOutput `pulumi:"name"` @@ -151,13 +151,13 @@ func GetQueue(ctx *pulumi.Context, // Input properties used for looking up and filtering Queue resources. type queueState struct { - // The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. Defaults to `P10675199DT2H48M5.4775807S`. + // The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. AutoDeleteOnIdle *string `pulumi:"autoDeleteOnIdle"` // Boolean flag which controls whether server-side batched operations are enabled. Defaults to `true`. BatchedOperationsEnabled *bool `pulumi:"batchedOperationsEnabled"` // Boolean flag which controls whether the Queue has dead letter support when a message expires. Defaults to `false`. DeadLetteringOnMessageExpiration *bool `pulumi:"deadLetteringOnMessageExpiration"` - // The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. Defaults to `P10675199DT2H48M5.4775807S`. + // The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. DefaultMessageTtl *string `pulumi:"defaultMessageTtl"` // The ISO 8601 timespan duration during which duplicates can be detected. Defaults to `PT10M` (10 Minutes). DuplicateDetectionHistoryTimeWindow *string `pulumi:"duplicateDetectionHistoryTimeWindow"` @@ -173,9 +173,9 @@ type queueState struct { LockDuration *string `pulumi:"lockDuration"` // Integer value which controls when a message is automatically dead lettered. Defaults to `10`. MaxDeliveryCount *int `pulumi:"maxDeliveryCount"` - // Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). Defaults to `256`. + // Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). MaxMessageSizeInKilobytes *int `pulumi:"maxMessageSizeInKilobytes"` - // Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). Defaults to `5120`. + // Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). MaxSizeInMegabytes *int `pulumi:"maxSizeInMegabytes"` // Specifies the name of the ServiceBus Queue resource. Changing this forces a new resource to be created. Name *string `pulumi:"name"` @@ -196,13 +196,13 @@ type queueState struct { } type QueueState struct { - // The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. Defaults to `P10675199DT2H48M5.4775807S`. + // The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. AutoDeleteOnIdle pulumi.StringPtrInput // Boolean flag which controls whether server-side batched operations are enabled. Defaults to `true`. BatchedOperationsEnabled pulumi.BoolPtrInput // Boolean flag which controls whether the Queue has dead letter support when a message expires. Defaults to `false`. DeadLetteringOnMessageExpiration pulumi.BoolPtrInput - // The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. Defaults to `P10675199DT2H48M5.4775807S`. + // The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. DefaultMessageTtl pulumi.StringPtrInput // The ISO 8601 timespan duration during which duplicates can be detected. Defaults to `PT10M` (10 Minutes). DuplicateDetectionHistoryTimeWindow pulumi.StringPtrInput @@ -218,9 +218,9 @@ type QueueState struct { LockDuration pulumi.StringPtrInput // Integer value which controls when a message is automatically dead lettered. Defaults to `10`. MaxDeliveryCount pulumi.IntPtrInput - // Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). Defaults to `256`. + // Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). MaxMessageSizeInKilobytes pulumi.IntPtrInput - // Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). Defaults to `5120`. + // Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). MaxSizeInMegabytes pulumi.IntPtrInput // Specifies the name of the ServiceBus Queue resource. Changing this forces a new resource to be created. Name pulumi.StringPtrInput @@ -245,13 +245,13 @@ func (QueueState) ElementType() reflect.Type { } type queueArgs struct { - // The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. Defaults to `P10675199DT2H48M5.4775807S`. + // The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. AutoDeleteOnIdle *string `pulumi:"autoDeleteOnIdle"` // Boolean flag which controls whether server-side batched operations are enabled. Defaults to `true`. BatchedOperationsEnabled *bool `pulumi:"batchedOperationsEnabled"` // Boolean flag which controls whether the Queue has dead letter support when a message expires. Defaults to `false`. DeadLetteringOnMessageExpiration *bool `pulumi:"deadLetteringOnMessageExpiration"` - // The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. Defaults to `P10675199DT2H48M5.4775807S`. + // The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. DefaultMessageTtl *string `pulumi:"defaultMessageTtl"` // The ISO 8601 timespan duration during which duplicates can be detected. Defaults to `PT10M` (10 Minutes). DuplicateDetectionHistoryTimeWindow *string `pulumi:"duplicateDetectionHistoryTimeWindow"` @@ -267,9 +267,9 @@ type queueArgs struct { LockDuration *string `pulumi:"lockDuration"` // Integer value which controls when a message is automatically dead lettered. Defaults to `10`. MaxDeliveryCount *int `pulumi:"maxDeliveryCount"` - // Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). Defaults to `256`. + // Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). MaxMessageSizeInKilobytes *int `pulumi:"maxMessageSizeInKilobytes"` - // Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). Defaults to `5120`. + // Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). MaxSizeInMegabytes *int `pulumi:"maxSizeInMegabytes"` // Specifies the name of the ServiceBus Queue resource. Changing this forces a new resource to be created. Name *string `pulumi:"name"` @@ -289,13 +289,13 @@ type queueArgs struct { // The set of arguments for constructing a Queue resource. type QueueArgs struct { - // The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. Defaults to `P10675199DT2H48M5.4775807S`. + // The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. AutoDeleteOnIdle pulumi.StringPtrInput // Boolean flag which controls whether server-side batched operations are enabled. Defaults to `true`. BatchedOperationsEnabled pulumi.BoolPtrInput // Boolean flag which controls whether the Queue has dead letter support when a message expires. Defaults to `false`. DeadLetteringOnMessageExpiration pulumi.BoolPtrInput - // The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. Defaults to `P10675199DT2H48M5.4775807S`. + // The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. DefaultMessageTtl pulumi.StringPtrInput // The ISO 8601 timespan duration during which duplicates can be detected. Defaults to `PT10M` (10 Minutes). DuplicateDetectionHistoryTimeWindow pulumi.StringPtrInput @@ -311,9 +311,9 @@ type QueueArgs struct { LockDuration pulumi.StringPtrInput // Integer value which controls when a message is automatically dead lettered. Defaults to `10`. MaxDeliveryCount pulumi.IntPtrInput - // Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). Defaults to `256`. + // Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). MaxMessageSizeInKilobytes pulumi.IntPtrInput - // Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). Defaults to `5120`. + // Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). MaxSizeInMegabytes pulumi.IntPtrInput // Specifies the name of the ServiceBus Queue resource. Changing this forces a new resource to be created. Name pulumi.StringPtrInput @@ -418,9 +418,9 @@ func (o QueueOutput) ToQueueOutputWithContext(ctx context.Context) QueueOutput { return o } -// The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. Defaults to `P10675199DT2H48M5.4775807S`. -func (o QueueOutput) AutoDeleteOnIdle() pulumi.StringPtrOutput { - return o.ApplyT(func(v *Queue) pulumi.StringPtrOutput { return v.AutoDeleteOnIdle }).(pulumi.StringPtrOutput) +// The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. +func (o QueueOutput) AutoDeleteOnIdle() pulumi.StringOutput { + return o.ApplyT(func(v *Queue) pulumi.StringOutput { return v.AutoDeleteOnIdle }).(pulumi.StringOutput) } // Boolean flag which controls whether server-side batched operations are enabled. Defaults to `true`. @@ -433,9 +433,9 @@ func (o QueueOutput) DeadLetteringOnMessageExpiration() pulumi.BoolPtrOutput { return o.ApplyT(func(v *Queue) pulumi.BoolPtrOutput { return v.DeadLetteringOnMessageExpiration }).(pulumi.BoolPtrOutput) } -// The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. Defaults to `P10675199DT2H48M5.4775807S`. -func (o QueueOutput) DefaultMessageTtl() pulumi.StringPtrOutput { - return o.ApplyT(func(v *Queue) pulumi.StringPtrOutput { return v.DefaultMessageTtl }).(pulumi.StringPtrOutput) +// The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. +func (o QueueOutput) DefaultMessageTtl() pulumi.StringOutput { + return o.ApplyT(func(v *Queue) pulumi.StringOutput { return v.DefaultMessageTtl }).(pulumi.StringOutput) } // The ISO 8601 timespan duration during which duplicates can be detected. Defaults to `PT10M` (10 Minutes). @@ -470,12 +470,12 @@ func (o QueueOutput) MaxDeliveryCount() pulumi.IntPtrOutput { return o.ApplyT(func(v *Queue) pulumi.IntPtrOutput { return v.MaxDeliveryCount }).(pulumi.IntPtrOutput) } -// Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). Defaults to `256`. +// Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). func (o QueueOutput) MaxMessageSizeInKilobytes() pulumi.IntOutput { return o.ApplyT(func(v *Queue) pulumi.IntOutput { return v.MaxMessageSizeInKilobytes }).(pulumi.IntOutput) } -// Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). Defaults to `5120`. +// Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). func (o QueueOutput) MaxSizeInMegabytes() pulumi.IntOutput { return o.ApplyT(func(v *Queue) pulumi.IntOutput { return v.MaxSizeInMegabytes }).(pulumi.IntOutput) } diff --git a/sdk/go/azure/media/accountFilter.go b/sdk/go/azure/media/accountFilter.go deleted file mode 100644 index e16aa94ae5..0000000000 --- a/sdk/go/azure/media/accountFilter.go +++ /dev/null @@ -1,260 +0,0 @@ -// 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 media - -import ( - "context" - "reflect" - - "errors" - "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" - "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -) - -type AccountFilter struct { - pulumi.CustomResourceState - - FirstQualityBitrate pulumi.IntPtrOutput `pulumi:"firstQualityBitrate"` - MediaServicesAccountName pulumi.StringOutput `pulumi:"mediaServicesAccountName"` - Name pulumi.StringOutput `pulumi:"name"` - PresentationTimeRange AccountFilterPresentationTimeRangePtrOutput `pulumi:"presentationTimeRange"` - ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` - TrackSelections AccountFilterTrackSelectionArrayOutput `pulumi:"trackSelections"` -} - -// NewAccountFilter registers a new resource with the given unique name, arguments, and options. -func NewAccountFilter(ctx *pulumi.Context, - name string, args *AccountFilterArgs, opts ...pulumi.ResourceOption) (*AccountFilter, error) { - if args == nil { - return nil, errors.New("missing one or more required arguments") - } - - if args.MediaServicesAccountName == nil { - return nil, errors.New("invalid value for required argument 'MediaServicesAccountName'") - } - if args.ResourceGroupName == nil { - return nil, errors.New("invalid value for required argument 'ResourceGroupName'") - } - opts = internal.PkgResourceDefaultOpts(opts) - var resource AccountFilter - err := ctx.RegisterResource("azure:media/accountFilter:AccountFilter", name, args, &resource, opts...) - if err != nil { - return nil, err - } - return &resource, nil -} - -// GetAccountFilter gets an existing AccountFilter 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 GetAccountFilter(ctx *pulumi.Context, - name string, id pulumi.IDInput, state *AccountFilterState, opts ...pulumi.ResourceOption) (*AccountFilter, error) { - var resource AccountFilter - err := ctx.ReadResource("azure:media/accountFilter:AccountFilter", name, id, state, &resource, opts...) - if err != nil { - return nil, err - } - return &resource, nil -} - -// Input properties used for looking up and filtering AccountFilter resources. -type accountFilterState struct { - FirstQualityBitrate *int `pulumi:"firstQualityBitrate"` - MediaServicesAccountName *string `pulumi:"mediaServicesAccountName"` - Name *string `pulumi:"name"` - PresentationTimeRange *AccountFilterPresentationTimeRange `pulumi:"presentationTimeRange"` - ResourceGroupName *string `pulumi:"resourceGroupName"` - TrackSelections []AccountFilterTrackSelection `pulumi:"trackSelections"` -} - -type AccountFilterState struct { - FirstQualityBitrate pulumi.IntPtrInput - MediaServicesAccountName pulumi.StringPtrInput - Name pulumi.StringPtrInput - PresentationTimeRange AccountFilterPresentationTimeRangePtrInput - ResourceGroupName pulumi.StringPtrInput - TrackSelections AccountFilterTrackSelectionArrayInput -} - -func (AccountFilterState) ElementType() reflect.Type { - return reflect.TypeOf((*accountFilterState)(nil)).Elem() -} - -type accountFilterArgs struct { - FirstQualityBitrate *int `pulumi:"firstQualityBitrate"` - MediaServicesAccountName string `pulumi:"mediaServicesAccountName"` - Name *string `pulumi:"name"` - PresentationTimeRange *AccountFilterPresentationTimeRange `pulumi:"presentationTimeRange"` - ResourceGroupName string `pulumi:"resourceGroupName"` - TrackSelections []AccountFilterTrackSelection `pulumi:"trackSelections"` -} - -// The set of arguments for constructing a AccountFilter resource. -type AccountFilterArgs struct { - FirstQualityBitrate pulumi.IntPtrInput - MediaServicesAccountName pulumi.StringInput - Name pulumi.StringPtrInput - PresentationTimeRange AccountFilterPresentationTimeRangePtrInput - ResourceGroupName pulumi.StringInput - TrackSelections AccountFilterTrackSelectionArrayInput -} - -func (AccountFilterArgs) ElementType() reflect.Type { - return reflect.TypeOf((*accountFilterArgs)(nil)).Elem() -} - -type AccountFilterInput interface { - pulumi.Input - - ToAccountFilterOutput() AccountFilterOutput - ToAccountFilterOutputWithContext(ctx context.Context) AccountFilterOutput -} - -func (*AccountFilter) ElementType() reflect.Type { - return reflect.TypeOf((**AccountFilter)(nil)).Elem() -} - -func (i *AccountFilter) ToAccountFilterOutput() AccountFilterOutput { - return i.ToAccountFilterOutputWithContext(context.Background()) -} - -func (i *AccountFilter) ToAccountFilterOutputWithContext(ctx context.Context) AccountFilterOutput { - return pulumi.ToOutputWithContext(ctx, i).(AccountFilterOutput) -} - -// AccountFilterArrayInput is an input type that accepts AccountFilterArray and AccountFilterArrayOutput values. -// You can construct a concrete instance of `AccountFilterArrayInput` via: -// -// AccountFilterArray{ AccountFilterArgs{...} } -type AccountFilterArrayInput interface { - pulumi.Input - - ToAccountFilterArrayOutput() AccountFilterArrayOutput - ToAccountFilterArrayOutputWithContext(context.Context) AccountFilterArrayOutput -} - -type AccountFilterArray []AccountFilterInput - -func (AccountFilterArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]*AccountFilter)(nil)).Elem() -} - -func (i AccountFilterArray) ToAccountFilterArrayOutput() AccountFilterArrayOutput { - return i.ToAccountFilterArrayOutputWithContext(context.Background()) -} - -func (i AccountFilterArray) ToAccountFilterArrayOutputWithContext(ctx context.Context) AccountFilterArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(AccountFilterArrayOutput) -} - -// AccountFilterMapInput is an input type that accepts AccountFilterMap and AccountFilterMapOutput values. -// You can construct a concrete instance of `AccountFilterMapInput` via: -// -// AccountFilterMap{ "key": AccountFilterArgs{...} } -type AccountFilterMapInput interface { - pulumi.Input - - ToAccountFilterMapOutput() AccountFilterMapOutput - ToAccountFilterMapOutputWithContext(context.Context) AccountFilterMapOutput -} - -type AccountFilterMap map[string]AccountFilterInput - -func (AccountFilterMap) ElementType() reflect.Type { - return reflect.TypeOf((*map[string]*AccountFilter)(nil)).Elem() -} - -func (i AccountFilterMap) ToAccountFilterMapOutput() AccountFilterMapOutput { - return i.ToAccountFilterMapOutputWithContext(context.Background()) -} - -func (i AccountFilterMap) ToAccountFilterMapOutputWithContext(ctx context.Context) AccountFilterMapOutput { - return pulumi.ToOutputWithContext(ctx, i).(AccountFilterMapOutput) -} - -type AccountFilterOutput struct{ *pulumi.OutputState } - -func (AccountFilterOutput) ElementType() reflect.Type { - return reflect.TypeOf((**AccountFilter)(nil)).Elem() -} - -func (o AccountFilterOutput) ToAccountFilterOutput() AccountFilterOutput { - return o -} - -func (o AccountFilterOutput) ToAccountFilterOutputWithContext(ctx context.Context) AccountFilterOutput { - return o -} - -func (o AccountFilterOutput) FirstQualityBitrate() pulumi.IntPtrOutput { - return o.ApplyT(func(v *AccountFilter) pulumi.IntPtrOutput { return v.FirstQualityBitrate }).(pulumi.IntPtrOutput) -} - -func (o AccountFilterOutput) MediaServicesAccountName() pulumi.StringOutput { - return o.ApplyT(func(v *AccountFilter) pulumi.StringOutput { return v.MediaServicesAccountName }).(pulumi.StringOutput) -} - -func (o AccountFilterOutput) Name() pulumi.StringOutput { - return o.ApplyT(func(v *AccountFilter) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) -} - -func (o AccountFilterOutput) PresentationTimeRange() AccountFilterPresentationTimeRangePtrOutput { - return o.ApplyT(func(v *AccountFilter) AccountFilterPresentationTimeRangePtrOutput { return v.PresentationTimeRange }).(AccountFilterPresentationTimeRangePtrOutput) -} - -func (o AccountFilterOutput) ResourceGroupName() pulumi.StringOutput { - return o.ApplyT(func(v *AccountFilter) pulumi.StringOutput { return v.ResourceGroupName }).(pulumi.StringOutput) -} - -func (o AccountFilterOutput) TrackSelections() AccountFilterTrackSelectionArrayOutput { - return o.ApplyT(func(v *AccountFilter) AccountFilterTrackSelectionArrayOutput { return v.TrackSelections }).(AccountFilterTrackSelectionArrayOutput) -} - -type AccountFilterArrayOutput struct{ *pulumi.OutputState } - -func (AccountFilterArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]*AccountFilter)(nil)).Elem() -} - -func (o AccountFilterArrayOutput) ToAccountFilterArrayOutput() AccountFilterArrayOutput { - return o -} - -func (o AccountFilterArrayOutput) ToAccountFilterArrayOutputWithContext(ctx context.Context) AccountFilterArrayOutput { - return o -} - -func (o AccountFilterArrayOutput) Index(i pulumi.IntInput) AccountFilterOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) *AccountFilter { - return vs[0].([]*AccountFilter)[vs[1].(int)] - }).(AccountFilterOutput) -} - -type AccountFilterMapOutput struct{ *pulumi.OutputState } - -func (AccountFilterMapOutput) ElementType() reflect.Type { - return reflect.TypeOf((*map[string]*AccountFilter)(nil)).Elem() -} - -func (o AccountFilterMapOutput) ToAccountFilterMapOutput() AccountFilterMapOutput { - return o -} - -func (o AccountFilterMapOutput) ToAccountFilterMapOutputWithContext(ctx context.Context) AccountFilterMapOutput { - return o -} - -func (o AccountFilterMapOutput) MapIndex(k pulumi.StringInput) AccountFilterOutput { - return pulumi.All(o, k).ApplyT(func(vs []interface{}) *AccountFilter { - return vs[0].(map[string]*AccountFilter)[vs[1].(string)] - }).(AccountFilterOutput) -} - -func init() { - pulumi.RegisterInputType(reflect.TypeOf((*AccountFilterInput)(nil)).Elem(), &AccountFilter{}) - pulumi.RegisterInputType(reflect.TypeOf((*AccountFilterArrayInput)(nil)).Elem(), AccountFilterArray{}) - pulumi.RegisterInputType(reflect.TypeOf((*AccountFilterMapInput)(nil)).Elem(), AccountFilterMap{}) - pulumi.RegisterOutputType(AccountFilterOutput{}) - pulumi.RegisterOutputType(AccountFilterArrayOutput{}) - pulumi.RegisterOutputType(AccountFilterMapOutput{}) -} diff --git a/sdk/go/azure/media/init.go b/sdk/go/azure/media/init.go deleted file mode 100644 index 9037a1e56a..0000000000 --- a/sdk/go/azure/media/init.go +++ /dev/null @@ -1,44 +0,0 @@ -// 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 media - -import ( - "fmt" - - "github.com/blang/semver" - "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" - "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -) - -type module struct { - version semver.Version -} - -func (m *module) Version() semver.Version { - return m.version -} - -func (m *module) Construct(ctx *pulumi.Context, name, typ, urn string) (r pulumi.Resource, err error) { - switch typ { - case "azure:media/accountFilter:AccountFilter": - r = &AccountFilter{} - default: - return nil, fmt.Errorf("unknown resource type: %s", typ) - } - - err = ctx.RegisterResource(typ, name, nil, r, pulumi.URN_(urn)) - return -} - -func init() { - version, err := internal.PkgVersion() - if err != nil { - version = semver.Version{Major: 1} - } - pulumi.RegisterResourceModule( - "azure", - "media/accountFilter", - &module{version}, - ) -} diff --git a/sdk/go/azure/media/pulumiTypes.go b/sdk/go/azure/media/pulumiTypes.go deleted file mode 100644 index aa62210a38..0000000000 --- a/sdk/go/azure/media/pulumiTypes.go +++ /dev/null @@ -1,437 +0,0 @@ -// 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 media - -import ( - "context" - "reflect" - - "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" - "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -) - -var _ = internal.GetEnvOrDefault - -type AccountFilterPresentationTimeRange struct { - EndInUnits *int `pulumi:"endInUnits"` - ForceEnd *bool `pulumi:"forceEnd"` - LiveBackoffInUnits *int `pulumi:"liveBackoffInUnits"` - PresentationWindowInUnits *int `pulumi:"presentationWindowInUnits"` - StartInUnits *int `pulumi:"startInUnits"` - UnitTimescaleInMilliseconds int `pulumi:"unitTimescaleInMilliseconds"` -} - -// AccountFilterPresentationTimeRangeInput is an input type that accepts AccountFilterPresentationTimeRangeArgs and AccountFilterPresentationTimeRangeOutput values. -// You can construct a concrete instance of `AccountFilterPresentationTimeRangeInput` via: -// -// AccountFilterPresentationTimeRangeArgs{...} -type AccountFilterPresentationTimeRangeInput interface { - pulumi.Input - - ToAccountFilterPresentationTimeRangeOutput() AccountFilterPresentationTimeRangeOutput - ToAccountFilterPresentationTimeRangeOutputWithContext(context.Context) AccountFilterPresentationTimeRangeOutput -} - -type AccountFilterPresentationTimeRangeArgs struct { - EndInUnits pulumi.IntPtrInput `pulumi:"endInUnits"` - ForceEnd pulumi.BoolPtrInput `pulumi:"forceEnd"` - LiveBackoffInUnits pulumi.IntPtrInput `pulumi:"liveBackoffInUnits"` - PresentationWindowInUnits pulumi.IntPtrInput `pulumi:"presentationWindowInUnits"` - StartInUnits pulumi.IntPtrInput `pulumi:"startInUnits"` - UnitTimescaleInMilliseconds pulumi.IntInput `pulumi:"unitTimescaleInMilliseconds"` -} - -func (AccountFilterPresentationTimeRangeArgs) ElementType() reflect.Type { - return reflect.TypeOf((*AccountFilterPresentationTimeRange)(nil)).Elem() -} - -func (i AccountFilterPresentationTimeRangeArgs) ToAccountFilterPresentationTimeRangeOutput() AccountFilterPresentationTimeRangeOutput { - return i.ToAccountFilterPresentationTimeRangeOutputWithContext(context.Background()) -} - -func (i AccountFilterPresentationTimeRangeArgs) ToAccountFilterPresentationTimeRangeOutputWithContext(ctx context.Context) AccountFilterPresentationTimeRangeOutput { - return pulumi.ToOutputWithContext(ctx, i).(AccountFilterPresentationTimeRangeOutput) -} - -func (i AccountFilterPresentationTimeRangeArgs) ToAccountFilterPresentationTimeRangePtrOutput() AccountFilterPresentationTimeRangePtrOutput { - return i.ToAccountFilterPresentationTimeRangePtrOutputWithContext(context.Background()) -} - -func (i AccountFilterPresentationTimeRangeArgs) ToAccountFilterPresentationTimeRangePtrOutputWithContext(ctx context.Context) AccountFilterPresentationTimeRangePtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(AccountFilterPresentationTimeRangeOutput).ToAccountFilterPresentationTimeRangePtrOutputWithContext(ctx) -} - -// AccountFilterPresentationTimeRangePtrInput is an input type that accepts AccountFilterPresentationTimeRangeArgs, AccountFilterPresentationTimeRangePtr and AccountFilterPresentationTimeRangePtrOutput values. -// You can construct a concrete instance of `AccountFilterPresentationTimeRangePtrInput` via: -// -// AccountFilterPresentationTimeRangeArgs{...} -// -// or: -// -// nil -type AccountFilterPresentationTimeRangePtrInput interface { - pulumi.Input - - ToAccountFilterPresentationTimeRangePtrOutput() AccountFilterPresentationTimeRangePtrOutput - ToAccountFilterPresentationTimeRangePtrOutputWithContext(context.Context) AccountFilterPresentationTimeRangePtrOutput -} - -type accountFilterPresentationTimeRangePtrType AccountFilterPresentationTimeRangeArgs - -func AccountFilterPresentationTimeRangePtr(v *AccountFilterPresentationTimeRangeArgs) AccountFilterPresentationTimeRangePtrInput { - return (*accountFilterPresentationTimeRangePtrType)(v) -} - -func (*accountFilterPresentationTimeRangePtrType) ElementType() reflect.Type { - return reflect.TypeOf((**AccountFilterPresentationTimeRange)(nil)).Elem() -} - -func (i *accountFilterPresentationTimeRangePtrType) ToAccountFilterPresentationTimeRangePtrOutput() AccountFilterPresentationTimeRangePtrOutput { - return i.ToAccountFilterPresentationTimeRangePtrOutputWithContext(context.Background()) -} - -func (i *accountFilterPresentationTimeRangePtrType) ToAccountFilterPresentationTimeRangePtrOutputWithContext(ctx context.Context) AccountFilterPresentationTimeRangePtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(AccountFilterPresentationTimeRangePtrOutput) -} - -type AccountFilterPresentationTimeRangeOutput struct{ *pulumi.OutputState } - -func (AccountFilterPresentationTimeRangeOutput) ElementType() reflect.Type { - return reflect.TypeOf((*AccountFilterPresentationTimeRange)(nil)).Elem() -} - -func (o AccountFilterPresentationTimeRangeOutput) ToAccountFilterPresentationTimeRangeOutput() AccountFilterPresentationTimeRangeOutput { - return o -} - -func (o AccountFilterPresentationTimeRangeOutput) ToAccountFilterPresentationTimeRangeOutputWithContext(ctx context.Context) AccountFilterPresentationTimeRangeOutput { - return o -} - -func (o AccountFilterPresentationTimeRangeOutput) ToAccountFilterPresentationTimeRangePtrOutput() AccountFilterPresentationTimeRangePtrOutput { - return o.ToAccountFilterPresentationTimeRangePtrOutputWithContext(context.Background()) -} - -func (o AccountFilterPresentationTimeRangeOutput) ToAccountFilterPresentationTimeRangePtrOutputWithContext(ctx context.Context) AccountFilterPresentationTimeRangePtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v AccountFilterPresentationTimeRange) *AccountFilterPresentationTimeRange { - return &v - }).(AccountFilterPresentationTimeRangePtrOutput) -} - -func (o AccountFilterPresentationTimeRangeOutput) EndInUnits() pulumi.IntPtrOutput { - return o.ApplyT(func(v AccountFilterPresentationTimeRange) *int { return v.EndInUnits }).(pulumi.IntPtrOutput) -} - -func (o AccountFilterPresentationTimeRangeOutput) ForceEnd() pulumi.BoolPtrOutput { - return o.ApplyT(func(v AccountFilterPresentationTimeRange) *bool { return v.ForceEnd }).(pulumi.BoolPtrOutput) -} - -func (o AccountFilterPresentationTimeRangeOutput) LiveBackoffInUnits() pulumi.IntPtrOutput { - return o.ApplyT(func(v AccountFilterPresentationTimeRange) *int { return v.LiveBackoffInUnits }).(pulumi.IntPtrOutput) -} - -func (o AccountFilterPresentationTimeRangeOutput) PresentationWindowInUnits() pulumi.IntPtrOutput { - return o.ApplyT(func(v AccountFilterPresentationTimeRange) *int { return v.PresentationWindowInUnits }).(pulumi.IntPtrOutput) -} - -func (o AccountFilterPresentationTimeRangeOutput) StartInUnits() pulumi.IntPtrOutput { - return o.ApplyT(func(v AccountFilterPresentationTimeRange) *int { return v.StartInUnits }).(pulumi.IntPtrOutput) -} - -func (o AccountFilterPresentationTimeRangeOutput) UnitTimescaleInMilliseconds() pulumi.IntOutput { - return o.ApplyT(func(v AccountFilterPresentationTimeRange) int { return v.UnitTimescaleInMilliseconds }).(pulumi.IntOutput) -} - -type AccountFilterPresentationTimeRangePtrOutput struct{ *pulumi.OutputState } - -func (AccountFilterPresentationTimeRangePtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**AccountFilterPresentationTimeRange)(nil)).Elem() -} - -func (o AccountFilterPresentationTimeRangePtrOutput) ToAccountFilterPresentationTimeRangePtrOutput() AccountFilterPresentationTimeRangePtrOutput { - return o -} - -func (o AccountFilterPresentationTimeRangePtrOutput) ToAccountFilterPresentationTimeRangePtrOutputWithContext(ctx context.Context) AccountFilterPresentationTimeRangePtrOutput { - return o -} - -func (o AccountFilterPresentationTimeRangePtrOutput) Elem() AccountFilterPresentationTimeRangeOutput { - return o.ApplyT(func(v *AccountFilterPresentationTimeRange) AccountFilterPresentationTimeRange { - if v != nil { - return *v - } - var ret AccountFilterPresentationTimeRange - return ret - }).(AccountFilterPresentationTimeRangeOutput) -} - -func (o AccountFilterPresentationTimeRangePtrOutput) EndInUnits() pulumi.IntPtrOutput { - return o.ApplyT(func(v *AccountFilterPresentationTimeRange) *int { - if v == nil { - return nil - } - return v.EndInUnits - }).(pulumi.IntPtrOutput) -} - -func (o AccountFilterPresentationTimeRangePtrOutput) ForceEnd() pulumi.BoolPtrOutput { - return o.ApplyT(func(v *AccountFilterPresentationTimeRange) *bool { - if v == nil { - return nil - } - return v.ForceEnd - }).(pulumi.BoolPtrOutput) -} - -func (o AccountFilterPresentationTimeRangePtrOutput) LiveBackoffInUnits() pulumi.IntPtrOutput { - return o.ApplyT(func(v *AccountFilterPresentationTimeRange) *int { - if v == nil { - return nil - } - return v.LiveBackoffInUnits - }).(pulumi.IntPtrOutput) -} - -func (o AccountFilterPresentationTimeRangePtrOutput) PresentationWindowInUnits() pulumi.IntPtrOutput { - return o.ApplyT(func(v *AccountFilterPresentationTimeRange) *int { - if v == nil { - return nil - } - return v.PresentationWindowInUnits - }).(pulumi.IntPtrOutput) -} - -func (o AccountFilterPresentationTimeRangePtrOutput) StartInUnits() pulumi.IntPtrOutput { - return o.ApplyT(func(v *AccountFilterPresentationTimeRange) *int { - if v == nil { - return nil - } - return v.StartInUnits - }).(pulumi.IntPtrOutput) -} - -func (o AccountFilterPresentationTimeRangePtrOutput) UnitTimescaleInMilliseconds() pulumi.IntPtrOutput { - return o.ApplyT(func(v *AccountFilterPresentationTimeRange) *int { - if v == nil { - return nil - } - return &v.UnitTimescaleInMilliseconds - }).(pulumi.IntPtrOutput) -} - -type AccountFilterTrackSelection struct { - Conditions []AccountFilterTrackSelectionCondition `pulumi:"conditions"` -} - -// AccountFilterTrackSelectionInput is an input type that accepts AccountFilterTrackSelectionArgs and AccountFilterTrackSelectionOutput values. -// You can construct a concrete instance of `AccountFilterTrackSelectionInput` via: -// -// AccountFilterTrackSelectionArgs{...} -type AccountFilterTrackSelectionInput interface { - pulumi.Input - - ToAccountFilterTrackSelectionOutput() AccountFilterTrackSelectionOutput - ToAccountFilterTrackSelectionOutputWithContext(context.Context) AccountFilterTrackSelectionOutput -} - -type AccountFilterTrackSelectionArgs struct { - Conditions AccountFilterTrackSelectionConditionArrayInput `pulumi:"conditions"` -} - -func (AccountFilterTrackSelectionArgs) ElementType() reflect.Type { - return reflect.TypeOf((*AccountFilterTrackSelection)(nil)).Elem() -} - -func (i AccountFilterTrackSelectionArgs) ToAccountFilterTrackSelectionOutput() AccountFilterTrackSelectionOutput { - return i.ToAccountFilterTrackSelectionOutputWithContext(context.Background()) -} - -func (i AccountFilterTrackSelectionArgs) ToAccountFilterTrackSelectionOutputWithContext(ctx context.Context) AccountFilterTrackSelectionOutput { - return pulumi.ToOutputWithContext(ctx, i).(AccountFilterTrackSelectionOutput) -} - -// AccountFilterTrackSelectionArrayInput is an input type that accepts AccountFilterTrackSelectionArray and AccountFilterTrackSelectionArrayOutput values. -// You can construct a concrete instance of `AccountFilterTrackSelectionArrayInput` via: -// -// AccountFilterTrackSelectionArray{ AccountFilterTrackSelectionArgs{...} } -type AccountFilterTrackSelectionArrayInput interface { - pulumi.Input - - ToAccountFilterTrackSelectionArrayOutput() AccountFilterTrackSelectionArrayOutput - ToAccountFilterTrackSelectionArrayOutputWithContext(context.Context) AccountFilterTrackSelectionArrayOutput -} - -type AccountFilterTrackSelectionArray []AccountFilterTrackSelectionInput - -func (AccountFilterTrackSelectionArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]AccountFilterTrackSelection)(nil)).Elem() -} - -func (i AccountFilterTrackSelectionArray) ToAccountFilterTrackSelectionArrayOutput() AccountFilterTrackSelectionArrayOutput { - return i.ToAccountFilterTrackSelectionArrayOutputWithContext(context.Background()) -} - -func (i AccountFilterTrackSelectionArray) ToAccountFilterTrackSelectionArrayOutputWithContext(ctx context.Context) AccountFilterTrackSelectionArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(AccountFilterTrackSelectionArrayOutput) -} - -type AccountFilterTrackSelectionOutput struct{ *pulumi.OutputState } - -func (AccountFilterTrackSelectionOutput) ElementType() reflect.Type { - return reflect.TypeOf((*AccountFilterTrackSelection)(nil)).Elem() -} - -func (o AccountFilterTrackSelectionOutput) ToAccountFilterTrackSelectionOutput() AccountFilterTrackSelectionOutput { - return o -} - -func (o AccountFilterTrackSelectionOutput) ToAccountFilterTrackSelectionOutputWithContext(ctx context.Context) AccountFilterTrackSelectionOutput { - return o -} - -func (o AccountFilterTrackSelectionOutput) Conditions() AccountFilterTrackSelectionConditionArrayOutput { - return o.ApplyT(func(v AccountFilterTrackSelection) []AccountFilterTrackSelectionCondition { return v.Conditions }).(AccountFilterTrackSelectionConditionArrayOutput) -} - -type AccountFilterTrackSelectionArrayOutput struct{ *pulumi.OutputState } - -func (AccountFilterTrackSelectionArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]AccountFilterTrackSelection)(nil)).Elem() -} - -func (o AccountFilterTrackSelectionArrayOutput) ToAccountFilterTrackSelectionArrayOutput() AccountFilterTrackSelectionArrayOutput { - return o -} - -func (o AccountFilterTrackSelectionArrayOutput) ToAccountFilterTrackSelectionArrayOutputWithContext(ctx context.Context) AccountFilterTrackSelectionArrayOutput { - return o -} - -func (o AccountFilterTrackSelectionArrayOutput) Index(i pulumi.IntInput) AccountFilterTrackSelectionOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) AccountFilterTrackSelection { - return vs[0].([]AccountFilterTrackSelection)[vs[1].(int)] - }).(AccountFilterTrackSelectionOutput) -} - -type AccountFilterTrackSelectionCondition struct { - Operation string `pulumi:"operation"` - Property string `pulumi:"property"` - Value string `pulumi:"value"` -} - -// AccountFilterTrackSelectionConditionInput is an input type that accepts AccountFilterTrackSelectionConditionArgs and AccountFilterTrackSelectionConditionOutput values. -// You can construct a concrete instance of `AccountFilterTrackSelectionConditionInput` via: -// -// AccountFilterTrackSelectionConditionArgs{...} -type AccountFilterTrackSelectionConditionInput interface { - pulumi.Input - - ToAccountFilterTrackSelectionConditionOutput() AccountFilterTrackSelectionConditionOutput - ToAccountFilterTrackSelectionConditionOutputWithContext(context.Context) AccountFilterTrackSelectionConditionOutput -} - -type AccountFilterTrackSelectionConditionArgs struct { - Operation pulumi.StringInput `pulumi:"operation"` - Property pulumi.StringInput `pulumi:"property"` - Value pulumi.StringInput `pulumi:"value"` -} - -func (AccountFilterTrackSelectionConditionArgs) ElementType() reflect.Type { - return reflect.TypeOf((*AccountFilterTrackSelectionCondition)(nil)).Elem() -} - -func (i AccountFilterTrackSelectionConditionArgs) ToAccountFilterTrackSelectionConditionOutput() AccountFilterTrackSelectionConditionOutput { - return i.ToAccountFilterTrackSelectionConditionOutputWithContext(context.Background()) -} - -func (i AccountFilterTrackSelectionConditionArgs) ToAccountFilterTrackSelectionConditionOutputWithContext(ctx context.Context) AccountFilterTrackSelectionConditionOutput { - return pulumi.ToOutputWithContext(ctx, i).(AccountFilterTrackSelectionConditionOutput) -} - -// AccountFilterTrackSelectionConditionArrayInput is an input type that accepts AccountFilterTrackSelectionConditionArray and AccountFilterTrackSelectionConditionArrayOutput values. -// You can construct a concrete instance of `AccountFilterTrackSelectionConditionArrayInput` via: -// -// AccountFilterTrackSelectionConditionArray{ AccountFilterTrackSelectionConditionArgs{...} } -type AccountFilterTrackSelectionConditionArrayInput interface { - pulumi.Input - - ToAccountFilterTrackSelectionConditionArrayOutput() AccountFilterTrackSelectionConditionArrayOutput - ToAccountFilterTrackSelectionConditionArrayOutputWithContext(context.Context) AccountFilterTrackSelectionConditionArrayOutput -} - -type AccountFilterTrackSelectionConditionArray []AccountFilterTrackSelectionConditionInput - -func (AccountFilterTrackSelectionConditionArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]AccountFilterTrackSelectionCondition)(nil)).Elem() -} - -func (i AccountFilterTrackSelectionConditionArray) ToAccountFilterTrackSelectionConditionArrayOutput() AccountFilterTrackSelectionConditionArrayOutput { - return i.ToAccountFilterTrackSelectionConditionArrayOutputWithContext(context.Background()) -} - -func (i AccountFilterTrackSelectionConditionArray) ToAccountFilterTrackSelectionConditionArrayOutputWithContext(ctx context.Context) AccountFilterTrackSelectionConditionArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(AccountFilterTrackSelectionConditionArrayOutput) -} - -type AccountFilterTrackSelectionConditionOutput struct{ *pulumi.OutputState } - -func (AccountFilterTrackSelectionConditionOutput) ElementType() reflect.Type { - return reflect.TypeOf((*AccountFilterTrackSelectionCondition)(nil)).Elem() -} - -func (o AccountFilterTrackSelectionConditionOutput) ToAccountFilterTrackSelectionConditionOutput() AccountFilterTrackSelectionConditionOutput { - return o -} - -func (o AccountFilterTrackSelectionConditionOutput) ToAccountFilterTrackSelectionConditionOutputWithContext(ctx context.Context) AccountFilterTrackSelectionConditionOutput { - return o -} - -func (o AccountFilterTrackSelectionConditionOutput) Operation() pulumi.StringOutput { - return o.ApplyT(func(v AccountFilterTrackSelectionCondition) string { return v.Operation }).(pulumi.StringOutput) -} - -func (o AccountFilterTrackSelectionConditionOutput) Property() pulumi.StringOutput { - return o.ApplyT(func(v AccountFilterTrackSelectionCondition) string { return v.Property }).(pulumi.StringOutput) -} - -func (o AccountFilterTrackSelectionConditionOutput) Value() pulumi.StringOutput { - return o.ApplyT(func(v AccountFilterTrackSelectionCondition) string { return v.Value }).(pulumi.StringOutput) -} - -type AccountFilterTrackSelectionConditionArrayOutput struct{ *pulumi.OutputState } - -func (AccountFilterTrackSelectionConditionArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]AccountFilterTrackSelectionCondition)(nil)).Elem() -} - -func (o AccountFilterTrackSelectionConditionArrayOutput) ToAccountFilterTrackSelectionConditionArrayOutput() AccountFilterTrackSelectionConditionArrayOutput { - return o -} - -func (o AccountFilterTrackSelectionConditionArrayOutput) ToAccountFilterTrackSelectionConditionArrayOutputWithContext(ctx context.Context) AccountFilterTrackSelectionConditionArrayOutput { - return o -} - -func (o AccountFilterTrackSelectionConditionArrayOutput) Index(i pulumi.IntInput) AccountFilterTrackSelectionConditionOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) AccountFilterTrackSelectionCondition { - return vs[0].([]AccountFilterTrackSelectionCondition)[vs[1].(int)] - }).(AccountFilterTrackSelectionConditionOutput) -} - -func init() { - pulumi.RegisterInputType(reflect.TypeOf((*AccountFilterPresentationTimeRangeInput)(nil)).Elem(), AccountFilterPresentationTimeRangeArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*AccountFilterPresentationTimeRangePtrInput)(nil)).Elem(), AccountFilterPresentationTimeRangeArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*AccountFilterTrackSelectionInput)(nil)).Elem(), AccountFilterTrackSelectionArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*AccountFilterTrackSelectionArrayInput)(nil)).Elem(), AccountFilterTrackSelectionArray{}) - pulumi.RegisterInputType(reflect.TypeOf((*AccountFilterTrackSelectionConditionInput)(nil)).Elem(), AccountFilterTrackSelectionConditionArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*AccountFilterTrackSelectionConditionArrayInput)(nil)).Elem(), AccountFilterTrackSelectionConditionArray{}) - pulumi.RegisterOutputType(AccountFilterPresentationTimeRangeOutput{}) - pulumi.RegisterOutputType(AccountFilterPresentationTimeRangePtrOutput{}) - pulumi.RegisterOutputType(AccountFilterTrackSelectionOutput{}) - pulumi.RegisterOutputType(AccountFilterTrackSelectionArrayOutput{}) - pulumi.RegisterOutputType(AccountFilterTrackSelectionConditionOutput{}) - pulumi.RegisterOutputType(AccountFilterTrackSelectionConditionArrayOutput{}) -} diff --git a/sdk/go/azure/mssql/managedInstance.go b/sdk/go/azure/mssql/managedInstance.go index 6ff496e7c9..a9be7b218c 100644 --- a/sdk/go/azure/mssql/managedInstance.go +++ b/sdk/go/azure/mssql/managedInstance.go @@ -56,6 +56,8 @@ type ManagedInstance struct { PublicDataEndpointEnabled pulumi.BoolPtrOutput `pulumi:"publicDataEndpointEnabled"` // The name of the resource group in which to create the SQL Managed Instance. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` + // The service principal type. The only possible value is `SystemAssigned`. + ServicePrincipalType pulumi.StringPtrOutput `pulumi:"servicePrincipalType"` // Specifies the SKU Name for the SQL Managed Instance. Valid values include `GP_Gen4`, `GP_Gen5`, `GP_Gen8IM`, `GP_Gen8IH`, `BC_Gen4`, `BC_Gen5`, `BC_Gen8IM` or `BC_Gen8IH`. SkuName pulumi.StringOutput `pulumi:"skuName"` // Specifies the storage account type used to store backups for this database. Changing this forces a new resource to be created. Possible values are `GRS`, `GZRS`, `LRS`, and `ZRS`. Defaults to `GRS`. @@ -171,6 +173,8 @@ type managedInstanceState struct { PublicDataEndpointEnabled *bool `pulumi:"publicDataEndpointEnabled"` // The name of the resource group in which to create the SQL Managed Instance. Changing this forces a new resource to be created. ResourceGroupName *string `pulumi:"resourceGroupName"` + // The service principal type. The only possible value is `SystemAssigned`. + ServicePrincipalType *string `pulumi:"servicePrincipalType"` // Specifies the SKU Name for the SQL Managed Instance. Valid values include `GP_Gen4`, `GP_Gen5`, `GP_Gen8IM`, `GP_Gen8IH`, `BC_Gen4`, `BC_Gen5`, `BC_Gen8IM` or `BC_Gen8IH`. SkuName *string `pulumi:"skuName"` // Specifies the storage account type used to store backups for this database. Changing this forces a new resource to be created. Possible values are `GRS`, `GZRS`, `LRS`, and `ZRS`. Defaults to `GRS`. @@ -220,6 +224,8 @@ type ManagedInstanceState struct { PublicDataEndpointEnabled pulumi.BoolPtrInput // The name of the resource group in which to create the SQL Managed Instance. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringPtrInput + // The service principal type. The only possible value is `SystemAssigned`. + ServicePrincipalType pulumi.StringPtrInput // Specifies the SKU Name for the SQL Managed Instance. Valid values include `GP_Gen4`, `GP_Gen5`, `GP_Gen8IM`, `GP_Gen8IH`, `BC_Gen4`, `BC_Gen5`, `BC_Gen8IM` or `BC_Gen8IH`. SkuName pulumi.StringPtrInput // Specifies the storage account type used to store backups for this database. Changing this forces a new resource to be created. Possible values are `GRS`, `GZRS`, `LRS`, and `ZRS`. Defaults to `GRS`. @@ -269,6 +275,8 @@ type managedInstanceArgs struct { PublicDataEndpointEnabled *bool `pulumi:"publicDataEndpointEnabled"` // The name of the resource group in which to create the SQL Managed Instance. Changing this forces a new resource to be created. ResourceGroupName string `pulumi:"resourceGroupName"` + // The service principal type. The only possible value is `SystemAssigned`. + ServicePrincipalType *string `pulumi:"servicePrincipalType"` // Specifies the SKU Name for the SQL Managed Instance. Valid values include `GP_Gen4`, `GP_Gen5`, `GP_Gen8IM`, `GP_Gen8IH`, `BC_Gen4`, `BC_Gen5`, `BC_Gen8IM` or `BC_Gen8IH`. SkuName string `pulumi:"skuName"` // Specifies the storage account type used to store backups for this database. Changing this forces a new resource to be created. Possible values are `GRS`, `GZRS`, `LRS`, and `ZRS`. Defaults to `GRS`. @@ -315,6 +323,8 @@ type ManagedInstanceArgs struct { PublicDataEndpointEnabled pulumi.BoolPtrInput // The name of the resource group in which to create the SQL Managed Instance. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringInput + // The service principal type. The only possible value is `SystemAssigned`. + ServicePrincipalType pulumi.StringPtrInput // Specifies the SKU Name for the SQL Managed Instance. Valid values include `GP_Gen4`, `GP_Gen5`, `GP_Gen8IM`, `GP_Gen8IH`, `BC_Gen4`, `BC_Gen5`, `BC_Gen8IM` or `BC_Gen8IH`. SkuName pulumi.StringInput // Specifies the storage account type used to store backups for this database. Changing this forces a new resource to be created. Possible values are `GRS`, `GZRS`, `LRS`, and `ZRS`. Defaults to `GRS`. @@ -495,6 +505,11 @@ func (o ManagedInstanceOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v *ManagedInstance) pulumi.StringOutput { return v.ResourceGroupName }).(pulumi.StringOutput) } +// The service principal type. The only possible value is `SystemAssigned`. +func (o ManagedInstanceOutput) ServicePrincipalType() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ManagedInstance) pulumi.StringPtrOutput { return v.ServicePrincipalType }).(pulumi.StringPtrOutput) +} + // Specifies the SKU Name for the SQL Managed Instance. Valid values include `GP_Gen4`, `GP_Gen5`, `GP_Gen8IM`, `GP_Gen8IH`, `BC_Gen4`, `BC_Gen5`, `BC_Gen8IM` or `BC_Gen8IH`. func (o ManagedInstanceOutput) SkuName() pulumi.StringOutput { return o.ApplyT(func(v *ManagedInstance) pulumi.StringOutput { return v.SkuName }).(pulumi.StringOutput) diff --git a/sdk/go/azure/servicebus/queue.go b/sdk/go/azure/servicebus/queue.go index d7c6dde18b..45baff11ce 100644 --- a/sdk/go/azure/servicebus/queue.go +++ b/sdk/go/azure/servicebus/queue.go @@ -72,14 +72,14 @@ import ( type Queue struct { pulumi.CustomResourceState - // The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. Defaults to `P10675199DT2H48M5.4775807S`. - AutoDeleteOnIdle pulumi.StringPtrOutput `pulumi:"autoDeleteOnIdle"` + // The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. + AutoDeleteOnIdle pulumi.StringOutput `pulumi:"autoDeleteOnIdle"` // Boolean flag which controls whether server-side batched operations are enabled. Defaults to `true`. BatchedOperationsEnabled pulumi.BoolPtrOutput `pulumi:"batchedOperationsEnabled"` // Boolean flag which controls whether the Queue has dead letter support when a message expires. Defaults to `false`. DeadLetteringOnMessageExpiration pulumi.BoolPtrOutput `pulumi:"deadLetteringOnMessageExpiration"` - // The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. Defaults to `P10675199DT2H48M5.4775807S`. - DefaultMessageTtl pulumi.StringPtrOutput `pulumi:"defaultMessageTtl"` + // The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. + DefaultMessageTtl pulumi.StringOutput `pulumi:"defaultMessageTtl"` // The ISO 8601 timespan duration during which duplicates can be detected. Defaults to `PT10M` (10 Minutes). DuplicateDetectionHistoryTimeWindow pulumi.StringPtrOutput `pulumi:"duplicateDetectionHistoryTimeWindow"` // Boolean flag which controls whether Express Entities are enabled. An express queue holds a message in memory temporarily before writing it to persistent storage. Defaults to `false` for Basic and Standard. For Premium, it MUST be set to `false`. @@ -94,9 +94,9 @@ type Queue struct { LockDuration pulumi.StringPtrOutput `pulumi:"lockDuration"` // Integer value which controls when a message is automatically dead lettered. Defaults to `10`. MaxDeliveryCount pulumi.IntPtrOutput `pulumi:"maxDeliveryCount"` - // Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). Defaults to `256`. + // Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). MaxMessageSizeInKilobytes pulumi.IntOutput `pulumi:"maxMessageSizeInKilobytes"` - // Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). Defaults to `5120`. + // Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). MaxSizeInMegabytes pulumi.IntOutput `pulumi:"maxSizeInMegabytes"` // Specifies the name of the ServiceBus Queue resource. Changing this forces a new resource to be created. Name pulumi.StringOutput `pulumi:"name"` @@ -155,13 +155,13 @@ func GetQueue(ctx *pulumi.Context, // Input properties used for looking up and filtering Queue resources. type queueState struct { - // The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. Defaults to `P10675199DT2H48M5.4775807S`. + // The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. AutoDeleteOnIdle *string `pulumi:"autoDeleteOnIdle"` // Boolean flag which controls whether server-side batched operations are enabled. Defaults to `true`. BatchedOperationsEnabled *bool `pulumi:"batchedOperationsEnabled"` // Boolean flag which controls whether the Queue has dead letter support when a message expires. Defaults to `false`. DeadLetteringOnMessageExpiration *bool `pulumi:"deadLetteringOnMessageExpiration"` - // The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. Defaults to `P10675199DT2H48M5.4775807S`. + // The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. DefaultMessageTtl *string `pulumi:"defaultMessageTtl"` // The ISO 8601 timespan duration during which duplicates can be detected. Defaults to `PT10M` (10 Minutes). DuplicateDetectionHistoryTimeWindow *string `pulumi:"duplicateDetectionHistoryTimeWindow"` @@ -177,9 +177,9 @@ type queueState struct { LockDuration *string `pulumi:"lockDuration"` // Integer value which controls when a message is automatically dead lettered. Defaults to `10`. MaxDeliveryCount *int `pulumi:"maxDeliveryCount"` - // Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). Defaults to `256`. + // Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). MaxMessageSizeInKilobytes *int `pulumi:"maxMessageSizeInKilobytes"` - // Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). Defaults to `5120`. + // Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). MaxSizeInMegabytes *int `pulumi:"maxSizeInMegabytes"` // Specifies the name of the ServiceBus Queue resource. Changing this forces a new resource to be created. Name *string `pulumi:"name"` @@ -200,13 +200,13 @@ type queueState struct { } type QueueState struct { - // The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. Defaults to `P10675199DT2H48M5.4775807S`. + // The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. AutoDeleteOnIdle pulumi.StringPtrInput // Boolean flag which controls whether server-side batched operations are enabled. Defaults to `true`. BatchedOperationsEnabled pulumi.BoolPtrInput // Boolean flag which controls whether the Queue has dead letter support when a message expires. Defaults to `false`. DeadLetteringOnMessageExpiration pulumi.BoolPtrInput - // The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. Defaults to `P10675199DT2H48M5.4775807S`. + // The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. DefaultMessageTtl pulumi.StringPtrInput // The ISO 8601 timespan duration during which duplicates can be detected. Defaults to `PT10M` (10 Minutes). DuplicateDetectionHistoryTimeWindow pulumi.StringPtrInput @@ -222,9 +222,9 @@ type QueueState struct { LockDuration pulumi.StringPtrInput // Integer value which controls when a message is automatically dead lettered. Defaults to `10`. MaxDeliveryCount pulumi.IntPtrInput - // Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). Defaults to `256`. + // Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). MaxMessageSizeInKilobytes pulumi.IntPtrInput - // Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). Defaults to `5120`. + // Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). MaxSizeInMegabytes pulumi.IntPtrInput // Specifies the name of the ServiceBus Queue resource. Changing this forces a new resource to be created. Name pulumi.StringPtrInput @@ -249,13 +249,13 @@ func (QueueState) ElementType() reflect.Type { } type queueArgs struct { - // The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. Defaults to `P10675199DT2H48M5.4775807S`. + // The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. AutoDeleteOnIdle *string `pulumi:"autoDeleteOnIdle"` // Boolean flag which controls whether server-side batched operations are enabled. Defaults to `true`. BatchedOperationsEnabled *bool `pulumi:"batchedOperationsEnabled"` // Boolean flag which controls whether the Queue has dead letter support when a message expires. Defaults to `false`. DeadLetteringOnMessageExpiration *bool `pulumi:"deadLetteringOnMessageExpiration"` - // The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. Defaults to `P10675199DT2H48M5.4775807S`. + // The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. DefaultMessageTtl *string `pulumi:"defaultMessageTtl"` // The ISO 8601 timespan duration during which duplicates can be detected. Defaults to `PT10M` (10 Minutes). DuplicateDetectionHistoryTimeWindow *string `pulumi:"duplicateDetectionHistoryTimeWindow"` @@ -271,9 +271,9 @@ type queueArgs struct { LockDuration *string `pulumi:"lockDuration"` // Integer value which controls when a message is automatically dead lettered. Defaults to `10`. MaxDeliveryCount *int `pulumi:"maxDeliveryCount"` - // Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). Defaults to `256`. + // Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). MaxMessageSizeInKilobytes *int `pulumi:"maxMessageSizeInKilobytes"` - // Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). Defaults to `5120`. + // Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). MaxSizeInMegabytes *int `pulumi:"maxSizeInMegabytes"` // Specifies the name of the ServiceBus Queue resource. Changing this forces a new resource to be created. Name *string `pulumi:"name"` @@ -293,13 +293,13 @@ type queueArgs struct { // The set of arguments for constructing a Queue resource. type QueueArgs struct { - // The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. Defaults to `P10675199DT2H48M5.4775807S`. + // The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. AutoDeleteOnIdle pulumi.StringPtrInput // Boolean flag which controls whether server-side batched operations are enabled. Defaults to `true`. BatchedOperationsEnabled pulumi.BoolPtrInput // Boolean flag which controls whether the Queue has dead letter support when a message expires. Defaults to `false`. DeadLetteringOnMessageExpiration pulumi.BoolPtrInput - // The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. Defaults to `P10675199DT2H48M5.4775807S`. + // The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. DefaultMessageTtl pulumi.StringPtrInput // The ISO 8601 timespan duration during which duplicates can be detected. Defaults to `PT10M` (10 Minutes). DuplicateDetectionHistoryTimeWindow pulumi.StringPtrInput @@ -315,9 +315,9 @@ type QueueArgs struct { LockDuration pulumi.StringPtrInput // Integer value which controls when a message is automatically dead lettered. Defaults to `10`. MaxDeliveryCount pulumi.IntPtrInput - // Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). Defaults to `256`. + // Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). MaxMessageSizeInKilobytes pulumi.IntPtrInput - // Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). Defaults to `5120`. + // Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). MaxSizeInMegabytes pulumi.IntPtrInput // Specifies the name of the ServiceBus Queue resource. Changing this forces a new resource to be created. Name pulumi.StringPtrInput @@ -422,9 +422,9 @@ func (o QueueOutput) ToQueueOutputWithContext(ctx context.Context) QueueOutput { return o } -// The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. Defaults to `P10675199DT2H48M5.4775807S`. -func (o QueueOutput) AutoDeleteOnIdle() pulumi.StringPtrOutput { - return o.ApplyT(func(v *Queue) pulumi.StringPtrOutput { return v.AutoDeleteOnIdle }).(pulumi.StringPtrOutput) +// The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. +func (o QueueOutput) AutoDeleteOnIdle() pulumi.StringOutput { + return o.ApplyT(func(v *Queue) pulumi.StringOutput { return v.AutoDeleteOnIdle }).(pulumi.StringOutput) } // Boolean flag which controls whether server-side batched operations are enabled. Defaults to `true`. @@ -437,9 +437,9 @@ func (o QueueOutput) DeadLetteringOnMessageExpiration() pulumi.BoolPtrOutput { return o.ApplyT(func(v *Queue) pulumi.BoolPtrOutput { return v.DeadLetteringOnMessageExpiration }).(pulumi.BoolPtrOutput) } -// The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. Defaults to `P10675199DT2H48M5.4775807S`. -func (o QueueOutput) DefaultMessageTtl() pulumi.StringPtrOutput { - return o.ApplyT(func(v *Queue) pulumi.StringPtrOutput { return v.DefaultMessageTtl }).(pulumi.StringPtrOutput) +// The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. +func (o QueueOutput) DefaultMessageTtl() pulumi.StringOutput { + return o.ApplyT(func(v *Queue) pulumi.StringOutput { return v.DefaultMessageTtl }).(pulumi.StringOutput) } // The ISO 8601 timespan duration during which duplicates can be detected. Defaults to `PT10M` (10 Minutes). @@ -474,12 +474,12 @@ func (o QueueOutput) MaxDeliveryCount() pulumi.IntPtrOutput { return o.ApplyT(func(v *Queue) pulumi.IntPtrOutput { return v.MaxDeliveryCount }).(pulumi.IntPtrOutput) } -// Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). Defaults to `256`. +// Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). func (o QueueOutput) MaxMessageSizeInKilobytes() pulumi.IntOutput { return o.ApplyT(func(v *Queue) pulumi.IntOutput { return v.MaxMessageSizeInKilobytes }).(pulumi.IntOutput) } -// Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). Defaults to `5120`. +// Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). func (o QueueOutput) MaxSizeInMegabytes() pulumi.IntOutput { return o.ApplyT(func(v *Queue) pulumi.IntOutput { return v.MaxSizeInMegabytes }).(pulumi.IntOutput) } diff --git a/sdk/go/azure/waf/pulumiTypes.go b/sdk/go/azure/waf/pulumiTypes.go index ce98c22fe0..9b7284be81 100644 --- a/sdk/go/azure/waf/pulumiTypes.go +++ b/sdk/go/azure/waf/pulumiTypes.go @@ -1345,7 +1345,8 @@ type PolicyPolicySettings struct { // Describes if it is in detection mode or prevention mode at the policy level. Valid values are `Detection` and `Prevention`. Defaults to `Prevention`. Mode *string `pulumi:"mode"` // Is Request Body Inspection enabled? Defaults to `true`. - RequestBodyCheck *bool `pulumi:"requestBodyCheck"` + RequestBodyCheck *bool `pulumi:"requestBodyCheck"` + // Whether the firewall should block a request with body size greater then `maxRequestBodySizeInKb`. Defaults to `true`. RequestBodyEnforcement *bool `pulumi:"requestBodyEnforcement"` // Specifies the maximum request body inspection limit in KB for the Web Application Firewall. Defaults to `128`. RequestBodyInspectLimitInKb *int `pulumi:"requestBodyInspectLimitInKb"` @@ -1376,7 +1377,8 @@ type PolicyPolicySettingsArgs struct { // Describes if it is in detection mode or prevention mode at the policy level. Valid values are `Detection` and `Prevention`. Defaults to `Prevention`. Mode pulumi.StringPtrInput `pulumi:"mode"` // Is Request Body Inspection enabled? Defaults to `true`. - RequestBodyCheck pulumi.BoolPtrInput `pulumi:"requestBodyCheck"` + RequestBodyCheck pulumi.BoolPtrInput `pulumi:"requestBodyCheck"` + // Whether the firewall should block a request with body size greater then `maxRequestBodySizeInKb`. Defaults to `true`. RequestBodyEnforcement pulumi.BoolPtrInput `pulumi:"requestBodyEnforcement"` // Specifies the maximum request body inspection limit in KB for the Web Application Firewall. Defaults to `128`. RequestBodyInspectLimitInKb pulumi.IntPtrInput `pulumi:"requestBodyInspectLimitInKb"` @@ -1494,6 +1496,7 @@ func (o PolicyPolicySettingsOutput) RequestBodyCheck() pulumi.BoolPtrOutput { return o.ApplyT(func(v PolicyPolicySettings) *bool { return v.RequestBodyCheck }).(pulumi.BoolPtrOutput) } +// Whether the firewall should block a request with body size greater then `maxRequestBodySizeInKb`. Defaults to `true`. func (o PolicyPolicySettingsOutput) RequestBodyEnforcement() pulumi.BoolPtrOutput { return o.ApplyT(func(v PolicyPolicySettings) *bool { return v.RequestBodyEnforcement }).(pulumi.BoolPtrOutput) } @@ -1597,6 +1600,7 @@ func (o PolicyPolicySettingsPtrOutput) RequestBodyCheck() pulumi.BoolPtrOutput { }).(pulumi.BoolPtrOutput) } +// Whether the firewall should block a request with body size greater then `maxRequestBodySizeInKb`. Defaults to `true`. func (o PolicyPolicySettingsPtrOutput) RequestBodyEnforcement() pulumi.BoolPtrOutput { return o.ApplyT(func(v *PolicyPolicySettings) *bool { if v == nil { diff --git a/sdk/java/src/main/java/com/pulumi/azure/arcmachine/ArcMachine.java b/sdk/java/src/main/java/com/pulumi/azure/arcmachine/ArcMachine.java new file mode 100644 index 0000000000..5a50115482 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/azure/arcmachine/ArcMachine.java @@ -0,0 +1,187 @@ +// *** 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.arcmachine; + +import com.pulumi.azure.Utilities; +import com.pulumi.azure.arcmachine.ArcMachineArgs; +import com.pulumi.azure.arcmachine.inputs.ArcMachineState; +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 javax.annotation.Nullable; + +/** + * Manages a Hybrid Compute Machine. + * + * ## 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.core.ResourceGroup;
+ * import com.pulumi.azure.core.ResourceGroupArgs;
+ * import com.pulumi.azure.arcmachine.ArcMachine;
+ * import com.pulumi.azure.arcmachine.ArcMachineArgs;
+ * 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 exampleArcMachine = new ArcMachine("exampleArcMachine", ArcMachineArgs.builder()
+ *             .name("example-arcmachine")
+ *             .resourceGroupName(example.name())
+ *             .location(example.location())
+ *             .kind("SCVMM")
+ *             .build());
+ * 
+ *     }
+ * }
+ * }
+ * 
+ * <!--End PulumiCodeChooser --> + * + * ## Import + * + * Arc Machines can be imported using the `resource id`, e.g. + * + * ```sh + * $ pulumi import azure:arcmachine/arcMachine:ArcMachine example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.HybridCompute/machines/machine1 + * ``` + * + */ +@ResourceType(type="azure:arcmachine/arcMachine:ArcMachine") +public class ArcMachine extends com.pulumi.resources.CustomResource { + /** + * The kind of the Arc Machine. Possible values are `AVS`, `AWS`, `EPS`, `GCP`, `HCI`, `SCVMM` and `VMware`. Changing this forces a new resource to be created. + * + */ + @Export(name="kind", refs={String.class}, tree="[0]") + private Output kind; + + /** + * @return The kind of the Arc Machine. Possible values are `AVS`, `AWS`, `EPS`, `GCP`, `HCI`, `SCVMM` and `VMware`. Changing this forces a new resource to be created. + * + */ + public Output kind() { + return this.kind; + } + /** + * The Azure Region where the Arc Machine should exist. Changing this forces a new resource to be created. + * + */ + @Export(name="location", refs={String.class}, tree="[0]") + private Output location; + + /** + * @return The Azure Region where the Arc Machine should exist. Changing this forces a new resource to be created. + * + */ + public Output location() { + return this.location; + } + /** + * The name of the Arc machine. 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 Arc machine. Changing this forces a new resource to be created. + * + */ + public Output name() { + return this.name; + } + /** + * The name of the Resource Group where the Arc Machine should exist. 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 Arc Machine should exist. Changing this forces a new resource to be created. + * + */ + public Output resourceGroupName() { + return this.resourceGroupName; + } + + /** + * + * @param name The _unique_ name of the resulting resource. + */ + public ArcMachine(java.lang.String name) { + this(name, ArcMachineArgs.Empty); + } + /** + * + * @param name The _unique_ name of the resulting resource. + * @param args The arguments to use to populate this resource's properties. + */ + public ArcMachine(java.lang.String name, ArcMachineArgs 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 ArcMachine(java.lang.String name, ArcMachineArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("azure:arcmachine/arcMachine:ArcMachine", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); + } + + private ArcMachine(java.lang.String name, Output id, @Nullable ArcMachineState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("azure:arcmachine/arcMachine:ArcMachine", name, state, makeResourceOptions(options, id), false); + } + + private static ArcMachineArgs makeArgs(ArcMachineArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? ArcMachineArgs.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 ArcMachine get(java.lang.String name, Output id, @Nullable ArcMachineState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + return new ArcMachine(name, id, state, options); + } +} diff --git a/sdk/java/src/main/java/com/pulumi/azure/arcmachine/ArcMachineArgs.java b/sdk/java/src/main/java/com/pulumi/azure/arcmachine/ArcMachineArgs.java new file mode 100644 index 0000000000..1f5cfb98df --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/azure/arcmachine/ArcMachineArgs.java @@ -0,0 +1,201 @@ +// *** 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.arcmachine; + +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + + +public final class ArcMachineArgs extends com.pulumi.resources.ResourceArgs { + + public static final ArcMachineArgs Empty = new ArcMachineArgs(); + + /** + * The kind of the Arc Machine. Possible values are `AVS`, `AWS`, `EPS`, `GCP`, `HCI`, `SCVMM` and `VMware`. Changing this forces a new resource to be created. + * + */ + @Import(name="kind", required=true) + private Output kind; + + /** + * @return The kind of the Arc Machine. Possible values are `AVS`, `AWS`, `EPS`, `GCP`, `HCI`, `SCVMM` and `VMware`. Changing this forces a new resource to be created. + * + */ + public Output kind() { + return this.kind; + } + + /** + * The Azure Region where the Arc Machine should exist. Changing this forces a new resource to be created. + * + */ + @Import(name="location") + private @Nullable Output location; + + /** + * @return The Azure Region where the Arc Machine should exist. Changing this forces a new resource to be created. + * + */ + public Optional> location() { + return Optional.ofNullable(this.location); + } + + /** + * The name of the Arc machine. Changing this forces a new resource to be created. + * + */ + @Import(name="name") + private @Nullable Output name; + + /** + * @return The name of the Arc machine. 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 Arc Machine should exist. 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 Arc Machine should exist. Changing this forces a new resource to be created. + * + */ + public Output resourceGroupName() { + return this.resourceGroupName; + } + + private ArcMachineArgs() {} + + private ArcMachineArgs(ArcMachineArgs $) { + this.kind = $.kind; + this.location = $.location; + this.name = $.name; + this.resourceGroupName = $.resourceGroupName; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(ArcMachineArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private ArcMachineArgs $; + + public Builder() { + $ = new ArcMachineArgs(); + } + + public Builder(ArcMachineArgs defaults) { + $ = new ArcMachineArgs(Objects.requireNonNull(defaults)); + } + + /** + * @param kind The kind of the Arc Machine. Possible values are `AVS`, `AWS`, `EPS`, `GCP`, `HCI`, `SCVMM` and `VMware`. Changing this forces a new resource to be created. + * + * @return builder + * + */ + public Builder kind(Output kind) { + $.kind = kind; + return this; + } + + /** + * @param kind The kind of the Arc Machine. Possible values are `AVS`, `AWS`, `EPS`, `GCP`, `HCI`, `SCVMM` and `VMware`. Changing this forces a new resource to be created. + * + * @return builder + * + */ + public Builder kind(String kind) { + return kind(Output.of(kind)); + } + + /** + * @param location The Azure Region where the Arc Machine should exist. Changing this forces a new resource to be created. + * + * @return builder + * + */ + public Builder location(@Nullable Output location) { + $.location = location; + return this; + } + + /** + * @param location The Azure Region where the Arc Machine should exist. 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 Arc machine. 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 Arc machine. 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 Arc Machine should exist. 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 Arc Machine should exist. Changing this forces a new resource to be created. + * + * @return builder + * + */ + public Builder resourceGroupName(String resourceGroupName) { + return resourceGroupName(Output.of(resourceGroupName)); + } + + public ArcMachineArgs build() { + if ($.kind == null) { + throw new MissingRequiredPropertyException("ArcMachineArgs", "kind"); + } + if ($.resourceGroupName == null) { + throw new MissingRequiredPropertyException("ArcMachineArgs", "resourceGroupName"); + } + return $; + } + } + +} diff --git a/sdk/java/src/main/java/com/pulumi/azure/arcmachine/AutomanageConfigurationAssignment.java b/sdk/java/src/main/java/com/pulumi/azure/arcmachine/AutomanageConfigurationAssignment.java new file mode 100644 index 0000000000..823752d9e8 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/azure/arcmachine/AutomanageConfigurationAssignment.java @@ -0,0 +1,178 @@ +// *** 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.arcmachine; + +import com.pulumi.azure.Utilities; +import com.pulumi.azure.arcmachine.AutomanageConfigurationAssignmentArgs; +import com.pulumi.azure.arcmachine.inputs.AutomanageConfigurationAssignmentState; +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 javax.annotation.Nullable; + +/** + * Manages an Arc Machine Automanage Configuration Profile Assignment. + * + * ## 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.core.ResourceGroup;
+ * import com.pulumi.azure.core.ResourceGroupArgs;
+ * import com.pulumi.azure.arcmachine.ArcmachineFunctions;
+ * import com.pulumi.azure.arcmachine.inputs.GetArgs;
+ * import com.pulumi.azure.automanage.Configuration;
+ * import com.pulumi.azure.automanage.ConfigurationArgs;
+ * import com.pulumi.azure.arcmachine.AutomanageConfigurationAssignment;
+ * import com.pulumi.azure.arcmachine.AutomanageConfigurationAssignmentArgs;
+ * 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 config = ctx.config();
+ *         final var arcMachineName = config.get("arcMachineName");
+ *         var exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
+ *             .name("example-resources")
+ *             .location("West Europe")
+ *             .build());
+ * 
+ *         final var example = ArcmachineFunctions.get(GetArgs.builder()
+ *             .name(arcMachineName)
+ *             .resourceGroupName(exampleResourceGroup.name())
+ *             .build());
+ * 
+ *         var exampleConfiguration = new Configuration("exampleConfiguration", ConfigurationArgs.builder()
+ *             .name("example-configuration")
+ *             .resourceGroupName(exampleResourceGroup.name())
+ *             .location(exampleResourceGroup.location())
+ *             .build());
+ * 
+ *         var exampleAutomanageConfigurationAssignment = new AutomanageConfigurationAssignment("exampleAutomanageConfigurationAssignment", AutomanageConfigurationAssignmentArgs.builder()
+ *             .arcMachineId(example.applyValue(getResult -> getResult).applyValue(example -> example.applyValue(getResult -> getResult.id())))
+ *             .configurationId(exampleConfiguration.id())
+ *             .build());
+ * 
+ *     }
+ * }
+ * }
+ * 
+ * <!--End PulumiCodeChooser --> + * + * ## Import + * + * Virtual Machine Automanage Configuration Profile Assignment can be imported using the `resource id`, e.g. + * + * ```sh + * $ pulumi import azure:arcmachine/automanageConfigurationAssignment:AutomanageConfigurationAssignment example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.HybridCompute/Microsoft.HybridCompute/machines/machine1/providers/Microsoft.AutoManage/configurationProfileAssignments/default + * ``` + * + */ +@ResourceType(type="azure:arcmachine/automanageConfigurationAssignment:AutomanageConfigurationAssignment") +public class AutomanageConfigurationAssignment extends com.pulumi.resources.CustomResource { + /** + * The ARM resource ID of the Arc Machine to assign the Automanage Configuration to. Changing this forces a new resource to be created. + * + */ + @Export(name="arcMachineId", refs={String.class}, tree="[0]") + private Output arcMachineId; + + /** + * @return The ARM resource ID of the Arc Machine to assign the Automanage Configuration to. Changing this forces a new resource to be created. + * + */ + public Output arcMachineId() { + return this.arcMachineId; + } + /** + * The ARM resource ID of the Automanage Configuration to assign to the Virtual Machine. Changing this forces a new resource to be created. + * + * > **NOTE:** For a successful creation of this resource, locate "Automanage API Access" app within your Entra ID tenant. Make sure it's granted access to the scope that includes the arc server. + * + */ + @Export(name="configurationId", refs={String.class}, tree="[0]") + private Output configurationId; + + /** + * @return The ARM resource ID of the Automanage Configuration to assign to the Virtual Machine. Changing this forces a new resource to be created. + * + * > **NOTE:** For a successful creation of this resource, locate "Automanage API Access" app within your Entra ID tenant. Make sure it's granted access to the scope that includes the arc server. + * + */ + public Output configurationId() { + return this.configurationId; + } + + /** + * + * @param name The _unique_ name of the resulting resource. + */ + public AutomanageConfigurationAssignment(java.lang.String name) { + this(name, AutomanageConfigurationAssignmentArgs.Empty); + } + /** + * + * @param name The _unique_ name of the resulting resource. + * @param args The arguments to use to populate this resource's properties. + */ + public AutomanageConfigurationAssignment(java.lang.String name, AutomanageConfigurationAssignmentArgs 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 AutomanageConfigurationAssignment(java.lang.String name, AutomanageConfigurationAssignmentArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("azure:arcmachine/automanageConfigurationAssignment:AutomanageConfigurationAssignment", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); + } + + private AutomanageConfigurationAssignment(java.lang.String name, Output id, @Nullable AutomanageConfigurationAssignmentState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("azure:arcmachine/automanageConfigurationAssignment:AutomanageConfigurationAssignment", name, state, makeResourceOptions(options, id), false); + } + + private static AutomanageConfigurationAssignmentArgs makeArgs(AutomanageConfigurationAssignmentArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? AutomanageConfigurationAssignmentArgs.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 AutomanageConfigurationAssignment get(java.lang.String name, Output id, @Nullable AutomanageConfigurationAssignmentState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + return new AutomanageConfigurationAssignment(name, id, state, options); + } +} diff --git a/sdk/java/src/main/java/com/pulumi/azure/arcmachine/AutomanageConfigurationAssignmentArgs.java b/sdk/java/src/main/java/com/pulumi/azure/arcmachine/AutomanageConfigurationAssignmentArgs.java new file mode 100644 index 0000000000..1b5c86dc74 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/azure/arcmachine/AutomanageConfigurationAssignmentArgs.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.arcmachine; + +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 AutomanageConfigurationAssignmentArgs extends com.pulumi.resources.ResourceArgs { + + public static final AutomanageConfigurationAssignmentArgs Empty = new AutomanageConfigurationAssignmentArgs(); + + /** + * The ARM resource ID of the Arc Machine to assign the Automanage Configuration to. Changing this forces a new resource to be created. + * + */ + @Import(name="arcMachineId", required=true) + private Output arcMachineId; + + /** + * @return The ARM resource ID of the Arc Machine to assign the Automanage Configuration to. Changing this forces a new resource to be created. + * + */ + public Output arcMachineId() { + return this.arcMachineId; + } + + /** + * The ARM resource ID of the Automanage Configuration to assign to the Virtual Machine. Changing this forces a new resource to be created. + * + * > **NOTE:** For a successful creation of this resource, locate "Automanage API Access" app within your Entra ID tenant. Make sure it's granted access to the scope that includes the arc server. + * + */ + @Import(name="configurationId", required=true) + private Output configurationId; + + /** + * @return The ARM resource ID of the Automanage Configuration to assign to the Virtual Machine. Changing this forces a new resource to be created. + * + * > **NOTE:** For a successful creation of this resource, locate "Automanage API Access" app within your Entra ID tenant. Make sure it's granted access to the scope that includes the arc server. + * + */ + public Output configurationId() { + return this.configurationId; + } + + private AutomanageConfigurationAssignmentArgs() {} + + private AutomanageConfigurationAssignmentArgs(AutomanageConfigurationAssignmentArgs $) { + this.arcMachineId = $.arcMachineId; + this.configurationId = $.configurationId; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(AutomanageConfigurationAssignmentArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private AutomanageConfigurationAssignmentArgs $; + + public Builder() { + $ = new AutomanageConfigurationAssignmentArgs(); + } + + public Builder(AutomanageConfigurationAssignmentArgs defaults) { + $ = new AutomanageConfigurationAssignmentArgs(Objects.requireNonNull(defaults)); + } + + /** + * @param arcMachineId The ARM resource ID of the Arc Machine to assign the Automanage Configuration to. Changing this forces a new resource to be created. + * + * @return builder + * + */ + public Builder arcMachineId(Output arcMachineId) { + $.arcMachineId = arcMachineId; + return this; + } + + /** + * @param arcMachineId The ARM resource ID of the Arc Machine to assign the Automanage Configuration to. Changing this forces a new resource to be created. + * + * @return builder + * + */ + public Builder arcMachineId(String arcMachineId) { + return arcMachineId(Output.of(arcMachineId)); + } + + /** + * @param configurationId The ARM resource ID of the Automanage Configuration to assign to the Virtual Machine. Changing this forces a new resource to be created. + * + * > **NOTE:** For a successful creation of this resource, locate "Automanage API Access" app within your Entra ID tenant. Make sure it's granted access to the scope that includes the arc server. + * + * @return builder + * + */ + public Builder configurationId(Output configurationId) { + $.configurationId = configurationId; + return this; + } + + /** + * @param configurationId The ARM resource ID of the Automanage Configuration to assign to the Virtual Machine. Changing this forces a new resource to be created. + * + * > **NOTE:** For a successful creation of this resource, locate "Automanage API Access" app within your Entra ID tenant. Make sure it's granted access to the scope that includes the arc server. + * + * @return builder + * + */ + public Builder configurationId(String configurationId) { + return configurationId(Output.of(configurationId)); + } + + public AutomanageConfigurationAssignmentArgs build() { + if ($.arcMachineId == null) { + throw new MissingRequiredPropertyException("AutomanageConfigurationAssignmentArgs", "arcMachineId"); + } + if ($.configurationId == null) { + throw new MissingRequiredPropertyException("AutomanageConfigurationAssignmentArgs", "configurationId"); + } + return $; + } + } + +} diff --git a/sdk/java/src/main/java/com/pulumi/azure/arcmachine/inputs/ArcMachineState.java b/sdk/java/src/main/java/com/pulumi/azure/arcmachine/inputs/ArcMachineState.java new file mode 100644 index 0000000000..a885875866 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/azure/arcmachine/inputs/ArcMachineState.java @@ -0,0 +1,194 @@ +// *** 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.arcmachine.inputs; + +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + + +public final class ArcMachineState extends com.pulumi.resources.ResourceArgs { + + public static final ArcMachineState Empty = new ArcMachineState(); + + /** + * The kind of the Arc Machine. Possible values are `AVS`, `AWS`, `EPS`, `GCP`, `HCI`, `SCVMM` and `VMware`. Changing this forces a new resource to be created. + * + */ + @Import(name="kind") + private @Nullable Output kind; + + /** + * @return The kind of the Arc Machine. Possible values are `AVS`, `AWS`, `EPS`, `GCP`, `HCI`, `SCVMM` and `VMware`. Changing this forces a new resource to be created. + * + */ + public Optional> kind() { + return Optional.ofNullable(this.kind); + } + + /** + * The Azure Region where the Arc Machine should exist. Changing this forces a new resource to be created. + * + */ + @Import(name="location") + private @Nullable Output location; + + /** + * @return The Azure Region where the Arc Machine should exist. Changing this forces a new resource to be created. + * + */ + public Optional> location() { + return Optional.ofNullable(this.location); + } + + /** + * The name of the Arc machine. Changing this forces a new resource to be created. + * + */ + @Import(name="name") + private @Nullable Output name; + + /** + * @return The name of the Arc machine. 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 Arc Machine should exist. 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 Arc Machine should exist. Changing this forces a new resource to be created. + * + */ + public Optional> resourceGroupName() { + return Optional.ofNullable(this.resourceGroupName); + } + + private ArcMachineState() {} + + private ArcMachineState(ArcMachineState $) { + this.kind = $.kind; + this.location = $.location; + this.name = $.name; + this.resourceGroupName = $.resourceGroupName; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(ArcMachineState defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private ArcMachineState $; + + public Builder() { + $ = new ArcMachineState(); + } + + public Builder(ArcMachineState defaults) { + $ = new ArcMachineState(Objects.requireNonNull(defaults)); + } + + /** + * @param kind The kind of the Arc Machine. Possible values are `AVS`, `AWS`, `EPS`, `GCP`, `HCI`, `SCVMM` and `VMware`. Changing this forces a new resource to be created. + * + * @return builder + * + */ + public Builder kind(@Nullable Output kind) { + $.kind = kind; + return this; + } + + /** + * @param kind The kind of the Arc Machine. Possible values are `AVS`, `AWS`, `EPS`, `GCP`, `HCI`, `SCVMM` and `VMware`. Changing this forces a new resource to be created. + * + * @return builder + * + */ + public Builder kind(String kind) { + return kind(Output.of(kind)); + } + + /** + * @param location The Azure Region where the Arc Machine should exist. Changing this forces a new resource to be created. + * + * @return builder + * + */ + public Builder location(@Nullable Output location) { + $.location = location; + return this; + } + + /** + * @param location The Azure Region where the Arc Machine should exist. 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 Arc machine. 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 Arc machine. 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 Arc Machine should exist. 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 Arc Machine should exist. Changing this forces a new resource to be created. + * + * @return builder + * + */ + public Builder resourceGroupName(String resourceGroupName) { + return resourceGroupName(Output.of(resourceGroupName)); + } + + public ArcMachineState build() { + return $; + } + } + +} diff --git a/sdk/java/src/main/java/com/pulumi/azure/arcmachine/inputs/AutomanageConfigurationAssignmentState.java b/sdk/java/src/main/java/com/pulumi/azure/arcmachine/inputs/AutomanageConfigurationAssignmentState.java new file mode 100644 index 0000000000..458b5b06e4 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/azure/arcmachine/inputs/AutomanageConfigurationAssignmentState.java @@ -0,0 +1,128 @@ +// *** 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.arcmachine.inputs; + +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + + +public final class AutomanageConfigurationAssignmentState extends com.pulumi.resources.ResourceArgs { + + public static final AutomanageConfigurationAssignmentState Empty = new AutomanageConfigurationAssignmentState(); + + /** + * The ARM resource ID of the Arc Machine to assign the Automanage Configuration to. Changing this forces a new resource to be created. + * + */ + @Import(name="arcMachineId") + private @Nullable Output arcMachineId; + + /** + * @return The ARM resource ID of the Arc Machine to assign the Automanage Configuration to. Changing this forces a new resource to be created. + * + */ + public Optional> arcMachineId() { + return Optional.ofNullable(this.arcMachineId); + } + + /** + * The ARM resource ID of the Automanage Configuration to assign to the Virtual Machine. Changing this forces a new resource to be created. + * + * > **NOTE:** For a successful creation of this resource, locate "Automanage API Access" app within your Entra ID tenant. Make sure it's granted access to the scope that includes the arc server. + * + */ + @Import(name="configurationId") + private @Nullable Output configurationId; + + /** + * @return The ARM resource ID of the Automanage Configuration to assign to the Virtual Machine. Changing this forces a new resource to be created. + * + * > **NOTE:** For a successful creation of this resource, locate "Automanage API Access" app within your Entra ID tenant. Make sure it's granted access to the scope that includes the arc server. + * + */ + public Optional> configurationId() { + return Optional.ofNullable(this.configurationId); + } + + private AutomanageConfigurationAssignmentState() {} + + private AutomanageConfigurationAssignmentState(AutomanageConfigurationAssignmentState $) { + this.arcMachineId = $.arcMachineId; + this.configurationId = $.configurationId; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(AutomanageConfigurationAssignmentState defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private AutomanageConfigurationAssignmentState $; + + public Builder() { + $ = new AutomanageConfigurationAssignmentState(); + } + + public Builder(AutomanageConfigurationAssignmentState defaults) { + $ = new AutomanageConfigurationAssignmentState(Objects.requireNonNull(defaults)); + } + + /** + * @param arcMachineId The ARM resource ID of the Arc Machine to assign the Automanage Configuration to. Changing this forces a new resource to be created. + * + * @return builder + * + */ + public Builder arcMachineId(@Nullable Output arcMachineId) { + $.arcMachineId = arcMachineId; + return this; + } + + /** + * @param arcMachineId The ARM resource ID of the Arc Machine to assign the Automanage Configuration to. Changing this forces a new resource to be created. + * + * @return builder + * + */ + public Builder arcMachineId(String arcMachineId) { + return arcMachineId(Output.of(arcMachineId)); + } + + /** + * @param configurationId The ARM resource ID of the Automanage Configuration to assign to the Virtual Machine. Changing this forces a new resource to be created. + * + * > **NOTE:** For a successful creation of this resource, locate "Automanage API Access" app within your Entra ID tenant. Make sure it's granted access to the scope that includes the arc server. + * + * @return builder + * + */ + public Builder configurationId(@Nullable Output configurationId) { + $.configurationId = configurationId; + return this; + } + + /** + * @param configurationId The ARM resource ID of the Automanage Configuration to assign to the Virtual Machine. Changing this forces a new resource to be created. + * + * > **NOTE:** For a successful creation of this resource, locate "Automanage API Access" app within your Entra ID tenant. Make sure it's granted access to the scope that includes the arc server. + * + * @return builder + * + */ + public Builder configurationId(String configurationId) { + return configurationId(Output.of(configurationId)); + } + + public AutomanageConfigurationAssignmentState build() { + return $; + } + } + +} diff --git a/sdk/java/src/main/java/com/pulumi/azure/dataprotection/BackupVault.java b/sdk/java/src/main/java/com/pulumi/azure/dataprotection/BackupVault.java index b7181da63f..22a9e9902e 100644 --- a/sdk/java/src/main/java/com/pulumi/azure/dataprotection/BackupVault.java +++ b/sdk/java/src/main/java/com/pulumi/azure/dataprotection/BackupVault.java @@ -11,6 +11,7 @@ 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.Double; import java.lang.String; import java.util.Map; @@ -77,6 +78,24 @@ */ @ResourceType(type="azure:dataprotection/backupVault:BackupVault") public class BackupVault extends com.pulumi.resources.CustomResource { + /** + * Whether to enable cross-region restore for the Backup Vault. + * + * > **Note:** The `cross_region_restore_enabled` can only be specified when `redundancy` is specified for `GeoRedundant`. Once `cross_region_restore_enabled` is enabled, it cannot be disabled. + * + */ + @Export(name="crossRegionRestoreEnabled", refs={Boolean.class}, tree="[0]") + private Output crossRegionRestoreEnabled; + + /** + * @return Whether to enable cross-region restore for the Backup Vault. + * + * > **Note:** The `cross_region_restore_enabled` can only be specified when `redundancy` is specified for `GeoRedundant`. Once `cross_region_restore_enabled` is enabled, it cannot be disabled. + * + */ + public Output> crossRegionRestoreEnabled() { + return Codegen.optional(this.crossRegionRestoreEnabled); + } /** * Specifies the type of the data store. Possible values are `ArchiveStore`, `OperationalStore`, `SnapshotStore` and `VaultStore`. Changing this forces a new resource to be created. * diff --git a/sdk/java/src/main/java/com/pulumi/azure/dataprotection/BackupVaultArgs.java b/sdk/java/src/main/java/com/pulumi/azure/dataprotection/BackupVaultArgs.java index 21a135c8fc..772e75c6a6 100644 --- a/sdk/java/src/main/java/com/pulumi/azure/dataprotection/BackupVaultArgs.java +++ b/sdk/java/src/main/java/com/pulumi/azure/dataprotection/BackupVaultArgs.java @@ -7,6 +7,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.exceptions.MissingRequiredPropertyException; +import java.lang.Boolean; import java.lang.Double; import java.lang.String; import java.util.Map; @@ -19,6 +20,25 @@ public final class BackupVaultArgs extends com.pulumi.resources.ResourceArgs { public static final BackupVaultArgs Empty = new BackupVaultArgs(); + /** + * Whether to enable cross-region restore for the Backup Vault. + * + * > **Note:** The `cross_region_restore_enabled` can only be specified when `redundancy` is specified for `GeoRedundant`. Once `cross_region_restore_enabled` is enabled, it cannot be disabled. + * + */ + @Import(name="crossRegionRestoreEnabled") + private @Nullable Output crossRegionRestoreEnabled; + + /** + * @return Whether to enable cross-region restore for the Backup Vault. + * + * > **Note:** The `cross_region_restore_enabled` can only be specified when `redundancy` is specified for `GeoRedundant`. Once `cross_region_restore_enabled` is enabled, it cannot be disabled. + * + */ + public Optional> crossRegionRestoreEnabled() { + return Optional.ofNullable(this.crossRegionRestoreEnabled); + } + /** * Specifies the type of the data store. Possible values are `ArchiveStore`, `OperationalStore`, `SnapshotStore` and `VaultStore`. Changing this forces a new resource to be created. * @@ -169,6 +189,7 @@ public Optional>> tags() { private BackupVaultArgs() {} private BackupVaultArgs(BackupVaultArgs $) { + this.crossRegionRestoreEnabled = $.crossRegionRestoreEnabled; this.datastoreType = $.datastoreType; this.identity = $.identity; this.location = $.location; @@ -198,6 +219,31 @@ public Builder(BackupVaultArgs defaults) { $ = new BackupVaultArgs(Objects.requireNonNull(defaults)); } + /** + * @param crossRegionRestoreEnabled Whether to enable cross-region restore for the Backup Vault. + * + * > **Note:** The `cross_region_restore_enabled` can only be specified when `redundancy` is specified for `GeoRedundant`. Once `cross_region_restore_enabled` is enabled, it cannot be disabled. + * + * @return builder + * + */ + public Builder crossRegionRestoreEnabled(@Nullable Output crossRegionRestoreEnabled) { + $.crossRegionRestoreEnabled = crossRegionRestoreEnabled; + return this; + } + + /** + * @param crossRegionRestoreEnabled Whether to enable cross-region restore for the Backup Vault. + * + * > **Note:** The `cross_region_restore_enabled` can only be specified when `redundancy` is specified for `GeoRedundant`. Once `cross_region_restore_enabled` is enabled, it cannot be disabled. + * + * @return builder + * + */ + public Builder crossRegionRestoreEnabled(Boolean crossRegionRestoreEnabled) { + return crossRegionRestoreEnabled(Output.of(crossRegionRestoreEnabled)); + } + /** * @param datastoreType Specifies the type of the data store. Possible values are `ArchiveStore`, `OperationalStore`, `SnapshotStore` and `VaultStore`. Changing this forces a new resource to be created. * diff --git a/sdk/java/src/main/java/com/pulumi/azure/dataprotection/inputs/BackupVaultState.java b/sdk/java/src/main/java/com/pulumi/azure/dataprotection/inputs/BackupVaultState.java index a73629cbdd..ab28b8414f 100644 --- a/sdk/java/src/main/java/com/pulumi/azure/dataprotection/inputs/BackupVaultState.java +++ b/sdk/java/src/main/java/com/pulumi/azure/dataprotection/inputs/BackupVaultState.java @@ -6,6 +6,7 @@ import com.pulumi.azure.dataprotection.inputs.BackupVaultIdentityArgs; import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import java.lang.Boolean; import java.lang.Double; import java.lang.String; import java.util.Map; @@ -18,6 +19,25 @@ public final class BackupVaultState extends com.pulumi.resources.ResourceArgs { public static final BackupVaultState Empty = new BackupVaultState(); + /** + * Whether to enable cross-region restore for the Backup Vault. + * + * > **Note:** The `cross_region_restore_enabled` can only be specified when `redundancy` is specified for `GeoRedundant`. Once `cross_region_restore_enabled` is enabled, it cannot be disabled. + * + */ + @Import(name="crossRegionRestoreEnabled") + private @Nullable Output crossRegionRestoreEnabled; + + /** + * @return Whether to enable cross-region restore for the Backup Vault. + * + * > **Note:** The `cross_region_restore_enabled` can only be specified when `redundancy` is specified for `GeoRedundant`. Once `cross_region_restore_enabled` is enabled, it cannot be disabled. + * + */ + public Optional> crossRegionRestoreEnabled() { + return Optional.ofNullable(this.crossRegionRestoreEnabled); + } + /** * Specifies the type of the data store. Possible values are `ArchiveStore`, `OperationalStore`, `SnapshotStore` and `VaultStore`. Changing this forces a new resource to be created. * @@ -168,6 +188,7 @@ public Optional>> tags() { private BackupVaultState() {} private BackupVaultState(BackupVaultState $) { + this.crossRegionRestoreEnabled = $.crossRegionRestoreEnabled; this.datastoreType = $.datastoreType; this.identity = $.identity; this.location = $.location; @@ -197,6 +218,31 @@ public Builder(BackupVaultState defaults) { $ = new BackupVaultState(Objects.requireNonNull(defaults)); } + /** + * @param crossRegionRestoreEnabled Whether to enable cross-region restore for the Backup Vault. + * + * > **Note:** The `cross_region_restore_enabled` can only be specified when `redundancy` is specified for `GeoRedundant`. Once `cross_region_restore_enabled` is enabled, it cannot be disabled. + * + * @return builder + * + */ + public Builder crossRegionRestoreEnabled(@Nullable Output crossRegionRestoreEnabled) { + $.crossRegionRestoreEnabled = crossRegionRestoreEnabled; + return this; + } + + /** + * @param crossRegionRestoreEnabled Whether to enable cross-region restore for the Backup Vault. + * + * > **Note:** The `cross_region_restore_enabled` can only be specified when `redundancy` is specified for `GeoRedundant`. Once `cross_region_restore_enabled` is enabled, it cannot be disabled. + * + * @return builder + * + */ + public Builder crossRegionRestoreEnabled(Boolean crossRegionRestoreEnabled) { + return crossRegionRestoreEnabled(Output.of(crossRegionRestoreEnabled)); + } + /** * @param datastoreType Specifies the type of the data store. Possible values are `ArchiveStore`, `OperationalStore`, `SnapshotStore` and `VaultStore`. Changing this forces a new resource to be created. * diff --git a/sdk/java/src/main/java/com/pulumi/azure/eventhub/Queue.java b/sdk/java/src/main/java/com/pulumi/azure/eventhub/Queue.java index 8797d6f807..e8a19fe70c 100644 --- a/sdk/java/src/main/java/com/pulumi/azure/eventhub/Queue.java +++ b/sdk/java/src/main/java/com/pulumi/azure/eventhub/Queue.java @@ -89,18 +89,18 @@ @ResourceType(type="azure:eventhub/queue:Queue") public class Queue extends com.pulumi.resources.CustomResource { /** - * The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. Defaults to `P10675199DT2H48M5.4775807S`. + * The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. * */ @Export(name="autoDeleteOnIdle", refs={String.class}, tree="[0]") - private Output autoDeleteOnIdle; + private Output autoDeleteOnIdle; /** - * @return The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. Defaults to `P10675199DT2H48M5.4775807S`. + * @return The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. * */ - public Output> autoDeleteOnIdle() { - return Codegen.optional(this.autoDeleteOnIdle); + public Output autoDeleteOnIdle() { + return this.autoDeleteOnIdle; } /** * Boolean flag which controls whether server-side batched operations are enabled. Defaults to `true`. @@ -131,18 +131,18 @@ public Output> deadLetteringOnMessageExpiration() { return Codegen.optional(this.deadLetteringOnMessageExpiration); } /** - * The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. Defaults to `P10675199DT2H48M5.4775807S`. + * The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. * */ @Export(name="defaultMessageTtl", refs={String.class}, tree="[0]") - private Output defaultMessageTtl; + private Output defaultMessageTtl; /** - * @return The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. Defaults to `P10675199DT2H48M5.4775807S`. + * @return The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. * */ - public Output> defaultMessageTtl() { - return Codegen.optional(this.defaultMessageTtl); + public Output defaultMessageTtl() { + return this.defaultMessageTtl; } /** * The ISO 8601 timespan duration during which duplicates can be detected. Defaults to `PT10M` (10 Minutes). @@ -233,28 +233,28 @@ public Output> maxDeliveryCount() { return Codegen.optional(this.maxDeliveryCount); } /** - * Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). Defaults to `256`. + * Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). * */ @Export(name="maxMessageSizeInKilobytes", refs={Integer.class}, tree="[0]") private Output maxMessageSizeInKilobytes; /** - * @return Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). Defaults to `256`. + * @return Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). * */ public Output maxMessageSizeInKilobytes() { return this.maxMessageSizeInKilobytes; } /** - * Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). Defaults to `5120`. + * Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). * */ @Export(name="maxSizeInMegabytes", refs={Integer.class}, tree="[0]") private Output maxSizeInMegabytes; /** - * @return Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). Defaults to `5120`. + * @return Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). * */ public Output maxSizeInMegabytes() { diff --git a/sdk/java/src/main/java/com/pulumi/azure/eventhub/QueueArgs.java b/sdk/java/src/main/java/com/pulumi/azure/eventhub/QueueArgs.java index 46063c9a1b..f0255bf8a4 100644 --- a/sdk/java/src/main/java/com/pulumi/azure/eventhub/QueueArgs.java +++ b/sdk/java/src/main/java/com/pulumi/azure/eventhub/QueueArgs.java @@ -19,14 +19,14 @@ public final class QueueArgs extends com.pulumi.resources.ResourceArgs { public static final QueueArgs Empty = new QueueArgs(); /** - * The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. Defaults to `P10675199DT2H48M5.4775807S`. + * The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. * */ @Import(name="autoDeleteOnIdle") private @Nullable Output autoDeleteOnIdle; /** - * @return The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. Defaults to `P10675199DT2H48M5.4775807S`. + * @return The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. * */ public Optional> autoDeleteOnIdle() { @@ -64,14 +64,14 @@ public Optional> deadLetteringOnMessageExpiration() { } /** - * The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. Defaults to `P10675199DT2H48M5.4775807S`. + * The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. * */ @Import(name="defaultMessageTtl") private @Nullable Output defaultMessageTtl; /** - * @return The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. Defaults to `P10675199DT2H48M5.4775807S`. + * @return The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. * */ public Optional> defaultMessageTtl() { @@ -173,14 +173,14 @@ public Optional> maxDeliveryCount() { } /** - * Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). Defaults to `256`. + * Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). * */ @Import(name="maxMessageSizeInKilobytes") private @Nullable Output maxMessageSizeInKilobytes; /** - * @return Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). Defaults to `256`. + * @return Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). * */ public Optional> maxMessageSizeInKilobytes() { @@ -188,14 +188,14 @@ public Optional> maxMessageSizeInKilobytes() { } /** - * Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). Defaults to `5120`. + * Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). * */ @Import(name="maxSizeInMegabytes") private @Nullable Output maxSizeInMegabytes; /** - * @return Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). Defaults to `5120`. + * @return Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). * */ public Optional> maxSizeInMegabytes() { @@ -338,7 +338,7 @@ public Builder(QueueArgs defaults) { } /** - * @param autoDeleteOnIdle The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. Defaults to `P10675199DT2H48M5.4775807S`. + * @param autoDeleteOnIdle The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. * * @return builder * @@ -349,7 +349,7 @@ public Builder autoDeleteOnIdle(@Nullable Output autoDeleteOnIdle) { } /** - * @param autoDeleteOnIdle The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. Defaults to `P10675199DT2H48M5.4775807S`. + * @param autoDeleteOnIdle The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. * * @return builder * @@ -401,7 +401,7 @@ public Builder deadLetteringOnMessageExpiration(Boolean deadLetteringOnMessageEx } /** - * @param defaultMessageTtl The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. Defaults to `P10675199DT2H48M5.4775807S`. + * @param defaultMessageTtl The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. * * @return builder * @@ -412,7 +412,7 @@ public Builder defaultMessageTtl(@Nullable Output defaultMessageTtl) { } /** - * @param defaultMessageTtl The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. Defaults to `P10675199DT2H48M5.4775807S`. + * @param defaultMessageTtl The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. * * @return builder * @@ -552,7 +552,7 @@ public Builder maxDeliveryCount(Integer maxDeliveryCount) { } /** - * @param maxMessageSizeInKilobytes Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). Defaults to `256`. + * @param maxMessageSizeInKilobytes Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). * * @return builder * @@ -563,7 +563,7 @@ public Builder maxMessageSizeInKilobytes(@Nullable Output maxMessageSiz } /** - * @param maxMessageSizeInKilobytes Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). Defaults to `256`. + * @param maxMessageSizeInKilobytes Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). * * @return builder * @@ -573,7 +573,7 @@ public Builder maxMessageSizeInKilobytes(Integer maxMessageSizeInKilobytes) { } /** - * @param maxSizeInMegabytes Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). Defaults to `5120`. + * @param maxSizeInMegabytes Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). * * @return builder * @@ -584,7 +584,7 @@ public Builder maxSizeInMegabytes(@Nullable Output maxSizeInMegabytes) } /** - * @param maxSizeInMegabytes Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). Defaults to `5120`. + * @param maxSizeInMegabytes Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/azure/eventhub/inputs/QueueState.java b/sdk/java/src/main/java/com/pulumi/azure/eventhub/inputs/QueueState.java index da5bf4c35f..2b85820808 100644 --- a/sdk/java/src/main/java/com/pulumi/azure/eventhub/inputs/QueueState.java +++ b/sdk/java/src/main/java/com/pulumi/azure/eventhub/inputs/QueueState.java @@ -18,14 +18,14 @@ public final class QueueState extends com.pulumi.resources.ResourceArgs { public static final QueueState Empty = new QueueState(); /** - * The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. Defaults to `P10675199DT2H48M5.4775807S`. + * The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. * */ @Import(name="autoDeleteOnIdle") private @Nullable Output autoDeleteOnIdle; /** - * @return The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. Defaults to `P10675199DT2H48M5.4775807S`. + * @return The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. * */ public Optional> autoDeleteOnIdle() { @@ -63,14 +63,14 @@ public Optional> deadLetteringOnMessageExpiration() { } /** - * The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. Defaults to `P10675199DT2H48M5.4775807S`. + * The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. * */ @Import(name="defaultMessageTtl") private @Nullable Output defaultMessageTtl; /** - * @return The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. Defaults to `P10675199DT2H48M5.4775807S`. + * @return The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. * */ public Optional> defaultMessageTtl() { @@ -172,14 +172,14 @@ public Optional> maxDeliveryCount() { } /** - * Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). Defaults to `256`. + * Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). * */ @Import(name="maxMessageSizeInKilobytes") private @Nullable Output maxMessageSizeInKilobytes; /** - * @return Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). Defaults to `256`. + * @return Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). * */ public Optional> maxMessageSizeInKilobytes() { @@ -187,14 +187,14 @@ public Optional> maxMessageSizeInKilobytes() { } /** - * Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). Defaults to `5120`. + * Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). * */ @Import(name="maxSizeInMegabytes") private @Nullable Output maxSizeInMegabytes; /** - * @return Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). Defaults to `5120`. + * @return Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). * */ public Optional> maxSizeInMegabytes() { @@ -353,7 +353,7 @@ public Builder(QueueState defaults) { } /** - * @param autoDeleteOnIdle The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. Defaults to `P10675199DT2H48M5.4775807S`. + * @param autoDeleteOnIdle The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. * * @return builder * @@ -364,7 +364,7 @@ public Builder autoDeleteOnIdle(@Nullable Output autoDeleteOnIdle) { } /** - * @param autoDeleteOnIdle The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. Defaults to `P10675199DT2H48M5.4775807S`. + * @param autoDeleteOnIdle The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. * * @return builder * @@ -416,7 +416,7 @@ public Builder deadLetteringOnMessageExpiration(Boolean deadLetteringOnMessageEx } /** - * @param defaultMessageTtl The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. Defaults to `P10675199DT2H48M5.4775807S`. + * @param defaultMessageTtl The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. * * @return builder * @@ -427,7 +427,7 @@ public Builder defaultMessageTtl(@Nullable Output defaultMessageTtl) { } /** - * @param defaultMessageTtl The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. Defaults to `P10675199DT2H48M5.4775807S`. + * @param defaultMessageTtl The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. * * @return builder * @@ -567,7 +567,7 @@ public Builder maxDeliveryCount(Integer maxDeliveryCount) { } /** - * @param maxMessageSizeInKilobytes Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). Defaults to `256`. + * @param maxMessageSizeInKilobytes Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). * * @return builder * @@ -578,7 +578,7 @@ public Builder maxMessageSizeInKilobytes(@Nullable Output maxMessageSiz } /** - * @param maxMessageSizeInKilobytes Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). Defaults to `256`. + * @param maxMessageSizeInKilobytes Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). * * @return builder * @@ -588,7 +588,7 @@ public Builder maxMessageSizeInKilobytes(Integer maxMessageSizeInKilobytes) { } /** - * @param maxSizeInMegabytes Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). Defaults to `5120`. + * @param maxSizeInMegabytes Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). * * @return builder * @@ -599,7 +599,7 @@ public Builder maxSizeInMegabytes(@Nullable Output maxSizeInMegabytes) } /** - * @param maxSizeInMegabytes Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). Defaults to `5120`. + * @param maxSizeInMegabytes Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/azure/media/AccountFilter.java b/sdk/java/src/main/java/com/pulumi/azure/media/AccountFilter.java deleted file mode 100644 index 31b206a05a..0000000000 --- a/sdk/java/src/main/java/com/pulumi/azure/media/AccountFilter.java +++ /dev/null @@ -1,115 +0,0 @@ -// *** 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.media; - -import com.pulumi.azure.Utilities; -import com.pulumi.azure.media.AccountFilterArgs; -import com.pulumi.azure.media.inputs.AccountFilterState; -import com.pulumi.azure.media.outputs.AccountFilterPresentationTimeRange; -import com.pulumi.azure.media.outputs.AccountFilterTrackSelection; -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.Integer; -import java.lang.String; -import java.util.List; -import java.util.Optional; -import javax.annotation.Nullable; - -@ResourceType(type="azure:media/accountFilter:AccountFilter") -public class AccountFilter extends com.pulumi.resources.CustomResource { - @Export(name="firstQualityBitrate", refs={Integer.class}, tree="[0]") - private Output firstQualityBitrate; - - public Output> firstQualityBitrate() { - return Codegen.optional(this.firstQualityBitrate); - } - @Export(name="mediaServicesAccountName", refs={String.class}, tree="[0]") - private Output mediaServicesAccountName; - - public Output mediaServicesAccountName() { - return this.mediaServicesAccountName; - } - @Export(name="name", refs={String.class}, tree="[0]") - private Output name; - - public Output name() { - return this.name; - } - @Export(name="presentationTimeRange", refs={AccountFilterPresentationTimeRange.class}, tree="[0]") - private Output presentationTimeRange; - - public Output> presentationTimeRange() { - return Codegen.optional(this.presentationTimeRange); - } - @Export(name="resourceGroupName", refs={String.class}, tree="[0]") - private Output resourceGroupName; - - public Output resourceGroupName() { - return this.resourceGroupName; - } - @Export(name="trackSelections", refs={List.class,AccountFilterTrackSelection.class}, tree="[0,1]") - private Output> trackSelections; - - public Output>> trackSelections() { - return Codegen.optional(this.trackSelections); - } - - /** - * - * @param name The _unique_ name of the resulting resource. - */ - public AccountFilter(java.lang.String name) { - this(name, AccountFilterArgs.Empty); - } - /** - * - * @param name The _unique_ name of the resulting resource. - * @param args The arguments to use to populate this resource's properties. - */ - public AccountFilter(java.lang.String name, AccountFilterArgs 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 AccountFilter(java.lang.String name, AccountFilterArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("azure:media/accountFilter:AccountFilter", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); - } - - private AccountFilter(java.lang.String name, Output id, @Nullable AccountFilterState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("azure:media/accountFilter:AccountFilter", name, state, makeResourceOptions(options, id), false); - } - - private static AccountFilterArgs makeArgs(AccountFilterArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - if (options != null && options.getUrn().isPresent()) { - return null; - } - return args == null ? AccountFilterArgs.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 AccountFilter get(java.lang.String name, Output id, @Nullable AccountFilterState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { - return new AccountFilter(name, id, state, options); - } -} diff --git a/sdk/java/src/main/java/com/pulumi/azure/media/AccountFilterArgs.java b/sdk/java/src/main/java/com/pulumi/azure/media/AccountFilterArgs.java deleted file mode 100644 index 687b5bab53..0000000000 --- a/sdk/java/src/main/java/com/pulumi/azure/media/AccountFilterArgs.java +++ /dev/null @@ -1,163 +0,0 @@ -// *** 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.media; - -import com.pulumi.azure.media.inputs.AccountFilterPresentationTimeRangeArgs; -import com.pulumi.azure.media.inputs.AccountFilterTrackSelectionArgs; -import com.pulumi.core.Output; -import com.pulumi.core.annotations.Import; -import com.pulumi.exceptions.MissingRequiredPropertyException; -import java.lang.Integer; -import java.lang.String; -import java.util.List; -import java.util.Objects; -import java.util.Optional; -import javax.annotation.Nullable; - - -public final class AccountFilterArgs extends com.pulumi.resources.ResourceArgs { - - public static final AccountFilterArgs Empty = new AccountFilterArgs(); - - @Import(name="firstQualityBitrate") - private @Nullable Output firstQualityBitrate; - - public Optional> firstQualityBitrate() { - return Optional.ofNullable(this.firstQualityBitrate); - } - - @Import(name="mediaServicesAccountName", required=true) - private Output mediaServicesAccountName; - - public Output mediaServicesAccountName() { - return this.mediaServicesAccountName; - } - - @Import(name="name") - private @Nullable Output name; - - public Optional> name() { - return Optional.ofNullable(this.name); - } - - @Import(name="presentationTimeRange") - private @Nullable Output presentationTimeRange; - - public Optional> presentationTimeRange() { - return Optional.ofNullable(this.presentationTimeRange); - } - - @Import(name="resourceGroupName", required=true) - private Output resourceGroupName; - - public Output resourceGroupName() { - return this.resourceGroupName; - } - - @Import(name="trackSelections") - private @Nullable Output> trackSelections; - - public Optional>> trackSelections() { - return Optional.ofNullable(this.trackSelections); - } - - private AccountFilterArgs() {} - - private AccountFilterArgs(AccountFilterArgs $) { - this.firstQualityBitrate = $.firstQualityBitrate; - this.mediaServicesAccountName = $.mediaServicesAccountName; - this.name = $.name; - this.presentationTimeRange = $.presentationTimeRange; - this.resourceGroupName = $.resourceGroupName; - this.trackSelections = $.trackSelections; - } - - public static Builder builder() { - return new Builder(); - } - public static Builder builder(AccountFilterArgs defaults) { - return new Builder(defaults); - } - - public static final class Builder { - private AccountFilterArgs $; - - public Builder() { - $ = new AccountFilterArgs(); - } - - public Builder(AccountFilterArgs defaults) { - $ = new AccountFilterArgs(Objects.requireNonNull(defaults)); - } - - public Builder firstQualityBitrate(@Nullable Output firstQualityBitrate) { - $.firstQualityBitrate = firstQualityBitrate; - return this; - } - - public Builder firstQualityBitrate(Integer firstQualityBitrate) { - return firstQualityBitrate(Output.of(firstQualityBitrate)); - } - - public Builder mediaServicesAccountName(Output mediaServicesAccountName) { - $.mediaServicesAccountName = mediaServicesAccountName; - return this; - } - - public Builder mediaServicesAccountName(String mediaServicesAccountName) { - return mediaServicesAccountName(Output.of(mediaServicesAccountName)); - } - - public Builder name(@Nullable Output name) { - $.name = name; - return this; - } - - public Builder name(String name) { - return name(Output.of(name)); - } - - public Builder presentationTimeRange(@Nullable Output presentationTimeRange) { - $.presentationTimeRange = presentationTimeRange; - return this; - } - - public Builder presentationTimeRange(AccountFilterPresentationTimeRangeArgs presentationTimeRange) { - return presentationTimeRange(Output.of(presentationTimeRange)); - } - - public Builder resourceGroupName(Output resourceGroupName) { - $.resourceGroupName = resourceGroupName; - return this; - } - - public Builder resourceGroupName(String resourceGroupName) { - return resourceGroupName(Output.of(resourceGroupName)); - } - - public Builder trackSelections(@Nullable Output> trackSelections) { - $.trackSelections = trackSelections; - return this; - } - - public Builder trackSelections(List trackSelections) { - return trackSelections(Output.of(trackSelections)); - } - - public Builder trackSelections(AccountFilterTrackSelectionArgs... trackSelections) { - return trackSelections(List.of(trackSelections)); - } - - public AccountFilterArgs build() { - if ($.mediaServicesAccountName == null) { - throw new MissingRequiredPropertyException("AccountFilterArgs", "mediaServicesAccountName"); - } - if ($.resourceGroupName == null) { - throw new MissingRequiredPropertyException("AccountFilterArgs", "resourceGroupName"); - } - return $; - } - } - -} diff --git a/sdk/java/src/main/java/com/pulumi/azure/media/inputs/AccountFilterPresentationTimeRangeArgs.java b/sdk/java/src/main/java/com/pulumi/azure/media/inputs/AccountFilterPresentationTimeRangeArgs.java deleted file mode 100644 index bb7cac9b3f..0000000000 --- a/sdk/java/src/main/java/com/pulumi/azure/media/inputs/AccountFilterPresentationTimeRangeArgs.java +++ /dev/null @@ -1,153 +0,0 @@ -// *** 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.media.inputs; - -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.util.Objects; -import java.util.Optional; -import javax.annotation.Nullable; - - -public final class AccountFilterPresentationTimeRangeArgs extends com.pulumi.resources.ResourceArgs { - - public static final AccountFilterPresentationTimeRangeArgs Empty = new AccountFilterPresentationTimeRangeArgs(); - - @Import(name="endInUnits") - private @Nullable Output endInUnits; - - public Optional> endInUnits() { - return Optional.ofNullable(this.endInUnits); - } - - @Import(name="forceEnd") - private @Nullable Output forceEnd; - - public Optional> forceEnd() { - return Optional.ofNullable(this.forceEnd); - } - - @Import(name="liveBackoffInUnits") - private @Nullable Output liveBackoffInUnits; - - public Optional> liveBackoffInUnits() { - return Optional.ofNullable(this.liveBackoffInUnits); - } - - @Import(name="presentationWindowInUnits") - private @Nullable Output presentationWindowInUnits; - - public Optional> presentationWindowInUnits() { - return Optional.ofNullable(this.presentationWindowInUnits); - } - - @Import(name="startInUnits") - private @Nullable Output startInUnits; - - public Optional> startInUnits() { - return Optional.ofNullable(this.startInUnits); - } - - @Import(name="unitTimescaleInMilliseconds", required=true) - private Output unitTimescaleInMilliseconds; - - public Output unitTimescaleInMilliseconds() { - return this.unitTimescaleInMilliseconds; - } - - private AccountFilterPresentationTimeRangeArgs() {} - - private AccountFilterPresentationTimeRangeArgs(AccountFilterPresentationTimeRangeArgs $) { - this.endInUnits = $.endInUnits; - this.forceEnd = $.forceEnd; - this.liveBackoffInUnits = $.liveBackoffInUnits; - this.presentationWindowInUnits = $.presentationWindowInUnits; - this.startInUnits = $.startInUnits; - this.unitTimescaleInMilliseconds = $.unitTimescaleInMilliseconds; - } - - public static Builder builder() { - return new Builder(); - } - public static Builder builder(AccountFilterPresentationTimeRangeArgs defaults) { - return new Builder(defaults); - } - - public static final class Builder { - private AccountFilterPresentationTimeRangeArgs $; - - public Builder() { - $ = new AccountFilterPresentationTimeRangeArgs(); - } - - public Builder(AccountFilterPresentationTimeRangeArgs defaults) { - $ = new AccountFilterPresentationTimeRangeArgs(Objects.requireNonNull(defaults)); - } - - public Builder endInUnits(@Nullable Output endInUnits) { - $.endInUnits = endInUnits; - return this; - } - - public Builder endInUnits(Integer endInUnits) { - return endInUnits(Output.of(endInUnits)); - } - - public Builder forceEnd(@Nullable Output forceEnd) { - $.forceEnd = forceEnd; - return this; - } - - public Builder forceEnd(Boolean forceEnd) { - return forceEnd(Output.of(forceEnd)); - } - - public Builder liveBackoffInUnits(@Nullable Output liveBackoffInUnits) { - $.liveBackoffInUnits = liveBackoffInUnits; - return this; - } - - public Builder liveBackoffInUnits(Integer liveBackoffInUnits) { - return liveBackoffInUnits(Output.of(liveBackoffInUnits)); - } - - public Builder presentationWindowInUnits(@Nullable Output presentationWindowInUnits) { - $.presentationWindowInUnits = presentationWindowInUnits; - return this; - } - - public Builder presentationWindowInUnits(Integer presentationWindowInUnits) { - return presentationWindowInUnits(Output.of(presentationWindowInUnits)); - } - - public Builder startInUnits(@Nullable Output startInUnits) { - $.startInUnits = startInUnits; - return this; - } - - public Builder startInUnits(Integer startInUnits) { - return startInUnits(Output.of(startInUnits)); - } - - public Builder unitTimescaleInMilliseconds(Output unitTimescaleInMilliseconds) { - $.unitTimescaleInMilliseconds = unitTimescaleInMilliseconds; - return this; - } - - public Builder unitTimescaleInMilliseconds(Integer unitTimescaleInMilliseconds) { - return unitTimescaleInMilliseconds(Output.of(unitTimescaleInMilliseconds)); - } - - public AccountFilterPresentationTimeRangeArgs build() { - if ($.unitTimescaleInMilliseconds == null) { - throw new MissingRequiredPropertyException("AccountFilterPresentationTimeRangeArgs", "unitTimescaleInMilliseconds"); - } - return $; - } - } - -} diff --git a/sdk/java/src/main/java/com/pulumi/azure/media/inputs/AccountFilterState.java b/sdk/java/src/main/java/com/pulumi/azure/media/inputs/AccountFilterState.java deleted file mode 100644 index 91e2398568..0000000000 --- a/sdk/java/src/main/java/com/pulumi/azure/media/inputs/AccountFilterState.java +++ /dev/null @@ -1,156 +0,0 @@ -// *** 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.media.inputs; - -import com.pulumi.azure.media.inputs.AccountFilterPresentationTimeRangeArgs; -import com.pulumi.azure.media.inputs.AccountFilterTrackSelectionArgs; -import com.pulumi.core.Output; -import com.pulumi.core.annotations.Import; -import java.lang.Integer; -import java.lang.String; -import java.util.List; -import java.util.Objects; -import java.util.Optional; -import javax.annotation.Nullable; - - -public final class AccountFilterState extends com.pulumi.resources.ResourceArgs { - - public static final AccountFilterState Empty = new AccountFilterState(); - - @Import(name="firstQualityBitrate") - private @Nullable Output firstQualityBitrate; - - public Optional> firstQualityBitrate() { - return Optional.ofNullable(this.firstQualityBitrate); - } - - @Import(name="mediaServicesAccountName") - private @Nullable Output mediaServicesAccountName; - - public Optional> mediaServicesAccountName() { - return Optional.ofNullable(this.mediaServicesAccountName); - } - - @Import(name="name") - private @Nullable Output name; - - public Optional> name() { - return Optional.ofNullable(this.name); - } - - @Import(name="presentationTimeRange") - private @Nullable Output presentationTimeRange; - - public Optional> presentationTimeRange() { - return Optional.ofNullable(this.presentationTimeRange); - } - - @Import(name="resourceGroupName") - private @Nullable Output resourceGroupName; - - public Optional> resourceGroupName() { - return Optional.ofNullable(this.resourceGroupName); - } - - @Import(name="trackSelections") - private @Nullable Output> trackSelections; - - public Optional>> trackSelections() { - return Optional.ofNullable(this.trackSelections); - } - - private AccountFilterState() {} - - private AccountFilterState(AccountFilterState $) { - this.firstQualityBitrate = $.firstQualityBitrate; - this.mediaServicesAccountName = $.mediaServicesAccountName; - this.name = $.name; - this.presentationTimeRange = $.presentationTimeRange; - this.resourceGroupName = $.resourceGroupName; - this.trackSelections = $.trackSelections; - } - - public static Builder builder() { - return new Builder(); - } - public static Builder builder(AccountFilterState defaults) { - return new Builder(defaults); - } - - public static final class Builder { - private AccountFilterState $; - - public Builder() { - $ = new AccountFilterState(); - } - - public Builder(AccountFilterState defaults) { - $ = new AccountFilterState(Objects.requireNonNull(defaults)); - } - - public Builder firstQualityBitrate(@Nullable Output firstQualityBitrate) { - $.firstQualityBitrate = firstQualityBitrate; - return this; - } - - public Builder firstQualityBitrate(Integer firstQualityBitrate) { - return firstQualityBitrate(Output.of(firstQualityBitrate)); - } - - public Builder mediaServicesAccountName(@Nullable Output mediaServicesAccountName) { - $.mediaServicesAccountName = mediaServicesAccountName; - return this; - } - - public Builder mediaServicesAccountName(String mediaServicesAccountName) { - return mediaServicesAccountName(Output.of(mediaServicesAccountName)); - } - - public Builder name(@Nullable Output name) { - $.name = name; - return this; - } - - public Builder name(String name) { - return name(Output.of(name)); - } - - public Builder presentationTimeRange(@Nullable Output presentationTimeRange) { - $.presentationTimeRange = presentationTimeRange; - return this; - } - - public Builder presentationTimeRange(AccountFilterPresentationTimeRangeArgs presentationTimeRange) { - return presentationTimeRange(Output.of(presentationTimeRange)); - } - - public Builder resourceGroupName(@Nullable Output resourceGroupName) { - $.resourceGroupName = resourceGroupName; - return this; - } - - public Builder resourceGroupName(String resourceGroupName) { - return resourceGroupName(Output.of(resourceGroupName)); - } - - public Builder trackSelections(@Nullable Output> trackSelections) { - $.trackSelections = trackSelections; - return this; - } - - public Builder trackSelections(List trackSelections) { - return trackSelections(Output.of(trackSelections)); - } - - public Builder trackSelections(AccountFilterTrackSelectionArgs... trackSelections) { - return trackSelections(List.of(trackSelections)); - } - - public AccountFilterState build() { - return $; - } - } - -} diff --git a/sdk/java/src/main/java/com/pulumi/azure/media/inputs/AccountFilterTrackSelectionArgs.java b/sdk/java/src/main/java/com/pulumi/azure/media/inputs/AccountFilterTrackSelectionArgs.java deleted file mode 100644 index b5f0204989..0000000000 --- a/sdk/java/src/main/java/com/pulumi/azure/media/inputs/AccountFilterTrackSelectionArgs.java +++ /dev/null @@ -1,70 +0,0 @@ -// *** 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.media.inputs; - -import com.pulumi.azure.media.inputs.AccountFilterTrackSelectionConditionArgs; -import com.pulumi.core.Output; -import com.pulumi.core.annotations.Import; -import com.pulumi.exceptions.MissingRequiredPropertyException; -import java.util.List; -import java.util.Objects; - - -public final class AccountFilterTrackSelectionArgs extends com.pulumi.resources.ResourceArgs { - - public static final AccountFilterTrackSelectionArgs Empty = new AccountFilterTrackSelectionArgs(); - - @Import(name="conditions", required=true) - private Output> conditions; - - public Output> conditions() { - return this.conditions; - } - - private AccountFilterTrackSelectionArgs() {} - - private AccountFilterTrackSelectionArgs(AccountFilterTrackSelectionArgs $) { - this.conditions = $.conditions; - } - - public static Builder builder() { - return new Builder(); - } - public static Builder builder(AccountFilterTrackSelectionArgs defaults) { - return new Builder(defaults); - } - - public static final class Builder { - private AccountFilterTrackSelectionArgs $; - - public Builder() { - $ = new AccountFilterTrackSelectionArgs(); - } - - public Builder(AccountFilterTrackSelectionArgs defaults) { - $ = new AccountFilterTrackSelectionArgs(Objects.requireNonNull(defaults)); - } - - public Builder conditions(Output> conditions) { - $.conditions = conditions; - return this; - } - - public Builder conditions(List conditions) { - return conditions(Output.of(conditions)); - } - - public Builder conditions(AccountFilterTrackSelectionConditionArgs... conditions) { - return conditions(List.of(conditions)); - } - - public AccountFilterTrackSelectionArgs build() { - if ($.conditions == null) { - throw new MissingRequiredPropertyException("AccountFilterTrackSelectionArgs", "conditions"); - } - return $; - } - } - -} diff --git a/sdk/java/src/main/java/com/pulumi/azure/media/inputs/AccountFilterTrackSelectionConditionArgs.java b/sdk/java/src/main/java/com/pulumi/azure/media/inputs/AccountFilterTrackSelectionConditionArgs.java deleted file mode 100644 index e9fa4585e0..0000000000 --- a/sdk/java/src/main/java/com/pulumi/azure/media/inputs/AccountFilterTrackSelectionConditionArgs.java +++ /dev/null @@ -1,105 +0,0 @@ -// *** 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.media.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 AccountFilterTrackSelectionConditionArgs extends com.pulumi.resources.ResourceArgs { - - public static final AccountFilterTrackSelectionConditionArgs Empty = new AccountFilterTrackSelectionConditionArgs(); - - @Import(name="operation", required=true) - private Output operation; - - public Output operation() { - return this.operation; - } - - @Import(name="property", required=true) - private Output property; - - public Output property() { - return this.property; - } - - @Import(name="value", required=true) - private Output value; - - public Output value() { - return this.value; - } - - private AccountFilterTrackSelectionConditionArgs() {} - - private AccountFilterTrackSelectionConditionArgs(AccountFilterTrackSelectionConditionArgs $) { - this.operation = $.operation; - this.property = $.property; - this.value = $.value; - } - - public static Builder builder() { - return new Builder(); - } - public static Builder builder(AccountFilterTrackSelectionConditionArgs defaults) { - return new Builder(defaults); - } - - public static final class Builder { - private AccountFilterTrackSelectionConditionArgs $; - - public Builder() { - $ = new AccountFilterTrackSelectionConditionArgs(); - } - - public Builder(AccountFilterTrackSelectionConditionArgs defaults) { - $ = new AccountFilterTrackSelectionConditionArgs(Objects.requireNonNull(defaults)); - } - - public Builder operation(Output operation) { - $.operation = operation; - return this; - } - - public Builder operation(String operation) { - return operation(Output.of(operation)); - } - - public Builder property(Output property) { - $.property = property; - return this; - } - - public Builder property(String property) { - return property(Output.of(property)); - } - - public Builder value(Output value) { - $.value = value; - return this; - } - - public Builder value(String value) { - return value(Output.of(value)); - } - - public AccountFilterTrackSelectionConditionArgs build() { - if ($.operation == null) { - throw new MissingRequiredPropertyException("AccountFilterTrackSelectionConditionArgs", "operation"); - } - if ($.property == null) { - throw new MissingRequiredPropertyException("AccountFilterTrackSelectionConditionArgs", "property"); - } - if ($.value == null) { - throw new MissingRequiredPropertyException("AccountFilterTrackSelectionConditionArgs", "value"); - } - return $; - } - } - -} diff --git a/sdk/java/src/main/java/com/pulumi/azure/media/outputs/AccountFilterPresentationTimeRange.java b/sdk/java/src/main/java/com/pulumi/azure/media/outputs/AccountFilterPresentationTimeRange.java deleted file mode 100644 index 5715c4b4ea..0000000000 --- a/sdk/java/src/main/java/com/pulumi/azure/media/outputs/AccountFilterPresentationTimeRange.java +++ /dev/null @@ -1,118 +0,0 @@ -// *** 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.media.outputs; - -import com.pulumi.core.annotations.CustomType; -import com.pulumi.exceptions.MissingRequiredPropertyException; -import java.lang.Boolean; -import java.lang.Integer; -import java.util.Objects; -import java.util.Optional; -import javax.annotation.Nullable; - -@CustomType -public final class AccountFilterPresentationTimeRange { - private @Nullable Integer endInUnits; - private @Nullable Boolean forceEnd; - private @Nullable Integer liveBackoffInUnits; - private @Nullable Integer presentationWindowInUnits; - private @Nullable Integer startInUnits; - private Integer unitTimescaleInMilliseconds; - - private AccountFilterPresentationTimeRange() {} - public Optional endInUnits() { - return Optional.ofNullable(this.endInUnits); - } - public Optional forceEnd() { - return Optional.ofNullable(this.forceEnd); - } - public Optional liveBackoffInUnits() { - return Optional.ofNullable(this.liveBackoffInUnits); - } - public Optional presentationWindowInUnits() { - return Optional.ofNullable(this.presentationWindowInUnits); - } - public Optional startInUnits() { - return Optional.ofNullable(this.startInUnits); - } - public Integer unitTimescaleInMilliseconds() { - return this.unitTimescaleInMilliseconds; - } - - public static Builder builder() { - return new Builder(); - } - - public static Builder builder(AccountFilterPresentationTimeRange defaults) { - return new Builder(defaults); - } - @CustomType.Builder - public static final class Builder { - private @Nullable Integer endInUnits; - private @Nullable Boolean forceEnd; - private @Nullable Integer liveBackoffInUnits; - private @Nullable Integer presentationWindowInUnits; - private @Nullable Integer startInUnits; - private Integer unitTimescaleInMilliseconds; - public Builder() {} - public Builder(AccountFilterPresentationTimeRange defaults) { - Objects.requireNonNull(defaults); - this.endInUnits = defaults.endInUnits; - this.forceEnd = defaults.forceEnd; - this.liveBackoffInUnits = defaults.liveBackoffInUnits; - this.presentationWindowInUnits = defaults.presentationWindowInUnits; - this.startInUnits = defaults.startInUnits; - this.unitTimescaleInMilliseconds = defaults.unitTimescaleInMilliseconds; - } - - @CustomType.Setter - public Builder endInUnits(@Nullable Integer endInUnits) { - - this.endInUnits = endInUnits; - return this; - } - @CustomType.Setter - public Builder forceEnd(@Nullable Boolean forceEnd) { - - this.forceEnd = forceEnd; - return this; - } - @CustomType.Setter - public Builder liveBackoffInUnits(@Nullable Integer liveBackoffInUnits) { - - this.liveBackoffInUnits = liveBackoffInUnits; - return this; - } - @CustomType.Setter - public Builder presentationWindowInUnits(@Nullable Integer presentationWindowInUnits) { - - this.presentationWindowInUnits = presentationWindowInUnits; - return this; - } - @CustomType.Setter - public Builder startInUnits(@Nullable Integer startInUnits) { - - this.startInUnits = startInUnits; - return this; - } - @CustomType.Setter - public Builder unitTimescaleInMilliseconds(Integer unitTimescaleInMilliseconds) { - if (unitTimescaleInMilliseconds == null) { - throw new MissingRequiredPropertyException("AccountFilterPresentationTimeRange", "unitTimescaleInMilliseconds"); - } - this.unitTimescaleInMilliseconds = unitTimescaleInMilliseconds; - return this; - } - public AccountFilterPresentationTimeRange build() { - final var _resultValue = new AccountFilterPresentationTimeRange(); - _resultValue.endInUnits = endInUnits; - _resultValue.forceEnd = forceEnd; - _resultValue.liveBackoffInUnits = liveBackoffInUnits; - _resultValue.presentationWindowInUnits = presentationWindowInUnits; - _resultValue.startInUnits = startInUnits; - _resultValue.unitTimescaleInMilliseconds = unitTimescaleInMilliseconds; - return _resultValue; - } - } -} diff --git a/sdk/java/src/main/java/com/pulumi/azure/media/outputs/AccountFilterTrackSelection.java b/sdk/java/src/main/java/com/pulumi/azure/media/outputs/AccountFilterTrackSelection.java deleted file mode 100644 index 120e268d2b..0000000000 --- a/sdk/java/src/main/java/com/pulumi/azure/media/outputs/AccountFilterTrackSelection.java +++ /dev/null @@ -1,54 +0,0 @@ -// *** 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.media.outputs; - -import com.pulumi.azure.media.outputs.AccountFilterTrackSelectionCondition; -import com.pulumi.core.annotations.CustomType; -import com.pulumi.exceptions.MissingRequiredPropertyException; -import java.util.List; -import java.util.Objects; - -@CustomType -public final class AccountFilterTrackSelection { - private List conditions; - - private AccountFilterTrackSelection() {} - public List conditions() { - return this.conditions; - } - - public static Builder builder() { - return new Builder(); - } - - public static Builder builder(AccountFilterTrackSelection defaults) { - return new Builder(defaults); - } - @CustomType.Builder - public static final class Builder { - private List conditions; - public Builder() {} - public Builder(AccountFilterTrackSelection defaults) { - Objects.requireNonNull(defaults); - this.conditions = defaults.conditions; - } - - @CustomType.Setter - public Builder conditions(List conditions) { - if (conditions == null) { - throw new MissingRequiredPropertyException("AccountFilterTrackSelection", "conditions"); - } - this.conditions = conditions; - return this; - } - public Builder conditions(AccountFilterTrackSelectionCondition... conditions) { - return conditions(List.of(conditions)); - } - public AccountFilterTrackSelection build() { - final var _resultValue = new AccountFilterTrackSelection(); - _resultValue.conditions = conditions; - return _resultValue; - } - } -} diff --git a/sdk/java/src/main/java/com/pulumi/azure/media/outputs/AccountFilterTrackSelectionCondition.java b/sdk/java/src/main/java/com/pulumi/azure/media/outputs/AccountFilterTrackSelectionCondition.java deleted file mode 100644 index 463b54d874..0000000000 --- a/sdk/java/src/main/java/com/pulumi/azure/media/outputs/AccountFilterTrackSelectionCondition.java +++ /dev/null @@ -1,80 +0,0 @@ -// *** 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.media.outputs; - -import com.pulumi.core.annotations.CustomType; -import com.pulumi.exceptions.MissingRequiredPropertyException; -import java.lang.String; -import java.util.Objects; - -@CustomType -public final class AccountFilterTrackSelectionCondition { - private String operation; - private String property; - private String value; - - private AccountFilterTrackSelectionCondition() {} - public String operation() { - return this.operation; - } - public String property() { - return this.property; - } - public String value() { - return this.value; - } - - public static Builder builder() { - return new Builder(); - } - - public static Builder builder(AccountFilterTrackSelectionCondition defaults) { - return new Builder(defaults); - } - @CustomType.Builder - public static final class Builder { - private String operation; - private String property; - private String value; - public Builder() {} - public Builder(AccountFilterTrackSelectionCondition defaults) { - Objects.requireNonNull(defaults); - this.operation = defaults.operation; - this.property = defaults.property; - this.value = defaults.value; - } - - @CustomType.Setter - public Builder operation(String operation) { - if (operation == null) { - throw new MissingRequiredPropertyException("AccountFilterTrackSelectionCondition", "operation"); - } - this.operation = operation; - return this; - } - @CustomType.Setter - public Builder property(String property) { - if (property == null) { - throw new MissingRequiredPropertyException("AccountFilterTrackSelectionCondition", "property"); - } - this.property = property; - return this; - } - @CustomType.Setter - public Builder value(String value) { - if (value == null) { - throw new MissingRequiredPropertyException("AccountFilterTrackSelectionCondition", "value"); - } - this.value = value; - return this; - } - public AccountFilterTrackSelectionCondition build() { - final var _resultValue = new AccountFilterTrackSelectionCondition(); - _resultValue.operation = operation; - _resultValue.property = property; - _resultValue.value = value; - return _resultValue; - } - } -} diff --git a/sdk/java/src/main/java/com/pulumi/azure/mssql/ManagedInstance.java b/sdk/java/src/main/java/com/pulumi/azure/mssql/ManagedInstance.java index 46390d98a8..0e4b86cbeb 100644 --- a/sdk/java/src/main/java/com/pulumi/azure/mssql/ManagedInstance.java +++ b/sdk/java/src/main/java/com/pulumi/azure/mssql/ManagedInstance.java @@ -251,6 +251,20 @@ public Output> publicDataEndpointEnabled() { public Output resourceGroupName() { return this.resourceGroupName; } + /** + * The service principal type. The only possible value is `SystemAssigned`. + * + */ + @Export(name="servicePrincipalType", refs={String.class}, tree="[0]") + private Output servicePrincipalType; + + /** + * @return The service principal type. The only possible value is `SystemAssigned`. + * + */ + public Output> servicePrincipalType() { + return Codegen.optional(this.servicePrincipalType); + } /** * Specifies the SKU Name for the SQL Managed Instance. Valid values include `GP_Gen4`, `GP_Gen5`, `GP_Gen8IM`, `GP_Gen8IH`, `BC_Gen4`, `BC_Gen5`, `BC_Gen8IM` or `BC_Gen8IH`. * diff --git a/sdk/java/src/main/java/com/pulumi/azure/mssql/ManagedInstanceArgs.java b/sdk/java/src/main/java/com/pulumi/azure/mssql/ManagedInstanceArgs.java index 66c48fde6e..3b9b779765 100644 --- a/sdk/java/src/main/java/com/pulumi/azure/mssql/ManagedInstanceArgs.java +++ b/sdk/java/src/main/java/com/pulumi/azure/mssql/ManagedInstanceArgs.java @@ -215,6 +215,21 @@ public Output resourceGroupName() { return this.resourceGroupName; } + /** + * The service principal type. The only possible value is `SystemAssigned`. + * + */ + @Import(name="servicePrincipalType") + private @Nullable Output servicePrincipalType; + + /** + * @return The service principal type. The only possible value is `SystemAssigned`. + * + */ + public Optional> servicePrincipalType() { + return Optional.ofNullable(this.servicePrincipalType); + } + /** * Specifies the SKU Name for the SQL Managed Instance. Valid values include `GP_Gen4`, `GP_Gen5`, `GP_Gen8IM`, `GP_Gen8IH`, `BC_Gen4`, `BC_Gen5`, `BC_Gen8IM` or `BC_Gen8IH`. * @@ -351,6 +366,7 @@ private ManagedInstanceArgs(ManagedInstanceArgs $) { this.proxyOverride = $.proxyOverride; this.publicDataEndpointEnabled = $.publicDataEndpointEnabled; this.resourceGroupName = $.resourceGroupName; + this.servicePrincipalType = $.servicePrincipalType; this.skuName = $.skuName; this.storageAccountType = $.storageAccountType; this.storageSizeInGb = $.storageSizeInGb; @@ -652,6 +668,27 @@ public Builder resourceGroupName(String resourceGroupName) { return resourceGroupName(Output.of(resourceGroupName)); } + /** + * @param servicePrincipalType The service principal type. The only possible value is `SystemAssigned`. + * + * @return builder + * + */ + public Builder servicePrincipalType(@Nullable Output servicePrincipalType) { + $.servicePrincipalType = servicePrincipalType; + return this; + } + + /** + * @param servicePrincipalType The service principal type. The only possible value is `SystemAssigned`. + * + * @return builder + * + */ + public Builder servicePrincipalType(String servicePrincipalType) { + return servicePrincipalType(Output.of(servicePrincipalType)); + } + /** * @param skuName Specifies the SKU Name for the SQL Managed Instance. Valid values include `GP_Gen4`, `GP_Gen5`, `GP_Gen8IM`, `GP_Gen8IH`, `BC_Gen4`, `BC_Gen5`, `BC_Gen8IM` or `BC_Gen8IH`. * diff --git a/sdk/java/src/main/java/com/pulumi/azure/mssql/inputs/ManagedInstanceState.java b/sdk/java/src/main/java/com/pulumi/azure/mssql/inputs/ManagedInstanceState.java index 8b20530520..bf7eba4221 100644 --- a/sdk/java/src/main/java/com/pulumi/azure/mssql/inputs/ManagedInstanceState.java +++ b/sdk/java/src/main/java/com/pulumi/azure/mssql/inputs/ManagedInstanceState.java @@ -244,6 +244,21 @@ public Optional> resourceGroupName() { return Optional.ofNullable(this.resourceGroupName); } + /** + * The service principal type. The only possible value is `SystemAssigned`. + * + */ + @Import(name="servicePrincipalType") + private @Nullable Output servicePrincipalType; + + /** + * @return The service principal type. The only possible value is `SystemAssigned`. + * + */ + public Optional> servicePrincipalType() { + return Optional.ofNullable(this.servicePrincipalType); + } + /** * Specifies the SKU Name for the SQL Managed Instance. Valid values include `GP_Gen4`, `GP_Gen5`, `GP_Gen8IM`, `GP_Gen8IH`, `BC_Gen4`, `BC_Gen5`, `BC_Gen8IM` or `BC_Gen8IH`. * @@ -382,6 +397,7 @@ private ManagedInstanceState(ManagedInstanceState $) { this.proxyOverride = $.proxyOverride; this.publicDataEndpointEnabled = $.publicDataEndpointEnabled; this.resourceGroupName = $.resourceGroupName; + this.servicePrincipalType = $.servicePrincipalType; this.skuName = $.skuName; this.storageAccountType = $.storageAccountType; this.storageSizeInGb = $.storageSizeInGb; @@ -725,6 +741,27 @@ public Builder resourceGroupName(String resourceGroupName) { return resourceGroupName(Output.of(resourceGroupName)); } + /** + * @param servicePrincipalType The service principal type. The only possible value is `SystemAssigned`. + * + * @return builder + * + */ + public Builder servicePrincipalType(@Nullable Output servicePrincipalType) { + $.servicePrincipalType = servicePrincipalType; + return this; + } + + /** + * @param servicePrincipalType The service principal type. The only possible value is `SystemAssigned`. + * + * @return builder + * + */ + public Builder servicePrincipalType(String servicePrincipalType) { + return servicePrincipalType(Output.of(servicePrincipalType)); + } + /** * @param skuName Specifies the SKU Name for the SQL Managed Instance. Valid values include `GP_Gen4`, `GP_Gen5`, `GP_Gen8IM`, `GP_Gen8IH`, `BC_Gen4`, `BC_Gen5`, `BC_Gen8IM` or `BC_Gen8IH`. * diff --git a/sdk/java/src/main/java/com/pulumi/azure/servicebus/Queue.java b/sdk/java/src/main/java/com/pulumi/azure/servicebus/Queue.java index 64914dc1f8..9717088661 100644 --- a/sdk/java/src/main/java/com/pulumi/azure/servicebus/Queue.java +++ b/sdk/java/src/main/java/com/pulumi/azure/servicebus/Queue.java @@ -87,18 +87,18 @@ @ResourceType(type="azure:servicebus/queue:Queue") public class Queue extends com.pulumi.resources.CustomResource { /** - * The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. Defaults to `P10675199DT2H48M5.4775807S`. + * The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. * */ @Export(name="autoDeleteOnIdle", refs={String.class}, tree="[0]") - private Output autoDeleteOnIdle; + private Output autoDeleteOnIdle; /** - * @return The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. Defaults to `P10675199DT2H48M5.4775807S`. + * @return The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. * */ - public Output> autoDeleteOnIdle() { - return Codegen.optional(this.autoDeleteOnIdle); + public Output autoDeleteOnIdle() { + return this.autoDeleteOnIdle; } /** * Boolean flag which controls whether server-side batched operations are enabled. Defaults to `true`. @@ -129,18 +129,18 @@ public Output> deadLetteringOnMessageExpiration() { return Codegen.optional(this.deadLetteringOnMessageExpiration); } /** - * The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. Defaults to `P10675199DT2H48M5.4775807S`. + * The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. * */ @Export(name="defaultMessageTtl", refs={String.class}, tree="[0]") - private Output defaultMessageTtl; + private Output defaultMessageTtl; /** - * @return The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. Defaults to `P10675199DT2H48M5.4775807S`. + * @return The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. * */ - public Output> defaultMessageTtl() { - return Codegen.optional(this.defaultMessageTtl); + public Output defaultMessageTtl() { + return this.defaultMessageTtl; } /** * The ISO 8601 timespan duration during which duplicates can be detected. Defaults to `PT10M` (10 Minutes). @@ -231,28 +231,28 @@ public Output> maxDeliveryCount() { return Codegen.optional(this.maxDeliveryCount); } /** - * Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). Defaults to `256`. + * Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). * */ @Export(name="maxMessageSizeInKilobytes", refs={Integer.class}, tree="[0]") private Output maxMessageSizeInKilobytes; /** - * @return Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). Defaults to `256`. + * @return Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). * */ public Output maxMessageSizeInKilobytes() { return this.maxMessageSizeInKilobytes; } /** - * Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). Defaults to `5120`. + * Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). * */ @Export(name="maxSizeInMegabytes", refs={Integer.class}, tree="[0]") private Output maxSizeInMegabytes; /** - * @return Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). Defaults to `5120`. + * @return Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). * */ public Output maxSizeInMegabytes() { diff --git a/sdk/java/src/main/java/com/pulumi/azure/servicebus/QueueArgs.java b/sdk/java/src/main/java/com/pulumi/azure/servicebus/QueueArgs.java index 442063ef83..09fd7e3186 100644 --- a/sdk/java/src/main/java/com/pulumi/azure/servicebus/QueueArgs.java +++ b/sdk/java/src/main/java/com/pulumi/azure/servicebus/QueueArgs.java @@ -19,14 +19,14 @@ public final class QueueArgs extends com.pulumi.resources.ResourceArgs { public static final QueueArgs Empty = new QueueArgs(); /** - * The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. Defaults to `P10675199DT2H48M5.4775807S`. + * The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. * */ @Import(name="autoDeleteOnIdle") private @Nullable Output autoDeleteOnIdle; /** - * @return The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. Defaults to `P10675199DT2H48M5.4775807S`. + * @return The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. * */ public Optional> autoDeleteOnIdle() { @@ -64,14 +64,14 @@ public Optional> deadLetteringOnMessageExpiration() { } /** - * The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. Defaults to `P10675199DT2H48M5.4775807S`. + * The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. * */ @Import(name="defaultMessageTtl") private @Nullable Output defaultMessageTtl; /** - * @return The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. Defaults to `P10675199DT2H48M5.4775807S`. + * @return The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. * */ public Optional> defaultMessageTtl() { @@ -173,14 +173,14 @@ public Optional> maxDeliveryCount() { } /** - * Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). Defaults to `256`. + * Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). * */ @Import(name="maxMessageSizeInKilobytes") private @Nullable Output maxMessageSizeInKilobytes; /** - * @return Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). Defaults to `256`. + * @return Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). * */ public Optional> maxMessageSizeInKilobytes() { @@ -188,14 +188,14 @@ public Optional> maxMessageSizeInKilobytes() { } /** - * Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). Defaults to `5120`. + * Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). * */ @Import(name="maxSizeInMegabytes") private @Nullable Output maxSizeInMegabytes; /** - * @return Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). Defaults to `5120`. + * @return Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). * */ public Optional> maxSizeInMegabytes() { @@ -338,7 +338,7 @@ public Builder(QueueArgs defaults) { } /** - * @param autoDeleteOnIdle The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. Defaults to `P10675199DT2H48M5.4775807S`. + * @param autoDeleteOnIdle The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. * * @return builder * @@ -349,7 +349,7 @@ public Builder autoDeleteOnIdle(@Nullable Output autoDeleteOnIdle) { } /** - * @param autoDeleteOnIdle The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. Defaults to `P10675199DT2H48M5.4775807S`. + * @param autoDeleteOnIdle The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. * * @return builder * @@ -401,7 +401,7 @@ public Builder deadLetteringOnMessageExpiration(Boolean deadLetteringOnMessageEx } /** - * @param defaultMessageTtl The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. Defaults to `P10675199DT2H48M5.4775807S`. + * @param defaultMessageTtl The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. * * @return builder * @@ -412,7 +412,7 @@ public Builder defaultMessageTtl(@Nullable Output defaultMessageTtl) { } /** - * @param defaultMessageTtl The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. Defaults to `P10675199DT2H48M5.4775807S`. + * @param defaultMessageTtl The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. * * @return builder * @@ -552,7 +552,7 @@ public Builder maxDeliveryCount(Integer maxDeliveryCount) { } /** - * @param maxMessageSizeInKilobytes Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). Defaults to `256`. + * @param maxMessageSizeInKilobytes Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). * * @return builder * @@ -563,7 +563,7 @@ public Builder maxMessageSizeInKilobytes(@Nullable Output maxMessageSiz } /** - * @param maxMessageSizeInKilobytes Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). Defaults to `256`. + * @param maxMessageSizeInKilobytes Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). * * @return builder * @@ -573,7 +573,7 @@ public Builder maxMessageSizeInKilobytes(Integer maxMessageSizeInKilobytes) { } /** - * @param maxSizeInMegabytes Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). Defaults to `5120`. + * @param maxSizeInMegabytes Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). * * @return builder * @@ -584,7 +584,7 @@ public Builder maxSizeInMegabytes(@Nullable Output maxSizeInMegabytes) } /** - * @param maxSizeInMegabytes Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). Defaults to `5120`. + * @param maxSizeInMegabytes Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/azure/servicebus/inputs/QueueState.java b/sdk/java/src/main/java/com/pulumi/azure/servicebus/inputs/QueueState.java index b7aac3a866..4f1271475d 100644 --- a/sdk/java/src/main/java/com/pulumi/azure/servicebus/inputs/QueueState.java +++ b/sdk/java/src/main/java/com/pulumi/azure/servicebus/inputs/QueueState.java @@ -18,14 +18,14 @@ public final class QueueState extends com.pulumi.resources.ResourceArgs { public static final QueueState Empty = new QueueState(); /** - * The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. Defaults to `P10675199DT2H48M5.4775807S`. + * The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. * */ @Import(name="autoDeleteOnIdle") private @Nullable Output autoDeleteOnIdle; /** - * @return The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. Defaults to `P10675199DT2H48M5.4775807S`. + * @return The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. * */ public Optional> autoDeleteOnIdle() { @@ -63,14 +63,14 @@ public Optional> deadLetteringOnMessageExpiration() { } /** - * The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. Defaults to `P10675199DT2H48M5.4775807S`. + * The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. * */ @Import(name="defaultMessageTtl") private @Nullable Output defaultMessageTtl; /** - * @return The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. Defaults to `P10675199DT2H48M5.4775807S`. + * @return The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. * */ public Optional> defaultMessageTtl() { @@ -172,14 +172,14 @@ public Optional> maxDeliveryCount() { } /** - * Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). Defaults to `256`. + * Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). * */ @Import(name="maxMessageSizeInKilobytes") private @Nullable Output maxMessageSizeInKilobytes; /** - * @return Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). Defaults to `256`. + * @return Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). * */ public Optional> maxMessageSizeInKilobytes() { @@ -187,14 +187,14 @@ public Optional> maxMessageSizeInKilobytes() { } /** - * Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). Defaults to `5120`. + * Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). * */ @Import(name="maxSizeInMegabytes") private @Nullable Output maxSizeInMegabytes; /** - * @return Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). Defaults to `5120`. + * @return Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). * */ public Optional> maxSizeInMegabytes() { @@ -353,7 +353,7 @@ public Builder(QueueState defaults) { } /** - * @param autoDeleteOnIdle The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. Defaults to `P10675199DT2H48M5.4775807S`. + * @param autoDeleteOnIdle The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. * * @return builder * @@ -364,7 +364,7 @@ public Builder autoDeleteOnIdle(@Nullable Output autoDeleteOnIdle) { } /** - * @param autoDeleteOnIdle The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. Defaults to `P10675199DT2H48M5.4775807S`. + * @param autoDeleteOnIdle The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. * * @return builder * @@ -416,7 +416,7 @@ public Builder deadLetteringOnMessageExpiration(Boolean deadLetteringOnMessageEx } /** - * @param defaultMessageTtl The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. Defaults to `P10675199DT2H48M5.4775807S`. + * @param defaultMessageTtl The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. * * @return builder * @@ -427,7 +427,7 @@ public Builder defaultMessageTtl(@Nullable Output defaultMessageTtl) { } /** - * @param defaultMessageTtl The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. Defaults to `P10675199DT2H48M5.4775807S`. + * @param defaultMessageTtl The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. * * @return builder * @@ -567,7 +567,7 @@ public Builder maxDeliveryCount(Integer maxDeliveryCount) { } /** - * @param maxMessageSizeInKilobytes Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). Defaults to `256`. + * @param maxMessageSizeInKilobytes Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). * * @return builder * @@ -578,7 +578,7 @@ public Builder maxMessageSizeInKilobytes(@Nullable Output maxMessageSiz } /** - * @param maxMessageSizeInKilobytes Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). Defaults to `256`. + * @param maxMessageSizeInKilobytes Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). * * @return builder * @@ -588,7 +588,7 @@ public Builder maxMessageSizeInKilobytes(Integer maxMessageSizeInKilobytes) { } /** - * @param maxSizeInMegabytes Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). Defaults to `5120`. + * @param maxSizeInMegabytes Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). * * @return builder * @@ -599,7 +599,7 @@ public Builder maxSizeInMegabytes(@Nullable Output maxSizeInMegabytes) } /** - * @param maxSizeInMegabytes Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). Defaults to `5120`. + * @param maxSizeInMegabytes Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/azure/waf/inputs/PolicyPolicySettingsArgs.java b/sdk/java/src/main/java/com/pulumi/azure/waf/inputs/PolicyPolicySettingsArgs.java index ebd104b7c1..c353643e09 100644 --- a/sdk/java/src/main/java/com/pulumi/azure/waf/inputs/PolicyPolicySettingsArgs.java +++ b/sdk/java/src/main/java/com/pulumi/azure/waf/inputs/PolicyPolicySettingsArgs.java @@ -123,9 +123,17 @@ public Optional> requestBodyCheck() { return Optional.ofNullable(this.requestBodyCheck); } + /** + * Whether the firewall should block a request with body size greater then `max_request_body_size_in_kb`. Defaults to `true`. + * + */ @Import(name="requestBodyEnforcement") private @Nullable Output requestBodyEnforcement; + /** + * @return Whether the firewall should block a request with body size greater then `max_request_body_size_in_kb`. Defaults to `true`. + * + */ public Optional> requestBodyEnforcement() { return Optional.ofNullable(this.requestBodyEnforcement); } @@ -324,11 +332,23 @@ public Builder requestBodyCheck(Boolean requestBodyCheck) { return requestBodyCheck(Output.of(requestBodyCheck)); } + /** + * @param requestBodyEnforcement Whether the firewall should block a request with body size greater then `max_request_body_size_in_kb`. Defaults to `true`. + * + * @return builder + * + */ public Builder requestBodyEnforcement(@Nullable Output requestBodyEnforcement) { $.requestBodyEnforcement = requestBodyEnforcement; return this; } + /** + * @param requestBodyEnforcement Whether the firewall should block a request with body size greater then `max_request_body_size_in_kb`. Defaults to `true`. + * + * @return builder + * + */ public Builder requestBodyEnforcement(Boolean requestBodyEnforcement) { return requestBodyEnforcement(Output.of(requestBodyEnforcement)); } diff --git a/sdk/java/src/main/java/com/pulumi/azure/waf/outputs/PolicyPolicySettings.java b/sdk/java/src/main/java/com/pulumi/azure/waf/outputs/PolicyPolicySettings.java index 7bff06d0a2..b01b6832cb 100644 --- a/sdk/java/src/main/java/com/pulumi/azure/waf/outputs/PolicyPolicySettings.java +++ b/sdk/java/src/main/java/com/pulumi/azure/waf/outputs/PolicyPolicySettings.java @@ -49,6 +49,10 @@ public final class PolicyPolicySettings { * */ private @Nullable Boolean requestBodyCheck; + /** + * @return Whether the firewall should block a request with body size greater then `max_request_body_size_in_kb`. Defaults to `true`. + * + */ private @Nullable Boolean requestBodyEnforcement; /** * @return Specifies the maximum request body inspection limit in KB for the Web Application Firewall. Defaults to `128`. @@ -106,6 +110,10 @@ public Optional mode() { public Optional requestBodyCheck() { return Optional.ofNullable(this.requestBodyCheck); } + /** + * @return Whether the firewall should block a request with body size greater then `max_request_body_size_in_kb`. Defaults to `true`. + * + */ public Optional requestBodyEnforcement() { return Optional.ofNullable(this.requestBodyEnforcement); } diff --git a/sdk/nodejs/arcmachine/arcMachine.ts b/sdk/nodejs/arcmachine/arcMachine.ts new file mode 100644 index 0000000000..84a5a8ed69 --- /dev/null +++ b/sdk/nodejs/arcmachine/arcMachine.ts @@ -0,0 +1,158 @@ +// *** 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 Hybrid Compute Machine. + * + * ## Example 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 exampleArcMachine = new azure.arcmachine.ArcMachine("example", { + * name: "example-arcmachine", + * resourceGroupName: example.name, + * location: example.location, + * kind: "SCVMM", + * }); + * ``` + * + * ## Import + * + * Arc Machines can be imported using the `resource id`, e.g. + * + * ```sh + * $ pulumi import azure:arcmachine/arcMachine:ArcMachine example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.HybridCompute/machines/machine1 + * ``` + */ +export class ArcMachine extends pulumi.CustomResource { + /** + * Get an existing ArcMachine 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?: ArcMachineState, opts?: pulumi.CustomResourceOptions): ArcMachine { + return new ArcMachine(name, state, { ...opts, id: id }); + } + + /** @internal */ + public static readonly __pulumiType = 'azure:arcmachine/arcMachine:ArcMachine'; + + /** + * Returns true if the given object is an instance of ArcMachine. 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 ArcMachine { + if (obj === undefined || obj === null) { + return false; + } + return obj['__pulumiType'] === ArcMachine.__pulumiType; + } + + /** + * The kind of the Arc Machine. Possible values are `AVS`, `AWS`, `EPS`, `GCP`, `HCI`, `SCVMM` and `VMware`. Changing this forces a new resource to be created. + */ + public readonly kind!: pulumi.Output; + /** + * The Azure Region where the Arc Machine should exist. Changing this forces a new resource to be created. + */ + public readonly location!: pulumi.Output; + /** + * The name of the Arc machine. Changing this forces a new resource to be created. + */ + public readonly name!: pulumi.Output; + /** + * The name of the Resource Group where the Arc Machine should exist. Changing this forces a new resource to be created. + */ + public readonly resourceGroupName!: pulumi.Output; + + /** + * Create a ArcMachine 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: ArcMachineArgs, opts?: pulumi.CustomResourceOptions) + constructor(name: string, argsOrState?: ArcMachineArgs | ArcMachineState, opts?: pulumi.CustomResourceOptions) { + let resourceInputs: pulumi.Inputs = {}; + opts = opts || {}; + if (opts.id) { + const state = argsOrState as ArcMachineState | undefined; + resourceInputs["kind"] = state ? state.kind : undefined; + resourceInputs["location"] = state ? state.location : undefined; + resourceInputs["name"] = state ? state.name : undefined; + resourceInputs["resourceGroupName"] = state ? state.resourceGroupName : undefined; + } else { + const args = argsOrState as ArcMachineArgs | undefined; + if ((!args || args.kind === undefined) && !opts.urn) { + throw new Error("Missing required property 'kind'"); + } + if ((!args || args.resourceGroupName === undefined) && !opts.urn) { + throw new Error("Missing required property 'resourceGroupName'"); + } + resourceInputs["kind"] = args ? args.kind : undefined; + resourceInputs["location"] = args ? args.location : undefined; + resourceInputs["name"] = args ? args.name : undefined; + resourceInputs["resourceGroupName"] = args ? args.resourceGroupName : undefined; + } + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); + super(ArcMachine.__pulumiType, name, resourceInputs, opts); + } +} + +/** + * Input properties used for looking up and filtering ArcMachine resources. + */ +export interface ArcMachineState { + /** + * The kind of the Arc Machine. Possible values are `AVS`, `AWS`, `EPS`, `GCP`, `HCI`, `SCVMM` and `VMware`. Changing this forces a new resource to be created. + */ + kind?: pulumi.Input; + /** + * The Azure Region where the Arc Machine should exist. Changing this forces a new resource to be created. + */ + location?: pulumi.Input; + /** + * The name of the Arc machine. Changing this forces a new resource to be created. + */ + name?: pulumi.Input; + /** + * The name of the Resource Group where the Arc Machine should exist. Changing this forces a new resource to be created. + */ + resourceGroupName?: pulumi.Input; +} + +/** + * The set of arguments for constructing a ArcMachine resource. + */ +export interface ArcMachineArgs { + /** + * The kind of the Arc Machine. Possible values are `AVS`, `AWS`, `EPS`, `GCP`, `HCI`, `SCVMM` and `VMware`. Changing this forces a new resource to be created. + */ + kind: pulumi.Input; + /** + * The Azure Region where the Arc Machine should exist. Changing this forces a new resource to be created. + */ + location?: pulumi.Input; + /** + * The name of the Arc machine. Changing this forces a new resource to be created. + */ + name?: pulumi.Input; + /** + * The name of the Resource Group where the Arc Machine should exist. Changing this forces a new resource to be created. + */ + resourceGroupName: pulumi.Input; +} diff --git a/sdk/nodejs/arcmachine/automanageConfigurationAssignment.ts b/sdk/nodejs/arcmachine/automanageConfigurationAssignment.ts new file mode 100644 index 0000000000..6c810e5b9a --- /dev/null +++ b/sdk/nodejs/arcmachine/automanageConfigurationAssignment.ts @@ -0,0 +1,146 @@ +// *** 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 an Arc Machine Automanage Configuration Profile Assignment. + * + * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as azure from "@pulumi/azure"; + * + * const config = new pulumi.Config(); + * // The name of the Arc Machine. + * const arcMachineName = config.requireObject("arcMachineName"); + * const exampleResourceGroup = new azure.core.ResourceGroup("example", { + * name: "example-resources", + * location: "West Europe", + * }); + * const example = exampleResourceGroup.name.apply(name => azure.arcmachine.getOutput({ + * name: arcMachineName, + * resourceGroupName: name, + * })); + * const exampleConfiguration = new azure.automanage.Configuration("example", { + * name: "example-configuration", + * resourceGroupName: exampleResourceGroup.name, + * location: exampleResourceGroup.location, + * }); + * const exampleAutomanageConfigurationAssignment = new azure.arcmachine.AutomanageConfigurationAssignment("example", { + * arcMachineId: example.apply(example => example.id), + * configurationId: exampleConfiguration.id, + * }); + * ``` + * + * ## Import + * + * Virtual Machine Automanage Configuration Profile Assignment can be imported using the `resource id`, e.g. + * + * ```sh + * $ pulumi import azure:arcmachine/automanageConfigurationAssignment:AutomanageConfigurationAssignment example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.HybridCompute/Microsoft.HybridCompute/machines/machine1/providers/Microsoft.AutoManage/configurationProfileAssignments/default + * ``` + */ +export class AutomanageConfigurationAssignment extends pulumi.CustomResource { + /** + * Get an existing AutomanageConfigurationAssignment 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?: AutomanageConfigurationAssignmentState, opts?: pulumi.CustomResourceOptions): AutomanageConfigurationAssignment { + return new AutomanageConfigurationAssignment(name, state, { ...opts, id: id }); + } + + /** @internal */ + public static readonly __pulumiType = 'azure:arcmachine/automanageConfigurationAssignment:AutomanageConfigurationAssignment'; + + /** + * Returns true if the given object is an instance of AutomanageConfigurationAssignment. 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 AutomanageConfigurationAssignment { + if (obj === undefined || obj === null) { + return false; + } + return obj['__pulumiType'] === AutomanageConfigurationAssignment.__pulumiType; + } + + /** + * The ARM resource ID of the Arc Machine to assign the Automanage Configuration to. Changing this forces a new resource to be created. + */ + public readonly arcMachineId!: pulumi.Output; + /** + * The ARM resource ID of the Automanage Configuration to assign to the Virtual Machine. Changing this forces a new resource to be created. + * + * > **NOTE:** For a successful creation of this resource, locate "Automanage API Access" app within your Entra ID tenant. Make sure it's granted access to the scope that includes the arc server. + */ + public readonly configurationId!: pulumi.Output; + + /** + * Create a AutomanageConfigurationAssignment 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: AutomanageConfigurationAssignmentArgs, opts?: pulumi.CustomResourceOptions) + constructor(name: string, argsOrState?: AutomanageConfigurationAssignmentArgs | AutomanageConfigurationAssignmentState, opts?: pulumi.CustomResourceOptions) { + let resourceInputs: pulumi.Inputs = {}; + opts = opts || {}; + if (opts.id) { + const state = argsOrState as AutomanageConfigurationAssignmentState | undefined; + resourceInputs["arcMachineId"] = state ? state.arcMachineId : undefined; + resourceInputs["configurationId"] = state ? state.configurationId : undefined; + } else { + const args = argsOrState as AutomanageConfigurationAssignmentArgs | undefined; + if ((!args || args.arcMachineId === undefined) && !opts.urn) { + throw new Error("Missing required property 'arcMachineId'"); + } + if ((!args || args.configurationId === undefined) && !opts.urn) { + throw new Error("Missing required property 'configurationId'"); + } + resourceInputs["arcMachineId"] = args ? args.arcMachineId : undefined; + resourceInputs["configurationId"] = args ? args.configurationId : undefined; + } + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); + super(AutomanageConfigurationAssignment.__pulumiType, name, resourceInputs, opts); + } +} + +/** + * Input properties used for looking up and filtering AutomanageConfigurationAssignment resources. + */ +export interface AutomanageConfigurationAssignmentState { + /** + * The ARM resource ID of the Arc Machine to assign the Automanage Configuration to. Changing this forces a new resource to be created. + */ + arcMachineId?: pulumi.Input; + /** + * The ARM resource ID of the Automanage Configuration to assign to the Virtual Machine. Changing this forces a new resource to be created. + * + * > **NOTE:** For a successful creation of this resource, locate "Automanage API Access" app within your Entra ID tenant. Make sure it's granted access to the scope that includes the arc server. + */ + configurationId?: pulumi.Input; +} + +/** + * The set of arguments for constructing a AutomanageConfigurationAssignment resource. + */ +export interface AutomanageConfigurationAssignmentArgs { + /** + * The ARM resource ID of the Arc Machine to assign the Automanage Configuration to. Changing this forces a new resource to be created. + */ + arcMachineId: pulumi.Input; + /** + * The ARM resource ID of the Automanage Configuration to assign to the Virtual Machine. Changing this forces a new resource to be created. + * + * > **NOTE:** For a successful creation of this resource, locate "Automanage API Access" app within your Entra ID tenant. Make sure it's granted access to the scope that includes the arc server. + */ + configurationId: pulumi.Input; +} diff --git a/sdk/nodejs/arcmachine/index.ts b/sdk/nodejs/arcmachine/index.ts index afae433e32..5f9b4afc03 100644 --- a/sdk/nodejs/arcmachine/index.ts +++ b/sdk/nodejs/arcmachine/index.ts @@ -5,6 +5,16 @@ import * as pulumi from "@pulumi/pulumi"; import * as utilities from "../utilities"; // Export members: +export { ArcMachineArgs, ArcMachineState } from "./arcMachine"; +export type ArcMachine = import("./arcMachine").ArcMachine; +export const ArcMachine: typeof import("./arcMachine").ArcMachine = null as any; +utilities.lazyLoad(exports, ["ArcMachine"], () => require("./arcMachine")); + +export { AutomanageConfigurationAssignmentArgs, AutomanageConfigurationAssignmentState } from "./automanageConfigurationAssignment"; +export type AutomanageConfigurationAssignment = import("./automanageConfigurationAssignment").AutomanageConfigurationAssignment; +export const AutomanageConfigurationAssignment: typeof import("./automanageConfigurationAssignment").AutomanageConfigurationAssignment = null as any; +utilities.lazyLoad(exports, ["AutomanageConfigurationAssignment"], () => require("./automanageConfigurationAssignment")); + export { ExtensionArgs, ExtensionState } from "./extension"; export type Extension = import("./extension").Extension; export const Extension: typeof import("./extension").Extension = null as any; @@ -20,6 +30,10 @@ const _module = { version: utilities.getVersion(), construct: (name: string, type: string, urn: string): pulumi.Resource => { switch (type) { + case "azure:arcmachine/arcMachine:ArcMachine": + return new ArcMachine(name, undefined, { urn }) + case "azure:arcmachine/automanageConfigurationAssignment:AutomanageConfigurationAssignment": + return new AutomanageConfigurationAssignment(name, undefined, { urn }) case "azure:arcmachine/extension:Extension": return new Extension(name, undefined, { urn }) default: @@ -27,4 +41,6 @@ const _module = { } }, }; +pulumi.runtime.registerResourceModule("azure", "arcmachine/arcMachine", _module) +pulumi.runtime.registerResourceModule("azure", "arcmachine/automanageConfigurationAssignment", _module) pulumi.runtime.registerResourceModule("azure", "arcmachine/extension", _module) diff --git a/sdk/nodejs/dataprotection/backupVault.ts b/sdk/nodejs/dataprotection/backupVault.ts index 8201de6f08..5629889f9f 100644 --- a/sdk/nodejs/dataprotection/backupVault.ts +++ b/sdk/nodejs/dataprotection/backupVault.ts @@ -64,6 +64,12 @@ export class BackupVault extends pulumi.CustomResource { return obj['__pulumiType'] === BackupVault.__pulumiType; } + /** + * Whether to enable cross-region restore for the Backup Vault. + * + * > **Note:** The `crossRegionRestoreEnabled` can only be specified when `redundancy` is specified for `GeoRedundant`. Once `crossRegionRestoreEnabled` is enabled, it cannot be disabled. + */ + public readonly crossRegionRestoreEnabled!: pulumi.Output; /** * Specifies the type of the data store. Possible values are `ArchiveStore`, `OperationalStore`, `SnapshotStore` and `VaultStore`. Changing this forces a new resource to be created. * @@ -120,6 +126,7 @@ export class BackupVault extends pulumi.CustomResource { opts = opts || {}; if (opts.id) { const state = argsOrState as BackupVaultState | undefined; + resourceInputs["crossRegionRestoreEnabled"] = state ? state.crossRegionRestoreEnabled : undefined; resourceInputs["datastoreType"] = state ? state.datastoreType : undefined; resourceInputs["identity"] = state ? state.identity : undefined; resourceInputs["location"] = state ? state.location : undefined; @@ -140,6 +147,7 @@ export class BackupVault extends pulumi.CustomResource { if ((!args || args.resourceGroupName === undefined) && !opts.urn) { throw new Error("Missing required property 'resourceGroupName'"); } + resourceInputs["crossRegionRestoreEnabled"] = args ? args.crossRegionRestoreEnabled : undefined; resourceInputs["datastoreType"] = args ? args.datastoreType : undefined; resourceInputs["identity"] = args ? args.identity : undefined; resourceInputs["location"] = args ? args.location : undefined; @@ -159,6 +167,12 @@ export class BackupVault extends pulumi.CustomResource { * Input properties used for looking up and filtering BackupVault resources. */ export interface BackupVaultState { + /** + * Whether to enable cross-region restore for the Backup Vault. + * + * > **Note:** The `crossRegionRestoreEnabled` can only be specified when `redundancy` is specified for `GeoRedundant`. Once `crossRegionRestoreEnabled` is enabled, it cannot be disabled. + */ + crossRegionRestoreEnabled?: pulumi.Input; /** * Specifies the type of the data store. Possible values are `ArchiveStore`, `OperationalStore`, `SnapshotStore` and `VaultStore`. Changing this forces a new resource to be created. * @@ -207,6 +221,12 @@ export interface BackupVaultState { * The set of arguments for constructing a BackupVault resource. */ export interface BackupVaultArgs { + /** + * Whether to enable cross-region restore for the Backup Vault. + * + * > **Note:** The `crossRegionRestoreEnabled` can only be specified when `redundancy` is specified for `GeoRedundant`. Once `crossRegionRestoreEnabled` is enabled, it cannot be disabled. + */ + crossRegionRestoreEnabled?: pulumi.Input; /** * Specifies the type of the data store. Possible values are `ArchiveStore`, `OperationalStore`, `SnapshotStore` and `VaultStore`. Changing this forces a new resource to be created. * diff --git a/sdk/nodejs/eventhub/queue.ts b/sdk/nodejs/eventhub/queue.ts index a29e31a2d4..ec9fa5b579 100644 --- a/sdk/nodejs/eventhub/queue.ts +++ b/sdk/nodejs/eventhub/queue.ts @@ -73,9 +73,9 @@ export class Queue extends pulumi.CustomResource { } /** - * The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. Defaults to `P10675199DT2H48M5.4775807S`. + * The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. */ - public readonly autoDeleteOnIdle!: pulumi.Output; + public readonly autoDeleteOnIdle!: pulumi.Output; /** * Boolean flag which controls whether server-side batched operations are enabled. Defaults to `true`. */ @@ -85,9 +85,9 @@ export class Queue extends pulumi.CustomResource { */ public readonly deadLetteringOnMessageExpiration!: pulumi.Output; /** - * The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. Defaults to `P10675199DT2H48M5.4775807S`. + * The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. */ - public readonly defaultMessageTtl!: pulumi.Output; + public readonly defaultMessageTtl!: pulumi.Output; /** * The ISO 8601 timespan duration during which duplicates can be detected. Defaults to `PT10M` (10 Minutes). */ @@ -115,11 +115,11 @@ export class Queue extends pulumi.CustomResource { */ public readonly maxDeliveryCount!: pulumi.Output; /** - * Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). Defaults to `256`. + * Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). */ public readonly maxMessageSizeInKilobytes!: pulumi.Output; /** - * Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). Defaults to `5120`. + * Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). */ public readonly maxSizeInMegabytes!: pulumi.Output; /** @@ -223,7 +223,7 @@ export class Queue extends pulumi.CustomResource { */ export interface QueueState { /** - * The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. Defaults to `P10675199DT2H48M5.4775807S`. + * The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. */ autoDeleteOnIdle?: pulumi.Input; /** @@ -235,7 +235,7 @@ export interface QueueState { */ deadLetteringOnMessageExpiration?: pulumi.Input; /** - * The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. Defaults to `P10675199DT2H48M5.4775807S`. + * The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. */ defaultMessageTtl?: pulumi.Input; /** @@ -265,11 +265,11 @@ export interface QueueState { */ maxDeliveryCount?: pulumi.Input; /** - * Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). Defaults to `256`. + * Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). */ maxMessageSizeInKilobytes?: pulumi.Input; /** - * Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). Defaults to `5120`. + * Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). */ maxSizeInMegabytes?: pulumi.Input; /** @@ -307,7 +307,7 @@ export interface QueueState { */ export interface QueueArgs { /** - * The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. Defaults to `P10675199DT2H48M5.4775807S`. + * The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. */ autoDeleteOnIdle?: pulumi.Input; /** @@ -319,7 +319,7 @@ export interface QueueArgs { */ deadLetteringOnMessageExpiration?: pulumi.Input; /** - * The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. Defaults to `P10675199DT2H48M5.4775807S`. + * The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. */ defaultMessageTtl?: pulumi.Input; /** @@ -349,11 +349,11 @@ export interface QueueArgs { */ maxDeliveryCount?: pulumi.Input; /** - * Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). Defaults to `256`. + * Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). */ maxMessageSizeInKilobytes?: pulumi.Input; /** - * Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). Defaults to `5120`. + * Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). */ maxSizeInMegabytes?: pulumi.Input; /** diff --git a/sdk/nodejs/index.ts b/sdk/nodejs/index.ts index 2f634fd4a3..3f6c814074 100644 --- a/sdk/nodejs/index.ts +++ b/sdk/nodejs/index.ts @@ -96,7 +96,6 @@ import * as managementgroups from "./managementgroups"; import * as managementresource from "./managementresource"; import * as maps from "./maps"; import * as marketplace from "./marketplace"; -import * as media from "./media"; import * as mixedreality from "./mixedreality"; import * as mobile from "./mobile"; import * as monitoring from "./monitoring"; @@ -228,7 +227,6 @@ export { managementresource, maps, marketplace, - media, mixedreality, mobile, monitoring, diff --git a/sdk/nodejs/media/accountFilter.ts b/sdk/nodejs/media/accountFilter.ts deleted file mode 100644 index e35c279f8b..0000000000 --- a/sdk/nodejs/media/accountFilter.ts +++ /dev/null @@ -1,105 +0,0 @@ -// *** 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 inputs from "../types/input"; -import * as outputs from "../types/output"; -import * as utilities from "../utilities"; - -export class AccountFilter extends pulumi.CustomResource { - /** - * Get an existing AccountFilter 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?: AccountFilterState, opts?: pulumi.CustomResourceOptions): AccountFilter { - return new AccountFilter(name, state, { ...opts, id: id }); - } - - /** @internal */ - public static readonly __pulumiType = 'azure:media/accountFilter:AccountFilter'; - - /** - * Returns true if the given object is an instance of AccountFilter. 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 AccountFilter { - if (obj === undefined || obj === null) { - return false; - } - return obj['__pulumiType'] === AccountFilter.__pulumiType; - } - - public readonly firstQualityBitrate!: pulumi.Output; - public readonly mediaServicesAccountName!: pulumi.Output; - public readonly name!: pulumi.Output; - public readonly presentationTimeRange!: pulumi.Output; - public readonly resourceGroupName!: pulumi.Output; - public readonly trackSelections!: pulumi.Output; - - /** - * Create a AccountFilter 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: AccountFilterArgs, opts?: pulumi.CustomResourceOptions) - constructor(name: string, argsOrState?: AccountFilterArgs | AccountFilterState, opts?: pulumi.CustomResourceOptions) { - let resourceInputs: pulumi.Inputs = {}; - opts = opts || {}; - if (opts.id) { - const state = argsOrState as AccountFilterState | undefined; - resourceInputs["firstQualityBitrate"] = state ? state.firstQualityBitrate : undefined; - resourceInputs["mediaServicesAccountName"] = state ? state.mediaServicesAccountName : undefined; - resourceInputs["name"] = state ? state.name : undefined; - resourceInputs["presentationTimeRange"] = state ? state.presentationTimeRange : undefined; - resourceInputs["resourceGroupName"] = state ? state.resourceGroupName : undefined; - resourceInputs["trackSelections"] = state ? state.trackSelections : undefined; - } else { - const args = argsOrState as AccountFilterArgs | undefined; - if ((!args || args.mediaServicesAccountName === undefined) && !opts.urn) { - throw new Error("Missing required property 'mediaServicesAccountName'"); - } - if ((!args || args.resourceGroupName === undefined) && !opts.urn) { - throw new Error("Missing required property 'resourceGroupName'"); - } - resourceInputs["firstQualityBitrate"] = args ? args.firstQualityBitrate : undefined; - resourceInputs["mediaServicesAccountName"] = args ? args.mediaServicesAccountName : undefined; - resourceInputs["name"] = args ? args.name : undefined; - resourceInputs["presentationTimeRange"] = args ? args.presentationTimeRange : undefined; - resourceInputs["resourceGroupName"] = args ? args.resourceGroupName : undefined; - resourceInputs["trackSelections"] = args ? args.trackSelections : undefined; - } - opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); - super(AccountFilter.__pulumiType, name, resourceInputs, opts); - } -} - -/** - * Input properties used for looking up and filtering AccountFilter resources. - */ -export interface AccountFilterState { - firstQualityBitrate?: pulumi.Input; - mediaServicesAccountName?: pulumi.Input; - name?: pulumi.Input; - presentationTimeRange?: pulumi.Input; - resourceGroupName?: pulumi.Input; - trackSelections?: pulumi.Input[]>; -} - -/** - * The set of arguments for constructing a AccountFilter resource. - */ -export interface AccountFilterArgs { - firstQualityBitrate?: pulumi.Input; - mediaServicesAccountName: pulumi.Input; - name?: pulumi.Input; - presentationTimeRange?: pulumi.Input; - resourceGroupName: pulumi.Input; - trackSelections?: pulumi.Input[]>; -} diff --git a/sdk/nodejs/media/index.ts b/sdk/nodejs/media/index.ts deleted file mode 100644 index 01d24b653e..0000000000 --- a/sdk/nodejs/media/index.ts +++ /dev/null @@ -1,25 +0,0 @@ -// *** 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"; - -// Export members: -export { AccountFilterArgs, AccountFilterState } from "./accountFilter"; -export type AccountFilter = import("./accountFilter").AccountFilter; -export const AccountFilter: typeof import("./accountFilter").AccountFilter = null as any; -utilities.lazyLoad(exports, ["AccountFilter"], () => require("./accountFilter")); - - -const _module = { - version: utilities.getVersion(), - construct: (name: string, type: string, urn: string): pulumi.Resource => { - switch (type) { - case "azure:media/accountFilter:AccountFilter": - return new AccountFilter(name, undefined, { urn }) - default: - throw new Error(`unknown resource type ${type}`); - } - }, -}; -pulumi.runtime.registerResourceModule("azure", "media/accountFilter", _module) diff --git a/sdk/nodejs/mssql/managedInstance.ts b/sdk/nodejs/mssql/managedInstance.ts index e29d941b34..b7a07e90db 100644 --- a/sdk/nodejs/mssql/managedInstance.ts +++ b/sdk/nodejs/mssql/managedInstance.ts @@ -107,6 +107,10 @@ export class ManagedInstance extends pulumi.CustomResource { * The name of the resource group in which to create the SQL Managed Instance. Changing this forces a new resource to be created. */ public readonly resourceGroupName!: pulumi.Output; + /** + * The service principal type. The only possible value is `SystemAssigned`. + */ + public readonly servicePrincipalType!: pulumi.Output; /** * Specifies the SKU Name for the SQL Managed Instance. Valid values include `GP_Gen4`, `GP_Gen5`, `GP_Gen8IM`, `GP_Gen8IH`, `BC_Gen4`, `BC_Gen5`, `BC_Gen8IM` or `BC_Gen8IH`. */ @@ -168,6 +172,7 @@ export class ManagedInstance extends pulumi.CustomResource { resourceInputs["proxyOverride"] = state ? state.proxyOverride : undefined; resourceInputs["publicDataEndpointEnabled"] = state ? state.publicDataEndpointEnabled : undefined; resourceInputs["resourceGroupName"] = state ? state.resourceGroupName : undefined; + resourceInputs["servicePrincipalType"] = state ? state.servicePrincipalType : undefined; resourceInputs["skuName"] = state ? state.skuName : undefined; resourceInputs["storageAccountType"] = state ? state.storageAccountType : undefined; resourceInputs["storageSizeInGb"] = state ? state.storageSizeInGb : undefined; @@ -215,6 +220,7 @@ export class ManagedInstance extends pulumi.CustomResource { resourceInputs["proxyOverride"] = args ? args.proxyOverride : undefined; resourceInputs["publicDataEndpointEnabled"] = args ? args.publicDataEndpointEnabled : undefined; resourceInputs["resourceGroupName"] = args ? args.resourceGroupName : undefined; + resourceInputs["servicePrincipalType"] = args ? args.servicePrincipalType : undefined; resourceInputs["skuName"] = args ? args.skuName : undefined; resourceInputs["storageAccountType"] = args ? args.storageAccountType : undefined; resourceInputs["storageSizeInGb"] = args ? args.storageSizeInGb : undefined; @@ -299,6 +305,10 @@ export interface ManagedInstanceState { * The name of the resource group in which to create the SQL Managed Instance. Changing this forces a new resource to be created. */ resourceGroupName?: pulumi.Input; + /** + * The service principal type. The only possible value is `SystemAssigned`. + */ + servicePrincipalType?: pulumi.Input; /** * Specifies the SKU Name for the SQL Managed Instance. Valid values include `GP_Gen4`, `GP_Gen5`, `GP_Gen8IM`, `GP_Gen8IH`, `BC_Gen4`, `BC_Gen5`, `BC_Gen8IM` or `BC_Gen8IH`. */ @@ -389,6 +399,10 @@ export interface ManagedInstanceArgs { * The name of the resource group in which to create the SQL Managed Instance. Changing this forces a new resource to be created. */ resourceGroupName: pulumi.Input; + /** + * The service principal type. The only possible value is `SystemAssigned`. + */ + servicePrincipalType?: pulumi.Input; /** * Specifies the SKU Name for the SQL Managed Instance. Valid values include `GP_Gen4`, `GP_Gen5`, `GP_Gen8IM`, `GP_Gen8IH`, `BC_Gen4`, `BC_Gen5`, `BC_Gen8IM` or `BC_Gen8IH`. */ diff --git a/sdk/nodejs/servicebus/queue.ts b/sdk/nodejs/servicebus/queue.ts index 3ae0cbba6f..4ffacc904a 100644 --- a/sdk/nodejs/servicebus/queue.ts +++ b/sdk/nodejs/servicebus/queue.ts @@ -70,9 +70,9 @@ export class Queue extends pulumi.CustomResource { } /** - * The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. Defaults to `P10675199DT2H48M5.4775807S`. + * The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. */ - public readonly autoDeleteOnIdle!: pulumi.Output; + public readonly autoDeleteOnIdle!: pulumi.Output; /** * Boolean flag which controls whether server-side batched operations are enabled. Defaults to `true`. */ @@ -82,9 +82,9 @@ export class Queue extends pulumi.CustomResource { */ public readonly deadLetteringOnMessageExpiration!: pulumi.Output; /** - * The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. Defaults to `P10675199DT2H48M5.4775807S`. + * The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. */ - public readonly defaultMessageTtl!: pulumi.Output; + public readonly defaultMessageTtl!: pulumi.Output; /** * The ISO 8601 timespan duration during which duplicates can be detected. Defaults to `PT10M` (10 Minutes). */ @@ -112,11 +112,11 @@ export class Queue extends pulumi.CustomResource { */ public readonly maxDeliveryCount!: pulumi.Output; /** - * Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). Defaults to `256`. + * Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). */ public readonly maxMessageSizeInKilobytes!: pulumi.Output; /** - * Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). Defaults to `5120`. + * Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). */ public readonly maxSizeInMegabytes!: pulumi.Output; /** @@ -219,7 +219,7 @@ export class Queue extends pulumi.CustomResource { */ export interface QueueState { /** - * The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. Defaults to `P10675199DT2H48M5.4775807S`. + * The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. */ autoDeleteOnIdle?: pulumi.Input; /** @@ -231,7 +231,7 @@ export interface QueueState { */ deadLetteringOnMessageExpiration?: pulumi.Input; /** - * The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. Defaults to `P10675199DT2H48M5.4775807S`. + * The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. */ defaultMessageTtl?: pulumi.Input; /** @@ -261,11 +261,11 @@ export interface QueueState { */ maxDeliveryCount?: pulumi.Input; /** - * Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). Defaults to `256`. + * Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). */ maxMessageSizeInKilobytes?: pulumi.Input; /** - * Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). Defaults to `5120`. + * Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). */ maxSizeInMegabytes?: pulumi.Input; /** @@ -303,7 +303,7 @@ export interface QueueState { */ export interface QueueArgs { /** - * The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. Defaults to `P10675199DT2H48M5.4775807S`. + * The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. */ autoDeleteOnIdle?: pulumi.Input; /** @@ -315,7 +315,7 @@ export interface QueueArgs { */ deadLetteringOnMessageExpiration?: pulumi.Input; /** - * The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. Defaults to `P10675199DT2H48M5.4775807S`. + * The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. */ defaultMessageTtl?: pulumi.Input; /** @@ -345,11 +345,11 @@ export interface QueueArgs { */ maxDeliveryCount?: pulumi.Input; /** - * Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). Defaults to `256`. + * Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). */ maxMessageSizeInKilobytes?: pulumi.Input; /** - * Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). Defaults to `5120`. + * Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). */ maxSizeInMegabytes?: pulumi.Input; /** diff --git a/sdk/nodejs/tsconfig.json b/sdk/nodejs/tsconfig.json index e0abdedda8..5532480e0a 100644 --- a/sdk/nodejs/tsconfig.json +++ b/sdk/nodejs/tsconfig.json @@ -199,6 +199,8 @@ "arckubernetes/clusterExtension.ts", "arckubernetes/fluxConfiguration.ts", "arckubernetes/index.ts", + "arcmachine/arcMachine.ts", + "arcmachine/automanageConfigurationAssignment.ts", "arcmachine/extension.ts", "arcmachine/get.ts", "arcmachine/index.ts", @@ -966,8 +968,6 @@ "marketplace/getAgreement.ts", "marketplace/index.ts", "marketplace/roleAssignment.ts", - "media/accountFilter.ts", - "media/index.ts", "mixedreality/getSpatialAnchorsAccount.ts", "mixedreality/index.ts", "mixedreality/spatialAnchorsAccount.ts", diff --git a/sdk/nodejs/types/input.ts b/sdk/nodejs/types/input.ts index ea9f12ce98..44b090bd37 100644 --- a/sdk/nodejs/types/input.ts +++ b/sdk/nodejs/types/input.ts @@ -37724,27 +37724,6 @@ export namespace maps { } } -export namespace media { - export interface AccountFilterPresentationTimeRange { - endInUnits?: pulumi.Input; - forceEnd?: pulumi.Input; - liveBackoffInUnits?: pulumi.Input; - presentationWindowInUnits?: pulumi.Input; - startInUnits?: pulumi.Input; - unitTimescaleInMilliseconds: pulumi.Input; - } - - export interface AccountFilterTrackSelection { - conditions: pulumi.Input[]>; - } - - export interface AccountFilterTrackSelectionCondition { - operation: pulumi.Input; - property: pulumi.Input; - value: pulumi.Input; - } -} - export namespace mobile { export interface NetworkAttachedDataNetworkNetworkAddressPortTranslation { /** @@ -50571,6 +50550,9 @@ export namespace waf { * Is Request Body Inspection enabled? Defaults to `true`. */ requestBodyCheck?: pulumi.Input; + /** + * Whether the firewall should block a request with body size greater then `maxRequestBodySizeInKb`. Defaults to `true`. + */ requestBodyEnforcement?: pulumi.Input; /** * Specifies the maximum request body inspection limit in KB for the Web Application Firewall. Defaults to `128`. diff --git a/sdk/nodejs/types/output.ts b/sdk/nodejs/types/output.ts index 1643ab69f7..b463b7a378 100644 --- a/sdk/nodejs/types/output.ts +++ b/sdk/nodejs/types/output.ts @@ -47497,28 +47497,6 @@ export namespace maps { } -export namespace media { - export interface AccountFilterPresentationTimeRange { - endInUnits?: number; - forceEnd?: boolean; - liveBackoffInUnits?: number; - presentationWindowInUnits?: number; - startInUnits?: number; - unitTimescaleInMilliseconds: number; - } - - export interface AccountFilterTrackSelection { - conditions: outputs.media.AccountFilterTrackSelectionCondition[]; - } - - export interface AccountFilterTrackSelectionCondition { - operation: string; - property: string; - value: string; - } - -} - export namespace mobile { export interface GetNetworkAttachedDataNetworkNetworkAddressPortTranslation { icmpPinholeTimeoutInSeconds: number; @@ -64650,6 +64628,9 @@ export namespace waf { * Is Request Body Inspection enabled? Defaults to `true`. */ requestBodyCheck?: boolean; + /** + * Whether the firewall should block a request with body size greater then `maxRequestBodySizeInKb`. Defaults to `true`. + */ requestBodyEnforcement?: boolean; /** * Specifies the maximum request body inspection limit in KB for the Web Application Firewall. Defaults to `128`. diff --git a/sdk/python/pulumi_azure/__init__.py b/sdk/python/pulumi_azure/__init__.py index b9b5b77fea..da934dcc74 100644 --- a/sdk/python/pulumi_azure/__init__.py +++ b/sdk/python/pulumi_azure/__init__.py @@ -174,8 +174,6 @@ maps = __maps import pulumi_azure.marketplace as __marketplace marketplace = __marketplace - import pulumi_azure.media as __media - media = __media import pulumi_azure.mixedreality as __mixedreality mixedreality = __mixedreality import pulumi_azure.mobile as __mobile @@ -351,7 +349,6 @@ managementresource = _utilities.lazy_import('pulumi_azure.managementresource') maps = _utilities.lazy_import('pulumi_azure.maps') marketplace = _utilities.lazy_import('pulumi_azure.marketplace') - media = _utilities.lazy_import('pulumi_azure.media') mixedreality = _utilities.lazy_import('pulumi_azure.mixedreality') mobile = _utilities.lazy_import('pulumi_azure.mobile') monitoring = _utilities.lazy_import('pulumi_azure.monitoring') @@ -1522,6 +1519,22 @@ "azure:arckubernetes/fluxConfiguration:FluxConfiguration": "FluxConfiguration" } }, + { + "pkg": "azure", + "mod": "arcmachine/arcMachine", + "fqn": "pulumi_azure.arcmachine", + "classes": { + "azure:arcmachine/arcMachine:ArcMachine": "ArcMachine" + } + }, + { + "pkg": "azure", + "mod": "arcmachine/automanageConfigurationAssignment", + "fqn": "pulumi_azure.arcmachine", + "classes": { + "azure:arcmachine/automanageConfigurationAssignment:AutomanageConfigurationAssignment": "AutomanageConfigurationAssignment" + } + }, { "pkg": "azure", "mod": "arcmachine/extension", @@ -5570,14 +5583,6 @@ "azure:marketplace/roleAssignment:RoleAssignment": "RoleAssignment" } }, - { - "pkg": "azure", - "mod": "media/accountFilter", - "fqn": "pulumi_azure.media", - "classes": { - "azure:media/accountFilter:AccountFilter": "AccountFilter" - } - }, { "pkg": "azure", "mod": "mixedreality/spatialAnchorsAccount", diff --git a/sdk/python/pulumi_azure/arcmachine/__init__.py b/sdk/python/pulumi_azure/arcmachine/__init__.py index e51abfdda8..f77c1c1948 100644 --- a/sdk/python/pulumi_azure/arcmachine/__init__.py +++ b/sdk/python/pulumi_azure/arcmachine/__init__.py @@ -5,6 +5,8 @@ from .. import _utilities import typing # Export this package's modules as members: +from .arc_machine import * +from .automanage_configuration_assignment import * from .extension import * from .get import * from . import outputs diff --git a/sdk/python/pulumi_azure/arcmachine/arc_machine.py b/sdk/python/pulumi_azure/arcmachine/arc_machine.py new file mode 100644 index 0000000000..afe122f185 --- /dev/null +++ b/sdk/python/pulumi_azure/arcmachine/arc_machine.py @@ -0,0 +1,341 @@ +# 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__ = ['ArcMachineArgs', 'ArcMachine'] + +@pulumi.input_type +class ArcMachineArgs: + def __init__(__self__, *, + kind: pulumi.Input[str], + resource_group_name: pulumi.Input[str], + location: Optional[pulumi.Input[str]] = None, + name: Optional[pulumi.Input[str]] = None): + """ + The set of arguments for constructing a ArcMachine resource. + :param pulumi.Input[str] kind: The kind of the Arc Machine. Possible values are `AVS`, `AWS`, `EPS`, `GCP`, `HCI`, `SCVMM` and `VMware`. Changing this forces a new resource to be created. + :param pulumi.Input[str] resource_group_name: The name of the Resource Group where the Arc Machine should exist. Changing this forces a new resource to be created. + :param pulumi.Input[str] location: The Azure Region where the Arc Machine should exist. Changing this forces a new resource to be created. + :param pulumi.Input[str] name: The name of the Arc machine. Changing this forces a new resource to be created. + """ + pulumi.set(__self__, "kind", kind) + 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) + + @property + @pulumi.getter + def kind(self) -> pulumi.Input[str]: + """ + The kind of the Arc Machine. Possible values are `AVS`, `AWS`, `EPS`, `GCP`, `HCI`, `SCVMM` and `VMware`. Changing this forces a new resource to be created. + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: pulumi.Input[str]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter(name="resourceGroupName") + def resource_group_name(self) -> pulumi.Input[str]: + """ + The name of the Resource Group where the Arc Machine should exist. 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]]: + """ + The Azure Region where the Arc Machine should exist. 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 Arc machine. 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) + + +@pulumi.input_type +class _ArcMachineState: + def __init__(__self__, *, + kind: 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): + """ + Input properties used for looking up and filtering ArcMachine resources. + :param pulumi.Input[str] kind: The kind of the Arc Machine. Possible values are `AVS`, `AWS`, `EPS`, `GCP`, `HCI`, `SCVMM` and `VMware`. Changing this forces a new resource to be created. + :param pulumi.Input[str] location: The Azure Region where the Arc Machine should exist. Changing this forces a new resource to be created. + :param pulumi.Input[str] name: The name of the Arc machine. Changing this forces a new resource to be created. + :param pulumi.Input[str] resource_group_name: The name of the Resource Group where the Arc Machine should exist. Changing this forces a new resource to be created. + """ + if kind is not None: + pulumi.set(__self__, "kind", kind) + 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) + + @property + @pulumi.getter + def kind(self) -> Optional[pulumi.Input[str]]: + """ + The kind of the Arc Machine. Possible values are `AVS`, `AWS`, `EPS`, `GCP`, `HCI`, `SCVMM` and `VMware`. Changing this forces a new resource to be created. + """ + return pulumi.get(self, "kind") + + @kind.setter + def kind(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "kind", value) + + @property + @pulumi.getter + def location(self) -> Optional[pulumi.Input[str]]: + """ + The Azure Region where the Arc Machine should exist. 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 Arc machine. 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 Arc Machine should exist. 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) + + +class ArcMachine(pulumi.CustomResource): + @overload + def __init__(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + kind: 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, + __props__=None): + """ + Manages a Hybrid Compute Machine. + + ## Example Usage + + ```python + import pulumi + import pulumi_azure as azure + + example = azure.core.ResourceGroup("example", + name="example-resources", + location="West Europe") + example_arc_machine = azure.arcmachine.ArcMachine("example", + name="example-arcmachine", + resource_group_name=example.name, + location=example.location, + kind="SCVMM") + ``` + + ## Import + + Arc Machines can be imported using the `resource id`, e.g. + + ```sh + $ pulumi import azure:arcmachine/arcMachine:ArcMachine example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.HybridCompute/machines/machine1 + ``` + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[str] kind: The kind of the Arc Machine. Possible values are `AVS`, `AWS`, `EPS`, `GCP`, `HCI`, `SCVMM` and `VMware`. Changing this forces a new resource to be created. + :param pulumi.Input[str] location: The Azure Region where the Arc Machine should exist. Changing this forces a new resource to be created. + :param pulumi.Input[str] name: The name of the Arc machine. Changing this forces a new resource to be created. + :param pulumi.Input[str] resource_group_name: The name of the Resource Group where the Arc Machine should exist. Changing this forces a new resource to be created. + """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: ArcMachineArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Manages a Hybrid Compute Machine. + + ## Example Usage + + ```python + import pulumi + import pulumi_azure as azure + + example = azure.core.ResourceGroup("example", + name="example-resources", + location="West Europe") + example_arc_machine = azure.arcmachine.ArcMachine("example", + name="example-arcmachine", + resource_group_name=example.name, + location=example.location, + kind="SCVMM") + ``` + + ## Import + + Arc Machines can be imported using the `resource id`, e.g. + + ```sh + $ pulumi import azure:arcmachine/arcMachine:ArcMachine example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.HybridCompute/machines/machine1 + ``` + + :param str resource_name: The name of the resource. + :param ArcMachineArgs 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(ArcMachineArgs, 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, + kind: 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, + __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__ = ArcMachineArgs.__new__(ArcMachineArgs) + + if kind is None and not opts.urn: + raise TypeError("Missing required property 'kind'") + __props__.__dict__["kind"] = kind + __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 + super(ArcMachine, __self__).__init__( + 'azure:arcmachine/arcMachine:ArcMachine', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name: str, + id: pulumi.Input[str], + opts: Optional[pulumi.ResourceOptions] = None, + kind: 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) -> 'ArcMachine': + """ + Get an existing ArcMachine 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] kind: The kind of the Arc Machine. Possible values are `AVS`, `AWS`, `EPS`, `GCP`, `HCI`, `SCVMM` and `VMware`. Changing this forces a new resource to be created. + :param pulumi.Input[str] location: The Azure Region where the Arc Machine should exist. Changing this forces a new resource to be created. + :param pulumi.Input[str] name: The name of the Arc machine. Changing this forces a new resource to be created. + :param pulumi.Input[str] resource_group_name: The name of the Resource Group where the Arc Machine should exist. Changing this forces a new resource to be created. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = _ArcMachineState.__new__(_ArcMachineState) + + __props__.__dict__["kind"] = kind + __props__.__dict__["location"] = location + __props__.__dict__["name"] = name + __props__.__dict__["resource_group_name"] = resource_group_name + return ArcMachine(resource_name, opts=opts, __props__=__props__) + + @property + @pulumi.getter + def kind(self) -> pulumi.Output[str]: + """ + The kind of the Arc Machine. Possible values are `AVS`, `AWS`, `EPS`, `GCP`, `HCI`, `SCVMM` and `VMware`. Changing this forces a new resource to be created. + """ + return pulumi.get(self, "kind") + + @property + @pulumi.getter + def location(self) -> pulumi.Output[str]: + """ + The Azure Region where the Arc Machine should exist. 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 Arc machine. 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 Arc Machine should exist. Changing this forces a new resource to be created. + """ + return pulumi.get(self, "resource_group_name") + diff --git a/sdk/python/pulumi_azure/arcmachine/automanage_configuration_assignment.py b/sdk/python/pulumi_azure/arcmachine/automanage_configuration_assignment.py new file mode 100644 index 0000000000..2406fa4e5e --- /dev/null +++ b/sdk/python/pulumi_azure/arcmachine/automanage_configuration_assignment.py @@ -0,0 +1,275 @@ +# 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__ = ['AutomanageConfigurationAssignmentArgs', 'AutomanageConfigurationAssignment'] + +@pulumi.input_type +class AutomanageConfigurationAssignmentArgs: + def __init__(__self__, *, + arc_machine_id: pulumi.Input[str], + configuration_id: pulumi.Input[str]): + """ + The set of arguments for constructing a AutomanageConfigurationAssignment resource. + :param pulumi.Input[str] arc_machine_id: The ARM resource ID of the Arc Machine to assign the Automanage Configuration to. Changing this forces a new resource to be created. + :param pulumi.Input[str] configuration_id: The ARM resource ID of the Automanage Configuration to assign to the Virtual Machine. Changing this forces a new resource to be created. + + > **NOTE:** For a successful creation of this resource, locate "Automanage API Access" app within your Entra ID tenant. Make sure it's granted access to the scope that includes the arc server. + """ + pulumi.set(__self__, "arc_machine_id", arc_machine_id) + pulumi.set(__self__, "configuration_id", configuration_id) + + @property + @pulumi.getter(name="arcMachineId") + def arc_machine_id(self) -> pulumi.Input[str]: + """ + The ARM resource ID of the Arc Machine to assign the Automanage Configuration to. Changing this forces a new resource to be created. + """ + return pulumi.get(self, "arc_machine_id") + + @arc_machine_id.setter + def arc_machine_id(self, value: pulumi.Input[str]): + pulumi.set(self, "arc_machine_id", value) + + @property + @pulumi.getter(name="configurationId") + def configuration_id(self) -> pulumi.Input[str]: + """ + The ARM resource ID of the Automanage Configuration to assign to the Virtual Machine. Changing this forces a new resource to be created. + + > **NOTE:** For a successful creation of this resource, locate "Automanage API Access" app within your Entra ID tenant. Make sure it's granted access to the scope that includes the arc server. + """ + return pulumi.get(self, "configuration_id") + + @configuration_id.setter + def configuration_id(self, value: pulumi.Input[str]): + pulumi.set(self, "configuration_id", value) + + +@pulumi.input_type +class _AutomanageConfigurationAssignmentState: + def __init__(__self__, *, + arc_machine_id: Optional[pulumi.Input[str]] = None, + configuration_id: Optional[pulumi.Input[str]] = None): + """ + Input properties used for looking up and filtering AutomanageConfigurationAssignment resources. + :param pulumi.Input[str] arc_machine_id: The ARM resource ID of the Arc Machine to assign the Automanage Configuration to. Changing this forces a new resource to be created. + :param pulumi.Input[str] configuration_id: The ARM resource ID of the Automanage Configuration to assign to the Virtual Machine. Changing this forces a new resource to be created. + + > **NOTE:** For a successful creation of this resource, locate "Automanage API Access" app within your Entra ID tenant. Make sure it's granted access to the scope that includes the arc server. + """ + if arc_machine_id is not None: + pulumi.set(__self__, "arc_machine_id", arc_machine_id) + if configuration_id is not None: + pulumi.set(__self__, "configuration_id", configuration_id) + + @property + @pulumi.getter(name="arcMachineId") + def arc_machine_id(self) -> Optional[pulumi.Input[str]]: + """ + The ARM resource ID of the Arc Machine to assign the Automanage Configuration to. Changing this forces a new resource to be created. + """ + return pulumi.get(self, "arc_machine_id") + + @arc_machine_id.setter + def arc_machine_id(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "arc_machine_id", value) + + @property + @pulumi.getter(name="configurationId") + def configuration_id(self) -> Optional[pulumi.Input[str]]: + """ + The ARM resource ID of the Automanage Configuration to assign to the Virtual Machine. Changing this forces a new resource to be created. + + > **NOTE:** For a successful creation of this resource, locate "Automanage API Access" app within your Entra ID tenant. Make sure it's granted access to the scope that includes the arc server. + """ + return pulumi.get(self, "configuration_id") + + @configuration_id.setter + def configuration_id(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "configuration_id", value) + + +class AutomanageConfigurationAssignment(pulumi.CustomResource): + @overload + def __init__(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + arc_machine_id: Optional[pulumi.Input[str]] = None, + configuration_id: Optional[pulumi.Input[str]] = None, + __props__=None): + """ + Manages an Arc Machine Automanage Configuration Profile Assignment. + + ## Example Usage + + ```python + import pulumi + import pulumi_azure as azure + + config = pulumi.Config() + # The name of the Arc Machine. + arc_machine_name = config.require_object("arcMachineName") + example_resource_group = azure.core.ResourceGroup("example", + name="example-resources", + location="West Europe") + example = example_resource_group.name.apply(lambda name: azure.arcmachine.get_output(name=arc_machine_name, + resource_group_name=name)) + example_configuration = azure.automanage.Configuration("example", + name="example-configuration", + resource_group_name=example_resource_group.name, + location=example_resource_group.location) + example_automanage_configuration_assignment = azure.arcmachine.AutomanageConfigurationAssignment("example", + arc_machine_id=example.id, + configuration_id=example_configuration.id) + ``` + + ## Import + + Virtual Machine Automanage Configuration Profile Assignment can be imported using the `resource id`, e.g. + + ```sh + $ pulumi import azure:arcmachine/automanageConfigurationAssignment:AutomanageConfigurationAssignment example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.HybridCompute/Microsoft.HybridCompute/machines/machine1/providers/Microsoft.AutoManage/configurationProfileAssignments/default + ``` + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[str] arc_machine_id: The ARM resource ID of the Arc Machine to assign the Automanage Configuration to. Changing this forces a new resource to be created. + :param pulumi.Input[str] configuration_id: The ARM resource ID of the Automanage Configuration to assign to the Virtual Machine. Changing this forces a new resource to be created. + + > **NOTE:** For a successful creation of this resource, locate "Automanage API Access" app within your Entra ID tenant. Make sure it's granted access to the scope that includes the arc server. + """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: AutomanageConfigurationAssignmentArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Manages an Arc Machine Automanage Configuration Profile Assignment. + + ## Example Usage + + ```python + import pulumi + import pulumi_azure as azure + + config = pulumi.Config() + # The name of the Arc Machine. + arc_machine_name = config.require_object("arcMachineName") + example_resource_group = azure.core.ResourceGroup("example", + name="example-resources", + location="West Europe") + example = example_resource_group.name.apply(lambda name: azure.arcmachine.get_output(name=arc_machine_name, + resource_group_name=name)) + example_configuration = azure.automanage.Configuration("example", + name="example-configuration", + resource_group_name=example_resource_group.name, + location=example_resource_group.location) + example_automanage_configuration_assignment = azure.arcmachine.AutomanageConfigurationAssignment("example", + arc_machine_id=example.id, + configuration_id=example_configuration.id) + ``` + + ## Import + + Virtual Machine Automanage Configuration Profile Assignment can be imported using the `resource id`, e.g. + + ```sh + $ pulumi import azure:arcmachine/automanageConfigurationAssignment:AutomanageConfigurationAssignment example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.HybridCompute/Microsoft.HybridCompute/machines/machine1/providers/Microsoft.AutoManage/configurationProfileAssignments/default + ``` + + :param str resource_name: The name of the resource. + :param AutomanageConfigurationAssignmentArgs 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(AutomanageConfigurationAssignmentArgs, 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, + arc_machine_id: Optional[pulumi.Input[str]] = None, + configuration_id: Optional[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__ = AutomanageConfigurationAssignmentArgs.__new__(AutomanageConfigurationAssignmentArgs) + + if arc_machine_id is None and not opts.urn: + raise TypeError("Missing required property 'arc_machine_id'") + __props__.__dict__["arc_machine_id"] = arc_machine_id + if configuration_id is None and not opts.urn: + raise TypeError("Missing required property 'configuration_id'") + __props__.__dict__["configuration_id"] = configuration_id + super(AutomanageConfigurationAssignment, __self__).__init__( + 'azure:arcmachine/automanageConfigurationAssignment:AutomanageConfigurationAssignment', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name: str, + id: pulumi.Input[str], + opts: Optional[pulumi.ResourceOptions] = None, + arc_machine_id: Optional[pulumi.Input[str]] = None, + configuration_id: Optional[pulumi.Input[str]] = None) -> 'AutomanageConfigurationAssignment': + """ + Get an existing AutomanageConfigurationAssignment 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] arc_machine_id: The ARM resource ID of the Arc Machine to assign the Automanage Configuration to. Changing this forces a new resource to be created. + :param pulumi.Input[str] configuration_id: The ARM resource ID of the Automanage Configuration to assign to the Virtual Machine. Changing this forces a new resource to be created. + + > **NOTE:** For a successful creation of this resource, locate "Automanage API Access" app within your Entra ID tenant. Make sure it's granted access to the scope that includes the arc server. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = _AutomanageConfigurationAssignmentState.__new__(_AutomanageConfigurationAssignmentState) + + __props__.__dict__["arc_machine_id"] = arc_machine_id + __props__.__dict__["configuration_id"] = configuration_id + return AutomanageConfigurationAssignment(resource_name, opts=opts, __props__=__props__) + + @property + @pulumi.getter(name="arcMachineId") + def arc_machine_id(self) -> pulumi.Output[str]: + """ + The ARM resource ID of the Arc Machine to assign the Automanage Configuration to. Changing this forces a new resource to be created. + """ + return pulumi.get(self, "arc_machine_id") + + @property + @pulumi.getter(name="configurationId") + def configuration_id(self) -> pulumi.Output[str]: + """ + The ARM resource ID of the Automanage Configuration to assign to the Virtual Machine. Changing this forces a new resource to be created. + + > **NOTE:** For a successful creation of this resource, locate "Automanage API Access" app within your Entra ID tenant. Make sure it's granted access to the scope that includes the arc server. + """ + return pulumi.get(self, "configuration_id") + diff --git a/sdk/python/pulumi_azure/dataprotection/backup_vault.py b/sdk/python/pulumi_azure/dataprotection/backup_vault.py index d9ae7a0fce..4365ef99b9 100644 --- a/sdk/python/pulumi_azure/dataprotection/backup_vault.py +++ b/sdk/python/pulumi_azure/dataprotection/backup_vault.py @@ -24,6 +24,7 @@ def __init__(__self__, *, datastore_type: pulumi.Input[str], redundancy: pulumi.Input[str], resource_group_name: pulumi.Input[str], + cross_region_restore_enabled: Optional[pulumi.Input[bool]] = None, identity: Optional[pulumi.Input['BackupVaultIdentityArgs']] = None, location: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, @@ -37,6 +38,9 @@ def __init__(__self__, *, > **Note:** The `SnapshotStore` will be removed in version 4.0 as it has been replaced by `OperationalStore`. :param pulumi.Input[str] redundancy: Specifies the backup storage redundancy. Possible values are `GeoRedundant`, `LocallyRedundant` and `ZoneRedundant`. Changing this forces a new Backup Vault to be created. :param pulumi.Input[str] resource_group_name: The name of the Resource Group where the Backup Vault should exist. Changing this forces a new Backup Vault to be created. + :param pulumi.Input[bool] cross_region_restore_enabled: Whether to enable cross-region restore for the Backup Vault. + + > **Note:** The `cross_region_restore_enabled` can only be specified when `redundancy` is specified for `GeoRedundant`. Once `cross_region_restore_enabled` is enabled, it cannot be disabled. :param pulumi.Input['BackupVaultIdentityArgs'] identity: An `identity` block as defined below. :param pulumi.Input[str] location: The Azure Region where the Backup Vault should exist. Changing this forces a new Backup Vault to be created. :param pulumi.Input[str] name: Specifies the name of the Backup Vault. Changing this forces a new Backup Vault to be created. @@ -51,6 +55,8 @@ def __init__(__self__, *, pulumi.set(__self__, "datastore_type", datastore_type) pulumi.set(__self__, "redundancy", redundancy) pulumi.set(__self__, "resource_group_name", resource_group_name) + if cross_region_restore_enabled is not None: + pulumi.set(__self__, "cross_region_restore_enabled", cross_region_restore_enabled) if identity is not None: pulumi.set(__self__, "identity", identity) if location is not None: @@ -102,6 +108,20 @@ def resource_group_name(self) -> pulumi.Input[str]: def resource_group_name(self, value: pulumi.Input[str]): pulumi.set(self, "resource_group_name", value) + @property + @pulumi.getter(name="crossRegionRestoreEnabled") + def cross_region_restore_enabled(self) -> Optional[pulumi.Input[bool]]: + """ + Whether to enable cross-region restore for the Backup Vault. + + > **Note:** The `cross_region_restore_enabled` can only be specified when `redundancy` is specified for `GeoRedundant`. Once `cross_region_restore_enabled` is enabled, it cannot be disabled. + """ + return pulumi.get(self, "cross_region_restore_enabled") + + @cross_region_restore_enabled.setter + def cross_region_restore_enabled(self, value: Optional[pulumi.Input[bool]]): + pulumi.set(self, "cross_region_restore_enabled", value) + @property @pulumi.getter def identity(self) -> Optional[pulumi.Input['BackupVaultIdentityArgs']]: @@ -182,6 +202,7 @@ def tags(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]): @pulumi.input_type class _BackupVaultState: def __init__(__self__, *, + cross_region_restore_enabled: Optional[pulumi.Input[bool]] = None, datastore_type: Optional[pulumi.Input[str]] = None, identity: Optional[pulumi.Input['BackupVaultIdentityArgs']] = None, location: Optional[pulumi.Input[str]] = None, @@ -193,6 +214,9 @@ def __init__(__self__, *, tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None): """ Input properties used for looking up and filtering BackupVault resources. + :param pulumi.Input[bool] cross_region_restore_enabled: Whether to enable cross-region restore for the Backup Vault. + + > **Note:** The `cross_region_restore_enabled` can only be specified when `redundancy` is specified for `GeoRedundant`. Once `cross_region_restore_enabled` is enabled, it cannot be disabled. :param pulumi.Input[str] datastore_type: Specifies the type of the data store. Possible values are `ArchiveStore`, `OperationalStore`, `SnapshotStore` and `VaultStore`. Changing this forces a new resource to be created. > **Note:** The `SnapshotStore` will be removed in version 4.0 as it has been replaced by `OperationalStore`. @@ -209,6 +233,8 @@ def __init__(__self__, *, > **Note:** Once the `soft_delete` is set to `AlwaysOn`, the setting cannot be changed. :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A mapping of tags which should be assigned to the Backup Vault. """ + if cross_region_restore_enabled is not None: + pulumi.set(__self__, "cross_region_restore_enabled", cross_region_restore_enabled) if datastore_type is not None: pulumi.set(__self__, "datastore_type", datastore_type) if identity is not None: @@ -228,6 +254,20 @@ def __init__(__self__, *, if tags is not None: pulumi.set(__self__, "tags", tags) + @property + @pulumi.getter(name="crossRegionRestoreEnabled") + def cross_region_restore_enabled(self) -> Optional[pulumi.Input[bool]]: + """ + Whether to enable cross-region restore for the Backup Vault. + + > **Note:** The `cross_region_restore_enabled` can only be specified when `redundancy` is specified for `GeoRedundant`. Once `cross_region_restore_enabled` is enabled, it cannot be disabled. + """ + return pulumi.get(self, "cross_region_restore_enabled") + + @cross_region_restore_enabled.setter + def cross_region_restore_enabled(self, value: Optional[pulumi.Input[bool]]): + pulumi.set(self, "cross_region_restore_enabled", value) + @property @pulumi.getter(name="datastoreType") def datastore_type(self) -> Optional[pulumi.Input[str]]: @@ -348,6 +388,7 @@ class BackupVault(pulumi.CustomResource): def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, + cross_region_restore_enabled: Optional[pulumi.Input[bool]] = None, datastore_type: Optional[pulumi.Input[str]] = None, identity: Optional[pulumi.Input[Union['BackupVaultIdentityArgs', 'BackupVaultIdentityArgsDict']]] = None, location: Optional[pulumi.Input[str]] = None, @@ -388,6 +429,9 @@ def __init__(__self__, :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[bool] cross_region_restore_enabled: Whether to enable cross-region restore for the Backup Vault. + + > **Note:** The `cross_region_restore_enabled` can only be specified when `redundancy` is specified for `GeoRedundant`. Once `cross_region_restore_enabled` is enabled, it cannot be disabled. :param pulumi.Input[str] datastore_type: Specifies the type of the data store. Possible values are `ArchiveStore`, `OperationalStore`, `SnapshotStore` and `VaultStore`. Changing this forces a new resource to be created. > **Note:** The `SnapshotStore` will be removed in version 4.0 as it has been replaced by `OperationalStore`. @@ -453,6 +497,7 @@ def __init__(__self__, resource_name: str, *args, **kwargs): def _internal_init(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, + cross_region_restore_enabled: Optional[pulumi.Input[bool]] = None, datastore_type: Optional[pulumi.Input[str]] = None, identity: Optional[pulumi.Input[Union['BackupVaultIdentityArgs', 'BackupVaultIdentityArgsDict']]] = None, location: Optional[pulumi.Input[str]] = None, @@ -471,6 +516,7 @@ def _internal_init(__self__, raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = BackupVaultArgs.__new__(BackupVaultArgs) + __props__.__dict__["cross_region_restore_enabled"] = cross_region_restore_enabled if datastore_type is None and not opts.urn: raise TypeError("Missing required property 'datastore_type'") __props__.__dict__["datastore_type"] = datastore_type @@ -496,6 +542,7 @@ def _internal_init(__self__, def get(resource_name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions] = None, + cross_region_restore_enabled: Optional[pulumi.Input[bool]] = None, datastore_type: Optional[pulumi.Input[str]] = None, identity: Optional[pulumi.Input[Union['BackupVaultIdentityArgs', 'BackupVaultIdentityArgsDict']]] = None, location: Optional[pulumi.Input[str]] = None, @@ -512,6 +559,9 @@ 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[bool] cross_region_restore_enabled: Whether to enable cross-region restore for the Backup Vault. + + > **Note:** The `cross_region_restore_enabled` can only be specified when `redundancy` is specified for `GeoRedundant`. Once `cross_region_restore_enabled` is enabled, it cannot be disabled. :param pulumi.Input[str] datastore_type: Specifies the type of the data store. Possible values are `ArchiveStore`, `OperationalStore`, `SnapshotStore` and `VaultStore`. Changing this forces a new resource to be created. > **Note:** The `SnapshotStore` will be removed in version 4.0 as it has been replaced by `OperationalStore`. @@ -532,6 +582,7 @@ def get(resource_name: str, __props__ = _BackupVaultState.__new__(_BackupVaultState) + __props__.__dict__["cross_region_restore_enabled"] = cross_region_restore_enabled __props__.__dict__["datastore_type"] = datastore_type __props__.__dict__["identity"] = identity __props__.__dict__["location"] = location @@ -543,6 +594,16 @@ def get(resource_name: str, __props__.__dict__["tags"] = tags return BackupVault(resource_name, opts=opts, __props__=__props__) + @property + @pulumi.getter(name="crossRegionRestoreEnabled") + def cross_region_restore_enabled(self) -> pulumi.Output[Optional[bool]]: + """ + Whether to enable cross-region restore for the Backup Vault. + + > **Note:** The `cross_region_restore_enabled` can only be specified when `redundancy` is specified for `GeoRedundant`. Once `cross_region_restore_enabled` is enabled, it cannot be disabled. + """ + return pulumi.get(self, "cross_region_restore_enabled") + @property @pulumi.getter(name="datastoreType") def datastore_type(self) -> pulumi.Output[str]: diff --git a/sdk/python/pulumi_azure/eventhub/queue.py b/sdk/python/pulumi_azure/eventhub/queue.py index a8226c8b89..71d29064c8 100644 --- a/sdk/python/pulumi_azure/eventhub/queue.py +++ b/sdk/python/pulumi_azure/eventhub/queue.py @@ -40,10 +40,10 @@ def __init__(__self__, *, """ The set of arguments for constructing a Queue resource. :param pulumi.Input[str] namespace_id: The ID of the ServiceBus Namespace to create this queue in. Changing this forces a new resource to be created. - :param pulumi.Input[str] auto_delete_on_idle: The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. Defaults to `P10675199DT2H48M5.4775807S`. + :param pulumi.Input[str] auto_delete_on_idle: The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. :param pulumi.Input[bool] batched_operations_enabled: Boolean flag which controls whether server-side batched operations are enabled. Defaults to `true`. :param pulumi.Input[bool] dead_lettering_on_message_expiration: Boolean flag which controls whether the Queue has dead letter support when a message expires. Defaults to `false`. - :param pulumi.Input[str] default_message_ttl: The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. Defaults to `P10675199DT2H48M5.4775807S`. + :param pulumi.Input[str] default_message_ttl: The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. :param pulumi.Input[str] duplicate_detection_history_time_window: The ISO 8601 timespan duration during which duplicates can be detected. Defaults to `PT10M` (10 Minutes). :param pulumi.Input[bool] express_enabled: Boolean flag which controls whether Express Entities are enabled. An express queue holds a message in memory temporarily before writing it to persistent storage. Defaults to `false` for Basic and Standard. For Premium, it MUST be set to `false`. @@ -52,8 +52,8 @@ def __init__(__self__, *, :param pulumi.Input[str] forward_to: The name of a Queue or Topic to automatically forward messages to. Please [see the documentation](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-auto-forwarding) for more information. :param pulumi.Input[str] lock_duration: The ISO 8601 timespan duration of a peek-lock; that is, the amount of time that the message is locked for other receivers. Maximum value is 5 minutes. Defaults to `PT1M` (1 Minute). :param pulumi.Input[int] max_delivery_count: Integer value which controls when a message is automatically dead lettered. Defaults to `10`. - :param pulumi.Input[int] max_message_size_in_kilobytes: Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). Defaults to `256`. - :param pulumi.Input[int] max_size_in_megabytes: Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). Defaults to `5120`. + :param pulumi.Input[int] max_message_size_in_kilobytes: Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). + :param pulumi.Input[int] max_size_in_megabytes: Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). :param pulumi.Input[str] name: Specifies the name of the ServiceBus Queue resource. Changing this forces a new resource to be created. :param pulumi.Input[bool] partitioning_enabled: Boolean flag which controls whether to enable the queue to be partitioned across multiple message brokers. Changing this forces a new resource to be created. Defaults to `false` for Basic and Standard. @@ -114,7 +114,7 @@ def namespace_id(self, value: pulumi.Input[str]): @pulumi.getter(name="autoDeleteOnIdle") def auto_delete_on_idle(self) -> Optional[pulumi.Input[str]]: """ - The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. Defaults to `P10675199DT2H48M5.4775807S`. + The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. """ return pulumi.get(self, "auto_delete_on_idle") @@ -150,7 +150,7 @@ def dead_lettering_on_message_expiration(self, value: Optional[pulumi.Input[bool @pulumi.getter(name="defaultMessageTtl") def default_message_ttl(self) -> Optional[pulumi.Input[str]]: """ - The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. Defaults to `P10675199DT2H48M5.4775807S`. + The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. """ return pulumi.get(self, "default_message_ttl") @@ -236,7 +236,7 @@ def max_delivery_count(self, value: Optional[pulumi.Input[int]]): @pulumi.getter(name="maxMessageSizeInKilobytes") def max_message_size_in_kilobytes(self) -> Optional[pulumi.Input[int]]: """ - Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). Defaults to `256`. + Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). """ return pulumi.get(self, "max_message_size_in_kilobytes") @@ -248,7 +248,7 @@ def max_message_size_in_kilobytes(self, value: Optional[pulumi.Input[int]]): @pulumi.getter(name="maxSizeInMegabytes") def max_size_in_megabytes(self) -> Optional[pulumi.Input[int]]: """ - Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). Defaults to `5120`. + Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). """ return pulumi.get(self, "max_size_in_megabytes") @@ -344,10 +344,10 @@ def __init__(__self__, *, status: Optional[pulumi.Input[str]] = None): """ Input properties used for looking up and filtering Queue resources. - :param pulumi.Input[str] auto_delete_on_idle: The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. Defaults to `P10675199DT2H48M5.4775807S`. + :param pulumi.Input[str] auto_delete_on_idle: The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. :param pulumi.Input[bool] batched_operations_enabled: Boolean flag which controls whether server-side batched operations are enabled. Defaults to `true`. :param pulumi.Input[bool] dead_lettering_on_message_expiration: Boolean flag which controls whether the Queue has dead letter support when a message expires. Defaults to `false`. - :param pulumi.Input[str] default_message_ttl: The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. Defaults to `P10675199DT2H48M5.4775807S`. + :param pulumi.Input[str] default_message_ttl: The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. :param pulumi.Input[str] duplicate_detection_history_time_window: The ISO 8601 timespan duration during which duplicates can be detected. Defaults to `PT10M` (10 Minutes). :param pulumi.Input[bool] express_enabled: Boolean flag which controls whether Express Entities are enabled. An express queue holds a message in memory temporarily before writing it to persistent storage. Defaults to `false` for Basic and Standard. For Premium, it MUST be set to `false`. @@ -356,8 +356,8 @@ def __init__(__self__, *, :param pulumi.Input[str] forward_to: The name of a Queue or Topic to automatically forward messages to. Please [see the documentation](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-auto-forwarding) for more information. :param pulumi.Input[str] lock_duration: The ISO 8601 timespan duration of a peek-lock; that is, the amount of time that the message is locked for other receivers. Maximum value is 5 minutes. Defaults to `PT1M` (1 Minute). :param pulumi.Input[int] max_delivery_count: Integer value which controls when a message is automatically dead lettered. Defaults to `10`. - :param pulumi.Input[int] max_message_size_in_kilobytes: Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). Defaults to `256`. - :param pulumi.Input[int] max_size_in_megabytes: Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). Defaults to `5120`. + :param pulumi.Input[int] max_message_size_in_kilobytes: Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). + :param pulumi.Input[int] max_size_in_megabytes: Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). :param pulumi.Input[str] name: Specifies the name of the ServiceBus Queue resource. Changing this forces a new resource to be created. :param pulumi.Input[str] namespace_id: The ID of the ServiceBus Namespace to create this queue in. Changing this forces a new resource to be created. :param pulumi.Input[bool] partitioning_enabled: Boolean flag which controls whether to enable the queue to be partitioned across multiple message brokers. Changing this forces a new resource to be created. Defaults to `false` for Basic and Standard. @@ -412,7 +412,7 @@ def __init__(__self__, *, @pulumi.getter(name="autoDeleteOnIdle") def auto_delete_on_idle(self) -> Optional[pulumi.Input[str]]: """ - The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. Defaults to `P10675199DT2H48M5.4775807S`. + The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. """ return pulumi.get(self, "auto_delete_on_idle") @@ -448,7 +448,7 @@ def dead_lettering_on_message_expiration(self, value: Optional[pulumi.Input[bool @pulumi.getter(name="defaultMessageTtl") def default_message_ttl(self) -> Optional[pulumi.Input[str]]: """ - The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. Defaults to `P10675199DT2H48M5.4775807S`. + The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. """ return pulumi.get(self, "default_message_ttl") @@ -534,7 +534,7 @@ def max_delivery_count(self, value: Optional[pulumi.Input[int]]): @pulumi.getter(name="maxMessageSizeInKilobytes") def max_message_size_in_kilobytes(self) -> Optional[pulumi.Input[int]]: """ - Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). Defaults to `256`. + Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). """ return pulumi.get(self, "max_message_size_in_kilobytes") @@ -546,7 +546,7 @@ def max_message_size_in_kilobytes(self, value: Optional[pulumi.Input[int]]): @pulumi.getter(name="maxSizeInMegabytes") def max_size_in_megabytes(self) -> Optional[pulumi.Input[int]]: """ - Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). Defaults to `5120`. + Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). """ return pulumi.get(self, "max_size_in_megabytes") @@ -712,10 +712,10 @@ def __init__(__self__, :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[str] auto_delete_on_idle: The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. Defaults to `P10675199DT2H48M5.4775807S`. + :param pulumi.Input[str] auto_delete_on_idle: The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. :param pulumi.Input[bool] batched_operations_enabled: Boolean flag which controls whether server-side batched operations are enabled. Defaults to `true`. :param pulumi.Input[bool] dead_lettering_on_message_expiration: Boolean flag which controls whether the Queue has dead letter support when a message expires. Defaults to `false`. - :param pulumi.Input[str] default_message_ttl: The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. Defaults to `P10675199DT2H48M5.4775807S`. + :param pulumi.Input[str] default_message_ttl: The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. :param pulumi.Input[str] duplicate_detection_history_time_window: The ISO 8601 timespan duration during which duplicates can be detected. Defaults to `PT10M` (10 Minutes). :param pulumi.Input[bool] express_enabled: Boolean flag which controls whether Express Entities are enabled. An express queue holds a message in memory temporarily before writing it to persistent storage. Defaults to `false` for Basic and Standard. For Premium, it MUST be set to `false`. @@ -724,8 +724,8 @@ def __init__(__self__, :param pulumi.Input[str] forward_to: The name of a Queue or Topic to automatically forward messages to. Please [see the documentation](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-auto-forwarding) for more information. :param pulumi.Input[str] lock_duration: The ISO 8601 timespan duration of a peek-lock; that is, the amount of time that the message is locked for other receivers. Maximum value is 5 minutes. Defaults to `PT1M` (1 Minute). :param pulumi.Input[int] max_delivery_count: Integer value which controls when a message is automatically dead lettered. Defaults to `10`. - :param pulumi.Input[int] max_message_size_in_kilobytes: Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). Defaults to `256`. - :param pulumi.Input[int] max_size_in_megabytes: Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). Defaults to `5120`. + :param pulumi.Input[int] max_message_size_in_kilobytes: Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). + :param pulumi.Input[int] max_size_in_megabytes: Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). :param pulumi.Input[str] name: Specifies the name of the ServiceBus Queue resource. Changing this forces a new resource to be created. :param pulumi.Input[str] namespace_id: The ID of the ServiceBus Namespace to create this queue in. Changing this forces a new resource to be created. :param pulumi.Input[bool] partitioning_enabled: Boolean flag which controls whether to enable the queue to be partitioned across multiple message brokers. Changing this forces a new resource to be created. Defaults to `false` for Basic and Standard. @@ -877,10 +877,10 @@ 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] auto_delete_on_idle: The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. Defaults to `P10675199DT2H48M5.4775807S`. + :param pulumi.Input[str] auto_delete_on_idle: The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. :param pulumi.Input[bool] batched_operations_enabled: Boolean flag which controls whether server-side batched operations are enabled. Defaults to `true`. :param pulumi.Input[bool] dead_lettering_on_message_expiration: Boolean flag which controls whether the Queue has dead letter support when a message expires. Defaults to `false`. - :param pulumi.Input[str] default_message_ttl: The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. Defaults to `P10675199DT2H48M5.4775807S`. + :param pulumi.Input[str] default_message_ttl: The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. :param pulumi.Input[str] duplicate_detection_history_time_window: The ISO 8601 timespan duration during which duplicates can be detected. Defaults to `PT10M` (10 Minutes). :param pulumi.Input[bool] express_enabled: Boolean flag which controls whether Express Entities are enabled. An express queue holds a message in memory temporarily before writing it to persistent storage. Defaults to `false` for Basic and Standard. For Premium, it MUST be set to `false`. @@ -889,8 +889,8 @@ def get(resource_name: str, :param pulumi.Input[str] forward_to: The name of a Queue or Topic to automatically forward messages to. Please [see the documentation](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-auto-forwarding) for more information. :param pulumi.Input[str] lock_duration: The ISO 8601 timespan duration of a peek-lock; that is, the amount of time that the message is locked for other receivers. Maximum value is 5 minutes. Defaults to `PT1M` (1 Minute). :param pulumi.Input[int] max_delivery_count: Integer value which controls when a message is automatically dead lettered. Defaults to `10`. - :param pulumi.Input[int] max_message_size_in_kilobytes: Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). Defaults to `256`. - :param pulumi.Input[int] max_size_in_megabytes: Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). Defaults to `5120`. + :param pulumi.Input[int] max_message_size_in_kilobytes: Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). + :param pulumi.Input[int] max_size_in_megabytes: Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). :param pulumi.Input[str] name: Specifies the name of the ServiceBus Queue resource. Changing this forces a new resource to be created. :param pulumi.Input[str] namespace_id: The ID of the ServiceBus Namespace to create this queue in. Changing this forces a new resource to be created. :param pulumi.Input[bool] partitioning_enabled: Boolean flag which controls whether to enable the queue to be partitioned across multiple message brokers. Changing this forces a new resource to be created. Defaults to `false` for Basic and Standard. @@ -928,9 +928,9 @@ def get(resource_name: str, @property @pulumi.getter(name="autoDeleteOnIdle") - def auto_delete_on_idle(self) -> pulumi.Output[Optional[str]]: + def auto_delete_on_idle(self) -> pulumi.Output[str]: """ - The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. Defaults to `P10675199DT2H48M5.4775807S`. + The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. """ return pulumi.get(self, "auto_delete_on_idle") @@ -952,9 +952,9 @@ def dead_lettering_on_message_expiration(self) -> pulumi.Output[Optional[bool]]: @property @pulumi.getter(name="defaultMessageTtl") - def default_message_ttl(self) -> pulumi.Output[Optional[str]]: + def default_message_ttl(self) -> pulumi.Output[str]: """ - The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. Defaults to `P10675199DT2H48M5.4775807S`. + The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. """ return pulumi.get(self, "default_message_ttl") @@ -1012,7 +1012,7 @@ def max_delivery_count(self) -> pulumi.Output[Optional[int]]: @pulumi.getter(name="maxMessageSizeInKilobytes") def max_message_size_in_kilobytes(self) -> pulumi.Output[int]: """ - Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). Defaults to `256`. + Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). """ return pulumi.get(self, "max_message_size_in_kilobytes") @@ -1020,7 +1020,7 @@ def max_message_size_in_kilobytes(self) -> pulumi.Output[int]: @pulumi.getter(name="maxSizeInMegabytes") def max_size_in_megabytes(self) -> pulumi.Output[int]: """ - Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). Defaults to `5120`. + Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). """ return pulumi.get(self, "max_size_in_megabytes") diff --git a/sdk/python/pulumi_azure/media/__init__.py b/sdk/python/pulumi_azure/media/__init__.py deleted file mode 100644 index 52b18cf41b..0000000000 --- a/sdk/python/pulumi_azure/media/__init__.py +++ /dev/null @@ -1,10 +0,0 @@ -# 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! *** - -from .. import _utilities -import typing -# Export this package's modules as members: -from .account_filter import * -from ._inputs import * -from . import outputs diff --git a/sdk/python/pulumi_azure/media/_inputs.py b/sdk/python/pulumi_azure/media/_inputs.py deleted file mode 100644 index 2aaf6fdd5c..0000000000 --- a/sdk/python/pulumi_azure/media/_inputs.py +++ /dev/null @@ -1,182 +0,0 @@ -# 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__ = [ - 'AccountFilterPresentationTimeRangeArgs', - 'AccountFilterPresentationTimeRangeArgsDict', - 'AccountFilterTrackSelectionArgs', - 'AccountFilterTrackSelectionArgsDict', - 'AccountFilterTrackSelectionConditionArgs', - 'AccountFilterTrackSelectionConditionArgsDict', -] - -MYPY = False - -if not MYPY: - class AccountFilterPresentationTimeRangeArgsDict(TypedDict): - unit_timescale_in_milliseconds: pulumi.Input[int] - end_in_units: NotRequired[pulumi.Input[int]] - force_end: NotRequired[pulumi.Input[bool]] - live_backoff_in_units: NotRequired[pulumi.Input[int]] - presentation_window_in_units: NotRequired[pulumi.Input[int]] - start_in_units: NotRequired[pulumi.Input[int]] -elif False: - AccountFilterPresentationTimeRangeArgsDict: TypeAlias = Mapping[str, Any] - -@pulumi.input_type -class AccountFilterPresentationTimeRangeArgs: - def __init__(__self__, *, - unit_timescale_in_milliseconds: pulumi.Input[int], - end_in_units: Optional[pulumi.Input[int]] = None, - force_end: Optional[pulumi.Input[bool]] = None, - live_backoff_in_units: Optional[pulumi.Input[int]] = None, - presentation_window_in_units: Optional[pulumi.Input[int]] = None, - start_in_units: Optional[pulumi.Input[int]] = None): - pulumi.set(__self__, "unit_timescale_in_milliseconds", unit_timescale_in_milliseconds) - if end_in_units is not None: - pulumi.set(__self__, "end_in_units", end_in_units) - if force_end is not None: - pulumi.set(__self__, "force_end", force_end) - if live_backoff_in_units is not None: - pulumi.set(__self__, "live_backoff_in_units", live_backoff_in_units) - if presentation_window_in_units is not None: - pulumi.set(__self__, "presentation_window_in_units", presentation_window_in_units) - if start_in_units is not None: - pulumi.set(__self__, "start_in_units", start_in_units) - - @property - @pulumi.getter(name="unitTimescaleInMilliseconds") - def unit_timescale_in_milliseconds(self) -> pulumi.Input[int]: - return pulumi.get(self, "unit_timescale_in_milliseconds") - - @unit_timescale_in_milliseconds.setter - def unit_timescale_in_milliseconds(self, value: pulumi.Input[int]): - pulumi.set(self, "unit_timescale_in_milliseconds", value) - - @property - @pulumi.getter(name="endInUnits") - def end_in_units(self) -> Optional[pulumi.Input[int]]: - return pulumi.get(self, "end_in_units") - - @end_in_units.setter - def end_in_units(self, value: Optional[pulumi.Input[int]]): - pulumi.set(self, "end_in_units", value) - - @property - @pulumi.getter(name="forceEnd") - def force_end(self) -> Optional[pulumi.Input[bool]]: - return pulumi.get(self, "force_end") - - @force_end.setter - def force_end(self, value: Optional[pulumi.Input[bool]]): - pulumi.set(self, "force_end", value) - - @property - @pulumi.getter(name="liveBackoffInUnits") - def live_backoff_in_units(self) -> Optional[pulumi.Input[int]]: - return pulumi.get(self, "live_backoff_in_units") - - @live_backoff_in_units.setter - def live_backoff_in_units(self, value: Optional[pulumi.Input[int]]): - pulumi.set(self, "live_backoff_in_units", value) - - @property - @pulumi.getter(name="presentationWindowInUnits") - def presentation_window_in_units(self) -> Optional[pulumi.Input[int]]: - return pulumi.get(self, "presentation_window_in_units") - - @presentation_window_in_units.setter - def presentation_window_in_units(self, value: Optional[pulumi.Input[int]]): - pulumi.set(self, "presentation_window_in_units", value) - - @property - @pulumi.getter(name="startInUnits") - def start_in_units(self) -> Optional[pulumi.Input[int]]: - return pulumi.get(self, "start_in_units") - - @start_in_units.setter - def start_in_units(self, value: Optional[pulumi.Input[int]]): - pulumi.set(self, "start_in_units", value) - - -if not MYPY: - class AccountFilterTrackSelectionArgsDict(TypedDict): - conditions: pulumi.Input[Sequence[pulumi.Input['AccountFilterTrackSelectionConditionArgsDict']]] -elif False: - AccountFilterTrackSelectionArgsDict: TypeAlias = Mapping[str, Any] - -@pulumi.input_type -class AccountFilterTrackSelectionArgs: - def __init__(__self__, *, - conditions: pulumi.Input[Sequence[pulumi.Input['AccountFilterTrackSelectionConditionArgs']]]): - pulumi.set(__self__, "conditions", conditions) - - @property - @pulumi.getter - def conditions(self) -> pulumi.Input[Sequence[pulumi.Input['AccountFilterTrackSelectionConditionArgs']]]: - return pulumi.get(self, "conditions") - - @conditions.setter - def conditions(self, value: pulumi.Input[Sequence[pulumi.Input['AccountFilterTrackSelectionConditionArgs']]]): - pulumi.set(self, "conditions", value) - - -if not MYPY: - class AccountFilterTrackSelectionConditionArgsDict(TypedDict): - operation: pulumi.Input[str] - property: pulumi.Input[str] - value: pulumi.Input[str] -elif False: - AccountFilterTrackSelectionConditionArgsDict: TypeAlias = Mapping[str, Any] - -@pulumi.input_type -class AccountFilterTrackSelectionConditionArgs: - def __init__(__self__, *, - operation: pulumi.Input[str], - property: pulumi.Input[str], - value: pulumi.Input[str]): - pulumi.set(__self__, "operation", operation) - pulumi.set(__self__, "property", property) - pulumi.set(__self__, "value", value) - - @property - @pulumi.getter - def operation(self) -> pulumi.Input[str]: - return pulumi.get(self, "operation") - - @operation.setter - def operation(self, value: pulumi.Input[str]): - pulumi.set(self, "operation", value) - - @property - @pulumi.getter - def value(self) -> pulumi.Input[str]: - return pulumi.get(self, "value") - - @value.setter - def value(self, value: pulumi.Input[str]): - pulumi.set(self, "value", value) - - @property - @pulumi.getter - def property(self) -> pulumi.Input[str]: - return pulumi.get(self, "property") - - @property.setter - def property(self, value: pulumi.Input[str]): - pulumi.set(self, "property", value) - - diff --git a/sdk/python/pulumi_azure/media/account_filter.py b/sdk/python/pulumi_azure/media/account_filter.py deleted file mode 100644 index 80282cfeae..0000000000 --- a/sdk/python/pulumi_azure/media/account_filter.py +++ /dev/null @@ -1,309 +0,0 @@ -# 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 -from . import outputs -from ._inputs import * - -__all__ = ['AccountFilterArgs', 'AccountFilter'] - -@pulumi.input_type -class AccountFilterArgs: - def __init__(__self__, *, - media_services_account_name: pulumi.Input[str], - resource_group_name: pulumi.Input[str], - first_quality_bitrate: Optional[pulumi.Input[int]] = None, - name: Optional[pulumi.Input[str]] = None, - presentation_time_range: Optional[pulumi.Input['AccountFilterPresentationTimeRangeArgs']] = None, - track_selections: Optional[pulumi.Input[Sequence[pulumi.Input['AccountFilterTrackSelectionArgs']]]] = None): - """ - The set of arguments for constructing a AccountFilter resource. - """ - pulumi.set(__self__, "media_services_account_name", media_services_account_name) - pulumi.set(__self__, "resource_group_name", resource_group_name) - if first_quality_bitrate is not None: - pulumi.set(__self__, "first_quality_bitrate", first_quality_bitrate) - if name is not None: - pulumi.set(__self__, "name", name) - if presentation_time_range is not None: - pulumi.set(__self__, "presentation_time_range", presentation_time_range) - if track_selections is not None: - pulumi.set(__self__, "track_selections", track_selections) - - @property - @pulumi.getter(name="mediaServicesAccountName") - def media_services_account_name(self) -> pulumi.Input[str]: - return pulumi.get(self, "media_services_account_name") - - @media_services_account_name.setter - def media_services_account_name(self, value: pulumi.Input[str]): - pulumi.set(self, "media_services_account_name", value) - - @property - @pulumi.getter(name="resourceGroupName") - def resource_group_name(self) -> pulumi.Input[str]: - 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="firstQualityBitrate") - def first_quality_bitrate(self) -> Optional[pulumi.Input[int]]: - return pulumi.get(self, "first_quality_bitrate") - - @first_quality_bitrate.setter - def first_quality_bitrate(self, value: Optional[pulumi.Input[int]]): - pulumi.set(self, "first_quality_bitrate", value) - - @property - @pulumi.getter - def name(self) -> Optional[pulumi.Input[str]]: - return pulumi.get(self, "name") - - @name.setter - def name(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "name", value) - - @property - @pulumi.getter(name="presentationTimeRange") - def presentation_time_range(self) -> Optional[pulumi.Input['AccountFilterPresentationTimeRangeArgs']]: - return pulumi.get(self, "presentation_time_range") - - @presentation_time_range.setter - def presentation_time_range(self, value: Optional[pulumi.Input['AccountFilterPresentationTimeRangeArgs']]): - pulumi.set(self, "presentation_time_range", value) - - @property - @pulumi.getter(name="trackSelections") - def track_selections(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['AccountFilterTrackSelectionArgs']]]]: - return pulumi.get(self, "track_selections") - - @track_selections.setter - def track_selections(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['AccountFilterTrackSelectionArgs']]]]): - pulumi.set(self, "track_selections", value) - - -@pulumi.input_type -class _AccountFilterState: - def __init__(__self__, *, - first_quality_bitrate: Optional[pulumi.Input[int]] = None, - media_services_account_name: Optional[pulumi.Input[str]] = None, - name: Optional[pulumi.Input[str]] = None, - presentation_time_range: Optional[pulumi.Input['AccountFilterPresentationTimeRangeArgs']] = None, - resource_group_name: Optional[pulumi.Input[str]] = None, - track_selections: Optional[pulumi.Input[Sequence[pulumi.Input['AccountFilterTrackSelectionArgs']]]] = None): - """ - Input properties used for looking up and filtering AccountFilter resources. - """ - if first_quality_bitrate is not None: - pulumi.set(__self__, "first_quality_bitrate", first_quality_bitrate) - if media_services_account_name is not None: - pulumi.set(__self__, "media_services_account_name", media_services_account_name) - if name is not None: - pulumi.set(__self__, "name", name) - if presentation_time_range is not None: - pulumi.set(__self__, "presentation_time_range", presentation_time_range) - if resource_group_name is not None: - pulumi.set(__self__, "resource_group_name", resource_group_name) - if track_selections is not None: - pulumi.set(__self__, "track_selections", track_selections) - - @property - @pulumi.getter(name="firstQualityBitrate") - def first_quality_bitrate(self) -> Optional[pulumi.Input[int]]: - return pulumi.get(self, "first_quality_bitrate") - - @first_quality_bitrate.setter - def first_quality_bitrate(self, value: Optional[pulumi.Input[int]]): - pulumi.set(self, "first_quality_bitrate", value) - - @property - @pulumi.getter(name="mediaServicesAccountName") - def media_services_account_name(self) -> Optional[pulumi.Input[str]]: - return pulumi.get(self, "media_services_account_name") - - @media_services_account_name.setter - def media_services_account_name(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "media_services_account_name", value) - - @property - @pulumi.getter - def name(self) -> Optional[pulumi.Input[str]]: - return pulumi.get(self, "name") - - @name.setter - def name(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "name", value) - - @property - @pulumi.getter(name="presentationTimeRange") - def presentation_time_range(self) -> Optional[pulumi.Input['AccountFilterPresentationTimeRangeArgs']]: - return pulumi.get(self, "presentation_time_range") - - @presentation_time_range.setter - def presentation_time_range(self, value: Optional[pulumi.Input['AccountFilterPresentationTimeRangeArgs']]): - pulumi.set(self, "presentation_time_range", value) - - @property - @pulumi.getter(name="resourceGroupName") - def resource_group_name(self) -> Optional[pulumi.Input[str]]: - 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(name="trackSelections") - def track_selections(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['AccountFilterTrackSelectionArgs']]]]: - return pulumi.get(self, "track_selections") - - @track_selections.setter - def track_selections(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['AccountFilterTrackSelectionArgs']]]]): - pulumi.set(self, "track_selections", value) - - -class AccountFilter(pulumi.CustomResource): - @overload - def __init__(__self__, - resource_name: str, - opts: Optional[pulumi.ResourceOptions] = None, - first_quality_bitrate: Optional[pulumi.Input[int]] = None, - media_services_account_name: Optional[pulumi.Input[str]] = None, - name: Optional[pulumi.Input[str]] = None, - presentation_time_range: Optional[pulumi.Input[Union['AccountFilterPresentationTimeRangeArgs', 'AccountFilterPresentationTimeRangeArgsDict']]] = None, - resource_group_name: Optional[pulumi.Input[str]] = None, - track_selections: Optional[pulumi.Input[Sequence[pulumi.Input[Union['AccountFilterTrackSelectionArgs', 'AccountFilterTrackSelectionArgsDict']]]]] = None, - __props__=None): - """ - Create a AccountFilter resource with the given unique name, props, and options. - :param str resource_name: The name of the resource. - :param pulumi.ResourceOptions opts: Options for the resource. - """ - ... - @overload - def __init__(__self__, - resource_name: str, - args: AccountFilterArgs, - opts: Optional[pulumi.ResourceOptions] = None): - """ - Create a AccountFilter resource with the given unique name, props, and options. - :param str resource_name: The name of the resource. - :param AccountFilterArgs 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(AccountFilterArgs, 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, - first_quality_bitrate: Optional[pulumi.Input[int]] = None, - media_services_account_name: Optional[pulumi.Input[str]] = None, - name: Optional[pulumi.Input[str]] = None, - presentation_time_range: Optional[pulumi.Input[Union['AccountFilterPresentationTimeRangeArgs', 'AccountFilterPresentationTimeRangeArgsDict']]] = None, - resource_group_name: Optional[pulumi.Input[str]] = None, - track_selections: Optional[pulumi.Input[Sequence[pulumi.Input[Union['AccountFilterTrackSelectionArgs', 'AccountFilterTrackSelectionArgsDict']]]]] = 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__ = AccountFilterArgs.__new__(AccountFilterArgs) - - __props__.__dict__["first_quality_bitrate"] = first_quality_bitrate - if media_services_account_name is None and not opts.urn: - raise TypeError("Missing required property 'media_services_account_name'") - __props__.__dict__["media_services_account_name"] = media_services_account_name - __props__.__dict__["name"] = name - __props__.__dict__["presentation_time_range"] = presentation_time_range - 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__["track_selections"] = track_selections - super(AccountFilter, __self__).__init__( - 'azure:media/accountFilter:AccountFilter', - resource_name, - __props__, - opts) - - @staticmethod - def get(resource_name: str, - id: pulumi.Input[str], - opts: Optional[pulumi.ResourceOptions] = None, - first_quality_bitrate: Optional[pulumi.Input[int]] = None, - media_services_account_name: Optional[pulumi.Input[str]] = None, - name: Optional[pulumi.Input[str]] = None, - presentation_time_range: Optional[pulumi.Input[Union['AccountFilterPresentationTimeRangeArgs', 'AccountFilterPresentationTimeRangeArgsDict']]] = None, - resource_group_name: Optional[pulumi.Input[str]] = None, - track_selections: Optional[pulumi.Input[Sequence[pulumi.Input[Union['AccountFilterTrackSelectionArgs', 'AccountFilterTrackSelectionArgsDict']]]]] = None) -> 'AccountFilter': - """ - Get an existing AccountFilter 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. - """ - opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) - - __props__ = _AccountFilterState.__new__(_AccountFilterState) - - __props__.__dict__["first_quality_bitrate"] = first_quality_bitrate - __props__.__dict__["media_services_account_name"] = media_services_account_name - __props__.__dict__["name"] = name - __props__.__dict__["presentation_time_range"] = presentation_time_range - __props__.__dict__["resource_group_name"] = resource_group_name - __props__.__dict__["track_selections"] = track_selections - return AccountFilter(resource_name, opts=opts, __props__=__props__) - - @property - @pulumi.getter(name="firstQualityBitrate") - def first_quality_bitrate(self) -> pulumi.Output[Optional[int]]: - return pulumi.get(self, "first_quality_bitrate") - - @property - @pulumi.getter(name="mediaServicesAccountName") - def media_services_account_name(self) -> pulumi.Output[str]: - return pulumi.get(self, "media_services_account_name") - - @property - @pulumi.getter - def name(self) -> pulumi.Output[str]: - return pulumi.get(self, "name") - - @property - @pulumi.getter(name="presentationTimeRange") - def presentation_time_range(self) -> pulumi.Output[Optional['outputs.AccountFilterPresentationTimeRange']]: - return pulumi.get(self, "presentation_time_range") - - @property - @pulumi.getter(name="resourceGroupName") - def resource_group_name(self) -> pulumi.Output[str]: - return pulumi.get(self, "resource_group_name") - - @property - @pulumi.getter(name="trackSelections") - def track_selections(self) -> pulumi.Output[Optional[Sequence['outputs.AccountFilterTrackSelection']]]: - return pulumi.get(self, "track_selections") - diff --git a/sdk/python/pulumi_azure/media/outputs.py b/sdk/python/pulumi_azure/media/outputs.py deleted file mode 100644 index ecd40f0f55..0000000000 --- a/sdk/python/pulumi_azure/media/outputs.py +++ /dev/null @@ -1,140 +0,0 @@ -# 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 -from . import outputs - -__all__ = [ - 'AccountFilterPresentationTimeRange', - 'AccountFilterTrackSelection', - 'AccountFilterTrackSelectionCondition', -] - -@pulumi.output_type -class AccountFilterPresentationTimeRange(dict): - @staticmethod - def __key_warning(key: str): - suggest = None - if key == "unitTimescaleInMilliseconds": - suggest = "unit_timescale_in_milliseconds" - elif key == "endInUnits": - suggest = "end_in_units" - elif key == "forceEnd": - suggest = "force_end" - elif key == "liveBackoffInUnits": - suggest = "live_backoff_in_units" - elif key == "presentationWindowInUnits": - suggest = "presentation_window_in_units" - elif key == "startInUnits": - suggest = "start_in_units" - - if suggest: - pulumi.log.warn(f"Key '{key}' not found in AccountFilterPresentationTimeRange. Access the value via the '{suggest}' property getter instead.") - - def __getitem__(self, key: str) -> Any: - AccountFilterPresentationTimeRange.__key_warning(key) - return super().__getitem__(key) - - def get(self, key: str, default = None) -> Any: - AccountFilterPresentationTimeRange.__key_warning(key) - return super().get(key, default) - - def __init__(__self__, *, - unit_timescale_in_milliseconds: int, - end_in_units: Optional[int] = None, - force_end: Optional[bool] = None, - live_backoff_in_units: Optional[int] = None, - presentation_window_in_units: Optional[int] = None, - start_in_units: Optional[int] = None): - pulumi.set(__self__, "unit_timescale_in_milliseconds", unit_timescale_in_milliseconds) - if end_in_units is not None: - pulumi.set(__self__, "end_in_units", end_in_units) - if force_end is not None: - pulumi.set(__self__, "force_end", force_end) - if live_backoff_in_units is not None: - pulumi.set(__self__, "live_backoff_in_units", live_backoff_in_units) - if presentation_window_in_units is not None: - pulumi.set(__self__, "presentation_window_in_units", presentation_window_in_units) - if start_in_units is not None: - pulumi.set(__self__, "start_in_units", start_in_units) - - @property - @pulumi.getter(name="unitTimescaleInMilliseconds") - def unit_timescale_in_milliseconds(self) -> int: - return pulumi.get(self, "unit_timescale_in_milliseconds") - - @property - @pulumi.getter(name="endInUnits") - def end_in_units(self) -> Optional[int]: - return pulumi.get(self, "end_in_units") - - @property - @pulumi.getter(name="forceEnd") - def force_end(self) -> Optional[bool]: - return pulumi.get(self, "force_end") - - @property - @pulumi.getter(name="liveBackoffInUnits") - def live_backoff_in_units(self) -> Optional[int]: - return pulumi.get(self, "live_backoff_in_units") - - @property - @pulumi.getter(name="presentationWindowInUnits") - def presentation_window_in_units(self) -> Optional[int]: - return pulumi.get(self, "presentation_window_in_units") - - @property - @pulumi.getter(name="startInUnits") - def start_in_units(self) -> Optional[int]: - return pulumi.get(self, "start_in_units") - - -@pulumi.output_type -class AccountFilterTrackSelection(dict): - def __init__(__self__, *, - conditions: Sequence['outputs.AccountFilterTrackSelectionCondition']): - pulumi.set(__self__, "conditions", conditions) - - @property - @pulumi.getter - def conditions(self) -> Sequence['outputs.AccountFilterTrackSelectionCondition']: - return pulumi.get(self, "conditions") - - -@pulumi.output_type -class AccountFilterTrackSelectionCondition(dict): - def __init__(__self__, *, - operation: str, - property: str, - value: str): - pulumi.set(__self__, "operation", operation) - pulumi.set(__self__, "property", property) - pulumi.set(__self__, "value", value) - - @property - @pulumi.getter - def operation(self) -> str: - return pulumi.get(self, "operation") - - @property - @pulumi.getter - def value(self) -> str: - return pulumi.get(self, "value") - - @property - @pulumi.getter - def property(self) -> str: - return pulumi.get(self, "property") - - diff --git a/sdk/python/pulumi_azure/mssql/managed_instance.py b/sdk/python/pulumi_azure/mssql/managed_instance.py index 48f172c33d..f584d539e3 100644 --- a/sdk/python/pulumi_azure/mssql/managed_instance.py +++ b/sdk/python/pulumi_azure/mssql/managed_instance.py @@ -38,6 +38,7 @@ def __init__(__self__, *, name: Optional[pulumi.Input[str]] = None, proxy_override: Optional[pulumi.Input[str]] = None, public_data_endpoint_enabled: Optional[pulumi.Input[bool]] = None, + service_principal_type: Optional[pulumi.Input[str]] = None, storage_account_type: Optional[pulumi.Input[str]] = None, tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, timezone_id: Optional[pulumi.Input[str]] = None, @@ -61,6 +62,7 @@ def __init__(__self__, *, :param pulumi.Input[str] name: The name of the SQL Managed Instance. This needs to be globally unique within Azure. Changing this forces a new resource to be created. :param pulumi.Input[str] proxy_override: Specifies how the SQL Managed Instance will be accessed. Default value is `Default`. Valid values include `Default`, `Proxy`, and `Redirect`. :param pulumi.Input[bool] public_data_endpoint_enabled: Is the public data endpoint enabled? Default value is `false`. + :param pulumi.Input[str] service_principal_type: The service principal type. The only possible value is `SystemAssigned`. :param pulumi.Input[str] storage_account_type: Specifies the storage account type used to store backups for this database. Changing this forces a new resource to be created. Possible values are `GRS`, `GZRS`, `LRS`, and `ZRS`. Defaults to `GRS`. :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A mapping of tags to assign to the resource. :param pulumi.Input[str] timezone_id: The TimeZone ID that the SQL Managed Instance will be operating in. Default value is `UTC`. Changing this forces a new resource to be created. @@ -92,6 +94,8 @@ def __init__(__self__, *, pulumi.set(__self__, "proxy_override", proxy_override) if public_data_endpoint_enabled is not None: pulumi.set(__self__, "public_data_endpoint_enabled", public_data_endpoint_enabled) + if service_principal_type is not None: + pulumi.set(__self__, "service_principal_type", service_principal_type) if storage_account_type is not None: pulumi.set(__self__, "storage_account_type", storage_account_type) if tags is not None: @@ -305,6 +309,18 @@ def public_data_endpoint_enabled(self) -> Optional[pulumi.Input[bool]]: def public_data_endpoint_enabled(self, value: Optional[pulumi.Input[bool]]): pulumi.set(self, "public_data_endpoint_enabled", value) + @property + @pulumi.getter(name="servicePrincipalType") + def service_principal_type(self) -> Optional[pulumi.Input[str]]: + """ + The service principal type. The only possible value is `SystemAssigned`. + """ + return pulumi.get(self, "service_principal_type") + + @service_principal_type.setter + def service_principal_type(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "service_principal_type", value) + @property @pulumi.getter(name="storageAccountType") def storage_account_type(self) -> Optional[pulumi.Input[str]]: @@ -372,6 +388,7 @@ def __init__(__self__, *, proxy_override: Optional[pulumi.Input[str]] = None, public_data_endpoint_enabled: Optional[pulumi.Input[bool]] = None, resource_group_name: Optional[pulumi.Input[str]] = None, + service_principal_type: Optional[pulumi.Input[str]] = None, sku_name: Optional[pulumi.Input[str]] = None, storage_account_type: Optional[pulumi.Input[str]] = None, storage_size_in_gb: Optional[pulumi.Input[int]] = None, @@ -397,6 +414,7 @@ def __init__(__self__, *, :param pulumi.Input[str] proxy_override: Specifies how the SQL Managed Instance will be accessed. Default value is `Default`. Valid values include `Default`, `Proxy`, and `Redirect`. :param pulumi.Input[bool] public_data_endpoint_enabled: Is the public data endpoint enabled? Default value is `false`. :param pulumi.Input[str] resource_group_name: The name of the resource group in which to create the SQL Managed Instance. Changing this forces a new resource to be created. + :param pulumi.Input[str] service_principal_type: The service principal type. The only possible value is `SystemAssigned`. :param pulumi.Input[str] sku_name: Specifies the SKU Name for the SQL Managed Instance. Valid values include `GP_Gen4`, `GP_Gen5`, `GP_Gen8IM`, `GP_Gen8IH`, `BC_Gen4`, `BC_Gen5`, `BC_Gen8IM` or `BC_Gen8IH`. :param pulumi.Input[str] storage_account_type: Specifies the storage account type used to store backups for this database. Changing this forces a new resource to be created. Possible values are `GRS`, `GZRS`, `LRS`, and `ZRS`. Defaults to `GRS`. :param pulumi.Input[int] storage_size_in_gb: Maximum storage space for the SQL Managed instance. This should be a multiple of 32 (GB). @@ -436,6 +454,8 @@ def __init__(__self__, *, pulumi.set(__self__, "public_data_endpoint_enabled", public_data_endpoint_enabled) if resource_group_name is not None: pulumi.set(__self__, "resource_group_name", resource_group_name) + if service_principal_type is not None: + pulumi.set(__self__, "service_principal_type", service_principal_type) if sku_name is not None: pulumi.set(__self__, "sku_name", sku_name) if storage_account_type is not None: @@ -633,6 +653,18 @@ def resource_group_name(self) -> Optional[pulumi.Input[str]]: def resource_group_name(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "resource_group_name", value) + @property + @pulumi.getter(name="servicePrincipalType") + def service_principal_type(self) -> Optional[pulumi.Input[str]]: + """ + The service principal type. The only possible value is `SystemAssigned`. + """ + return pulumi.get(self, "service_principal_type") + + @service_principal_type.setter + def service_principal_type(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "service_principal_type", value) + @property @pulumi.getter(name="skuName") def sku_name(self) -> Optional[pulumi.Input[str]]: @@ -748,6 +780,7 @@ def __init__(__self__, proxy_override: Optional[pulumi.Input[str]] = None, public_data_endpoint_enabled: Optional[pulumi.Input[bool]] = None, resource_group_name: Optional[pulumi.Input[str]] = None, + service_principal_type: Optional[pulumi.Input[str]] = None, sku_name: Optional[pulumi.Input[str]] = None, storage_account_type: Optional[pulumi.Input[str]] = None, storage_size_in_gb: Optional[pulumi.Input[int]] = None, @@ -785,6 +818,7 @@ def __init__(__self__, :param pulumi.Input[str] proxy_override: Specifies how the SQL Managed Instance will be accessed. Default value is `Default`. Valid values include `Default`, `Proxy`, and `Redirect`. :param pulumi.Input[bool] public_data_endpoint_enabled: Is the public data endpoint enabled? Default value is `false`. :param pulumi.Input[str] resource_group_name: The name of the resource group in which to create the SQL Managed Instance. Changing this forces a new resource to be created. + :param pulumi.Input[str] service_principal_type: The service principal type. The only possible value is `SystemAssigned`. :param pulumi.Input[str] sku_name: Specifies the SKU Name for the SQL Managed Instance. Valid values include `GP_Gen4`, `GP_Gen5`, `GP_Gen8IM`, `GP_Gen8IH`, `BC_Gen4`, `BC_Gen5`, `BC_Gen8IM` or `BC_Gen8IH`. :param pulumi.Input[str] storage_account_type: Specifies the storage account type used to store backups for this database. Changing this forces a new resource to be created. Possible values are `GRS`, `GZRS`, `LRS`, and `ZRS`. Defaults to `GRS`. :param pulumi.Input[int] storage_size_in_gb: Maximum storage space for the SQL Managed instance. This should be a multiple of 32 (GB). @@ -841,6 +875,7 @@ def _internal_init(__self__, proxy_override: Optional[pulumi.Input[str]] = None, public_data_endpoint_enabled: Optional[pulumi.Input[bool]] = None, resource_group_name: Optional[pulumi.Input[str]] = None, + service_principal_type: Optional[pulumi.Input[str]] = None, sku_name: Optional[pulumi.Input[str]] = None, storage_account_type: Optional[pulumi.Input[str]] = None, storage_size_in_gb: Optional[pulumi.Input[int]] = None, @@ -879,6 +914,7 @@ def _internal_init(__self__, 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__["service_principal_type"] = service_principal_type if sku_name is None and not opts.urn: raise TypeError("Missing required property 'sku_name'") __props__.__dict__["sku_name"] = sku_name @@ -926,6 +962,7 @@ def get(resource_name: str, proxy_override: Optional[pulumi.Input[str]] = None, public_data_endpoint_enabled: Optional[pulumi.Input[bool]] = None, resource_group_name: Optional[pulumi.Input[str]] = None, + service_principal_type: Optional[pulumi.Input[str]] = None, sku_name: Optional[pulumi.Input[str]] = None, storage_account_type: Optional[pulumi.Input[str]] = None, storage_size_in_gb: Optional[pulumi.Input[int]] = None, @@ -956,6 +993,7 @@ def get(resource_name: str, :param pulumi.Input[str] proxy_override: Specifies how the SQL Managed Instance will be accessed. Default value is `Default`. Valid values include `Default`, `Proxy`, and `Redirect`. :param pulumi.Input[bool] public_data_endpoint_enabled: Is the public data endpoint enabled? Default value is `false`. :param pulumi.Input[str] resource_group_name: The name of the resource group in which to create the SQL Managed Instance. Changing this forces a new resource to be created. + :param pulumi.Input[str] service_principal_type: The service principal type. The only possible value is `SystemAssigned`. :param pulumi.Input[str] sku_name: Specifies the SKU Name for the SQL Managed Instance. Valid values include `GP_Gen4`, `GP_Gen5`, `GP_Gen8IM`, `GP_Gen8IH`, `BC_Gen4`, `BC_Gen5`, `BC_Gen8IM` or `BC_Gen8IH`. :param pulumi.Input[str] storage_account_type: Specifies the storage account type used to store backups for this database. Changing this forces a new resource to be created. Possible values are `GRS`, `GZRS`, `LRS`, and `ZRS`. Defaults to `GRS`. :param pulumi.Input[int] storage_size_in_gb: Maximum storage space for the SQL Managed instance. This should be a multiple of 32 (GB). @@ -984,6 +1022,7 @@ def get(resource_name: str, __props__.__dict__["proxy_override"] = proxy_override __props__.__dict__["public_data_endpoint_enabled"] = public_data_endpoint_enabled __props__.__dict__["resource_group_name"] = resource_group_name + __props__.__dict__["service_principal_type"] = service_principal_type __props__.__dict__["sku_name"] = sku_name __props__.__dict__["storage_account_type"] = storage_account_type __props__.__dict__["storage_size_in_gb"] = storage_size_in_gb @@ -1114,6 +1153,14 @@ def resource_group_name(self) -> pulumi.Output[str]: """ return pulumi.get(self, "resource_group_name") + @property + @pulumi.getter(name="servicePrincipalType") + def service_principal_type(self) -> pulumi.Output[Optional[str]]: + """ + The service principal type. The only possible value is `SystemAssigned`. + """ + return pulumi.get(self, "service_principal_type") + @property @pulumi.getter(name="skuName") def sku_name(self) -> pulumi.Output[str]: diff --git a/sdk/python/pulumi_azure/servicebus/queue.py b/sdk/python/pulumi_azure/servicebus/queue.py index c3c9a9d11e..7e2f8840ac 100644 --- a/sdk/python/pulumi_azure/servicebus/queue.py +++ b/sdk/python/pulumi_azure/servicebus/queue.py @@ -40,10 +40,10 @@ def __init__(__self__, *, """ The set of arguments for constructing a Queue resource. :param pulumi.Input[str] namespace_id: The ID of the ServiceBus Namespace to create this queue in. Changing this forces a new resource to be created. - :param pulumi.Input[str] auto_delete_on_idle: The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. Defaults to `P10675199DT2H48M5.4775807S`. + :param pulumi.Input[str] auto_delete_on_idle: The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. :param pulumi.Input[bool] batched_operations_enabled: Boolean flag which controls whether server-side batched operations are enabled. Defaults to `true`. :param pulumi.Input[bool] dead_lettering_on_message_expiration: Boolean flag which controls whether the Queue has dead letter support when a message expires. Defaults to `false`. - :param pulumi.Input[str] default_message_ttl: The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. Defaults to `P10675199DT2H48M5.4775807S`. + :param pulumi.Input[str] default_message_ttl: The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. :param pulumi.Input[str] duplicate_detection_history_time_window: The ISO 8601 timespan duration during which duplicates can be detected. Defaults to `PT10M` (10 Minutes). :param pulumi.Input[bool] express_enabled: Boolean flag which controls whether Express Entities are enabled. An express queue holds a message in memory temporarily before writing it to persistent storage. Defaults to `false` for Basic and Standard. For Premium, it MUST be set to `false`. @@ -52,8 +52,8 @@ def __init__(__self__, *, :param pulumi.Input[str] forward_to: The name of a Queue or Topic to automatically forward messages to. Please [see the documentation](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-auto-forwarding) for more information. :param pulumi.Input[str] lock_duration: The ISO 8601 timespan duration of a peek-lock; that is, the amount of time that the message is locked for other receivers. Maximum value is 5 minutes. Defaults to `PT1M` (1 Minute). :param pulumi.Input[int] max_delivery_count: Integer value which controls when a message is automatically dead lettered. Defaults to `10`. - :param pulumi.Input[int] max_message_size_in_kilobytes: Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). Defaults to `256`. - :param pulumi.Input[int] max_size_in_megabytes: Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). Defaults to `5120`. + :param pulumi.Input[int] max_message_size_in_kilobytes: Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). + :param pulumi.Input[int] max_size_in_megabytes: Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). :param pulumi.Input[str] name: Specifies the name of the ServiceBus Queue resource. Changing this forces a new resource to be created. :param pulumi.Input[bool] partitioning_enabled: Boolean flag which controls whether to enable the queue to be partitioned across multiple message brokers. Changing this forces a new resource to be created. Defaults to `false` for Basic and Standard. @@ -114,7 +114,7 @@ def namespace_id(self, value: pulumi.Input[str]): @pulumi.getter(name="autoDeleteOnIdle") def auto_delete_on_idle(self) -> Optional[pulumi.Input[str]]: """ - The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. Defaults to `P10675199DT2H48M5.4775807S`. + The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. """ return pulumi.get(self, "auto_delete_on_idle") @@ -150,7 +150,7 @@ def dead_lettering_on_message_expiration(self, value: Optional[pulumi.Input[bool @pulumi.getter(name="defaultMessageTtl") def default_message_ttl(self) -> Optional[pulumi.Input[str]]: """ - The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. Defaults to `P10675199DT2H48M5.4775807S`. + The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. """ return pulumi.get(self, "default_message_ttl") @@ -236,7 +236,7 @@ def max_delivery_count(self, value: Optional[pulumi.Input[int]]): @pulumi.getter(name="maxMessageSizeInKilobytes") def max_message_size_in_kilobytes(self) -> Optional[pulumi.Input[int]]: """ - Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). Defaults to `256`. + Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). """ return pulumi.get(self, "max_message_size_in_kilobytes") @@ -248,7 +248,7 @@ def max_message_size_in_kilobytes(self, value: Optional[pulumi.Input[int]]): @pulumi.getter(name="maxSizeInMegabytes") def max_size_in_megabytes(self) -> Optional[pulumi.Input[int]]: """ - Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). Defaults to `5120`. + Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). """ return pulumi.get(self, "max_size_in_megabytes") @@ -344,10 +344,10 @@ def __init__(__self__, *, status: Optional[pulumi.Input[str]] = None): """ Input properties used for looking up and filtering Queue resources. - :param pulumi.Input[str] auto_delete_on_idle: The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. Defaults to `P10675199DT2H48M5.4775807S`. + :param pulumi.Input[str] auto_delete_on_idle: The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. :param pulumi.Input[bool] batched_operations_enabled: Boolean flag which controls whether server-side batched operations are enabled. Defaults to `true`. :param pulumi.Input[bool] dead_lettering_on_message_expiration: Boolean flag which controls whether the Queue has dead letter support when a message expires. Defaults to `false`. - :param pulumi.Input[str] default_message_ttl: The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. Defaults to `P10675199DT2H48M5.4775807S`. + :param pulumi.Input[str] default_message_ttl: The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. :param pulumi.Input[str] duplicate_detection_history_time_window: The ISO 8601 timespan duration during which duplicates can be detected. Defaults to `PT10M` (10 Minutes). :param pulumi.Input[bool] express_enabled: Boolean flag which controls whether Express Entities are enabled. An express queue holds a message in memory temporarily before writing it to persistent storage. Defaults to `false` for Basic and Standard. For Premium, it MUST be set to `false`. @@ -356,8 +356,8 @@ def __init__(__self__, *, :param pulumi.Input[str] forward_to: The name of a Queue or Topic to automatically forward messages to. Please [see the documentation](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-auto-forwarding) for more information. :param pulumi.Input[str] lock_duration: The ISO 8601 timespan duration of a peek-lock; that is, the amount of time that the message is locked for other receivers. Maximum value is 5 minutes. Defaults to `PT1M` (1 Minute). :param pulumi.Input[int] max_delivery_count: Integer value which controls when a message is automatically dead lettered. Defaults to `10`. - :param pulumi.Input[int] max_message_size_in_kilobytes: Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). Defaults to `256`. - :param pulumi.Input[int] max_size_in_megabytes: Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). Defaults to `5120`. + :param pulumi.Input[int] max_message_size_in_kilobytes: Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). + :param pulumi.Input[int] max_size_in_megabytes: Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). :param pulumi.Input[str] name: Specifies the name of the ServiceBus Queue resource. Changing this forces a new resource to be created. :param pulumi.Input[str] namespace_id: The ID of the ServiceBus Namespace to create this queue in. Changing this forces a new resource to be created. :param pulumi.Input[bool] partitioning_enabled: Boolean flag which controls whether to enable the queue to be partitioned across multiple message brokers. Changing this forces a new resource to be created. Defaults to `false` for Basic and Standard. @@ -412,7 +412,7 @@ def __init__(__self__, *, @pulumi.getter(name="autoDeleteOnIdle") def auto_delete_on_idle(self) -> Optional[pulumi.Input[str]]: """ - The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. Defaults to `P10675199DT2H48M5.4775807S`. + The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. """ return pulumi.get(self, "auto_delete_on_idle") @@ -448,7 +448,7 @@ def dead_lettering_on_message_expiration(self, value: Optional[pulumi.Input[bool @pulumi.getter(name="defaultMessageTtl") def default_message_ttl(self) -> Optional[pulumi.Input[str]]: """ - The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. Defaults to `P10675199DT2H48M5.4775807S`. + The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. """ return pulumi.get(self, "default_message_ttl") @@ -534,7 +534,7 @@ def max_delivery_count(self, value: Optional[pulumi.Input[int]]): @pulumi.getter(name="maxMessageSizeInKilobytes") def max_message_size_in_kilobytes(self) -> Optional[pulumi.Input[int]]: """ - Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). Defaults to `256`. + Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). """ return pulumi.get(self, "max_message_size_in_kilobytes") @@ -546,7 +546,7 @@ def max_message_size_in_kilobytes(self, value: Optional[pulumi.Input[int]]): @pulumi.getter(name="maxSizeInMegabytes") def max_size_in_megabytes(self) -> Optional[pulumi.Input[int]]: """ - Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). Defaults to `5120`. + Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). """ return pulumi.get(self, "max_size_in_megabytes") @@ -707,10 +707,10 @@ def __init__(__self__, :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[str] auto_delete_on_idle: The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. Defaults to `P10675199DT2H48M5.4775807S`. + :param pulumi.Input[str] auto_delete_on_idle: The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. :param pulumi.Input[bool] batched_operations_enabled: Boolean flag which controls whether server-side batched operations are enabled. Defaults to `true`. :param pulumi.Input[bool] dead_lettering_on_message_expiration: Boolean flag which controls whether the Queue has dead letter support when a message expires. Defaults to `false`. - :param pulumi.Input[str] default_message_ttl: The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. Defaults to `P10675199DT2H48M5.4775807S`. + :param pulumi.Input[str] default_message_ttl: The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. :param pulumi.Input[str] duplicate_detection_history_time_window: The ISO 8601 timespan duration during which duplicates can be detected. Defaults to `PT10M` (10 Minutes). :param pulumi.Input[bool] express_enabled: Boolean flag which controls whether Express Entities are enabled. An express queue holds a message in memory temporarily before writing it to persistent storage. Defaults to `false` for Basic and Standard. For Premium, it MUST be set to `false`. @@ -719,8 +719,8 @@ def __init__(__self__, :param pulumi.Input[str] forward_to: The name of a Queue or Topic to automatically forward messages to. Please [see the documentation](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-auto-forwarding) for more information. :param pulumi.Input[str] lock_duration: The ISO 8601 timespan duration of a peek-lock; that is, the amount of time that the message is locked for other receivers. Maximum value is 5 minutes. Defaults to `PT1M` (1 Minute). :param pulumi.Input[int] max_delivery_count: Integer value which controls when a message is automatically dead lettered. Defaults to `10`. - :param pulumi.Input[int] max_message_size_in_kilobytes: Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). Defaults to `256`. - :param pulumi.Input[int] max_size_in_megabytes: Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). Defaults to `5120`. + :param pulumi.Input[int] max_message_size_in_kilobytes: Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). + :param pulumi.Input[int] max_size_in_megabytes: Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). :param pulumi.Input[str] name: Specifies the name of the ServiceBus Queue resource. Changing this forces a new resource to be created. :param pulumi.Input[str] namespace_id: The ID of the ServiceBus Namespace to create this queue in. Changing this forces a new resource to be created. :param pulumi.Input[bool] partitioning_enabled: Boolean flag which controls whether to enable the queue to be partitioned across multiple message brokers. Changing this forces a new resource to be created. Defaults to `false` for Basic and Standard. @@ -873,10 +873,10 @@ 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] auto_delete_on_idle: The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. Defaults to `P10675199DT2H48M5.4775807S`. + :param pulumi.Input[str] auto_delete_on_idle: The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. :param pulumi.Input[bool] batched_operations_enabled: Boolean flag which controls whether server-side batched operations are enabled. Defaults to `true`. :param pulumi.Input[bool] dead_lettering_on_message_expiration: Boolean flag which controls whether the Queue has dead letter support when a message expires. Defaults to `false`. - :param pulumi.Input[str] default_message_ttl: The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. Defaults to `P10675199DT2H48M5.4775807S`. + :param pulumi.Input[str] default_message_ttl: The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. :param pulumi.Input[str] duplicate_detection_history_time_window: The ISO 8601 timespan duration during which duplicates can be detected. Defaults to `PT10M` (10 Minutes). :param pulumi.Input[bool] express_enabled: Boolean flag which controls whether Express Entities are enabled. An express queue holds a message in memory temporarily before writing it to persistent storage. Defaults to `false` for Basic and Standard. For Premium, it MUST be set to `false`. @@ -885,8 +885,8 @@ def get(resource_name: str, :param pulumi.Input[str] forward_to: The name of a Queue or Topic to automatically forward messages to. Please [see the documentation](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-auto-forwarding) for more information. :param pulumi.Input[str] lock_duration: The ISO 8601 timespan duration of a peek-lock; that is, the amount of time that the message is locked for other receivers. Maximum value is 5 minutes. Defaults to `PT1M` (1 Minute). :param pulumi.Input[int] max_delivery_count: Integer value which controls when a message is automatically dead lettered. Defaults to `10`. - :param pulumi.Input[int] max_message_size_in_kilobytes: Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). Defaults to `256`. - :param pulumi.Input[int] max_size_in_megabytes: Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). Defaults to `5120`. + :param pulumi.Input[int] max_message_size_in_kilobytes: Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). + :param pulumi.Input[int] max_size_in_megabytes: Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). :param pulumi.Input[str] name: Specifies the name of the ServiceBus Queue resource. Changing this forces a new resource to be created. :param pulumi.Input[str] namespace_id: The ID of the ServiceBus Namespace to create this queue in. Changing this forces a new resource to be created. :param pulumi.Input[bool] partitioning_enabled: Boolean flag which controls whether to enable the queue to be partitioned across multiple message brokers. Changing this forces a new resource to be created. Defaults to `false` for Basic and Standard. @@ -924,9 +924,9 @@ def get(resource_name: str, @property @pulumi.getter(name="autoDeleteOnIdle") - def auto_delete_on_idle(self) -> pulumi.Output[Optional[str]]: + def auto_delete_on_idle(self) -> pulumi.Output[str]: """ - The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. Defaults to `P10675199DT2H48M5.4775807S`. + The ISO 8601 timespan duration of the idle interval after which the Queue is automatically deleted, minimum of 5 minutes. """ return pulumi.get(self, "auto_delete_on_idle") @@ -948,9 +948,9 @@ def dead_lettering_on_message_expiration(self) -> pulumi.Output[Optional[bool]]: @property @pulumi.getter(name="defaultMessageTtl") - def default_message_ttl(self) -> pulumi.Output[Optional[str]]: + def default_message_ttl(self) -> pulumi.Output[str]: """ - The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. Defaults to `P10675199DT2H48M5.4775807S`. + The ISO 8601 timespan duration of the TTL of messages sent to this queue. This is the default value used when TTL is not set on message itself. """ return pulumi.get(self, "default_message_ttl") @@ -1008,7 +1008,7 @@ def max_delivery_count(self) -> pulumi.Output[Optional[int]]: @pulumi.getter(name="maxMessageSizeInKilobytes") def max_message_size_in_kilobytes(self) -> pulumi.Output[int]: """ - Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). Defaults to `256`. + Integer value which controls the maximum size of a message allowed on the queue for Premium SKU. For supported values see the "Large messages support" section of [this document](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-premium-messaging#large-messages-support-preview). """ return pulumi.get(self, "max_message_size_in_kilobytes") @@ -1016,7 +1016,7 @@ def max_message_size_in_kilobytes(self) -> pulumi.Output[int]: @pulumi.getter(name="maxSizeInMegabytes") def max_size_in_megabytes(self) -> pulumi.Output[int]: """ - Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). Defaults to `5120`. + Integer value which controls the size of memory allocated for the queue. For supported values see the "Queue or topic size" section of [Service Bus Quotas](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quotas). """ return pulumi.get(self, "max_size_in_megabytes") diff --git a/sdk/python/pulumi_azure/waf/_inputs.py b/sdk/python/pulumi_azure/waf/_inputs.py index 5c605c1ad8..8aa33bb4c0 100644 --- a/sdk/python/pulumi_azure/waf/_inputs.py +++ b/sdk/python/pulumi_azure/waf/_inputs.py @@ -884,6 +884,9 @@ class PolicyPolicySettingsArgsDict(TypedDict): Is Request Body Inspection enabled? Defaults to `true`. """ request_body_enforcement: NotRequired[pulumi.Input[bool]] + """ + Whether the firewall should block a request with body size greater then `max_request_body_size_in_kb`. Defaults to `true`. + """ request_body_inspect_limit_in_kb: NotRequired[pulumi.Input[int]] """ Specifies the maximum request body inspection limit in KB for the Web Application Firewall. Defaults to `128`. @@ -911,6 +914,7 @@ def __init__(__self__, *, :param pulumi.Input[int] max_request_body_size_in_kb: The Maximum Request Body Size in KB. Accepted values are in the range `8` to `2000`. Defaults to `128`. :param pulumi.Input[str] mode: Describes if it is in detection mode or prevention mode at the policy level. Valid values are `Detection` and `Prevention`. Defaults to `Prevention`. :param pulumi.Input[bool] request_body_check: Is Request Body Inspection enabled? Defaults to `true`. + :param pulumi.Input[bool] request_body_enforcement: Whether the firewall should block a request with body size greater then `max_request_body_size_in_kb`. Defaults to `true`. :param pulumi.Input[int] request_body_inspect_limit_in_kb: Specifies the maximum request body inspection limit in KB for the Web Application Firewall. Defaults to `128`. """ if enabled is not None: @@ -1019,6 +1023,9 @@ def request_body_check(self, value: Optional[pulumi.Input[bool]]): @property @pulumi.getter(name="requestBodyEnforcement") def request_body_enforcement(self) -> Optional[pulumi.Input[bool]]: + """ + Whether the firewall should block a request with body size greater then `max_request_body_size_in_kb`. Defaults to `true`. + """ return pulumi.get(self, "request_body_enforcement") @request_body_enforcement.setter diff --git a/sdk/python/pulumi_azure/waf/outputs.py b/sdk/python/pulumi_azure/waf/outputs.py index a0dd60801c..cba0892b70 100644 --- a/sdk/python/pulumi_azure/waf/outputs.py +++ b/sdk/python/pulumi_azure/waf/outputs.py @@ -728,6 +728,7 @@ def __init__(__self__, *, :param int max_request_body_size_in_kb: The Maximum Request Body Size in KB. Accepted values are in the range `8` to `2000`. Defaults to `128`. :param str mode: Describes if it is in detection mode or prevention mode at the policy level. Valid values are `Detection` and `Prevention`. Defaults to `Prevention`. :param bool request_body_check: Is Request Body Inspection enabled? Defaults to `true`. + :param bool request_body_enforcement: Whether the firewall should block a request with body size greater then `max_request_body_size_in_kb`. Defaults to `true`. :param int request_body_inspect_limit_in_kb: Specifies the maximum request body inspection limit in KB for the Web Application Firewall. Defaults to `128`. """ if enabled is not None: @@ -808,6 +809,9 @@ def request_body_check(self) -> Optional[bool]: @property @pulumi.getter(name="requestBodyEnforcement") def request_body_enforcement(self) -> Optional[bool]: + """ + Whether the firewall should block a request with body size greater then `max_request_body_size_in_kb`. Defaults to `true`. + """ return pulumi.get(self, "request_body_enforcement") @property diff --git a/upstream b/upstream index 94854f1ffc..b0dd4f834a 160000 --- a/upstream +++ b/upstream @@ -1 +1 @@ -Subproject commit 94854f1ffc2a94e0708741c23c4d4a60447203f1 +Subproject commit b0dd4f834a7cd8030acee5d2da774c53892f6905