pulumi_wasm_providers_azure_mini::compute::managed_disk

Struct ManagedDiskArgsBuilder

source
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>

source

pub fn build_struct(self) -> ManagedDiskArgs
where S: IsComplete,

Finish building and return the requested object

source

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 with source_uri).
  • ImportSecure - Securely import a VHD file in to the managed disk (VHD specified with source_uri).
  • Empty - Create an empty managed disk.
  • Copy - Copy an existing managed disk or snapshot (specified with source_resource_id).
  • FromImage - Copy a Platform Image (specified with image_reference_id)
  • Restore - Set by Azure Backup or Site Recovery on a restored disk (specified with source_resource_id).
  • Upload - Upload a VHD disk with the help of SAS URL (to be used with upload_size_bytes).
source

pub fn disk_access_id( self, value: impl Into<Output<Option<String>>>, ) -> ManagedDiskArgsBuilder<SetDiskAccessId<S>>
where S::DiskAccessId: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

The ID of the disk access resource for using private endpoints on disks.

Note: disk_access_id is only supported when network_access_policy is set to AllowPrivate.

source

pub fn maybe_disk_access_id( self, value: Option<impl Into<Output<Option<String>>>>, ) -> ManagedDiskArgsBuilder<SetDiskAccessId<S>>
where S::DiskAccessId: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

The ID of the disk access resource for using private endpoints on disks.

Note: disk_access_id is only supported when network_access_policy is set to AllowPrivate.

source

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

source

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

source

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.

source

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.

source

pub fn disk_iops_read_write( self, value: impl Into<Output<Option<i32>>>, ) -> ManagedDiskArgsBuilder<SetDiskIopsReadWrite<S>>
where S::DiskIopsReadWrite: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<i32>> as Default>::default().

The number of IOPS allowed for this disk; only settable for UltraSSD disks and PremiumV2 disks. One operation can transfer between 4k and 256k bytes.

source

pub fn maybe_disk_iops_read_write( self, value: Option<impl Into<Output<Option<i32>>>>, ) -> ManagedDiskArgsBuilder<SetDiskIopsReadWrite<S>>
where S::DiskIopsReadWrite: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<i32>> as Default>::default().

The number of IOPS allowed for this disk; only settable for UltraSSD disks and PremiumV2 disks. One operation can transfer between 4k and 256k bytes.

source

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.

source

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.

source

pub fn disk_mbps_read_write( self, value: impl Into<Output<Option<i32>>>, ) -> ManagedDiskArgsBuilder<SetDiskMbpsReadWrite<S>>
where S::DiskMbpsReadWrite: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<i32>> as Default>::default().

The bandwidth allowed for this disk; only settable for UltraSSD disks and PremiumV2 disks. MBps means millions of bytes per second.

source

pub fn maybe_disk_mbps_read_write( self, value: Option<impl Into<Output<Option<i32>>>>, ) -> ManagedDiskArgsBuilder<SetDiskMbpsReadWrite<S>>
where S::DiskMbpsReadWrite: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<i32>> as Default>::default().

The bandwidth allowed for this disk; only settable for UltraSSD disks and PremiumV2 disks. MBps means millions of bytes per second.

source

pub fn disk_size_gb( self, value: impl Into<Output<Option<i32>>>, ) -> ManagedDiskArgsBuilder<SetDiskSizeGb<S>>
where S::DiskSizeGb: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<i32>> as Default>::default().

source

pub fn maybe_disk_size_gb( self, value: Option<impl Into<Output<Option<i32>>>>, ) -> ManagedDiskArgsBuilder<SetDiskSizeGb<S>>
where S::DiskSizeGb: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<i32>> as Default>::default().

source

pub fn edge_zone( self, value: impl Into<Output<Option<String>>>, ) -> ManagedDiskArgsBuilder<SetEdgeZone<S>>
where S::EdgeZone: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

Specifies the Edge Zone within the Azure Region where this Managed Disk should exist. Changing this forces a new Managed Disk to be created.

source

pub fn maybe_edge_zone( self, value: Option<impl Into<Output<Option<String>>>>, ) -> ManagedDiskArgsBuilder<SetEdgeZone<S>>
where S::EdgeZone: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

Specifies the Edge Zone within the Azure Region where this Managed Disk should exist. Changing this forces a new Managed Disk to be created.

source

