Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.pulumi.azure.compute.kotlin.DiskPoolIscsiTargetLunArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.compute.kotlin
import com.pulumi.azure.compute.DiskPoolIscsiTargetLunArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Manages an iSCSI Target lun.
* !> **Note:** Azure are officially [halting](https://learn.microsoft.com/en-us/azure/azure-vmware/attach-disk-pools-to-azure-vmware-solution-hosts?tabs=azure-cli) the preview of Azure Disk Pools, and it **will not** be made generally available. New customers will not be able to register the Microsoft.StoragePool resource provider on their subscription and deploy new Disk Pools. Existing subscriptions registered with Microsoft.StoragePool may continue to deploy and manage disk pools for the time being.
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as azure from "@pulumi/azure";
* import * as azuread from "@pulumi/azuread";
* const exampleResourceGroup = new azure.core.ResourceGroup("example", {
* name: "example",
* location: "West Europe",
* });
* const exampleVirtualNetwork = new azure.network.VirtualNetwork("example", {
* name: "example-network",
* resourceGroupName: exampleResourceGroup.name,
* location: exampleResourceGroup.location,
* addressSpaces: ["10.0.0.0/16"],
* });
* const exampleSubnet = new azure.network.Subnet("example", {
* name: "example-subnet",
* resourceGroupName: exampleResourceGroup.name,
* virtualNetworkName: exampleVirtualNetwork.name,
* addressPrefixes: ["10.0.0.0/24"],
* delegations: [{
* name: "diskspool",
* serviceDelegation: {
* actions: ["Microsoft.Network/virtualNetworks/read"],
* name: "Microsoft.StoragePool/diskPools",
* },
* }],
* });
* const exampleDiskPool = new azure.compute.DiskPool("example", {
* name: "example-pool",
* resourceGroupName: exampleResourceGroup.name,
* location: exampleResourceGroup.location,
* subnetId: exampleSubnet.id,
* zones: ["1"],
* skuName: "Basic_B1",
* });
* const exampleManagedDisk = new azure.compute.ManagedDisk("example", {
* name: "example-disk",
* resourceGroupName: exampleResourceGroup.name,
* location: exampleResourceGroup.location,
* createOption: "Empty",
* storageAccountType: "Premium_LRS",
* diskSizeGb: 4,
* maxShares: 2,
* zone: "1",
* });
* const example = azuread.getServicePrincipal({
* displayName: "StoragePool Resource Provider",
* });
* const roles = [
* "Disk Pool Operator",
* "Virtual Machine Contributor",
* ];
* const exampleAssignment: azure.authorization.Assignment[] = [];
* for (const range = {value: 0}; range.value < roles.length; range.value++) {
* exampleAssignment.push(new azure.authorization.Assignment(`example-${range.value}`, {
* principalId: example.then(example => example.id),
* roleDefinitionName: roles[range.value],
* scope: exampleManagedDisk.id,
* }));
* }
* const exampleDiskPoolManagedDiskAttachment = new azure.compute.DiskPoolManagedDiskAttachment("example", {
* diskPoolId: exampleDiskPool.id,
* managedDiskId: exampleManagedDisk.id,
* }, {
* dependsOn: [exampleAssignment],
* });
* const exampleDiskPoolIscsiTarget = new azure.compute.DiskPoolIscsiTarget("example", {
* name: "example",
* aclMode: "Dynamic",
* disksPoolId: exampleDiskPool.id,
* targetIqn: "iqn.2021-11.com.microsoft:test",
* }, {
* dependsOn: [exampleDiskPoolManagedDiskAttachment],
* });
* const exampleDiskPoolIscsiTargetLun = new azure.compute.DiskPoolIscsiTargetLun("example", {
* iscsiTargetId: exampleDiskPoolIscsiTarget.id,
* diskPoolManagedDiskAttachmentId: exampleDiskPoolManagedDiskAttachment.id,
* name: "example-disk",
* });
* ```
* ```python
* import pulumi
* import pulumi_azure as azure
* import pulumi_azuread as azuread
* example_resource_group = azure.core.ResourceGroup("example",
* name="example",
* location="West Europe")
* example_virtual_network = azure.network.VirtualNetwork("example",
* name="example-network",
* resource_group_name=example_resource_group.name,
* location=example_resource_group.location,
* address_spaces=["10.0.0.0/16"])
* example_subnet = azure.network.Subnet("example",
* name="example-subnet",
* resource_group_name=example_resource_group.name,
* virtual_network_name=example_virtual_network.name,
* address_prefixes=["10.0.0.0/24"],
* delegations=[{
* "name": "diskspool",
* "service_delegation": {
* "actions": ["Microsoft.Network/virtualNetworks/read"],
* "name": "Microsoft.StoragePool/diskPools",
* },
* }])
* example_disk_pool = azure.compute.DiskPool("example",
* name="example-pool",
* resource_group_name=example_resource_group.name,
* location=example_resource_group.location,
* subnet_id=example_subnet.id,
* zones=["1"],
* sku_name="Basic_B1")
* example_managed_disk = azure.compute.ManagedDisk("example",
* name="example-disk",
* resource_group_name=example_resource_group.name,
* location=example_resource_group.location,
* create_option="Empty",
* storage_account_type="Premium_LRS",
* disk_size_gb=4,
* max_shares=2,
* zone="1")
* example = azuread.get_service_principal(display_name="StoragePool Resource Provider")
* roles = [
* "Disk Pool Operator",
* "Virtual Machine Contributor",
* ]
* example_assignment = []
* for range in [{"value": i} for i in range(0, len(roles))]:
* example_assignment.append(azure.authorization.Assignment(f"example-{range['value']}",
* principal_id=example.id,
* role_definition_name=roles[range["value"]],
* scope=example_managed_disk.id))
* example_disk_pool_managed_disk_attachment = azure.compute.DiskPoolManagedDiskAttachment("example",
* disk_pool_id=example_disk_pool.id,
* managed_disk_id=example_managed_disk.id,
* opts = pulumi.ResourceOptions(depends_on=[example_assignment]))
* example_disk_pool_iscsi_target = azure.compute.DiskPoolIscsiTarget("example",
* name="example",
* acl_mode="Dynamic",
* disks_pool_id=example_disk_pool.id,
* target_iqn="iqn.2021-11.com.microsoft:test",
* opts = pulumi.ResourceOptions(depends_on=[example_disk_pool_managed_disk_attachment]))
* example_disk_pool_iscsi_target_lun = azure.compute.DiskPoolIscsiTargetLun("example",
* iscsi_target_id=example_disk_pool_iscsi_target.id,
* disk_pool_managed_disk_attachment_id=example_disk_pool_managed_disk_attachment.id,
* name="example-disk")
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Azure = Pulumi.Azure;
* using AzureAD = Pulumi.AzureAD;
* return await Deployment.RunAsync(() =>
* {
* var exampleResourceGroup = new Azure.Core.ResourceGroup("example", new()
* {
* Name = "example",
* Location = "West Europe",
* });
* var exampleVirtualNetwork = new Azure.Network.VirtualNetwork("example", new()
* {
* Name = "example-network",
* ResourceGroupName = exampleResourceGroup.Name,
* Location = exampleResourceGroup.Location,
* AddressSpaces = new[]
* {
* "10.0.0.0/16",
* },
* });
* var exampleSubnet = new Azure.Network.Subnet("example", new()
* {
* Name = "example-subnet",
* ResourceGroupName = exampleResourceGroup.Name,
* VirtualNetworkName = exampleVirtualNetwork.Name,
* AddressPrefixes = new[]
* {
* "10.0.0.0/24",
* },
* Delegations = new[]
* {
* new Azure.Network.Inputs.SubnetDelegationArgs
* {
* Name = "diskspool",
* ServiceDelegation = new Azure.Network.Inputs.SubnetDelegationServiceDelegationArgs
* {
* Actions = new[]
* {
* "Microsoft.Network/virtualNetworks/read",
* },
* Name = "Microsoft.StoragePool/diskPools",
* },
* },
* },
* });
* var exampleDiskPool = new Azure.Compute.DiskPool("example", new()
* {
* Name = "example-pool",
* ResourceGroupName = exampleResourceGroup.Name,
* Location = exampleResourceGroup.Location,
* SubnetId = exampleSubnet.Id,
* Zones = new[]
* {
* "1",
* },
* SkuName = "Basic_B1",
* });
* var exampleManagedDisk = new Azure.Compute.ManagedDisk("example", new()
* {
* Name = "example-disk",
* ResourceGroupName = exampleResourceGroup.Name,
* Location = exampleResourceGroup.Location,
* CreateOption = "Empty",
* StorageAccountType = "Premium_LRS",
* DiskSizeGb = 4,
* MaxShares = 2,
* Zone = "1",
* });
* var example = AzureAD.GetServicePrincipal.Invoke(new()
* {
* DisplayName = "StoragePool Resource Provider",
* });
* var roles = new[]
* {
* "Disk Pool Operator",
* "Virtual Machine Contributor",
* };
* var exampleAssignment = new List();
* for (var rangeIndex = 0; rangeIndex < roles.Length; rangeIndex++)
* {
* var range = new { Value = rangeIndex };
* exampleAssignment.Add(new Azure.Authorization.Assignment($"example-{range.Value}", new()
* {
* PrincipalId = example.Apply(getServicePrincipalResult => getServicePrincipalResult.Id),
* RoleDefinitionName = roles[range.Value],
* Scope = exampleManagedDisk.Id,
* }));
* }
* var exampleDiskPoolManagedDiskAttachment = new Azure.Compute.DiskPoolManagedDiskAttachment("example", new()
* {
* DiskPoolId = exampleDiskPool.Id,
* ManagedDiskId = exampleManagedDisk.Id,
* }, new CustomResourceOptions
* {
* DependsOn =
* {
* exampleAssignment,
* },
* });
* var exampleDiskPoolIscsiTarget = new Azure.Compute.DiskPoolIscsiTarget("example", new()
* {
* Name = "example",
* AclMode = "Dynamic",
* DisksPoolId = exampleDiskPool.Id,
* TargetIqn = "iqn.2021-11.com.microsoft:test",
* }, new CustomResourceOptions
* {
* DependsOn =
* {
* exampleDiskPoolManagedDiskAttachment,
* },
* });
* var exampleDiskPoolIscsiTargetLun = new Azure.Compute.DiskPoolIscsiTargetLun("example", new()
* {
* IscsiTargetId = exampleDiskPoolIscsiTarget.Id,
* DiskPoolManagedDiskAttachmentId = exampleDiskPoolManagedDiskAttachment.Id,
* Name = "example-disk",
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/authorization"
* "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/compute"
* "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
* "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/network"
* "github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* exampleResourceGroup, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
* Name: pulumi.String("example"),
* Location: pulumi.String("West Europe"),
* })
* if err != nil {
* return err
* }
* exampleVirtualNetwork, err := network.NewVirtualNetwork(ctx, "example", &network.VirtualNetworkArgs{
* Name: pulumi.String("example-network"),
* ResourceGroupName: exampleResourceGroup.Name,
* Location: exampleResourceGroup.Location,
* AddressSpaces: pulumi.StringArray{
* pulumi.String("10.0.0.0/16"),
* },
* })
* if err != nil {
* return err
* }
* exampleSubnet, err := network.NewSubnet(ctx, "example", &network.SubnetArgs{
* Name: pulumi.String("example-subnet"),
* ResourceGroupName: exampleResourceGroup.Name,
* VirtualNetworkName: exampleVirtualNetwork.Name,
* AddressPrefixes: pulumi.StringArray{
* pulumi.String("10.0.0.0/24"),
* },
* Delegations: network.SubnetDelegationArray{
* &network.SubnetDelegationArgs{
* Name: pulumi.String("diskspool"),
* ServiceDelegation: &network.SubnetDelegationServiceDelegationArgs{
* Actions: pulumi.StringArray{
* pulumi.String("Microsoft.Network/virtualNetworks/read"),
* },
* Name: pulumi.String("Microsoft.StoragePool/diskPools"),
* },
* },
* },
* })
* if err != nil {
* return err
* }
* exampleDiskPool, err := compute.NewDiskPool(ctx, "example", &compute.DiskPoolArgs{
* Name: pulumi.String("example-pool"),
* ResourceGroupName: exampleResourceGroup.Name,
* Location: exampleResourceGroup.Location,
* SubnetId: exampleSubnet.ID(),
* Zones: pulumi.StringArray{
* pulumi.String("1"),
* },
* SkuName: pulumi.String("Basic_B1"),
* })
* if err != nil {
* return err
* }
* exampleManagedDisk, err := compute.NewManagedDisk(ctx, "example", &compute.ManagedDiskArgs{
* Name: pulumi.String("example-disk"),
* ResourceGroupName: exampleResourceGroup.Name,
* Location: exampleResourceGroup.Location,
* CreateOption: pulumi.String("Empty"),
* StorageAccountType: pulumi.String("Premium_LRS"),
* DiskSizeGb: pulumi.Int(4),
* MaxShares: pulumi.Int(2),
* Zone: pulumi.String("1"),
* })
* if err != nil {
* return err
* }
* example, err := azuread.LookupServicePrincipal(ctx, &azuread.LookupServicePrincipalArgs{
* DisplayName: pulumi.StringRef("StoragePool Resource Provider"),
* }, nil)
* if err != nil {
* return err
* }
* roles := []string{
* "Disk Pool Operator",
* "Virtual Machine Contributor",
* }
* var exampleAssignment []*authorization.Assignment
* for index := 0; index < len(roles); index++ {
* key0 := index
* val0 := index
* __res, err := authorization.NewAssignment(ctx, fmt.Sprintf("example-%v", key0), &authorization.AssignmentArgs{
* PrincipalId: pulumi.String(example.Id),
* RoleDefinitionName: pulumi.String(roles[val0]),
* Scope: exampleManagedDisk.ID(),
* })
* if err != nil {
* return err
* }
* exampleAssignment = append(exampleAssignment, __res)
* }
* exampleDiskPoolManagedDiskAttachment, err := compute.NewDiskPoolManagedDiskAttachment(ctx, "example", &compute.DiskPoolManagedDiskAttachmentArgs{
* DiskPoolId: exampleDiskPool.ID(),
* ManagedDiskId: exampleManagedDisk.ID(),
* }, pulumi.DependsOn([]pulumi.Resource{
* exampleAssignment,
* }))
* if err != nil {
* return err
* }
* exampleDiskPoolIscsiTarget, err := compute.NewDiskPoolIscsiTarget(ctx, "example", &compute.DiskPoolIscsiTargetArgs{
* Name: pulumi.String("example"),
* AclMode: pulumi.String("Dynamic"),
* DisksPoolId: exampleDiskPool.ID(),
* TargetIqn: pulumi.String("iqn.2021-11.com.microsoft:test"),
* }, pulumi.DependsOn([]pulumi.Resource{
* exampleDiskPoolManagedDiskAttachment,
* }))
* if err != nil {
* return err
* }
* _, err = compute.NewDiskPoolIscsiTargetLun(ctx, "example", &compute.DiskPoolIscsiTargetLunArgs{
* IscsiTargetId: exampleDiskPoolIscsiTarget.ID(),
* DiskPoolManagedDiskAttachmentId: exampleDiskPoolManagedDiskAttachment.ID(),
* Name: pulumi.String("example-disk"),
* })
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* 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.network.VirtualNetwork;
* import com.pulumi.azure.network.VirtualNetworkArgs;
* import com.pulumi.azure.network.Subnet;
* import com.pulumi.azure.network.SubnetArgs;
* import com.pulumi.azure.network.inputs.SubnetDelegationArgs;
* import com.pulumi.azure.network.inputs.SubnetDelegationServiceDelegationArgs;
* import com.pulumi.azure.compute.DiskPool;
* import com.pulumi.azure.compute.DiskPoolArgs;
* import com.pulumi.azure.compute.ManagedDisk;
* import com.pulumi.azure.compute.ManagedDiskArgs;
* import com.pulumi.azuread.AzureadFunctions;
* import com.pulumi.azuread.inputs.GetServicePrincipalArgs;
* import com.pulumi.azure.authorization.Assignment;
* import com.pulumi.azure.authorization.AssignmentArgs;
* import com.pulumi.azure.compute.DiskPoolManagedDiskAttachment;
* import com.pulumi.azure.compute.DiskPoolManagedDiskAttachmentArgs;
* import com.pulumi.azure.compute.DiskPoolIscsiTarget;
* import com.pulumi.azure.compute.DiskPoolIscsiTargetArgs;
* import com.pulumi.azure.compute.DiskPoolIscsiTargetLun;
* import com.pulumi.azure.compute.DiskPoolIscsiTargetLunArgs;
* import com.pulumi.codegen.internal.KeyedValue;
* import com.pulumi.resources.CustomResourceOptions;
* 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 exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
* .name("example")
* .location("West Europe")
* .build());
* var exampleVirtualNetwork = new VirtualNetwork("exampleVirtualNetwork", VirtualNetworkArgs.builder()
* .name("example-network")
* .resourceGroupName(exampleResourceGroup.name())
* .location(exampleResourceGroup.location())
* .addressSpaces("10.0.0.0/16")
* .build());
* var exampleSubnet = new Subnet("exampleSubnet", SubnetArgs.builder()
* .name("example-subnet")
* .resourceGroupName(exampleResourceGroup.name())
* .virtualNetworkName(exampleVirtualNetwork.name())
* .addressPrefixes("10.0.0.0/24")
* .delegations(SubnetDelegationArgs.builder()
* .name("diskspool")
* .serviceDelegation(SubnetDelegationServiceDelegationArgs.builder()
* .actions("Microsoft.Network/virtualNetworks/read")
* .name("Microsoft.StoragePool/diskPools")
* .build())
* .build())
* .build());
* var exampleDiskPool = new DiskPool("exampleDiskPool", DiskPoolArgs.builder()
* .name("example-pool")
* .resourceGroupName(exampleResourceGroup.name())
* .location(exampleResourceGroup.location())
* .subnetId(exampleSubnet.id())
* .zones("1")
* .skuName("Basic_B1")
* .build());
* var exampleManagedDisk = new ManagedDisk("exampleManagedDisk", ManagedDiskArgs.builder()
* .name("example-disk")
* .resourceGroupName(exampleResourceGroup.name())
* .location(exampleResourceGroup.location())
* .createOption("Empty")
* .storageAccountType("Premium_LRS")
* .diskSizeGb(4)
* .maxShares(2)
* .zone("1")
* .build());
* final var example = AzureadFunctions.getServicePrincipal(GetServicePrincipalArgs.builder()
* .displayName("StoragePool Resource Provider")
* .build());
* final var roles =
* "Disk Pool Operator",
* "Virtual Machine Contributor";
* for (var i = 0; i < roles.length(); i++) {
* new Assignment("exampleAssignment-" + i, AssignmentArgs.builder()
* .principalId(example.applyValue(getServicePrincipalResult -> getServicePrincipalResult.id()))
* .roleDefinitionName(roles[range.value()])
* .scope(exampleManagedDisk.id())
* .build());
* }
* var exampleDiskPoolManagedDiskAttachment = new DiskPoolManagedDiskAttachment("exampleDiskPoolManagedDiskAttachment", DiskPoolManagedDiskAttachmentArgs.builder()
* .diskPoolId(exampleDiskPool.id())
* .managedDiskId(exampleManagedDisk.id())
* .build(), CustomResourceOptions.builder()
* .dependsOn(exampleAssignment)
* .build());
* var exampleDiskPoolIscsiTarget = new DiskPoolIscsiTarget("exampleDiskPoolIscsiTarget", DiskPoolIscsiTargetArgs.builder()
* .name("example")
* .aclMode("Dynamic")
* .disksPoolId(exampleDiskPool.id())
* .targetIqn("iqn.2021-11.com.microsoft:test")
* .build(), CustomResourceOptions.builder()
* .dependsOn(exampleDiskPoolManagedDiskAttachment)
* .build());
* var exampleDiskPoolIscsiTargetLun = new DiskPoolIscsiTargetLun("exampleDiskPoolIscsiTargetLun", DiskPoolIscsiTargetLunArgs.builder()
* .iscsiTargetId(exampleDiskPoolIscsiTarget.id())
* .diskPoolManagedDiskAttachmentId(exampleDiskPoolManagedDiskAttachment.id())
* .name("example-disk")
* .build());
* }
* }
* ```
*
* ## Import
* iSCSI Target Luns can be imported using the `resource id`, e.g.
* ```sh
* $ pulumi import azure:compute/diskPoolIscsiTargetLun:DiskPoolIscsiTargetLun example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/example-resource-group/providers/Microsoft.StoragePool/diskPools/diskPoolValue/iscsiTargets/iscsiTargetValue/lun|/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resGroup1/providers/Microsoft.Compute/disks/disk1
* ```
* @property diskPoolManagedDiskAttachmentId The ID of the `azure.compute.DiskPoolManagedDiskAttachment`. Changing this forces a new iSCSI Target LUN to be created.
* @property iscsiTargetId The ID of the iSCSI Target. Changing this forces a new iSCSI Target LUN to be created.
* @property name User defined name for iSCSI LUN. Supported characters include uppercase letters, lowercase letters, numbers, periods, underscores or hyphens. Name should end with an alphanumeric character. The length must be between `1` and `90`. Changing this forces a new iSCSI Target LUN to be created.
*/
public data class DiskPoolIscsiTargetLunArgs(
public val diskPoolManagedDiskAttachmentId: Output? = null,
public val iscsiTargetId: Output? = null,
public val name: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.compute.DiskPoolIscsiTargetLunArgs =
com.pulumi.azure.compute.DiskPoolIscsiTargetLunArgs.builder()
.diskPoolManagedDiskAttachmentId(diskPoolManagedDiskAttachmentId?.applyValue({ args0 -> args0 }))
.iscsiTargetId(iscsiTargetId?.applyValue({ args0 -> args0 }))
.name(name?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [DiskPoolIscsiTargetLunArgs].
*/
@PulumiTagMarker
public class DiskPoolIscsiTargetLunArgsBuilder internal constructor() {
private var diskPoolManagedDiskAttachmentId: Output? = null
private var iscsiTargetId: Output? = null
private var name: Output? = null
/**
* @param value The ID of the `azure.compute.DiskPoolManagedDiskAttachment`. Changing this forces a new iSCSI Target LUN to be created.
*/
@JvmName("dcabjjuddfssarbn")
public suspend fun diskPoolManagedDiskAttachmentId(`value`: Output) {
this.diskPoolManagedDiskAttachmentId = value
}
/**
* @param value The ID of the iSCSI Target. Changing this forces a new iSCSI Target LUN to be created.
*/
@JvmName("tbfjtjbxtrcsssin")
public suspend fun iscsiTargetId(`value`: Output) {
this.iscsiTargetId = value
}
/**
* @param value User defined name for iSCSI LUN. Supported characters include uppercase letters, lowercase letters, numbers, periods, underscores or hyphens. Name should end with an alphanumeric character. The length must be between `1` and `90`. Changing this forces a new iSCSI Target LUN to be created.
*/
@JvmName("veymdklhdwcqdafv")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value The ID of the `azure.compute.DiskPoolManagedDiskAttachment`. Changing this forces a new iSCSI Target LUN to be created.
*/
@JvmName("glhppkxbqbybgsor")
public suspend fun diskPoolManagedDiskAttachmentId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.diskPoolManagedDiskAttachmentId = mapped
}
/**
* @param value The ID of the iSCSI Target. Changing this forces a new iSCSI Target LUN to be created.
*/
@JvmName("ikgtgjbqhxnhmmnb")
public suspend fun iscsiTargetId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.iscsiTargetId = mapped
}
/**
* @param value User defined name for iSCSI LUN. Supported characters include uppercase letters, lowercase letters, numbers, periods, underscores or hyphens. Name should end with an alphanumeric character. The length must be between `1` and `90`. Changing this forces a new iSCSI Target LUN to be created.
*/
@JvmName("sfiexllckmhpqfps")
public suspend fun name(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.name = mapped
}
internal fun build(): DiskPoolIscsiTargetLunArgs = DiskPoolIscsiTargetLunArgs(
diskPoolManagedDiskAttachmentId = diskPoolManagedDiskAttachmentId,
iscsiTargetId = iscsiTargetId,
name = name,
)
}