pub struct ManagedDiskArgsBuilder<S: State = Empty> { /* private fields */ }
Expand description
Use builder syntax to set the inputs and finish with build_struct()
.
Implementations§
source§impl<S: State> ManagedDiskArgsBuilder<S>
impl<S: State> ManagedDiskArgsBuilder<S>
sourcepub fn build_struct(self) -> ManagedDiskArgswhere
S: IsComplete,
pub fn build_struct(self) -> ManagedDiskArgswhere
S: IsComplete,
Finish building and return the requested object
sourcepub fn create_option(
self,
value: impl Into<Output<String>>,
) -> ManagedDiskArgsBuilder<SetCreateOption<S>>where
S::CreateOption: IsUnset,
pub fn create_option(
self,
value: impl Into<Output<String>>,
) -> ManagedDiskArgsBuilder<SetCreateOption<S>>where
S::CreateOption: IsUnset,
Required.
The method to use when creating the managed disk. Changing this forces a new resource to be created. Possible values include:
Import
- Import a VHD file in to the managed disk (VHD specified withsource_uri
).ImportSecure
- Securely import a VHD file in to the managed disk (VHD specified withsource_uri
).Empty
- Create an empty managed disk.Copy
- Copy an existing managed disk or snapshot (specified withsource_resource_id
).FromImage
- Copy a Platform Image (specified withimage_reference_id
)Restore
- Set by Azure Backup or Site Recovery on a restored disk (specified withsource_resource_id
).Upload
- Upload a VHD disk with the help of SAS URL (to be used withupload_size_bytes
).
sourcepub fn disk_access_id(
self,
value: impl Into<Output<Option<String>>>,
) -> ManagedDiskArgsBuilder<SetDiskAccessId<S>>where
S::DiskAccessId: IsUnset,
pub fn disk_access_id(
self,
value: impl Into<Output<Option<String>>>,
) -> ManagedDiskArgsBuilder<SetDiskAccessId<S>>where
S::DiskAccessId: IsUnset,
sourcepub fn maybe_disk_access_id(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> ManagedDiskArgsBuilder<SetDiskAccessId<S>>where
S::DiskAccessId: IsUnset,
pub fn maybe_disk_access_id(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> ManagedDiskArgsBuilder<SetDiskAccessId<S>>where
S::DiskAccessId: IsUnset,
sourcepub fn disk_encryption_set_id(
self,
value: impl Into<Output<Option<String>>>,
) -> ManagedDiskArgsBuilder<SetDiskEncryptionSetId<S>>where
S::DiskEncryptionSetId: IsUnset,
pub fn disk_encryption_set_id(
self,
value: impl Into<Output<Option<String>>>,
) -> ManagedDiskArgsBuilder<SetDiskEncryptionSetId<S>>where
S::DiskEncryptionSetId: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
The ID of a Disk Encryption Set which should be used to encrypt this Managed Disk. Conflicts with secure_vm_disk_encryption_set_id
.
NOTE: The Disk Encryption Set must have the
Reader
Role Assignment scoped on the Key Vault - in addition to an Access Policy to the Key Vault
NOTE: Disk Encryption Sets are in Public Preview in a limited set of regions
sourcepub fn maybe_disk_encryption_set_id(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> ManagedDiskArgsBuilder<SetDiskEncryptionSetId<S>>where
S::DiskEncryptionSetId: IsUnset,
pub fn maybe_disk_encryption_set_id(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> ManagedDiskArgsBuilder<SetDiskEncryptionSetId<S>>where
S::DiskEncryptionSetId: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
The ID of a Disk Encryption Set which should be used to encrypt this Managed Disk. Conflicts with secure_vm_disk_encryption_set_id
.
NOTE: The Disk Encryption Set must have the
Reader
Role Assignment scoped on the Key Vault - in addition to an Access Policy to the Key Vault
NOTE: Disk Encryption Sets are in Public Preview in a limited set of regions
sourcepub fn disk_iops_read_only(
self,
value: impl Into<Output<Option<i32>>>,
) -> ManagedDiskArgsBuilder<SetDiskIopsReadOnly<S>>where
S::DiskIopsReadOnly: IsUnset,
pub fn disk_iops_read_only(
self,
value: impl Into<Output<Option<i32>>>,
) -> ManagedDiskArgsBuilder<SetDiskIopsReadOnly<S>>where
S::DiskIopsReadOnly: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<i32>> as Default>::default()
.
The number of IOPS allowed across all VMs mounting the shared disk as read-only; only settable for UltraSSD disks and PremiumV2 disks with shared disk enabled. One operation can transfer between 4k and 256k bytes.
sourcepub fn maybe_disk_iops_read_only(
self,
value: Option<impl Into<Output<Option<i32>>>>,
) -> ManagedDiskArgsBuilder<SetDiskIopsReadOnly<S>>where
S::DiskIopsReadOnly: IsUnset,
pub fn maybe_disk_iops_read_only(
self,
value: Option<impl Into<Output<Option<i32>>>>,
) -> ManagedDiskArgsBuilder<SetDiskIopsReadOnly<S>>where
S::DiskIopsReadOnly: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<i32>> as Default>::default()
.
The number of IOPS allowed across all VMs mounting the shared disk as read-only; only settable for UltraSSD disks and PremiumV2 disks with shared disk enabled. One operation can transfer between 4k and 256k bytes.
sourcepub fn disk_iops_read_write(
self,
value: impl Into<Output<Option<i32>>>,
) -> ManagedDiskArgsBuilder<SetDiskIopsReadWrite<S>>where
S::DiskIopsReadWrite: IsUnset,
pub fn disk_iops_read_write(
self,
value: impl Into<Output<Option<i32>>>,
) -> ManagedDiskArgsBuilder<SetDiskIopsReadWrite<S>>where
S::DiskIopsReadWrite: IsUnset,
sourcepub fn maybe_disk_iops_read_write(
self,
value: Option<impl Into<Output<Option<i32>>>>,
) -> ManagedDiskArgsBuilder<SetDiskIopsReadWrite<S>>where
S::DiskIopsReadWrite: IsUnset,
pub fn maybe_disk_iops_read_write(
self,
value: Option<impl Into<Output<Option<i32>>>>,
) -> ManagedDiskArgsBuilder<SetDiskIopsReadWrite<S>>where
S::DiskIopsReadWrite: IsUnset,
sourcepub fn disk_mbps_read_only(
self,
value: impl Into<Output<Option<i32>>>,
) -> ManagedDiskArgsBuilder<SetDiskMbpsReadOnly<S>>where
S::DiskMbpsReadOnly: IsUnset,
pub fn disk_mbps_read_only(
self,
value: impl Into<Output<Option<i32>>>,
) -> ManagedDiskArgsBuilder<SetDiskMbpsReadOnly<S>>where
S::DiskMbpsReadOnly: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<i32>> as Default>::default()
.
The bandwidth allowed across all VMs mounting the shared disk as read-only; only settable for UltraSSD disks and PremiumV2 disks with shared disk enabled. MBps means millions of bytes per second.
sourcepub fn maybe_disk_mbps_read_only(
self,
value: Option<impl Into<Output<Option<i32>>>>,
) -> ManagedDiskArgsBuilder<SetDiskMbpsReadOnly<S>>where
S::DiskMbpsReadOnly: IsUnset,
pub fn maybe_disk_mbps_read_only(
self,
value: Option<impl Into<Output<Option<i32>>>>,
) -> ManagedDiskArgsBuilder<SetDiskMbpsReadOnly<S>>where
S::DiskMbpsReadOnly: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<i32>> as Default>::default()
.
The bandwidth allowed across all VMs mounting the shared disk as read-only; only settable for UltraSSD disks and PremiumV2 disks with shared disk enabled. MBps means millions of bytes per second.
sourcepub fn disk_mbps_read_write(
self,
value: impl Into<Output<Option<i32>>>,
) -> ManagedDiskArgsBuilder<SetDiskMbpsReadWrite<S>>where
S::DiskMbpsReadWrite: IsUnset,
pub fn disk_mbps_read_write(
self,
value: impl Into<Output<Option<i32>>>,
) -> ManagedDiskArgsBuilder<SetDiskMbpsReadWrite<S>>where
S::DiskMbpsReadWrite: IsUnset,
sourcepub fn maybe_disk_mbps_read_write(
self,
value: Option<impl Into<Output<Option<i32>>>>,
) -> ManagedDiskArgsBuilder<SetDiskMbpsReadWrite<S>>where
S::DiskMbpsReadWrite: IsUnset,
pub fn maybe_disk_mbps_read_write(
self,
value: Option<impl Into<Output<Option<i32>>>>,
) -> ManagedDiskArgsBuilder<SetDiskMbpsReadWrite<S>>where
S::DiskMbpsReadWrite: IsUnset,
sourcepub fn disk_size_gb(
self,
value: impl Into<Output<Option<i32>>>,
) -> ManagedDiskArgsBuilder<SetDiskSizeGb<S>>where
S::DiskSizeGb: IsUnset,
pub fn disk_size_gb(
self,
value: impl Into<Output<Option<i32>>>,
) -> ManagedDiskArgsBuilder<SetDiskSizeGb<S>>where
S::DiskSizeGb: IsUnset,
sourcepub fn maybe_disk_size_gb(
self,
value: Option<impl Into<Output<Option<i32>>>>,
) -> ManagedDiskArgsBuilder<SetDiskSizeGb<S>>where
S::DiskSizeGb: IsUnset,
pub fn maybe_disk_size_gb(
self,
value: Option<impl Into<Output<Option<i32>>>>,
) -> ManagedDiskArgsBuilder<SetDiskSizeGb<S>>where
S::DiskSizeGb: IsUnset,
sourcepub fn edge_zone(
self,
value: impl Into<Output<Option<String>>>,
) -> ManagedDiskArgsBuilder<SetEdgeZone<S>>where
S::EdgeZone: IsUnset,
pub fn edge_zone(
self,
value: impl Into<Output<Option<String>>>,
) -> ManagedDiskArgsBuilder<SetEdgeZone<S>>where
S::EdgeZone: IsUnset,
sourcepub fn maybe_edge_zone(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> ManagedDiskArgsBuilder<SetEdgeZone<S>>where
S::EdgeZone: IsUnset,
pub fn maybe_edge_zone(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> ManagedDiskArgsBuilder<SetEdgeZone<S>>where
S::EdgeZone: IsUnset,
sourcepub fn encryption_settings(
self,
value: impl Into<Output<Option<ManagedDiskEncryptionSettings>>>,
) -> ManagedDiskArgsBuilder<SetEncryptionSettings<S>>where
S::EncryptionSettings: IsUnset,
pub fn encryption_settings(
self,
value: impl Into<Output<Option<ManagedDiskEncryptionSettings>>>,
) -> ManagedDiskArgsBuilder<SetEncryptionSettings<S>>where
S::EncryptionSettings: IsUnset,
sourcepub fn maybe_encryption_settings(
self,
value: Option<impl Into<Output<Option<ManagedDiskEncryptionSettings>>>>,
) -> ManagedDiskArgsBuilder<SetEncryptionSettings<S>>where
S::EncryptionSettings: IsUnset,
pub fn maybe_encryption_settings(
self,
value: Option<impl Into<Output<Option<ManagedDiskEncryptionSettings>>>>,
) -> ManagedDiskArgsBuilder<SetEncryptionSettings<S>>where
S::EncryptionSettings: IsUnset,
sourcepub fn gallery_image_reference_id(
self,
value: impl Into<Output<Option<String>>>,
) -> ManagedDiskArgsBuilder<SetGalleryImageReferenceId<S>>where
S::GalleryImageReferenceId: IsUnset,
pub fn gallery_image_reference_id(
self,
value: impl Into<Output<Option<String>>>,
) -> ManagedDiskArgsBuilder<SetGalleryImageReferenceId<S>>where
S::GalleryImageReferenceId: IsUnset,
sourcepub fn maybe_gallery_image_reference_id(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> ManagedDiskArgsBuilder<SetGalleryImageReferenceId<S>>where
S::GalleryImageReferenceId: IsUnset,
pub fn maybe_gallery_image_reference_id(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> ManagedDiskArgsBuilder<SetGalleryImageReferenceId<S>>where
S::GalleryImageReferenceId: IsUnset,
sourcepub fn hyper_v_generation(
self,
value: impl Into<Output<Option<String>>>,
) -> ManagedDiskArgsBuilder<SetHyperVGeneration<S>>where
S::HyperVGeneration: IsUnset,
pub fn hyper_v_generation(
self,
value: impl Into<Output<Option<String>>>,
) -> ManagedDiskArgsBuilder<SetHyperVGeneration<S>>where
S::HyperVGeneration: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
The HyperV Generation of the Disk when the source of an Import
or Copy
operation targets a source that contains an operating system. Possible values are V1
and V2
. For ImportSecure
it must be set to V2
. Changing this forces a new resource to be created.
sourcepub fn maybe_hyper_v_generation(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> ManagedDiskArgsBuilder<SetHyperVGeneration<S>>where
S::HyperVGeneration: IsUnset,
pub fn maybe_hyper_v_generation(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> ManagedDiskArgsBuilder<SetHyperVGeneration<S>>where
S::HyperVGeneration: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
The HyperV Generation of the Disk when the source of an Import
or Copy
operation targets a source that contains an operating system. Possible values are V1
and V2
. For ImportSecure
it must be set to V2
. Changing this forces a new resource to be created.
sourcepub fn image_reference_id(
self,
value: impl Into<Output<Option<String>>>,
) -> ManagedDiskArgsBuilder<SetImageReferenceId<S>>where
S::ImageReferenceId: IsUnset,
pub fn image_reference_id(
self,
value: impl Into<Output<Option<String>>>,
) -> ManagedDiskArgsBuilder<SetImageReferenceId<S>>where
S::ImageReferenceId: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
ID of an existing platform/marketplace disk image to copy when create_option
is FromImage
. This field cannot be specified if gallery_image_reference_id is specified. Changing this forces a new resource to be created.
sourcepub fn maybe_image_reference_id(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> ManagedDiskArgsBuilder<SetImageReferenceId<S>>where
S::ImageReferenceId: IsUnset,
pub fn maybe_image_reference_id(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> ManagedDiskArgsBuilder<SetImageReferenceId<S>>where
S::ImageReferenceId: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
ID of an existing platform/marketplace disk image to copy when create_option
is FromImage
. This field cannot be specified if gallery_image_reference_id is specified. Changing this forces a new resource to be created.
sourcepub fn location(
self,
value: impl Into<Output<Option<String>>>,
) -> ManagedDiskArgsBuilder<SetLocation<S>>where
S::Location: IsUnset,
pub fn location(
self,
value: impl Into<Output<Option<String>>>,
) -> ManagedDiskArgsBuilder<SetLocation<S>>where
S::Location: IsUnset,
sourcepub fn maybe_location(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> ManagedDiskArgsBuilder<SetLocation<S>>where
S::Location: IsUnset,
pub fn maybe_location(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> ManagedDiskArgsBuilder<SetLocation<S>>where
S::Location: IsUnset,
sourcepub fn logical_sector_size(
self,
value: impl Into<Output<Option<i32>>>,
) -> ManagedDiskArgsBuilder<SetLogicalSectorSize<S>>where
S::LogicalSectorSize: IsUnset,
pub fn logical_sector_size(
self,
value: impl Into<Output<Option<i32>>>,
) -> ManagedDiskArgsBuilder<SetLogicalSectorSize<S>>where
S::LogicalSectorSize: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<i32>> as Default>::default()
.
Logical Sector Size. Possible values are: 512
and 4096
. Defaults to 4096
. Changing this forces a new resource to be created.
NOTE: Setting logical sector size is supported only with
UltraSSD_LRS
disks andPremiumV2_LRS
disks.
sourcepub fn maybe_logical_sector_size(
self,
value: Option<impl Into<Output<Option<i32>>>>,
) -> ManagedDiskArgsBuilder<SetLogicalSectorSize<S>>where
S::LogicalSectorSize: IsUnset,
pub fn maybe_logical_sector_size(
self,
value: Option<impl Into<Output<Option<i32>>>>,
) -> ManagedDiskArgsBuilder<SetLogicalSectorSize<S>>where
S::LogicalSectorSize: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<i32>> as Default>::default()
.
Logical Sector Size. Possible values are: 512
and 4096
. Defaults to 4096
. Changing this forces a new resource to be created.
NOTE: Setting logical sector size is supported only with
UltraSSD_LRS
disks andPremiumV2_LRS
disks.
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<i32>> as Default>::default()
.
The maximum number of VMs that can attach to the disk at the same time. Value greater than one indicates a disk that can be mounted on multiple VMs at the same time.
Note: Premium SSD maxShares limit:
P15
andP20
disks: 2.P30
,P40
,P50
disks: 5.P60
,P70
,P80
disks: 10. For ultra disks themax_shares
minimum value is 1 and the maximum is 5.
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<i32>> as Default>::default()
.
The maximum number of VMs that can attach to the disk at the same time. Value greater than one indicates a disk that can be mounted on multiple VMs at the same time.
Note: Premium SSD maxShares limit:
P15
andP20
disks: 2.P30
,P40
,P50
disks: 5.P60
,P70
,P80
disks: 10. For ultra disks themax_shares
minimum value is 1 and the maximum is 5.
sourcepub fn name(
self,
value: impl Into<Output<Option<String>>>,
) -> ManagedDiskArgsBuilder<SetName<S>>where
S::Name: IsUnset,
pub fn name(
self,
value: impl Into<Output<Option<String>>>,
) -> ManagedDiskArgsBuilder<SetName<S>>where
S::Name: IsUnset,
sourcepub fn maybe_name(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> ManagedDiskArgsBuilder<SetName<S>>where
S::Name: IsUnset,
pub fn maybe_name(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> ManagedDiskArgsBuilder<SetName<S>>where
S::Name: IsUnset,
sourcepub fn network_access_policy(
self,
value: impl Into<Output<Option<String>>>,
) -> ManagedDiskArgsBuilder<SetNetworkAccessPolicy<S>>where
S::NetworkAccessPolicy: IsUnset,
pub fn network_access_policy(
self,
value: impl Into<Output<Option<String>>>,
) -> ManagedDiskArgsBuilder<SetNetworkAccessPolicy<S>>where
S::NetworkAccessPolicy: IsUnset,
sourcepub fn maybe_network_access_policy(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> ManagedDiskArgsBuilder<SetNetworkAccessPolicy<S>>where
S::NetworkAccessPolicy: IsUnset,
pub fn maybe_network_access_policy(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> ManagedDiskArgsBuilder<SetNetworkAccessPolicy<S>>where
S::NetworkAccessPolicy: IsUnset,
sourcepub fn on_demand_bursting_enabled(
self,
value: impl Into<Output<Option<bool>>>,
) -> ManagedDiskArgsBuilder<SetOnDemandBurstingEnabled<S>>where
S::OnDemandBurstingEnabled: IsUnset,
pub fn on_demand_bursting_enabled(
self,
value: impl Into<Output<Option<bool>>>,
) -> ManagedDiskArgsBuilder<SetOnDemandBurstingEnabled<S>>where
S::OnDemandBurstingEnabled: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default()
.
Specifies if On-Demand Bursting is enabled for the Managed Disk.
Note: Credit-Based Bursting is enabled by default on all eligible disks. More information on Credit-Based and On-Demand Bursting can be found in the documentation.
sourcepub fn maybe_on_demand_bursting_enabled(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> ManagedDiskArgsBuilder<SetOnDemandBurstingEnabled<S>>where
S::OnDemandBurstingEnabled: IsUnset,
pub fn maybe_on_demand_bursting_enabled(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> ManagedDiskArgsBuilder<SetOnDemandBurstingEnabled<S>>where
S::OnDemandBurstingEnabled: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default()
.
Specifies if On-Demand Bursting is enabled for the Managed Disk.
Note: Credit-Based Bursting is enabled by default on all eligible disks. More information on Credit-Based and On-Demand Bursting can be found in the documentation.
sourcepub fn optimized_frequent_attach_enabled(
self,
value: impl Into<Output<Option<bool>>>,
) -> ManagedDiskArgsBuilder<SetOptimizedFrequentAttachEnabled<S>>where
S::OptimizedFrequentAttachEnabled: IsUnset,
pub fn optimized_frequent_attach_enabled(
self,
value: impl Into<Output<Option<bool>>>,
) -> ManagedDiskArgsBuilder<SetOptimizedFrequentAttachEnabled<S>>where
S::OptimizedFrequentAttachEnabled: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default()
.
Specifies whether this Managed Disk should be optimized for frequent disk attachments (where a disk is attached/detached more than 5 times in a day). Defaults to false
.
Note: Setting
optimized_frequent_attach_enabled
totrue
causes the disks to not align with the fault domain of the Virtual Machine, which can have operational implications.
sourcepub fn maybe_optimized_frequent_attach_enabled(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> ManagedDiskArgsBuilder<SetOptimizedFrequentAttachEnabled<S>>where
S::OptimizedFrequentAttachEnabled: IsUnset,
pub fn maybe_optimized_frequent_attach_enabled(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> ManagedDiskArgsBuilder<SetOptimizedFrequentAttachEnabled<S>>where
S::OptimizedFrequentAttachEnabled: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default()
.
Specifies whether this Managed Disk should be optimized for frequent disk attachments (where a disk is attached/detached more than 5 times in a day). Defaults to false
.
Note: Setting
optimized_frequent_attach_enabled
totrue
causes the disks to not align with the fault domain of the Virtual Machine, which can have operational implications.
sourcepub fn os_type(
self,
value: impl Into<Output<Option<String>>>,
) -> ManagedDiskArgsBuilder<SetOsType<S>>where
S::OsType: IsUnset,
pub fn os_type(
self,
value: impl Into<Output<Option<String>>>,
) -> ManagedDiskArgsBuilder<SetOsType<S>>where
S::OsType: IsUnset,
sourcepub fn maybe_os_type(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> ManagedDiskArgsBuilder<SetOsType<S>>where
S::OsType: IsUnset,
pub fn maybe_os_type(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> ManagedDiskArgsBuilder<SetOsType<S>>where
S::OsType: IsUnset,
sourcepub fn performance_plus_enabled(
self,
value: impl Into<Output<Option<bool>>>,
) -> ManagedDiskArgsBuilder<SetPerformancePlusEnabled<S>>where
S::PerformancePlusEnabled: IsUnset,
pub fn performance_plus_enabled(
self,
value: impl Into<Output<Option<bool>>>,
) -> ManagedDiskArgsBuilder<SetPerformancePlusEnabled<S>>where
S::PerformancePlusEnabled: IsUnset,
sourcepub fn maybe_performance_plus_enabled(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> ManagedDiskArgsBuilder<SetPerformancePlusEnabled<S>>where
S::PerformancePlusEnabled: IsUnset,
pub fn maybe_performance_plus_enabled(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> ManagedDiskArgsBuilder<SetPerformancePlusEnabled<S>>where
S::PerformancePlusEnabled: IsUnset,
sourcepub fn public_network_access_enabled(
self,
value: impl Into<Output<Option<bool>>>,
) -> ManagedDiskArgsBuilder<SetPublicNetworkAccessEnabled<S>>where
S::PublicNetworkAccessEnabled: IsUnset,
pub fn public_network_access_enabled(
self,
value: impl Into<Output<Option<bool>>>,
) -> ManagedDiskArgsBuilder<SetPublicNetworkAccessEnabled<S>>where
S::PublicNetworkAccessEnabled: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default()
.
Whether it is allowed to access the disk via public network. Defaults to true
.
For more information on managed disks, such as sizing options and pricing, please check out the Azure Documentation.
sourcepub fn maybe_public_network_access_enabled(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> ManagedDiskArgsBuilder<SetPublicNetworkAccessEnabled<S>>where
S::PublicNetworkAccessEnabled: IsUnset,
pub fn maybe_public_network_access_enabled(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> ManagedDiskArgsBuilder<SetPublicNetworkAccessEnabled<S>>where
S::PublicNetworkAccessEnabled: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default()
.
Whether it is allowed to access the disk via public network. Defaults to true
.
For more information on managed disks, such as sizing options and pricing, please check out the Azure Documentation.
sourcepub fn resource_group_name(
self,
value: impl Into<Output<String>>,
) -> ManagedDiskArgsBuilder<SetResourceGroupName<S>>where
S::ResourceGroupName: IsUnset,
pub fn resource_group_name(
self,
value: impl Into<Output<String>>,
) -> ManagedDiskArgsBuilder<SetResourceGroupName<S>>where
S::ResourceGroupName: IsUnset,
Required.
The name of the Resource Group where the Managed Disk should exist. Changing this forces a new resource to be created.
sourcepub fn secure_vm_disk_encryption_set_id(
self,
value: impl Into<Output<Option<String>>>,
) -> ManagedDiskArgsBuilder<SetSecureVmDiskEncryptionSetId<S>>where
S::SecureVmDiskEncryptionSetId: IsUnset,
pub fn secure_vm_disk_encryption_set_id(
self,
value: impl Into<Output<Option<String>>>,
) -> ManagedDiskArgsBuilder<SetSecureVmDiskEncryptionSetId<S>>where
S::SecureVmDiskEncryptionSetId: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
The ID of the Disk Encryption Set which should be used to Encrypt this OS Disk when the Virtual Machine is a Confidential VM. Conflicts with disk_encryption_set_id
. Changing this forces a new resource to be created.
NOTE:
secure_vm_disk_encryption_set_id
can only be specified whensecurity_type
is set toConfidentialVM_DiskEncryptedWithCustomerKey
.
sourcepub fn maybe_secure_vm_disk_encryption_set_id(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> ManagedDiskArgsBuilder<SetSecureVmDiskEncryptionSetId<S>>where
S::SecureVmDiskEncryptionSetId: IsUnset,
pub fn maybe_secure_vm_disk_encryption_set_id(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> ManagedDiskArgsBuilder<SetSecureVmDiskEncryptionSetId<S>>where
S::SecureVmDiskEncryptionSetId: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
The ID of the Disk Encryption Set which should be used to Encrypt this OS Disk when the Virtual Machine is a Confidential VM. Conflicts with disk_encryption_set_id
. Changing this forces a new resource to be created.
NOTE:
secure_vm_disk_encryption_set_id
can only be specified whensecurity_type
is set toConfidentialVM_DiskEncryptedWithCustomerKey
.
sourcepub fn security_type(
self,
value: impl Into<Output<Option<String>>>,
) -> ManagedDiskArgsBuilder<SetSecurityType<S>>where
S::SecurityType: IsUnset,
pub fn security_type(
self,
value: impl Into<Output<Option<String>>>,
) -> ManagedDiskArgsBuilder<SetSecurityType<S>>where
S::SecurityType: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
Security Type of the Managed Disk when it is used for a Confidential VM. Possible values are ConfidentialVM_VMGuestStateOnlyEncryptedWithPlatformKey
, ConfidentialVM_DiskEncryptedWithPlatformKey
and ConfidentialVM_DiskEncryptedWithCustomerKey
. Changing this forces a new resource to be created.
NOTE: When
security_type
is set toConfidentialVM_DiskEncryptedWithCustomerKey
the value ofcreate_option
must be one ofFromImage
orImportSecure
.
NOTE:
security_type
cannot be specified whentrusted_launch_enabled
is set to true.
NOTE:
secure_vm_disk_encryption_set_id
must be specified whensecurity_type
is set toConfidentialVM_DiskEncryptedWithCustomerKey
.
sourcepub fn maybe_security_type(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> ManagedDiskArgsBuilder<SetSecurityType<S>>where
S::SecurityType: IsUnset,
pub fn maybe_security_type(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> ManagedDiskArgsBuilder<SetSecurityType<S>>where
S::SecurityType: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
Security Type of the Managed Disk when it is used for a Confidential VM. Possible values are ConfidentialVM_VMGuestStateOnlyEncryptedWithPlatformKey
, ConfidentialVM_DiskEncryptedWithPlatformKey
and ConfidentialVM_DiskEncryptedWithCustomerKey
. Changing this forces a new resource to be created.
NOTE: When
security_type
is set toConfidentialVM_DiskEncryptedWithCustomerKey
the value ofcreate_option
must be one ofFromImage
orImportSecure
.
NOTE:
security_type
cannot be specified whentrusted_launch_enabled
is set to true.
NOTE:
secure_vm_disk_encryption_set_id
must be specified whensecurity_type
is set toConfidentialVM_DiskEncryptedWithCustomerKey
.
sourcepub fn source_resource_id(
self,
value: impl Into<Output<Option<String>>>,
) -> ManagedDiskArgsBuilder<SetSourceResourceId<S>>where
S::SourceResourceId: IsUnset,
pub fn source_resource_id(
self,
value: impl Into<Output<Option<String>>>,
) -> ManagedDiskArgsBuilder<SetSourceResourceId<S>>where
S::SourceResourceId: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
The ID of an existing Managed Disk or Snapshot to copy when create_option
is Copy
or the recovery point to restore when create_option
is Restore
. Changing this forces a new resource to be created.
sourcepub fn maybe_source_resource_id(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> ManagedDiskArgsBuilder<SetSourceResourceId<S>>where
S::SourceResourceId: IsUnset,
pub fn maybe_source_resource_id(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> ManagedDiskArgsBuilder<SetSourceResourceId<S>>where
S::SourceResourceId: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
The ID of an existing Managed Disk or Snapshot to copy when create_option
is Copy
or the recovery point to restore when create_option
is Restore
. Changing this forces a new resource to be created.
sourcepub fn source_uri(
self,
value: impl Into<Output<Option<String>>>,
) -> ManagedDiskArgsBuilder<SetSourceUri<S>>where
S::SourceUri: IsUnset,
pub fn source_uri(
self,
value: impl Into<Output<Option<String>>>,
) -> ManagedDiskArgsBuilder<SetSourceUri<S>>where
S::SourceUri: IsUnset,
sourcepub fn maybe_source_uri(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> ManagedDiskArgsBuilder<SetSourceUri<S>>where
S::SourceUri: IsUnset,
pub fn maybe_source_uri(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> ManagedDiskArgsBuilder<SetSourceUri<S>>where
S::SourceUri: IsUnset,
sourcepub fn storage_account_id(
self,
value: impl Into<Output<Option<String>>>,
) -> ManagedDiskArgsBuilder<SetStorageAccountId<S>>where
S::StorageAccountId: IsUnset,
pub fn storage_account_id(
self,
value: impl Into<Output<Option<String>>>,
) -> ManagedDiskArgsBuilder<SetStorageAccountId<S>>where
S::StorageAccountId: IsUnset,
sourcepub fn maybe_storage_account_id(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> ManagedDiskArgsBuilder<SetStorageAccountId<S>>where
S::StorageAccountId: IsUnset,
pub fn maybe_storage_account_id(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> ManagedDiskArgsBuilder<SetStorageAccountId<S>>where
S::StorageAccountId: IsUnset,
sourcepub fn storage_account_type(
self,
value: impl Into<Output<String>>,
) -> ManagedDiskArgsBuilder<SetStorageAccountType<S>>where
S::StorageAccountType: IsUnset,
pub fn storage_account_type(
self,
value: impl Into<Output<String>>,
) -> ManagedDiskArgsBuilder<SetStorageAccountType<S>>where
S::StorageAccountType: IsUnset,
Required.
The type of storage to use for the managed disk. Possible values are Standard_LRS
, StandardSSD_ZRS
, Premium_LRS
, PremiumV2_LRS
, Premium_ZRS
, StandardSSD_LRS
or UltraSSD_LRS
.
Note: Azure Ultra Disk Storage is only available in a region that support availability zones and can only enabled on the following VM series:
ESv3
,DSv3
,FSv3
,LSv2
,M
andMv2
. For more information see theAzure Ultra Disk Storage
product documentation.
sourcepub fn tier(
self,
value: impl Into<Output<Option<String>>>,
) -> ManagedDiskArgsBuilder<SetTier<S>>where
S::Tier: IsUnset,
pub fn tier(
self,
value: impl Into<Output<Option<String>>>,
) -> ManagedDiskArgsBuilder<SetTier<S>>where
S::Tier: IsUnset,
sourcepub fn maybe_tier(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> ManagedDiskArgsBuilder<SetTier<S>>where
S::Tier: IsUnset,
pub fn maybe_tier(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> ManagedDiskArgsBuilder<SetTier<S>>where
S::Tier: IsUnset,
sourcepub fn trusted_launch_enabled(
self,
value: impl Into<Output<Option<bool>>>,
) -> ManagedDiskArgsBuilder<SetTrustedLaunchEnabled<S>>where
S::TrustedLaunchEnabled: IsUnset,
pub fn trusted_launch_enabled(
self,
value: impl Into<Output<Option<bool>>>,
) -> ManagedDiskArgsBuilder<SetTrustedLaunchEnabled<S>>where
S::TrustedLaunchEnabled: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default()
.
Specifies if Trusted Launch is enabled for the Managed Disk. Changing this forces a new resource to be created.
Note: Trusted Launch can only be enabled when
create_option
isFromImage
orImport
.
sourcepub fn maybe_trusted_launch_enabled(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> ManagedDiskArgsBuilder<SetTrustedLaunchEnabled<S>>where
S::TrustedLaunchEnabled: IsUnset,
pub fn maybe_trusted_launch_enabled(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> ManagedDiskArgsBuilder<SetTrustedLaunchEnabled<S>>where
S::TrustedLaunchEnabled: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default()
.
Specifies if Trusted Launch is enabled for the Managed Disk. Changing this forces a new resource to be created.
Note: Trusted Launch can only be enabled when
create_option
isFromImage
orImport
.
sourcepub fn upload_size_bytes(
self,
value: impl Into<Output<Option<i32>>>,
) -> ManagedDiskArgsBuilder<SetUploadSizeBytes<S>>where
S::UploadSizeBytes: IsUnset,
pub fn upload_size_bytes(
self,
value: impl Into<Output<Option<i32>>>,
) -> ManagedDiskArgsBuilder<SetUploadSizeBytes<S>>where
S::UploadSizeBytes: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<i32>> as Default>::default()
.
Specifies the size of the managed disk to create in bytes. Required when create_option
is Upload
. The value must be equal to the source disk to be copied in bytes. Source disk size could be calculated with ls -l
or wc -c
. More information can be found at Copy a managed disk. Changing this forces a new resource to be created.
sourcepub fn maybe_upload_size_bytes(
self,
value: Option<impl Into<Output<Option<i32>>>>,
) -> ManagedDiskArgsBuilder<SetUploadSizeBytes<S>>where
S::UploadSizeBytes: IsUnset,
pub fn maybe_upload_size_bytes(
self,
value: Option<impl Into<Output<Option<i32>>>>,
) -> ManagedDiskArgsBuilder<SetUploadSizeBytes<S>>where
S::UploadSizeBytes: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<i32>> as Default>::default()
.
Specifies the size of the managed disk to create in bytes. Required when create_option
is Upload
. The value must be equal to the source disk to be copied in bytes. Source disk size could be calculated with ls -l
or wc -c
. More information can be found at Copy a managed disk. Changing this forces a new resource to be created.
sourcepub fn zone(
self,
value: impl Into<Output<Option<String>>>,
) -> ManagedDiskArgsBuilder<SetZone<S>>where
S::Zone: IsUnset,
pub fn zone(
self,
value: impl Into<Output<Option<String>>>,
) -> ManagedDiskArgsBuilder<SetZone<S>>where
S::Zone: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
Specifies the Availability Zone in which this Managed Disk should be located. Changing this property forces a new resource to be created.
Note: Availability Zones are only supported in select regions at this time.
sourcepub fn maybe_zone(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> ManagedDiskArgsBuilder<SetZone<S>>where
S::Zone: IsUnset,
pub fn maybe_zone(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> ManagedDiskArgsBuilder<SetZone<S>>where
S::Zone: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
Specifies the Availability Zone in which this Managed Disk should be located. Changing this property forces a new resource to be created.
Note: Availability Zones are only supported in select regions at this time.