diff --git a/examples/go.mod b/examples/go.mod index a74b7f90f8..ac1b34703a 100644 --- a/examples/go.mod +++ b/examples/go.mod @@ -179,3 +179,7 @@ require ( gopkg.in/yaml.v3 v3.0.1 // indirect lukechampine.com/frand v1.4.2 // indirect ) + +replace github.com/pulumi/pulumi/pkg/v3 => github.com/pulumi/pulumi/pkg/v3 v3.145.1-0.20250110013735-625733b7835b + +replace github.com/pulumi/pulumi/sdk/v3 => github.com/pulumi/pulumi/sdk/v3 v3.145.1-0.20250110013735-625733b7835b diff --git a/examples/go.sum b/examples/go.sum index 69a3f33354..b4138b214c 100644 --- a/examples/go.sum +++ b/examples/go.sum @@ -339,10 +339,10 @@ github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 h1:vkHw5I/plNdTr435 github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231/go.mod h1:murToZ2N9hNJzewjHBgfFdXhZKjY3z5cYC1VXk+lbFE= github.com/pulumi/esc v0.10.0 h1:jzBKzkLVW0mePeanDRfqSQoCJ5yrkux0jIwAkUxpRKE= github.com/pulumi/esc v0.10.0/go.mod h1:2Bfa+FWj/xl8CKqRTWbWgDX0SOD4opdQgvYSURTGK2c= -github.com/pulumi/pulumi/pkg/v3 v3.145.0 h1:hAhFLieunnCKuMd3GbLqE5uWQ1hpNLdl6+bCDFSF4YQ= -github.com/pulumi/pulumi/pkg/v3 v3.145.0/go.mod h1:N19IsMJ3GyYO5N2JfpsCAVk0eH1NKkF05fZGn5dnhBE= -github.com/pulumi/pulumi/sdk/v3 v3.145.0 h1:r5iOgz67RElFXJt4GVVY2SBGh5sR24mL9NOcKBiBi/k= -github.com/pulumi/pulumi/sdk/v3 v3.145.0/go.mod h1:5pZySnw3RiQKddx8orThjEFmWsXkGAY3ktKOxZj2Ym4= +github.com/pulumi/pulumi/pkg/v3 v3.145.1-0.20250110013735-625733b7835b h1:RUOA1LuVSmtCZa1KGld74RqTRXU9cRPd+45yG/4FKPc= +github.com/pulumi/pulumi/pkg/v3 v3.145.1-0.20250110013735-625733b7835b/go.mod h1:N19IsMJ3GyYO5N2JfpsCAVk0eH1NKkF05fZGn5dnhBE= +github.com/pulumi/pulumi/sdk/v3 v3.145.1-0.20250110013735-625733b7835b h1:4NuXYoN8uVy9s50Cva5p7pQOdYX3U9MS7vEuTB0DkQw= +github.com/pulumi/pulumi/sdk/v3 v3.145.1-0.20250110013735-625733b7835b/go.mod h1:5pZySnw3RiQKddx8orThjEFmWsXkGAY3ktKOxZj2Ym4= github.com/rivo/uniseg v0.1.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= github.com/rivo/uniseg v0.4.4 h1:8TfxU8dW6PdqD27gjM8MVNuicgxIjxpm4K7x4jp8sis= diff --git a/provider/cmd/pulumi-resource-azure/schema.json b/provider/cmd/pulumi-resource-azure/schema.json index f1f3a30fa4..80f5c08573 100644 --- a/provider/cmd/pulumi-resource-azure/schema.json +++ b/provider/cmd/pulumi-resource-azure/schema.json @@ -200994,7 +200994,7 @@ } }, "azure:lb/backendAddressPoolAddress:BackendAddressPoolAddress": { - "description": "Manages a Backend Address within a Backend Address Pool.\n\n\u003e **Note:** Backend Addresses can only be added to a `Standard` SKU Load Balancer.\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 = azure.network.getVirtualNetwork({\n name: \"example-network\",\n resourceGroupName: \"example-resources\",\n});\nconst exampleGetLB = azure.lb.getLB({\n name: \"example-lb\",\n resourceGroupName: \"example-resources\",\n});\nconst exampleGetBackendAddressPool = exampleGetLB.then(exampleGetLB =\u003e azure.lb.getBackendAddressPool({\n name: \"first\",\n loadbalancerId: exampleGetLB.id,\n}));\nconst exampleBackendAddressPoolAddress = new azure.lb.BackendAddressPoolAddress(\"example\", {\n name: \"example\",\n backendAddressPoolId: exampleGetBackendAddressPool.then(exampleGetBackendAddressPool =\u003e exampleGetBackendAddressPool.id),\n virtualNetworkId: example.then(example =\u003e example.id),\n ipAddress: \"10.0.0.1\",\n});\nconst backend-pool-cr = exampleGetLB.then(exampleGetLB =\u003e azure.lb.getBackendAddressPool({\n name: \"globalLBBackendPool\",\n loadbalancerId: exampleGetLB.id,\n}));\nconst example_1 = new azure.lb.BackendAddressPoolAddress(\"example-1\", {\n name: \"address1\",\n backendAddressPoolId: backend_pool_cr.then(backend_pool_cr =\u003e backend_pool_cr.id),\n backendAddressIpConfigurationId: backend_lb_R1.frontendIpConfiguration[0].id,\n});\nconst example_2 = new azure.lb.BackendAddressPoolAddress(\"example-2\", {\n name: \"address2\",\n backendAddressPoolId: backend_pool_cr.then(backend_pool_cr =\u003e backend_pool_cr.id),\n backendAddressIpConfigurationId: backend_lb_R2.frontendIpConfiguration[0].id,\n});\n```\n```python\nimport pulumi\nimport pulumi_azure as azure\n\nexample = azure.network.get_virtual_network(name=\"example-network\",\n resource_group_name=\"example-resources\")\nexample_get_lb = azure.lb.get_lb(name=\"example-lb\",\n resource_group_name=\"example-resources\")\nexample_get_backend_address_pool = azure.lb.get_backend_address_pool(name=\"first\",\n loadbalancer_id=example_get_lb.id)\nexample_backend_address_pool_address = azure.lb.BackendAddressPoolAddress(\"example\",\n name=\"example\",\n backend_address_pool_id=example_get_backend_address_pool.id,\n virtual_network_id=example.id,\n ip_address=\"10.0.0.1\")\nbackend_pool_cr = azure.lb.get_backend_address_pool(name=\"globalLBBackendPool\",\n loadbalancer_id=example_get_lb.id)\nexample_1 = azure.lb.BackendAddressPoolAddress(\"example-1\",\n name=\"address1\",\n backend_address_pool_id=backend_pool_cr.id,\n backend_address_ip_configuration_id=backend_lb__r1[\"frontendIpConfiguration\"][0][\"id\"])\nexample_2 = azure.lb.BackendAddressPoolAddress(\"example-2\",\n name=\"address2\",\n backend_address_pool_id=backend_pool_cr.id,\n backend_address_ip_configuration_id=backend_lb__r2[\"frontendIpConfiguration\"][0][\"id\"])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Azure = Pulumi.Azure;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = Azure.Network.GetVirtualNetwork.Invoke(new()\n {\n Name = \"example-network\",\n ResourceGroupName = \"example-resources\",\n });\n\n var exampleGetLB = Azure.Lb.GetLB.Invoke(new()\n {\n Name = \"example-lb\",\n ResourceGroupName = \"example-resources\",\n });\n\n var exampleGetBackendAddressPool = Azure.Lb.GetBackendAddressPool.Invoke(new()\n {\n Name = \"first\",\n LoadbalancerId = exampleGetLB.Apply(getLBResult =\u003e getLBResult.Id),\n });\n\n var exampleBackendAddressPoolAddress = new Azure.Lb.BackendAddressPoolAddress(\"example\", new()\n {\n Name = \"example\",\n BackendAddressPoolId = exampleGetBackendAddressPool.Apply(getBackendAddressPoolResult =\u003e getBackendAddressPoolResult.Id),\n VirtualNetworkId = example.Apply(getVirtualNetworkResult =\u003e getVirtualNetworkResult.Id),\n IpAddress = \"10.0.0.1\",\n });\n\n var backend_pool_cr = Azure.Lb.GetBackendAddressPool.Invoke(new()\n {\n Name = \"globalLBBackendPool\",\n LoadbalancerId = exampleGetLB.Apply(getLBResult =\u003e getLBResult.Id),\n });\n\n var example_1 = new Azure.Lb.BackendAddressPoolAddress(\"example-1\", new()\n {\n Name = \"address1\",\n BackendAddressPoolId = backend_pool_cr.Apply(backend_pool_cr =\u003e backend_pool_cr.Apply(getBackendAddressPoolResult =\u003e getBackendAddressPoolResult.Id)),\n BackendAddressIpConfigurationId = backend_lb_R1.FrontendIpConfiguration[0].Id,\n });\n\n var example_2 = new Azure.Lb.BackendAddressPoolAddress(\"example-2\", new()\n {\n Name = \"address2\",\n BackendAddressPoolId = backend_pool_cr.Apply(backend_pool_cr =\u003e backend_pool_cr.Apply(getBackendAddressPoolResult =\u003e getBackendAddressPoolResult.Id)),\n BackendAddressIpConfigurationId = backend_lb_R2.FrontendIpConfiguration[0].Id,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/lb\"\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/network\"\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 := network.LookupVirtualNetwork(ctx, \u0026network.LookupVirtualNetworkArgs{\n\t\t\tName: \"example-network\",\n\t\t\tResourceGroupName: \"example-resources\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleGetLB, err := lb.GetLB(ctx, \u0026lb.GetLBArgs{\n\t\t\tName: \"example-lb\",\n\t\t\tResourceGroupName: \"example-resources\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleGetBackendAddressPool, err := lb.LookupBackendAddressPool(ctx, \u0026lb.LookupBackendAddressPoolArgs{\n\t\t\tName: \"first\",\n\t\t\tLoadbalancerId: exampleGetLB.Id,\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = lb.NewBackendAddressPoolAddress(ctx, \"example\", \u0026lb.BackendAddressPoolAddressArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tBackendAddressPoolId: pulumi.String(exampleGetBackendAddressPool.Id),\n\t\t\tVirtualNetworkId: pulumi.String(example.Id),\n\t\t\tIpAddress: pulumi.String(\"10.0.0.1\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tbackend_pool_cr, err := lb.LookupBackendAddressPool(ctx, \u0026lb.LookupBackendAddressPoolArgs{\n\t\t\tName: \"globalLBBackendPool\",\n\t\t\tLoadbalancerId: exampleGetLB.Id,\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = lb.NewBackendAddressPoolAddress(ctx, \"example-1\", \u0026lb.BackendAddressPoolAddressArgs{\n\t\t\tName: pulumi.String(\"address1\"),\n\t\t\tBackendAddressPoolId: pulumi.String(backend_pool_cr.Id),\n\t\t\tBackendAddressIpConfigurationId: pulumi.Any(backend_lb_R1.FrontendIpConfiguration[0].Id),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = lb.NewBackendAddressPoolAddress(ctx, \"example-2\", \u0026lb.BackendAddressPoolAddressArgs{\n\t\t\tName: pulumi.String(\"address2\"),\n\t\t\tBackendAddressPoolId: pulumi.String(backend_pool_cr.Id),\n\t\t\tBackendAddressIpConfigurationId: pulumi.Any(backend_lb_R2.FrontendIpConfiguration[0].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.network.NetworkFunctions;\nimport com.pulumi.azure.network.inputs.GetVirtualNetworkArgs;\nimport com.pulumi.azure.lb.LbFunctions;\nimport com.pulumi.azure.lb.inputs.GetLBArgs;\nimport com.pulumi.azure.lb.inputs.GetBackendAddressPoolArgs;\nimport com.pulumi.azure.lb.BackendAddressPoolAddress;\nimport com.pulumi.azure.lb.BackendAddressPoolAddressArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = NetworkFunctions.getVirtualNetwork(GetVirtualNetworkArgs.builder()\n .name(\"example-network\")\n .resourceGroupName(\"example-resources\")\n .build());\n\n final var exampleGetLB = LbFunctions.getLB(GetLBArgs.builder()\n .name(\"example-lb\")\n .resourceGroupName(\"example-resources\")\n .build());\n\n final var exampleGetBackendAddressPool = LbFunctions.getBackendAddressPool(GetBackendAddressPoolArgs.builder()\n .name(\"first\")\n .loadbalancerId(exampleGetLB.applyValue(getLBResult -\u003e getLBResult.id()))\n .build());\n\n var exampleBackendAddressPoolAddress = new BackendAddressPoolAddress(\"exampleBackendAddressPoolAddress\", BackendAddressPoolAddressArgs.builder()\n .name(\"example\")\n .backendAddressPoolId(exampleGetBackendAddressPool.applyValue(getBackendAddressPoolResult -\u003e getBackendAddressPoolResult.id()))\n .virtualNetworkId(example.applyValue(getVirtualNetworkResult -\u003e getVirtualNetworkResult.id()))\n .ipAddress(\"10.0.0.1\")\n .build());\n\n final var backend-pool-cr = LbFunctions.getBackendAddressPool(GetBackendAddressPoolArgs.builder()\n .name(\"globalLBBackendPool\")\n .loadbalancerId(exampleGetLB.applyValue(getLBResult -\u003e getLBResult.id()))\n .build());\n\n var example_1 = new BackendAddressPoolAddress(\"example-1\", BackendAddressPoolAddressArgs.builder()\n .name(\"address1\")\n .backendAddressPoolId(backend_pool_cr.id())\n .backendAddressIpConfigurationId(backend_lb_R1.frontendIpConfiguration()[0].id())\n .build());\n\n var example_2 = new BackendAddressPoolAddress(\"example-2\", BackendAddressPoolAddressArgs.builder()\n .name(\"address2\")\n .backendAddressPoolId(backend_pool_cr.id())\n .backendAddressIpConfigurationId(backend_lb_R2.frontendIpConfiguration()[0].id())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleBackendAddressPoolAddress:\n type: azure:lb:BackendAddressPoolAddress\n name: example\n properties:\n name: example\n backendAddressPoolId: ${exampleGetBackendAddressPool.id}\n virtualNetworkId: ${example.id}\n ipAddress: 10.0.0.1\n example-1:\n type: azure:lb:BackendAddressPoolAddress\n properties:\n name: address1\n backendAddressPoolId: ${[\"backend-pool-cr\"].id}\n backendAddressIpConfigurationId: ${[\"backend-lb-R1\"].frontendIpConfiguration[0].id}\n example-2:\n type: azure:lb:BackendAddressPoolAddress\n properties:\n name: address2\n backendAddressPoolId: ${[\"backend-pool-cr\"].id}\n backendAddressIpConfigurationId: ${[\"backend-lb-R2\"].frontendIpConfiguration[0].id}\nvariables:\n example:\n fn::invoke:\n function: azure:network:getVirtualNetwork\n arguments:\n name: example-network\n resourceGroupName: example-resources\n exampleGetLB:\n fn::invoke:\n function: azure:lb:getLB\n arguments:\n name: example-lb\n resourceGroupName: example-resources\n exampleGetBackendAddressPool:\n fn::invoke:\n function: azure:lb:getBackendAddressPool\n arguments:\n name: first\n loadbalancerId: ${exampleGetLB.id}\n backend-pool-cr:\n fn::invoke:\n function: azure:lb:getBackendAddressPool\n arguments:\n name: globalLBBackendPool\n loadbalancerId: ${exampleGetLB.id}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nBackend Address Pool Addresses can be imported using the `resource id`, e.g.\n\n```sh\n$ pulumi import azure:lb/backendAddressPoolAddress:BackendAddressPoolAddress example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Network/loadBalancers/loadBalancer1/backendAddressPools/backendAddressPool1/addresses/address1\n```\n\n", + "description": "Manages a Backend Address within a Backend Address Pool.\n\n\u003e **Note:** Backend Addresses can only be added to a `Standard` SKU Load Balancer.\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 = azure.network.getVirtualNetwork({\n name: \"example-network\",\n resourceGroupName: \"example-resources\",\n});\nconst exampleGetLB = azure.lb.getLB({\n name: \"example-lb\",\n resourceGroupName: \"example-resources\",\n});\nconst exampleGetBackendAddressPool = exampleGetLB.then(exampleGetLB =\u003e azure.lb.getBackendAddressPool({\n name: \"first\",\n loadbalancerId: exampleGetLB.id,\n}));\nconst exampleBackendAddressPoolAddress = new azure.lb.BackendAddressPoolAddress(\"example\", {\n name: \"example\",\n backendAddressPoolId: exampleGetBackendAddressPool.then(exampleGetBackendAddressPool =\u003e exampleGetBackendAddressPool.id),\n virtualNetworkId: example.then(example =\u003e example.id),\n ipAddress: \"10.0.0.1\",\n});\nconst backend_pool_cr = exampleGetLB.then(exampleGetLB =\u003e azure.lb.getBackendAddressPool({\n name: \"globalLBBackendPool\",\n loadbalancerId: exampleGetLB.id,\n}));\nconst example_1 = new azure.lb.BackendAddressPoolAddress(\"example-1\", {\n name: \"address1\",\n backendAddressPoolId: backend_pool_cr.then(backend_pool_cr =\u003e backend_pool_cr.id),\n backendAddressIpConfigurationId: backend_lb_R1.frontendIpConfiguration[0].id,\n});\nconst example_2 = new azure.lb.BackendAddressPoolAddress(\"example-2\", {\n name: \"address2\",\n backendAddressPoolId: backend_pool_cr.then(backend_pool_cr =\u003e backend_pool_cr.id),\n backendAddressIpConfigurationId: backend_lb_R2.frontendIpConfiguration[0].id,\n});\n```\n```python\nimport pulumi\nimport pulumi_azure as azure\n\nexample = azure.network.get_virtual_network(name=\"example-network\",\n resource_group_name=\"example-resources\")\nexample_get_lb = azure.lb.get_lb(name=\"example-lb\",\n resource_group_name=\"example-resources\")\nexample_get_backend_address_pool = azure.lb.get_backend_address_pool(name=\"first\",\n loadbalancer_id=example_get_lb.id)\nexample_backend_address_pool_address = azure.lb.BackendAddressPoolAddress(\"example\",\n name=\"example\",\n backend_address_pool_id=example_get_backend_address_pool.id,\n virtual_network_id=example.id,\n ip_address=\"10.0.0.1\")\nbackend_pool_cr = azure.lb.get_backend_address_pool(name=\"globalLBBackendPool\",\n loadbalancer_id=example_get_lb.id)\nexample_1 = azure.lb.BackendAddressPoolAddress(\"example-1\",\n name=\"address1\",\n backend_address_pool_id=backend_pool_cr.id,\n backend_address_ip_configuration_id=backend_lb__r1[\"frontendIpConfiguration\"][0][\"id\"])\nexample_2 = azure.lb.BackendAddressPoolAddress(\"example-2\",\n name=\"address2\",\n backend_address_pool_id=backend_pool_cr.id,\n backend_address_ip_configuration_id=backend_lb__r2[\"frontendIpConfiguration\"][0][\"id\"])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Azure = Pulumi.Azure;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = Azure.Network.GetVirtualNetwork.Invoke(new()\n {\n Name = \"example-network\",\n ResourceGroupName = \"example-resources\",\n });\n\n var exampleGetLB = Azure.Lb.GetLB.Invoke(new()\n {\n Name = \"example-lb\",\n ResourceGroupName = \"example-resources\",\n });\n\n var exampleGetBackendAddressPool = Azure.Lb.GetBackendAddressPool.Invoke(new()\n {\n Name = \"first\",\n LoadbalancerId = exampleGetLB.Apply(getLBResult =\u003e getLBResult.Id),\n });\n\n var exampleBackendAddressPoolAddress = new Azure.Lb.BackendAddressPoolAddress(\"example\", new()\n {\n Name = \"example\",\n BackendAddressPoolId = exampleGetBackendAddressPool.Apply(getBackendAddressPoolResult =\u003e getBackendAddressPoolResult.Id),\n VirtualNetworkId = example.Apply(getVirtualNetworkResult =\u003e getVirtualNetworkResult.Id),\n IpAddress = \"10.0.0.1\",\n });\n\n var backend_pool_cr = Azure.Lb.GetBackendAddressPool.Invoke(new()\n {\n Name = \"globalLBBackendPool\",\n LoadbalancerId = exampleGetLB.Apply(getLBResult =\u003e getLBResult.Id),\n });\n\n var example_1 = new Azure.Lb.BackendAddressPoolAddress(\"example-1\", new()\n {\n Name = \"address1\",\n BackendAddressPoolId = backend_pool_cr.Apply(backend_pool_cr =\u003e backend_pool_cr.Apply(getBackendAddressPoolResult =\u003e getBackendAddressPoolResult.Id)),\n BackendAddressIpConfigurationId = backend_lb_R1.FrontendIpConfiguration[0].Id,\n });\n\n var example_2 = new Azure.Lb.BackendAddressPoolAddress(\"example-2\", new()\n {\n Name = \"address2\",\n BackendAddressPoolId = backend_pool_cr.Apply(backend_pool_cr =\u003e backend_pool_cr.Apply(getBackendAddressPoolResult =\u003e getBackendAddressPoolResult.Id)),\n BackendAddressIpConfigurationId = backend_lb_R2.FrontendIpConfiguration[0].Id,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/lb\"\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/network\"\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 := network.LookupVirtualNetwork(ctx, \u0026network.LookupVirtualNetworkArgs{\n\t\t\tName: \"example-network\",\n\t\t\tResourceGroupName: \"example-resources\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleGetLB, err := lb.GetLB(ctx, \u0026lb.GetLBArgs{\n\t\t\tName: \"example-lb\",\n\t\t\tResourceGroupName: \"example-resources\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleGetBackendAddressPool, err := lb.LookupBackendAddressPool(ctx, \u0026lb.LookupBackendAddressPoolArgs{\n\t\t\tName: \"first\",\n\t\t\tLoadbalancerId: exampleGetLB.Id,\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = lb.NewBackendAddressPoolAddress(ctx, \"example\", \u0026lb.BackendAddressPoolAddressArgs{\n\t\t\tName: pulumi.String(\"example\"),\n\t\t\tBackendAddressPoolId: pulumi.String(exampleGetBackendAddressPool.Id),\n\t\t\tVirtualNetworkId: pulumi.String(example.Id),\n\t\t\tIpAddress: pulumi.String(\"10.0.0.1\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tbackend_pool_cr, err := lb.LookupBackendAddressPool(ctx, \u0026lb.LookupBackendAddressPoolArgs{\n\t\t\tName: \"globalLBBackendPool\",\n\t\t\tLoadbalancerId: exampleGetLB.Id,\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = lb.NewBackendAddressPoolAddress(ctx, \"example-1\", \u0026lb.BackendAddressPoolAddressArgs{\n\t\t\tName: pulumi.String(\"address1\"),\n\t\t\tBackendAddressPoolId: pulumi.String(backend_pool_cr.Id),\n\t\t\tBackendAddressIpConfigurationId: pulumi.Any(backend_lb_R1.FrontendIpConfiguration[0].Id),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = lb.NewBackendAddressPoolAddress(ctx, \"example-2\", \u0026lb.BackendAddressPoolAddressArgs{\n\t\t\tName: pulumi.String(\"address2\"),\n\t\t\tBackendAddressPoolId: pulumi.String(backend_pool_cr.Id),\n\t\t\tBackendAddressIpConfigurationId: pulumi.Any(backend_lb_R2.FrontendIpConfiguration[0].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.network.NetworkFunctions;\nimport com.pulumi.azure.network.inputs.GetVirtualNetworkArgs;\nimport com.pulumi.azure.lb.LbFunctions;\nimport com.pulumi.azure.lb.inputs.GetLBArgs;\nimport com.pulumi.azure.lb.inputs.GetBackendAddressPoolArgs;\nimport com.pulumi.azure.lb.BackendAddressPoolAddress;\nimport com.pulumi.azure.lb.BackendAddressPoolAddressArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = NetworkFunctions.getVirtualNetwork(GetVirtualNetworkArgs.builder()\n .name(\"example-network\")\n .resourceGroupName(\"example-resources\")\n .build());\n\n final var exampleGetLB = LbFunctions.getLB(GetLBArgs.builder()\n .name(\"example-lb\")\n .resourceGroupName(\"example-resources\")\n .build());\n\n final var exampleGetBackendAddressPool = LbFunctions.getBackendAddressPool(GetBackendAddressPoolArgs.builder()\n .name(\"first\")\n .loadbalancerId(exampleGetLB.applyValue(getLBResult -\u003e getLBResult.id()))\n .build());\n\n var exampleBackendAddressPoolAddress = new BackendAddressPoolAddress(\"exampleBackendAddressPoolAddress\", BackendAddressPoolAddressArgs.builder()\n .name(\"example\")\n .backendAddressPoolId(exampleGetBackendAddressPool.applyValue(getBackendAddressPoolResult -\u003e getBackendAddressPoolResult.id()))\n .virtualNetworkId(example.applyValue(getVirtualNetworkResult -\u003e getVirtualNetworkResult.id()))\n .ipAddress(\"10.0.0.1\")\n .build());\n\n final var backend-pool-cr = LbFunctions.getBackendAddressPool(GetBackendAddressPoolArgs.builder()\n .name(\"globalLBBackendPool\")\n .loadbalancerId(exampleGetLB.applyValue(getLBResult -\u003e getLBResult.id()))\n .build());\n\n var example_1 = new BackendAddressPoolAddress(\"example-1\", BackendAddressPoolAddressArgs.builder()\n .name(\"address1\")\n .backendAddressPoolId(backend_pool_cr.id())\n .backendAddressIpConfigurationId(backend_lb_R1.frontendIpConfiguration()[0].id())\n .build());\n\n var example_2 = new BackendAddressPoolAddress(\"example-2\", BackendAddressPoolAddressArgs.builder()\n .name(\"address2\")\n .backendAddressPoolId(backend_pool_cr.id())\n .backendAddressIpConfigurationId(backend_lb_R2.frontendIpConfiguration()[0].id())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleBackendAddressPoolAddress:\n type: azure:lb:BackendAddressPoolAddress\n name: example\n properties:\n name: example\n backendAddressPoolId: ${exampleGetBackendAddressPool.id}\n virtualNetworkId: ${example.id}\n ipAddress: 10.0.0.1\n example-1:\n type: azure:lb:BackendAddressPoolAddress\n properties:\n name: address1\n backendAddressPoolId: ${[\"backend-pool-cr\"].id}\n backendAddressIpConfigurationId: ${[\"backend-lb-R1\"].frontendIpConfiguration[0].id}\n example-2:\n type: azure:lb:BackendAddressPoolAddress\n properties:\n name: address2\n backendAddressPoolId: ${[\"backend-pool-cr\"].id}\n backendAddressIpConfigurationId: ${[\"backend-lb-R2\"].frontendIpConfiguration[0].id}\nvariables:\n example:\n fn::invoke:\n function: azure:network:getVirtualNetwork\n arguments:\n name: example-network\n resourceGroupName: example-resources\n exampleGetLB:\n fn::invoke:\n function: azure:lb:getLB\n arguments:\n name: example-lb\n resourceGroupName: example-resources\n exampleGetBackendAddressPool:\n fn::invoke:\n function: azure:lb:getBackendAddressPool\n arguments:\n name: first\n loadbalancerId: ${exampleGetLB.id}\n backend-pool-cr:\n fn::invoke:\n function: azure:lb:getBackendAddressPool\n arguments:\n name: globalLBBackendPool\n loadbalancerId: ${exampleGetLB.id}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nBackend Address Pool Addresses can be imported using the `resource id`, e.g.\n\n```sh\n$ pulumi import azure:lb/backendAddressPoolAddress:BackendAddressPoolAddress example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Network/loadBalancers/loadBalancer1/backendAddressPools/backendAddressPool1/addresses/address1\n```\n\n", "properties": { "backendAddressIpConfigurationId": { "type": "string", @@ -274725,7 +274725,7 @@ } }, "azure:authorization/getRoleDefinition:getRoleDefinition": { - "description": "Use this data source to access information about an existing Role Definition.\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 primary = azure.core.getSubscription({});\nconst customRoleDefinition = new azure.authorization.RoleDefinition(\"custom\", {\n roleDefinitionId: \"00000000-0000-0000-0000-000000000000\",\n name: \"CustomRoleDef\",\n scope: primary.then(primary =\u003e primary.id),\n});\nconst custom = pulumi.all([customRoleDefinition.roleDefinitionId, primary]).apply(([roleDefinitionId, primary]) =\u003e azure.authorization.getRoleDefinitionOutput({\n roleDefinitionId: roleDefinitionId,\n scope: primary.id,\n}));\nconst custom-byname = pulumi.all([customRoleDefinition.name, primary]).apply(([name, primary]) =\u003e azure.authorization.getRoleDefinitionOutput({\n name: name,\n scope: primary.id,\n}));\nconst builtin = azure.authorization.getRoleDefinition({\n name: \"Contributor\",\n});\nexport const customRoleDefinitionId = custom.apply(custom =\u003e custom.id);\nexport const contributorRoleDefinitionId = builtin.then(builtin =\u003e builtin.id);\n```\n```python\nimport pulumi\nimport pulumi_azure as azure\n\nprimary = azure.core.get_subscription()\ncustom_role_definition = azure.authorization.RoleDefinition(\"custom\",\n role_definition_id=\"00000000-0000-0000-0000-000000000000\",\n name=\"CustomRoleDef\",\n scope=primary.id)\ncustom = custom_role_definition.role_definition_id.apply(lambda role_definition_id: azure.authorization.get_role_definition_output(role_definition_id=role_definition_id,\n scope=primary.id))\ncustom_byname = custom_role_definition.name.apply(lambda name: azure.authorization.get_role_definition_output(name=name,\n scope=primary.id))\nbuiltin = azure.authorization.get_role_definition(name=\"Contributor\")\npulumi.export(\"customRoleDefinitionId\", custom.id)\npulumi.export(\"contributorRoleDefinitionId\", builtin.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 primary = Azure.Core.GetSubscription.Invoke();\n\n var customRoleDefinition = new Azure.Authorization.RoleDefinition(\"custom\", new()\n {\n RoleDefinitionId = \"00000000-0000-0000-0000-000000000000\",\n Name = \"CustomRoleDef\",\n Scope = primary.Apply(getSubscriptionResult =\u003e getSubscriptionResult.Id),\n });\n\n var custom = Azure.Authorization.GetRoleDefinition.Invoke(new()\n {\n RoleDefinitionId = customRoleDefinition.RoleDefinitionId,\n Scope = primary.Apply(getSubscriptionResult =\u003e getSubscriptionResult.Id),\n });\n\n var custom_byname = Azure.Authorization.GetRoleDefinition.Invoke(new()\n {\n Name = customRoleDefinition.Name,\n Scope = primary.Apply(getSubscriptionResult =\u003e getSubscriptionResult.Id),\n });\n\n var builtin = Azure.Authorization.GetRoleDefinition.Invoke(new()\n {\n Name = \"Contributor\",\n });\n\n return new Dictionary\u003cstring, object?\u003e\n {\n [\"customRoleDefinitionId\"] = custom.Apply(getRoleDefinitionResult =\u003e getRoleDefinitionResult.Id),\n [\"contributorRoleDefinitionId\"] = builtin.Apply(getRoleDefinitionResult =\u003e getRoleDefinitionResult.Id),\n };\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/authorization\"\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\tprimary, err := core.LookupSubscription(ctx, \u0026core.LookupSubscriptionArgs{}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tcustomRoleDefinition, err := authorization.NewRoleDefinition(ctx, \"custom\", \u0026authorization.RoleDefinitionArgs{\n\t\t\tRoleDefinitionId: pulumi.String(\"00000000-0000-0000-0000-000000000000\"),\n\t\t\tName: pulumi.String(\"CustomRoleDef\"),\n\t\t\tScope: pulumi.String(primary.Id),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tcustom := customRoleDefinition.RoleDefinitionId.ApplyT(func(roleDefinitionId string) (authorization.GetRoleDefinitionResult, error) {\n\t\t\treturn authorization.GetRoleDefinitionResult(interface{}(authorization.LookupRoleDefinitionOutput(ctx, authorization.GetRoleDefinitionOutputArgs{\n\t\t\t\tRoleDefinitionId: roleDefinitionId,\n\t\t\t\tScope: primary.Id,\n\t\t\t}, nil))), nil\n\t\t}).(authorization.GetRoleDefinitionResultOutput)\n\t\t_ = customRoleDefinition.Name.ApplyT(func(name string) (authorization.GetRoleDefinitionResult, error) {\n\t\t\treturn authorization.GetRoleDefinitionResult(interface{}(authorization.LookupRoleDefinitionOutput(ctx, authorization.GetRoleDefinitionOutputArgs{\n\t\t\t\tName: name,\n\t\t\t\tScope: primary.Id,\n\t\t\t}, nil))), nil\n\t\t}).(authorization.GetRoleDefinitionResultOutput)\n\t\tbuiltin, err := authorization.LookupRoleDefinition(ctx, \u0026authorization.LookupRoleDefinitionArgs{\n\t\t\tName: pulumi.StringRef(\"Contributor\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tctx.Export(\"customRoleDefinitionId\", custom.ApplyT(func(custom authorization.GetRoleDefinitionResult) (*string, error) {\n\t\t\treturn \u0026custom.Id, nil\n\t\t}).(pulumi.StringPtrOutput))\n\t\tctx.Export(\"contributorRoleDefinitionId\", builtin.Id)\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azure.core.CoreFunctions;\nimport com.pulumi.azure.core.inputs.GetSubscriptionArgs;\nimport com.pulumi.azure.authorization.RoleDefinition;\nimport com.pulumi.azure.authorization.RoleDefinitionArgs;\nimport com.pulumi.azure.authorization.AuthorizationFunctions;\nimport com.pulumi.azure.authorization.inputs.GetRoleDefinitionArgs;\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 primary = CoreFunctions.getSubscription();\n\n var customRoleDefinition = new RoleDefinition(\"customRoleDefinition\", RoleDefinitionArgs.builder()\n .roleDefinitionId(\"00000000-0000-0000-0000-000000000000\")\n .name(\"CustomRoleDef\")\n .scope(primary.applyValue(getSubscriptionResult -\u003e getSubscriptionResult.id()))\n .build());\n\n final var custom = AuthorizationFunctions.getRoleDefinition(GetRoleDefinitionArgs.builder()\n .roleDefinitionId(customRoleDefinition.roleDefinitionId())\n .scope(primary.applyValue(getSubscriptionResult -\u003e getSubscriptionResult.id()))\n .build());\n\n final var custom-byname = AuthorizationFunctions.getRoleDefinition(GetRoleDefinitionArgs.builder()\n .name(customRoleDefinition.name())\n .scope(primary.applyValue(getSubscriptionResult -\u003e getSubscriptionResult.id()))\n .build());\n\n final var builtin = AuthorizationFunctions.getRoleDefinition(GetRoleDefinitionArgs.builder()\n .name(\"Contributor\")\n .build());\n\n ctx.export(\"customRoleDefinitionId\", custom.applyValue(getRoleDefinitionResult -\u003e getRoleDefinitionResult).applyValue(custom -\u003e custom.applyValue(getRoleDefinitionResult -\u003e getRoleDefinitionResult.id())));\n ctx.export(\"contributorRoleDefinitionId\", builtin.applyValue(getRoleDefinitionResult -\u003e getRoleDefinitionResult.id()));\n }\n}\n```\n```yaml\nresources:\n customRoleDefinition:\n type: azure:authorization:RoleDefinition\n name: custom\n properties:\n roleDefinitionId: 00000000-0000-0000-0000-000000000000\n name: CustomRoleDef\n scope: ${primary.id}\nvariables:\n primary:\n fn::invoke:\n function: azure:core:getSubscription\n arguments: {}\n custom:\n fn::invoke:\n function: azure:authorization:getRoleDefinition\n arguments:\n roleDefinitionId: ${customRoleDefinition.roleDefinitionId}\n scope: ${primary.id}\n custom-byname:\n fn::invoke:\n function: azure:authorization:getRoleDefinition\n arguments:\n name: ${customRoleDefinition.name}\n scope: ${primary.id}\n builtin:\n fn::invoke:\n function: azure:authorization:getRoleDefinition\n arguments:\n name: Contributor\noutputs:\n customRoleDefinitionId: ${custom.id}\n contributorRoleDefinitionId: ${builtin.id}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "description": "Use this data source to access information about an existing Role Definition.\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 primary = azure.core.getSubscription({});\nconst customRoleDefinition = new azure.authorization.RoleDefinition(\"custom\", {\n roleDefinitionId: \"00000000-0000-0000-0000-000000000000\",\n name: \"CustomRoleDef\",\n scope: primary.then(primary =\u003e primary.id),\n});\nconst custom = pulumi.all([customRoleDefinition.roleDefinitionId, primary]).apply(([roleDefinitionId, primary]) =\u003e azure.authorization.getRoleDefinitionOutput({\n roleDefinitionId: roleDefinitionId,\n scope: primary.id,\n}));\nconst custom_byname = pulumi.all([customRoleDefinition.name, primary]).apply(([name, primary]) =\u003e azure.authorization.getRoleDefinitionOutput({\n name: name,\n scope: primary.id,\n}));\nconst builtin = azure.authorization.getRoleDefinition({\n name: \"Contributor\",\n});\nexport const customRoleDefinitionId = custom.apply(custom =\u003e custom.id);\nexport const contributorRoleDefinitionId = builtin.then(builtin =\u003e builtin.id);\n```\n```python\nimport pulumi\nimport pulumi_azure as azure\n\nprimary = azure.core.get_subscription()\ncustom_role_definition = azure.authorization.RoleDefinition(\"custom\",\n role_definition_id=\"00000000-0000-0000-0000-000000000000\",\n name=\"CustomRoleDef\",\n scope=primary.id)\ncustom = custom_role_definition.role_definition_id.apply(lambda role_definition_id: azure.authorization.get_role_definition_output(role_definition_id=role_definition_id,\n scope=primary.id))\ncustom_byname = custom_role_definition.name.apply(lambda name: azure.authorization.get_role_definition_output(name=name,\n scope=primary.id))\nbuiltin = azure.authorization.get_role_definition(name=\"Contributor\")\npulumi.export(\"customRoleDefinitionId\", custom.id)\npulumi.export(\"contributorRoleDefinitionId\", builtin.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 primary = Azure.Core.GetSubscription.Invoke();\n\n var customRoleDefinition = new Azure.Authorization.RoleDefinition(\"custom\", new()\n {\n RoleDefinitionId = \"00000000-0000-0000-0000-000000000000\",\n Name = \"CustomRoleDef\",\n Scope = primary.Apply(getSubscriptionResult =\u003e getSubscriptionResult.Id),\n });\n\n var custom = Azure.Authorization.GetRoleDefinition.Invoke(new()\n {\n RoleDefinitionId = customRoleDefinition.RoleDefinitionId,\n Scope = primary.Apply(getSubscriptionResult =\u003e getSubscriptionResult.Id),\n });\n\n var custom_byname = Azure.Authorization.GetRoleDefinition.Invoke(new()\n {\n Name = customRoleDefinition.Name,\n Scope = primary.Apply(getSubscriptionResult =\u003e getSubscriptionResult.Id),\n });\n\n var builtin = Azure.Authorization.GetRoleDefinition.Invoke(new()\n {\n Name = \"Contributor\",\n });\n\n return new Dictionary\u003cstring, object?\u003e\n {\n [\"customRoleDefinitionId\"] = custom.Apply(getRoleDefinitionResult =\u003e getRoleDefinitionResult.Id),\n [\"contributorRoleDefinitionId\"] = builtin.Apply(getRoleDefinitionResult =\u003e getRoleDefinitionResult.Id),\n };\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/authorization\"\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\tprimary, err := core.LookupSubscription(ctx, \u0026core.LookupSubscriptionArgs{}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tcustomRoleDefinition, err := authorization.NewRoleDefinition(ctx, \"custom\", \u0026authorization.RoleDefinitionArgs{\n\t\t\tRoleDefinitionId: pulumi.String(\"00000000-0000-0000-0000-000000000000\"),\n\t\t\tName: pulumi.String(\"CustomRoleDef\"),\n\t\t\tScope: pulumi.String(primary.Id),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tcustom := customRoleDefinition.RoleDefinitionId.ApplyT(func(roleDefinitionId string) (authorization.GetRoleDefinitionResult, error) {\n\t\t\treturn authorization.GetRoleDefinitionResult(interface{}(authorization.LookupRoleDefinitionOutput(ctx, authorization.GetRoleDefinitionOutputArgs{\n\t\t\t\tRoleDefinitionId: roleDefinitionId,\n\t\t\t\tScope: primary.Id,\n\t\t\t}, nil))), nil\n\t\t}).(authorization.GetRoleDefinitionResultOutput)\n\t\t_ = customRoleDefinition.Name.ApplyT(func(name string) (authorization.GetRoleDefinitionResult, error) {\n\t\t\treturn authorization.GetRoleDefinitionResult(interface{}(authorization.LookupRoleDefinitionOutput(ctx, authorization.GetRoleDefinitionOutputArgs{\n\t\t\t\tName: name,\n\t\t\t\tScope: primary.Id,\n\t\t\t}, nil))), nil\n\t\t}).(authorization.GetRoleDefinitionResultOutput)\n\t\tbuiltin, err := authorization.LookupRoleDefinition(ctx, \u0026authorization.LookupRoleDefinitionArgs{\n\t\t\tName: pulumi.StringRef(\"Contributor\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tctx.Export(\"customRoleDefinitionId\", custom.ApplyT(func(custom authorization.GetRoleDefinitionResult) (*string, error) {\n\t\t\treturn \u0026custom.Id, nil\n\t\t}).(pulumi.StringPtrOutput))\n\t\tctx.Export(\"contributorRoleDefinitionId\", builtin.Id)\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azure.core.CoreFunctions;\nimport com.pulumi.azure.core.inputs.GetSubscriptionArgs;\nimport com.pulumi.azure.authorization.RoleDefinition;\nimport com.pulumi.azure.authorization.RoleDefinitionArgs;\nimport com.pulumi.azure.authorization.AuthorizationFunctions;\nimport com.pulumi.azure.authorization.inputs.GetRoleDefinitionArgs;\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 primary = CoreFunctions.getSubscription();\n\n var customRoleDefinition = new RoleDefinition(\"customRoleDefinition\", RoleDefinitionArgs.builder()\n .roleDefinitionId(\"00000000-0000-0000-0000-000000000000\")\n .name(\"CustomRoleDef\")\n .scope(primary.applyValue(getSubscriptionResult -\u003e getSubscriptionResult.id()))\n .build());\n\n final var custom = AuthorizationFunctions.getRoleDefinition(GetRoleDefinitionArgs.builder()\n .roleDefinitionId(customRoleDefinition.roleDefinitionId())\n .scope(primary.applyValue(getSubscriptionResult -\u003e getSubscriptionResult.id()))\n .build());\n\n final var custom-byname = AuthorizationFunctions.getRoleDefinition(GetRoleDefinitionArgs.builder()\n .name(customRoleDefinition.name())\n .scope(primary.applyValue(getSubscriptionResult -\u003e getSubscriptionResult.id()))\n .build());\n\n final var builtin = AuthorizationFunctions.getRoleDefinition(GetRoleDefinitionArgs.builder()\n .name(\"Contributor\")\n .build());\n\n ctx.export(\"customRoleDefinitionId\", custom.applyValue(getRoleDefinitionResult -\u003e getRoleDefinitionResult).applyValue(custom -\u003e custom.applyValue(getRoleDefinitionResult -\u003e getRoleDefinitionResult.id())));\n ctx.export(\"contributorRoleDefinitionId\", builtin.applyValue(getRoleDefinitionResult -\u003e getRoleDefinitionResult.id()));\n }\n}\n```\n```yaml\nresources:\n customRoleDefinition:\n type: azure:authorization:RoleDefinition\n name: custom\n properties:\n roleDefinitionId: 00000000-0000-0000-0000-000000000000\n name: CustomRoleDef\n scope: ${primary.id}\nvariables:\n primary:\n fn::invoke:\n function: azure:core:getSubscription\n arguments: {}\n custom:\n fn::invoke:\n function: azure:authorization:getRoleDefinition\n arguments:\n roleDefinitionId: ${customRoleDefinition.roleDefinitionId}\n scope: ${primary.id}\n custom-byname:\n fn::invoke:\n function: azure:authorization:getRoleDefinition\n arguments:\n name: ${customRoleDefinition.name}\n scope: ${primary.id}\n builtin:\n fn::invoke:\n function: azure:authorization:getRoleDefinition\n arguments:\n name: Contributor\noutputs:\n customRoleDefinitionId: ${custom.id}\n contributorRoleDefinitionId: ${builtin.id}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getRoleDefinition.\n", "properties": { @@ -299681,7 +299681,7 @@ }, "azure:role/getRoleDefinition:getRoleDefinition": { "deprecationMessage": "azure.role.getRoleDefinition has been deprecated in favor of azure.authorization.getRoleDefinition", - "description": "Use this data source to access information about an existing Role Definition.\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 primary = azure.core.getSubscription({});\nconst customRoleDefinition = new azure.authorization.RoleDefinition(\"custom\", {\n roleDefinitionId: \"00000000-0000-0000-0000-000000000000\",\n name: \"CustomRoleDef\",\n scope: primary.then(primary =\u003e primary.id),\n});\nconst custom = pulumi.all([customRoleDefinition.roleDefinitionId, primary]).apply(([roleDefinitionId, primary]) =\u003e azure.authorization.getRoleDefinitionOutput({\n roleDefinitionId: roleDefinitionId,\n scope: primary.id,\n}));\nconst custom-byname = pulumi.all([customRoleDefinition.name, primary]).apply(([name, primary]) =\u003e azure.authorization.getRoleDefinitionOutput({\n name: name,\n scope: primary.id,\n}));\nconst builtin = azure.authorization.getRoleDefinition({\n name: \"Contributor\",\n});\nexport const customRoleDefinitionId = custom.apply(custom =\u003e custom.id);\nexport const contributorRoleDefinitionId = builtin.then(builtin =\u003e builtin.id);\n```\n```python\nimport pulumi\nimport pulumi_azure as azure\n\nprimary = azure.core.get_subscription()\ncustom_role_definition = azure.authorization.RoleDefinition(\"custom\",\n role_definition_id=\"00000000-0000-0000-0000-000000000000\",\n name=\"CustomRoleDef\",\n scope=primary.id)\ncustom = custom_role_definition.role_definition_id.apply(lambda role_definition_id: azure.authorization.get_role_definition_output(role_definition_id=role_definition_id,\n scope=primary.id))\ncustom_byname = custom_role_definition.name.apply(lambda name: azure.authorization.get_role_definition_output(name=name,\n scope=primary.id))\nbuiltin = azure.authorization.get_role_definition(name=\"Contributor\")\npulumi.export(\"customRoleDefinitionId\", custom.id)\npulumi.export(\"contributorRoleDefinitionId\", builtin.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 primary = Azure.Core.GetSubscription.Invoke();\n\n var customRoleDefinition = new Azure.Authorization.RoleDefinition(\"custom\", new()\n {\n RoleDefinitionId = \"00000000-0000-0000-0000-000000000000\",\n Name = \"CustomRoleDef\",\n Scope = primary.Apply(getSubscriptionResult =\u003e getSubscriptionResult.Id),\n });\n\n var custom = Azure.Authorization.GetRoleDefinition.Invoke(new()\n {\n RoleDefinitionId = customRoleDefinition.RoleDefinitionId,\n Scope = primary.Apply(getSubscriptionResult =\u003e getSubscriptionResult.Id),\n });\n\n var custom_byname = Azure.Authorization.GetRoleDefinition.Invoke(new()\n {\n Name = customRoleDefinition.Name,\n Scope = primary.Apply(getSubscriptionResult =\u003e getSubscriptionResult.Id),\n });\n\n var builtin = Azure.Authorization.GetRoleDefinition.Invoke(new()\n {\n Name = \"Contributor\",\n });\n\n return new Dictionary\u003cstring, object?\u003e\n {\n [\"customRoleDefinitionId\"] = custom.Apply(getRoleDefinitionResult =\u003e getRoleDefinitionResult.Id),\n [\"contributorRoleDefinitionId\"] = builtin.Apply(getRoleDefinitionResult =\u003e getRoleDefinitionResult.Id),\n };\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/authorization\"\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\tprimary, err := core.LookupSubscription(ctx, \u0026core.LookupSubscriptionArgs{}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tcustomRoleDefinition, err := authorization.NewRoleDefinition(ctx, \"custom\", \u0026authorization.RoleDefinitionArgs{\n\t\t\tRoleDefinitionId: pulumi.String(\"00000000-0000-0000-0000-000000000000\"),\n\t\t\tName: pulumi.String(\"CustomRoleDef\"),\n\t\t\tScope: pulumi.String(primary.Id),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tcustom := customRoleDefinition.RoleDefinitionId.ApplyT(func(roleDefinitionId string) (authorization.GetRoleDefinitionResult, error) {\n\t\t\treturn authorization.GetRoleDefinitionResult(interface{}(authorization.LookupRoleDefinitionOutput(ctx, authorization.GetRoleDefinitionOutputArgs{\n\t\t\t\tRoleDefinitionId: roleDefinitionId,\n\t\t\t\tScope: primary.Id,\n\t\t\t}, nil))), nil\n\t\t}).(authorization.GetRoleDefinitionResultOutput)\n\t\t_ = customRoleDefinition.Name.ApplyT(func(name string) (authorization.GetRoleDefinitionResult, error) {\n\t\t\treturn authorization.GetRoleDefinitionResult(interface{}(authorization.LookupRoleDefinitionOutput(ctx, authorization.GetRoleDefinitionOutputArgs{\n\t\t\t\tName: name,\n\t\t\t\tScope: primary.Id,\n\t\t\t}, nil))), nil\n\t\t}).(authorization.GetRoleDefinitionResultOutput)\n\t\tbuiltin, err := authorization.LookupRoleDefinition(ctx, \u0026authorization.LookupRoleDefinitionArgs{\n\t\t\tName: pulumi.StringRef(\"Contributor\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tctx.Export(\"customRoleDefinitionId\", custom.ApplyT(func(custom authorization.GetRoleDefinitionResult) (*string, error) {\n\t\t\treturn \u0026custom.Id, nil\n\t\t}).(pulumi.StringPtrOutput))\n\t\tctx.Export(\"contributorRoleDefinitionId\", builtin.Id)\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azure.core.CoreFunctions;\nimport com.pulumi.azure.core.inputs.GetSubscriptionArgs;\nimport com.pulumi.azure.authorization.RoleDefinition;\nimport com.pulumi.azure.authorization.RoleDefinitionArgs;\nimport com.pulumi.azure.authorization.AuthorizationFunctions;\nimport com.pulumi.azure.authorization.inputs.GetRoleDefinitionArgs;\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 primary = CoreFunctions.getSubscription();\n\n var customRoleDefinition = new RoleDefinition(\"customRoleDefinition\", RoleDefinitionArgs.builder()\n .roleDefinitionId(\"00000000-0000-0000-0000-000000000000\")\n .name(\"CustomRoleDef\")\n .scope(primary.applyValue(getSubscriptionResult -\u003e getSubscriptionResult.id()))\n .build());\n\n final var custom = AuthorizationFunctions.getRoleDefinition(GetRoleDefinitionArgs.builder()\n .roleDefinitionId(customRoleDefinition.roleDefinitionId())\n .scope(primary.applyValue(getSubscriptionResult -\u003e getSubscriptionResult.id()))\n .build());\n\n final var custom-byname = AuthorizationFunctions.getRoleDefinition(GetRoleDefinitionArgs.builder()\n .name(customRoleDefinition.name())\n .scope(primary.applyValue(getSubscriptionResult -\u003e getSubscriptionResult.id()))\n .build());\n\n final var builtin = AuthorizationFunctions.getRoleDefinition(GetRoleDefinitionArgs.builder()\n .name(\"Contributor\")\n .build());\n\n ctx.export(\"customRoleDefinitionId\", custom.applyValue(getRoleDefinitionResult -\u003e getRoleDefinitionResult).applyValue(custom -\u003e custom.applyValue(getRoleDefinitionResult -\u003e getRoleDefinitionResult.id())));\n ctx.export(\"contributorRoleDefinitionId\", builtin.applyValue(getRoleDefinitionResult -\u003e getRoleDefinitionResult.id()));\n }\n}\n```\n```yaml\nresources:\n customRoleDefinition:\n type: azure:authorization:RoleDefinition\n name: custom\n properties:\n roleDefinitionId: 00000000-0000-0000-0000-000000000000\n name: CustomRoleDef\n scope: ${primary.id}\nvariables:\n primary:\n fn::invoke:\n function: azure:core:getSubscription\n arguments: {}\n custom:\n fn::invoke:\n function: azure:authorization:getRoleDefinition\n arguments:\n roleDefinitionId: ${customRoleDefinition.roleDefinitionId}\n scope: ${primary.id}\n custom-byname:\n fn::invoke:\n function: azure:authorization:getRoleDefinition\n arguments:\n name: ${customRoleDefinition.name}\n scope: ${primary.id}\n builtin:\n fn::invoke:\n function: azure:authorization:getRoleDefinition\n arguments:\n name: Contributor\noutputs:\n customRoleDefinitionId: ${custom.id}\n contributorRoleDefinitionId: ${builtin.id}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "description": "Use this data source to access information about an existing Role Definition.\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 primary = azure.core.getSubscription({});\nconst customRoleDefinition = new azure.authorization.RoleDefinition(\"custom\", {\n roleDefinitionId: \"00000000-0000-0000-0000-000000000000\",\n name: \"CustomRoleDef\",\n scope: primary.then(primary =\u003e primary.id),\n});\nconst custom = pulumi.all([customRoleDefinition.roleDefinitionId, primary]).apply(([roleDefinitionId, primary]) =\u003e azure.authorization.getRoleDefinitionOutput({\n roleDefinitionId: roleDefinitionId,\n scope: primary.id,\n}));\nconst custom_byname = pulumi.all([customRoleDefinition.name, primary]).apply(([name, primary]) =\u003e azure.authorization.getRoleDefinitionOutput({\n name: name,\n scope: primary.id,\n}));\nconst builtin = azure.authorization.getRoleDefinition({\n name: \"Contributor\",\n});\nexport const customRoleDefinitionId = custom.apply(custom =\u003e custom.id);\nexport const contributorRoleDefinitionId = builtin.then(builtin =\u003e builtin.id);\n```\n```python\nimport pulumi\nimport pulumi_azure as azure\n\nprimary = azure.core.get_subscription()\ncustom_role_definition = azure.authorization.RoleDefinition(\"custom\",\n role_definition_id=\"00000000-0000-0000-0000-000000000000\",\n name=\"CustomRoleDef\",\n scope=primary.id)\ncustom = custom_role_definition.role_definition_id.apply(lambda role_definition_id: azure.authorization.get_role_definition_output(role_definition_id=role_definition_id,\n scope=primary.id))\ncustom_byname = custom_role_definition.name.apply(lambda name: azure.authorization.get_role_definition_output(name=name,\n scope=primary.id))\nbuiltin = azure.authorization.get_role_definition(name=\"Contributor\")\npulumi.export(\"customRoleDefinitionId\", custom.id)\npulumi.export(\"contributorRoleDefinitionId\", builtin.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 primary = Azure.Core.GetSubscription.Invoke();\n\n var customRoleDefinition = new Azure.Authorization.RoleDefinition(\"custom\", new()\n {\n RoleDefinitionId = \"00000000-0000-0000-0000-000000000000\",\n Name = \"CustomRoleDef\",\n Scope = primary.Apply(getSubscriptionResult =\u003e getSubscriptionResult.Id),\n });\n\n var custom = Azure.Authorization.GetRoleDefinition.Invoke(new()\n {\n RoleDefinitionId = customRoleDefinition.RoleDefinitionId,\n Scope = primary.Apply(getSubscriptionResult =\u003e getSubscriptionResult.Id),\n });\n\n var custom_byname = Azure.Authorization.GetRoleDefinition.Invoke(new()\n {\n Name = customRoleDefinition.Name,\n Scope = primary.Apply(getSubscriptionResult =\u003e getSubscriptionResult.Id),\n });\n\n var builtin = Azure.Authorization.GetRoleDefinition.Invoke(new()\n {\n Name = \"Contributor\",\n });\n\n return new Dictionary\u003cstring, object?\u003e\n {\n [\"customRoleDefinitionId\"] = custom.Apply(getRoleDefinitionResult =\u003e getRoleDefinitionResult.Id),\n [\"contributorRoleDefinitionId\"] = builtin.Apply(getRoleDefinitionResult =\u003e getRoleDefinitionResult.Id),\n };\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/authorization\"\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\tprimary, err := core.LookupSubscription(ctx, \u0026core.LookupSubscriptionArgs{}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tcustomRoleDefinition, err := authorization.NewRoleDefinition(ctx, \"custom\", \u0026authorization.RoleDefinitionArgs{\n\t\t\tRoleDefinitionId: pulumi.String(\"00000000-0000-0000-0000-000000000000\"),\n\t\t\tName: pulumi.String(\"CustomRoleDef\"),\n\t\t\tScope: pulumi.String(primary.Id),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tcustom := customRoleDefinition.RoleDefinitionId.ApplyT(func(roleDefinitionId string) (authorization.GetRoleDefinitionResult, error) {\n\t\t\treturn authorization.GetRoleDefinitionResult(interface{}(authorization.LookupRoleDefinitionOutput(ctx, authorization.GetRoleDefinitionOutputArgs{\n\t\t\t\tRoleDefinitionId: roleDefinitionId,\n\t\t\t\tScope: primary.Id,\n\t\t\t}, nil))), nil\n\t\t}).(authorization.GetRoleDefinitionResultOutput)\n\t\t_ = customRoleDefinition.Name.ApplyT(func(name string) (authorization.GetRoleDefinitionResult, error) {\n\t\t\treturn authorization.GetRoleDefinitionResult(interface{}(authorization.LookupRoleDefinitionOutput(ctx, authorization.GetRoleDefinitionOutputArgs{\n\t\t\t\tName: name,\n\t\t\t\tScope: primary.Id,\n\t\t\t}, nil))), nil\n\t\t}).(authorization.GetRoleDefinitionResultOutput)\n\t\tbuiltin, err := authorization.LookupRoleDefinition(ctx, \u0026authorization.LookupRoleDefinitionArgs{\n\t\t\tName: pulumi.StringRef(\"Contributor\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tctx.Export(\"customRoleDefinitionId\", custom.ApplyT(func(custom authorization.GetRoleDefinitionResult) (*string, error) {\n\t\t\treturn \u0026custom.Id, nil\n\t\t}).(pulumi.StringPtrOutput))\n\t\tctx.Export(\"contributorRoleDefinitionId\", builtin.Id)\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azure.core.CoreFunctions;\nimport com.pulumi.azure.core.inputs.GetSubscriptionArgs;\nimport com.pulumi.azure.authorization.RoleDefinition;\nimport com.pulumi.azure.authorization.RoleDefinitionArgs;\nimport com.pulumi.azure.authorization.AuthorizationFunctions;\nimport com.pulumi.azure.authorization.inputs.GetRoleDefinitionArgs;\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 primary = CoreFunctions.getSubscription();\n\n var customRoleDefinition = new RoleDefinition(\"customRoleDefinition\", RoleDefinitionArgs.builder()\n .roleDefinitionId(\"00000000-0000-0000-0000-000000000000\")\n .name(\"CustomRoleDef\")\n .scope(primary.applyValue(getSubscriptionResult -\u003e getSubscriptionResult.id()))\n .build());\n\n final var custom = AuthorizationFunctions.getRoleDefinition(GetRoleDefinitionArgs.builder()\n .roleDefinitionId(customRoleDefinition.roleDefinitionId())\n .scope(primary.applyValue(getSubscriptionResult -\u003e getSubscriptionResult.id()))\n .build());\n\n final var custom-byname = AuthorizationFunctions.getRoleDefinition(GetRoleDefinitionArgs.builder()\n .name(customRoleDefinition.name())\n .scope(primary.applyValue(getSubscriptionResult -\u003e getSubscriptionResult.id()))\n .build());\n\n final var builtin = AuthorizationFunctions.getRoleDefinition(GetRoleDefinitionArgs.builder()\n .name(\"Contributor\")\n .build());\n\n ctx.export(\"customRoleDefinitionId\", custom.applyValue(getRoleDefinitionResult -\u003e getRoleDefinitionResult).applyValue(custom -\u003e custom.applyValue(getRoleDefinitionResult -\u003e getRoleDefinitionResult.id())));\n ctx.export(\"contributorRoleDefinitionId\", builtin.applyValue(getRoleDefinitionResult -\u003e getRoleDefinitionResult.id()));\n }\n}\n```\n```yaml\nresources:\n customRoleDefinition:\n type: azure:authorization:RoleDefinition\n name: custom\n properties:\n roleDefinitionId: 00000000-0000-0000-0000-000000000000\n name: CustomRoleDef\n scope: ${primary.id}\nvariables:\n primary:\n fn::invoke:\n function: azure:core:getSubscription\n arguments: {}\n custom:\n fn::invoke:\n function: azure:authorization:getRoleDefinition\n arguments:\n roleDefinitionId: ${customRoleDefinition.roleDefinitionId}\n scope: ${primary.id}\n custom-byname:\n fn::invoke:\n function: azure:authorization:getRoleDefinition\n arguments:\n name: ${customRoleDefinition.name}\n scope: ${primary.id}\n builtin:\n fn::invoke:\n function: azure:authorization:getRoleDefinition\n arguments:\n name: Contributor\noutputs:\n customRoleDefinitionId: ${custom.id}\n contributorRoleDefinitionId: ${builtin.id}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getRoleDefinition.\n", "properties": { diff --git a/provider/go.mod b/provider/go.mod index 3f33c0d5f2..7ce2ccee25 100644 --- a/provider/go.mod +++ b/provider/go.mod @@ -272,3 +272,7 @@ require ( lukechampine.com/frand v1.4.2 // indirect software.sslmate.com/src/go-pkcs12 v0.4.0 // indirect ) + +replace github.com/pulumi/pulumi/pkg/v3 => github.com/pulumi/pulumi/pkg/v3 v3.145.1-0.20250110013735-625733b7835b + +replace github.com/pulumi/pulumi/sdk/v3 => github.com/pulumi/pulumi/sdk/v3 v3.145.1-0.20250110013735-625733b7835b diff --git a/provider/go.sum b/provider/go.sum index aa36cd50cd..309df72f6d 100644 --- a/provider/go.sum +++ b/provider/go.sum @@ -1987,10 +1987,10 @@ github.com/pulumi/pulumi-terraform-bridge/v3 v3.100.0 h1:L03nXHLprXuF0wIihoKFIjp github.com/pulumi/pulumi-terraform-bridge/v3 v3.100.0/go.mod h1:r+cxSrRxwCRbHMdKMKWU3NKDcUTm9xa9PcBDuHQnRkI= github.com/pulumi/pulumi-yaml v1.12.0 h1:ThJP+EBqeJyCnS6w6/PwcEFOT5o112qv0lObhefmFCk= github.com/pulumi/pulumi-yaml v1.12.0/go.mod h1:EhZd1XDfuLa15O51qVVE16U6r8ldK9mLIBclqWCX27Y= -github.com/pulumi/pulumi/pkg/v3 v3.145.0 h1:hAhFLieunnCKuMd3GbLqE5uWQ1hpNLdl6+bCDFSF4YQ= -github.com/pulumi/pulumi/pkg/v3 v3.145.0/go.mod h1:N19IsMJ3GyYO5N2JfpsCAVk0eH1NKkF05fZGn5dnhBE= -github.com/pulumi/pulumi/sdk/v3 v3.145.0 h1:r5iOgz67RElFXJt4GVVY2SBGh5sR24mL9NOcKBiBi/k= -github.com/pulumi/pulumi/sdk/v3 v3.145.0/go.mod h1:5pZySnw3RiQKddx8orThjEFmWsXkGAY3ktKOxZj2Ym4= +github.com/pulumi/pulumi/pkg/v3 v3.145.1-0.20250110013735-625733b7835b h1:RUOA1LuVSmtCZa1KGld74RqTRXU9cRPd+45yG/4FKPc= +github.com/pulumi/pulumi/pkg/v3 v3.145.1-0.20250110013735-625733b7835b/go.mod h1:N19IsMJ3GyYO5N2JfpsCAVk0eH1NKkF05fZGn5dnhBE= +github.com/pulumi/pulumi/sdk/v3 v3.145.1-0.20250110013735-625733b7835b h1:4NuXYoN8uVy9s50Cva5p7pQOdYX3U9MS7vEuTB0DkQw= +github.com/pulumi/pulumi/sdk/v3 v3.145.1-0.20250110013735-625733b7835b/go.mod h1:5pZySnw3RiQKddx8orThjEFmWsXkGAY3ktKOxZj2Ym4= github.com/pulumi/schema-tools v0.1.2 h1:Fd9xvUjgck4NA+7/jSk7InqCUT4Kj940+EcnbQKpfZo= github.com/pulumi/schema-tools v0.1.2/go.mod h1:62lgj52Tzq11eqWTIaKd+EVyYAu5dEcDJxMhTjvMO/k= github.com/pulumi/terraform-diff-reader v0.0.2 h1:kTE4nEXU3/SYXESvAIem+wyHMI3abqkI3OhJ0G04LLI= diff --git a/sdk/go.mod b/sdk/go.mod index ef54abd094..4a969de13f 100644 --- a/sdk/go.mod +++ b/sdk/go.mod @@ -91,3 +91,7 @@ require ( lukechampine.com/frand v1.4.2 // indirect pgregory.net/rapid v0.6.1 // indirect ) + +replace github.com/pulumi/pulumi/pkg/v3 => github.com/pulumi/pulumi/pkg/v3 v3.145.1-0.20250110013735-625733b7835b + +replace github.com/pulumi/pulumi/sdk/v3 => github.com/pulumi/pulumi/sdk/v3 v3.145.1-0.20250110013735-625733b7835b diff --git a/sdk/go.sum b/sdk/go.sum index 95e769753a..74c49275e9 100644 --- a/sdk/go.sum +++ b/sdk/go.sum @@ -150,8 +150,8 @@ github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 h1:vkHw5I/plNdTr435 github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231/go.mod h1:murToZ2N9hNJzewjHBgfFdXhZKjY3z5cYC1VXk+lbFE= github.com/pulumi/esc v0.9.1 h1:HH5eEv8sgyxSpY5a8yePyqFXzA8cvBvapfH8457+mIs= github.com/pulumi/esc v0.9.1/go.mod h1:oEJ6bOsjYlQUpjf70GiX+CXn3VBmpwFDxUTlmtUN84c= -github.com/pulumi/pulumi/sdk/v3 v3.145.0 h1:r5iOgz67RElFXJt4GVVY2SBGh5sR24mL9NOcKBiBi/k= -github.com/pulumi/pulumi/sdk/v3 v3.145.0/go.mod h1:5pZySnw3RiQKddx8orThjEFmWsXkGAY3ktKOxZj2Ym4= +github.com/pulumi/pulumi/sdk/v3 v3.145.1-0.20250110013735-625733b7835b h1:4NuXYoN8uVy9s50Cva5p7pQOdYX3U9MS7vEuTB0DkQw= +github.com/pulumi/pulumi/sdk/v3 v3.145.1-0.20250110013735-625733b7835b/go.mod h1:5pZySnw3RiQKddx8orThjEFmWsXkGAY3ktKOxZj2Ym4= github.com/rivo/uniseg v0.1.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= github.com/rivo/uniseg v0.4.4 h1:8TfxU8dW6PdqD27gjM8MVNuicgxIjxpm4K7x4jp8sis= diff --git a/sdk/nodejs/authorization/getRoleDefinition.ts b/sdk/nodejs/authorization/getRoleDefinition.ts index 78d897bff6..e702cb019b 100644 --- a/sdk/nodejs/authorization/getRoleDefinition.ts +++ b/sdk/nodejs/authorization/getRoleDefinition.ts @@ -25,7 +25,7 @@ import * as utilities from "../utilities"; * roleDefinitionId: roleDefinitionId, * scope: primary.id, * })); - * const custom-byname = pulumi.all([customRoleDefinition.name, primary]).apply(([name, primary]) => azure.authorization.getRoleDefinitionOutput({ + * const custom_byname = pulumi.all([customRoleDefinition.name, primary]).apply(([name, primary]) => azure.authorization.getRoleDefinitionOutput({ * name: name, * scope: primary.id, * })); @@ -115,7 +115,7 @@ export interface GetRoleDefinitionResult { * roleDefinitionId: roleDefinitionId, * scope: primary.id, * })); - * const custom-byname = pulumi.all([customRoleDefinition.name, primary]).apply(([name, primary]) => azure.authorization.getRoleDefinitionOutput({ + * const custom_byname = pulumi.all([customRoleDefinition.name, primary]).apply(([name, primary]) => azure.authorization.getRoleDefinitionOutput({ * name: name, * scope: primary.id, * })); diff --git a/sdk/nodejs/lb/backendAddressPoolAddress.ts b/sdk/nodejs/lb/backendAddressPoolAddress.ts index dcd0875d26..dff1c56283 100644 --- a/sdk/nodejs/lb/backendAddressPoolAddress.ts +++ b/sdk/nodejs/lb/backendAddressPoolAddress.ts @@ -35,7 +35,7 @@ import * as utilities from "../utilities"; * virtualNetworkId: example.then(example => example.id), * ipAddress: "10.0.0.1", * }); - * const backend-pool-cr = exampleGetLB.then(exampleGetLB => azure.lb.getBackendAddressPool({ + * const backend_pool_cr = exampleGetLB.then(exampleGetLB => azure.lb.getBackendAddressPool({ * name: "globalLBBackendPool", * loadbalancerId: exampleGetLB.id, * })); diff --git a/sdk/nodejs/role/getRoleDefinition.ts b/sdk/nodejs/role/getRoleDefinition.ts index 72c5d374cf..74422be241 100644 --- a/sdk/nodejs/role/getRoleDefinition.ts +++ b/sdk/nodejs/role/getRoleDefinition.ts @@ -25,7 +25,7 @@ import * as utilities from "../utilities"; * roleDefinitionId: roleDefinitionId, * scope: primary.id, * })); - * const custom-byname = pulumi.all([customRoleDefinition.name, primary]).apply(([name, primary]) => azure.authorization.getRoleDefinitionOutput({ + * const custom_byname = pulumi.all([customRoleDefinition.name, primary]).apply(([name, primary]) => azure.authorization.getRoleDefinitionOutput({ * name: name, * scope: primary.id, * })); @@ -117,7 +117,7 @@ export interface GetRoleDefinitionResult { * roleDefinitionId: roleDefinitionId, * scope: primary.id, * })); - * const custom-byname = pulumi.all([customRoleDefinition.name, primary]).apply(([name, primary]) => azure.authorization.getRoleDefinitionOutput({ + * const custom_byname = pulumi.all([customRoleDefinition.name, primary]).apply(([name, primary]) => azure.authorization.getRoleDefinitionOutput({ * name: name, * scope: primary.id, * }));