pub fn encryption_settings( self, value: impl Into<Output<Option<ManagedDiskEncryptionSettings>>>, ) -> ManagedDiskArgsBuilder<SetEncryptionSettings<S>>
where S::EncryptionSettings: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::compute::ManagedDiskEncryptionSettings>,
> as Default>::default()

A encryption_settings block as defined below.

NOTE: Removing encryption_settings forces a new resource to be created.

source

pub fn maybe_encryption_settings( self, value: Option<impl Into<Output<Option<ManagedDiskEncryptionSettings>>>>, ) -> ManagedDiskArgsBuilder<SetEncryptionSettings<S>>
where S::EncryptionSettings: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::compute::ManagedDiskEncryptionSettings>,
> as Default>::default()

A encryption_settings block as defined below.

NOTE: Removing encryption_settings forces a new resource to be created.

source

pub fn gallery_image_reference_id( self, value: impl Into<Output<Option<String>>>, ) -> ManagedDiskArgsBuilder<SetGalleryImageReferenceId<S>>
where S::GalleryImageReferenceId: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

ID of a Gallery Image Version to copy when create_option is FromImage. This field cannot be specified if image_reference_id is specified. Changing this forces a new resource to be created.

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

ID of a Gallery Image Version to copy when create_option is FromImage. This field cannot be specified if image_reference_id is specified. Changing this forces a new resource to be created.

source

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.

source

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.

source

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.

source

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.

source

pub fn location( self, value: impl Into<Output<Option<String>>>, ) -> ManagedDiskArgsBuilder<SetLocation<S>>
where S::Location: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

Specified the supported Azure location where the resource exists. Changing this forces a new resource to be created.

source

pub fn maybe_location( self, value: Option<impl Into<Output<Option<String>>>>, ) -> ManagedDiskArgsBuilder<SetLocation<S>>
where S::Location: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

Specified the supported Azure location where the resource exists. Changing this forces a new resource to be created.

source

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 and PremiumV2_LRS disks.

source

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 and PremiumV2_LRS disks.

source

pub fn max_shares( self, value: impl Into<Output<Option<i32>>>, ) -> ManagedDiskArgsBuilder<SetMaxShares<S>>
where S::MaxShares: IsUnset,

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 and P20 disks: 2. P30,P40,P50 disks: 5. P60,P70,P80 disks: 10. For ultra disks the max_shares minimum value is 1 and the maximum is 5.

source

pub fn maybe_max_shares( self, value: Option<impl Into<Output<Option<i32>>>>, ) -> ManagedDiskArgsBuilder<SetMaxShares<S>>
where S::MaxShares: IsUnset,

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 and P20 disks: 2. P30,P40,P50 disks: 5. P60,P70,P80 disks: 10. For ultra disks the max_shares minimum value is 1 and the maximum is 5.

source

pub fn name( self, value: impl Into<Output<Option<String>>>, ) -> ManagedDiskArgsBuilder<SetName<S>>
where S::Name: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

Specifies the name of the Managed Disk. Changing this forces a new resource to be created.

source

pub fn maybe_name( self, value: Option<impl Into<Output<Option<String>>>>, ) -> ManagedDiskArgsBuilder<SetName<S>>
where S::Name: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

Specifies the name of the Managed Disk. Changing this forces a new resource to be created.

source

pub fn network_access_policy( self, value: impl Into<Output<Option<String>>>, ) -> ManagedDiskArgsBuilder<SetNetworkAccessPolicy<S>>
where S::NetworkAccessPolicy: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

Policy for accessing the disk via network. Allowed values are AllowAll, AllowPrivate, and DenyAll.

source

pub fn maybe_network_access_policy( self, value: Option<impl Into<Output<Option<String>>>>, ) -> ManagedDiskArgsBuilder<SetNetworkAccessPolicy<S>>
where S::NetworkAccessPolicy: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

Policy for accessing the disk via network. Allowed values are AllowAll, AllowPrivate, and DenyAll.

source

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.

source

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.

source

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 to true causes the disks to not align with the fault domain of the Virtual Machine, which can have operational implications.

source

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 to true causes the disks to not align with the fault domain of the Virtual Machine, which can have operational implications.

source

pub fn os_type( self, value: impl Into<Output<Option<String>>>, ) -> ManagedDiskArgsBuilder<SetOsType<S>>
where S::OsType: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

Specify a value when the source of an Import, ImportSecure or Copy operation targets a source that contains an operating system. Valid values are Linux or Windows.

source

pub fn maybe_os_type( self, value: Option<impl Into<Output<Option<String>>>>, ) -> ManagedDiskArgsBuilder<SetOsType<S>>
where S::OsType: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

Specify a value when the source of an Import, ImportSecure or Copy operation targets a source that contains an operating system. Valid values are Linux or Windows.

source

pub fn performance_plus_enabled( self, value: impl Into<Output<Option<bool>>>, ) -> ManagedDiskArgsBuilder<SetPerformancePlusEnabled<S>>
where S::PerformancePlusEnabled: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default().

Specifies whether Performance Plus is enabled for this Managed Disk. Defaults to false. Changing this forces a new resource to be created.

source

pub fn maybe_performance_plus_enabled( self, value: Option<impl Into<Output<Option<bool>>>>, ) -> ManagedDiskArgsBuilder<SetPerformancePlusEnabled<S>>
where S::PerformancePlusEnabled: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default().

Specifies whether Performance Plus is enabled for this Managed Disk. Defaults to false. Changing this forces a new resource to be created.

source

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.

source

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.

source

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.

source

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 when security_type is set to ConfidentialVM_DiskEncryptedWithCustomerKey.

source

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 when security_type is set to ConfidentialVM_DiskEncryptedWithCustomerKey.

source

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 to ConfidentialVM_DiskEncryptedWithCustomerKey the value of create_option must be one of FromImage or ImportSecure.

NOTE: security_type cannot be specified when trusted_launch_enabled is set to true.

NOTE: secure_vm_disk_encryption_set_id must be specified when security_type is set to ConfidentialVM_DiskEncryptedWithCustomerKey.

source

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 to ConfidentialVM_DiskEncryptedWithCustomerKey the value of create_option must be one of FromImage or ImportSecure.

NOTE: security_type cannot be specified when trusted_launch_enabled is set to true.

NOTE: secure_vm_disk_encryption_set_id must be specified when security_type is set to ConfidentialVM_DiskEncryptedWithCustomerKey.

source

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.

source

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.

source

pub fn source_uri( self, value: impl Into<Output<Option<String>>>, ) -> ManagedDiskArgsBuilder<SetSourceUri<S>>
where S::SourceUri: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

URI to a valid VHD file to be used when create_option is Import or ImportSecure. Changing this forces a new resource to be created.

source

pub fn maybe_source_uri( self, value: Option<impl Into<Output<Option<String>>>>, ) -> ManagedDiskArgsBuilder<SetSourceUri<S>>
where S::SourceUri: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

URI to a valid VHD file to be used when create_option is Import or ImportSecure. Changing this forces a new resource to be created.

source

pub fn storage_account_id( self, value: impl Into<Output<Option<String>>>, ) -> ManagedDiskArgsBuilder<SetStorageAccountId<S>>
where S::StorageAccountId: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

The ID of the Storage Account where the source_uri is located. Required when create_option is set to Import or ImportSecure. Changing this forces a new resource to be created.

source

pub fn maybe_storage_account_id( self, value: Option<impl Into<Output<Option<String>>>>, ) -> ManagedDiskArgsBuilder<SetStorageAccountId<S>>
where S::StorageAccountId: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

The ID of the Storage Account where the source_uri is located. Required when create_option is set to Import or ImportSecure. Changing this forces a new resource to be created.

source

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 and Mv2. For more information see the Azure Ultra Disk Storage product documentation.

source

pub fn tags( self, value: impl Into<Output<Option<HashMap<String, String>>>>, ) -> ManagedDiskArgsBuilder<SetTags<S>>
where S::Tags: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<std::collections::HashMap<String, String>>,
> as Default>::default()

A mapping of tags to assign to the resource.

source

pub fn maybe_tags( self, value: Option<impl Into<Output<Option<HashMap<String, String>>>>>, ) -> ManagedDiskArgsBuilder<SetTags<S>>
where S::Tags: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<std::collections::HashMap<String, String>>,
> as Default>::default()

A mapping of tags to assign to the resource.

source

pub fn tier( self, value: impl Into<Output<Option<String>>>, ) -> ManagedDiskArgsBuilder<SetTier<S>>
where S::Tier: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

source

pub fn maybe_tier( self, value: Option<impl Into<Output<Option<String>>>>, ) -> ManagedDiskArgsBuilder<SetTier<S>>
where S::Tier: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

source

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 is FromImage or Import.

source

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 is FromImage or Import.

source

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.

source

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.

source

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.

source

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.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.