pub struct VirtualMachineArgsBuilder<S: State = Empty> { /* private fields */ }
Expand description
Use builder syntax to set the inputs and finish with build_struct()
.
Implementations§
source§impl<S: State> VirtualMachineArgsBuilder<S>
impl<S: State> VirtualMachineArgsBuilder<S>
sourcepub fn build_struct(self) -> VirtualMachineArgswhere
S: IsComplete,
pub fn build_struct(self) -> VirtualMachineArgswhere
S: IsComplete,
Finish building and return the requested object
sourcepub fn additional_capabilities(
self,
value: impl Into<Output<Option<VirtualMachineAdditionalCapabilities>>>,
) -> VirtualMachineArgsBuilder<SetAdditionalCapabilities<S>>where
S::AdditionalCapabilities: IsUnset,
pub fn additional_capabilities(
self,
value: impl Into<Output<Option<VirtualMachineAdditionalCapabilities>>>,
) -> VirtualMachineArgsBuilder<SetAdditionalCapabilities<S>>where
S::AdditionalCapabilities: IsUnset,
sourcepub fn maybe_additional_capabilities(
self,
value: Option<impl Into<Output<Option<VirtualMachineAdditionalCapabilities>>>>,
) -> VirtualMachineArgsBuilder<SetAdditionalCapabilities<S>>where
S::AdditionalCapabilities: IsUnset,
pub fn maybe_additional_capabilities(
self,
value: Option<impl Into<Output<Option<VirtualMachineAdditionalCapabilities>>>>,
) -> VirtualMachineArgsBuilder<SetAdditionalCapabilities<S>>where
S::AdditionalCapabilities: IsUnset,
sourcepub fn availability_set_id(
self,
value: impl Into<Output<Option<String>>>,
) -> VirtualMachineArgsBuilder<SetAvailabilitySetId<S>>where
S::AvailabilitySetId: IsUnset,
pub fn availability_set_id(
self,
value: impl Into<Output<Option<String>>>,
) -> VirtualMachineArgsBuilder<SetAvailabilitySetId<S>>where
S::AvailabilitySetId: IsUnset,
sourcepub fn maybe_availability_set_id(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> VirtualMachineArgsBuilder<SetAvailabilitySetId<S>>where
S::AvailabilitySetId: IsUnset,
pub fn maybe_availability_set_id(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> VirtualMachineArgsBuilder<SetAvailabilitySetId<S>>where
S::AvailabilitySetId: IsUnset,
sourcepub fn boot_diagnostics(
self,
value: impl Into<Output<Option<VirtualMachineBootDiagnostics>>>,
) -> VirtualMachineArgsBuilder<SetBootDiagnostics<S>>where
S::BootDiagnostics: IsUnset,
pub fn boot_diagnostics(
self,
value: impl Into<Output<Option<VirtualMachineBootDiagnostics>>>,
) -> VirtualMachineArgsBuilder<SetBootDiagnostics<S>>where
S::BootDiagnostics: IsUnset,
sourcepub fn maybe_boot_diagnostics(
self,
value: Option<impl Into<Output<Option<VirtualMachineBootDiagnostics>>>>,
) -> VirtualMachineArgsBuilder<SetBootDiagnostics<S>>where
S::BootDiagnostics: IsUnset,
pub fn maybe_boot_diagnostics(
self,
value: Option<impl Into<Output<Option<VirtualMachineBootDiagnostics>>>>,
) -> VirtualMachineArgsBuilder<SetBootDiagnostics<S>>where
S::BootDiagnostics: IsUnset,
sourcepub fn delete_data_disks_on_termination(
self,
value: impl Into<Output<Option<bool>>>,
) -> VirtualMachineArgsBuilder<SetDeleteDataDisksOnTermination<S>>where
S::DeleteDataDisksOnTermination: IsUnset,
pub fn delete_data_disks_on_termination(
self,
value: impl Into<Output<Option<bool>>>,
) -> VirtualMachineArgsBuilder<SetDeleteDataDisksOnTermination<S>>where
S::DeleteDataDisksOnTermination: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default()
.
Should the Data Disks (either the Managed Disks / VHD Blobs) be deleted when the Virtual Machine is destroyed? Defaults to false
.
Note: This setting works when instance is deleted via the provider only and don’t forget to delete disks manually if you deleted VM manually. It can increase spending.
sourcepub fn maybe_delete_data_disks_on_termination(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> VirtualMachineArgsBuilder<SetDeleteDataDisksOnTermination<S>>where
S::DeleteDataDisksOnTermination: IsUnset,
pub fn maybe_delete_data_disks_on_termination(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> VirtualMachineArgsBuilder<SetDeleteDataDisksOnTermination<S>>where
S::DeleteDataDisksOnTermination: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default()
.
Should the Data Disks (either the Managed Disks / VHD Blobs) be deleted when the Virtual Machine is destroyed? Defaults to false
.
Note: This setting works when instance is deleted via the provider only and don’t forget to delete disks manually if you deleted VM manually. It can increase spending.
sourcepub fn delete_os_disk_on_termination(
self,
value: impl Into<Output<Option<bool>>>,
) -> VirtualMachineArgsBuilder<SetDeleteOsDiskOnTermination<S>>where
S::DeleteOsDiskOnTermination: IsUnset,
pub fn delete_os_disk_on_termination(
self,
value: impl Into<Output<Option<bool>>>,
) -> VirtualMachineArgsBuilder<SetDeleteOsDiskOnTermination<S>>where
S::DeleteOsDiskOnTermination: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default()
.
Should the OS Disk (either the Managed Disk / VHD Blob) be deleted when the Virtual Machine is destroyed? Defaults to false
.
Note: This setting works when instance is deleted via the provider only and don’t forget to delete disks manually if you deleted VM manually. It can increase spending.
sourcepub fn maybe_delete_os_disk_on_termination(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> VirtualMachineArgsBuilder<SetDeleteOsDiskOnTermination<S>>where
S::DeleteOsDiskOnTermination: IsUnset,
pub fn maybe_delete_os_disk_on_termination(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> VirtualMachineArgsBuilder<SetDeleteOsDiskOnTermination<S>>where
S::DeleteOsDiskOnTermination: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default()
.
Should the OS Disk (either the Managed Disk / VHD Blob) be deleted when the Virtual Machine is destroyed? Defaults to false
.
Note: This setting works when instance is deleted via the provider only and don’t forget to delete disks manually if you deleted VM manually. It can increase spending.
sourcepub fn identity(
self,
value: impl Into<Output<Option<VirtualMachineIdentity>>>,
) -> VirtualMachineArgsBuilder<SetIdentity<S>>where
S::Identity: IsUnset,
pub fn identity(
self,
value: impl Into<Output<Option<VirtualMachineIdentity>>>,
) -> VirtualMachineArgsBuilder<SetIdentity<S>>where
S::Identity: IsUnset,
sourcepub fn maybe_identity(
self,
value: Option<impl Into<Output<Option<VirtualMachineIdentity>>>>,
) -> VirtualMachineArgsBuilder<SetIdentity<S>>where
S::Identity: IsUnset,
pub fn maybe_identity(
self,
value: Option<impl Into<Output<Option<VirtualMachineIdentity>>>>,
) -> VirtualMachineArgsBuilder<SetIdentity<S>>where
S::Identity: IsUnset,
sourcepub fn license_type(
self,
value: impl Into<Output<Option<String>>>,
) -> VirtualMachineArgsBuilder<SetLicenseType<S>>where
S::LicenseType: IsUnset,
pub fn license_type(
self,
value: impl Into<Output<Option<String>>>,
) -> VirtualMachineArgsBuilder<SetLicenseType<S>>where
S::LicenseType: IsUnset,
sourcepub fn maybe_license_type(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> VirtualMachineArgsBuilder<SetLicenseType<S>>where
S::LicenseType: IsUnset,
pub fn maybe_license_type(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> VirtualMachineArgsBuilder<SetLicenseType<S>>where
S::LicenseType: IsUnset,
sourcepub fn location(
self,
value: impl Into<Output<Option<String>>>,
) -> VirtualMachineArgsBuilder<SetLocation<S>>where
S::Location: IsUnset,
pub fn location(
self,
value: impl Into<Output<Option<String>>>,
) -> VirtualMachineArgsBuilder<SetLocation<S>>where
S::Location: IsUnset,
sourcepub fn maybe_location(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> VirtualMachineArgsBuilder<SetLocation<S>>where
S::Location: IsUnset,
pub fn maybe_location(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> VirtualMachineArgsBuilder<SetLocation<S>>where
S::Location: IsUnset,
sourcepub fn name(
self,
value: impl Into<Output<Option<String>>>,
) -> VirtualMachineArgsBuilder<SetName<S>>where
S::Name: IsUnset,
pub fn name(
self,
value: impl Into<Output<Option<String>>>,
) -> VirtualMachineArgsBuilder<SetName<S>>where
S::Name: IsUnset,
sourcepub fn maybe_name(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> VirtualMachineArgsBuilder<SetName<S>>where
S::Name: IsUnset,
pub fn maybe_name(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> VirtualMachineArgsBuilder<SetName<S>>where
S::Name: IsUnset,
sourcepub fn network_interface_ids(
self,
value: impl Into<Output<Vec<String>>>,
) -> VirtualMachineArgsBuilder<SetNetworkInterfaceIds<S>>where
S::NetworkInterfaceIds: IsUnset,
pub fn network_interface_ids(
self,
value: impl Into<Output<Vec<String>>>,
) -> VirtualMachineArgsBuilder<SetNetworkInterfaceIds<S>>where
S::NetworkInterfaceIds: IsUnset,
Required.
A list of Network Interface IDs which should be associated with the Virtual Machine.
sourcepub fn os_profile(
self,
value: impl Into<Output<Option<VirtualMachineOsProfile>>>,
) -> VirtualMachineArgsBuilder<SetOsProfile<S>>where
S::OsProfile: IsUnset,
pub fn os_profile(
self,
value: impl Into<Output<Option<VirtualMachineOsProfile>>>,
) -> VirtualMachineArgsBuilder<SetOsProfile<S>>where
S::OsProfile: IsUnset,
sourcepub fn maybe_os_profile(
self,
value: Option<impl Into<Output<Option<VirtualMachineOsProfile>>>>,
) -> VirtualMachineArgsBuilder<SetOsProfile<S>>where
S::OsProfile: IsUnset,
pub fn maybe_os_profile(
self,
value: Option<impl Into<Output<Option<VirtualMachineOsProfile>>>>,
) -> VirtualMachineArgsBuilder<SetOsProfile<S>>where
S::OsProfile: IsUnset,
sourcepub fn os_profile_linux_config(
self,
value: impl Into<Output<Option<VirtualMachineOsProfileLinuxConfig>>>,
) -> VirtualMachineArgsBuilder<SetOsProfileLinuxConfig<S>>where
S::OsProfileLinuxConfig: IsUnset,
pub fn os_profile_linux_config(
self,
value: impl Into<Output<Option<VirtualMachineOsProfileLinuxConfig>>>,
) -> VirtualMachineArgsBuilder<SetOsProfileLinuxConfig<S>>where
S::OsProfileLinuxConfig: IsUnset,
sourcepub fn maybe_os_profile_linux_config(
self,
value: Option<impl Into<Output<Option<VirtualMachineOsProfileLinuxConfig>>>>,
) -> VirtualMachineArgsBuilder<SetOsProfileLinuxConfig<S>>where
S::OsProfileLinuxConfig: IsUnset,
pub fn maybe_os_profile_linux_config(
self,
value: Option<impl Into<Output<Option<VirtualMachineOsProfileLinuxConfig>>>>,
) -> VirtualMachineArgsBuilder<SetOsProfileLinuxConfig<S>>where
S::OsProfileLinuxConfig: IsUnset,
sourcepub fn os_profile_secrets(
self,
value: impl Into<Output<Option<Vec<VirtualMachineOsProfileSecret>>>>,
) -> VirtualMachineArgsBuilder<SetOsProfileSecrets<S>>where
S::OsProfileSecrets: IsUnset,
pub fn os_profile_secrets(
self,
value: impl Into<Output<Option<Vec<VirtualMachineOsProfileSecret>>>>,
) -> VirtualMachineArgsBuilder<SetOsProfileSecrets<S>>where
S::OsProfileSecrets: IsUnset,
sourcepub fn maybe_os_profile_secrets(
self,
value: Option<impl Into<Output<Option<Vec<VirtualMachineOsProfileSecret>>>>>,
) -> VirtualMachineArgsBuilder<SetOsProfileSecrets<S>>where
S::OsProfileSecrets: IsUnset,
pub fn maybe_os_profile_secrets(
self,
value: Option<impl Into<Output<Option<Vec<VirtualMachineOsProfileSecret>>>>>,
) -> VirtualMachineArgsBuilder<SetOsProfileSecrets<S>>where
S::OsProfileSecrets: IsUnset,
sourcepub fn os_profile_windows_config(
self,
value: impl Into<Output<Option<VirtualMachineOsProfileWindowsConfig>>>,
) -> VirtualMachineArgsBuilder<SetOsProfileWindowsConfig<S>>where
S::OsProfileWindowsConfig: IsUnset,
pub fn os_profile_windows_config(
self,
value: impl Into<Output<Option<VirtualMachineOsProfileWindowsConfig>>>,
) -> VirtualMachineArgsBuilder<SetOsProfileWindowsConfig<S>>where
S::OsProfileWindowsConfig: IsUnset,
sourcepub fn maybe_os_profile_windows_config(
self,
value: Option<impl Into<Output<Option<VirtualMachineOsProfileWindowsConfig>>>>,
) -> VirtualMachineArgsBuilder<SetOsProfileWindowsConfig<S>>where
S::OsProfileWindowsConfig: IsUnset,
pub fn maybe_os_profile_windows_config(
self,
value: Option<impl Into<Output<Option<VirtualMachineOsProfileWindowsConfig>>>>,
) -> VirtualMachineArgsBuilder<SetOsProfileWindowsConfig<S>>where
S::OsProfileWindowsConfig: IsUnset,
sourcepub fn plan(
self,
value: impl Into<Output<Option<VirtualMachinePlan>>>,
) -> VirtualMachineArgsBuilder<SetPlan<S>>where
S::Plan: IsUnset,
pub fn plan(
self,
value: impl Into<Output<Option<VirtualMachinePlan>>>,
) -> VirtualMachineArgsBuilder<SetPlan<S>>where
S::Plan: IsUnset,
sourcepub fn maybe_plan(
self,
value: Option<impl Into<Output<Option<VirtualMachinePlan>>>>,
) -> VirtualMachineArgsBuilder<SetPlan<S>>where
S::Plan: IsUnset,
pub fn maybe_plan(
self,
value: Option<impl Into<Output<Option<VirtualMachinePlan>>>>,
) -> VirtualMachineArgsBuilder<SetPlan<S>>where
S::Plan: IsUnset,
sourcepub fn primary_network_interface_id(
self,
value: impl Into<Output<Option<String>>>,
) -> VirtualMachineArgsBuilder<SetPrimaryNetworkInterfaceId<S>>where
S::PrimaryNetworkInterfaceId: IsUnset,
pub fn primary_network_interface_id(
self,
value: impl Into<Output<Option<String>>>,
) -> VirtualMachineArgsBuilder<SetPrimaryNetworkInterfaceId<S>>where
S::PrimaryNetworkInterfaceId: IsUnset,
sourcepub fn maybe_primary_network_interface_id(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> VirtualMachineArgsBuilder<SetPrimaryNetworkInterfaceId<S>>where
S::PrimaryNetworkInterfaceId: IsUnset,
pub fn maybe_primary_network_interface_id(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> VirtualMachineArgsBuilder<SetPrimaryNetworkInterfaceId<S>>where
S::PrimaryNetworkInterfaceId: IsUnset,
sourcepub fn proximity_placement_group_id(
self,
value: impl Into<Output<Option<String>>>,
) -> VirtualMachineArgsBuilder<SetProximityPlacementGroupId<S>>where
S::ProximityPlacementGroupId: IsUnset,
pub fn proximity_placement_group_id(
self,
value: impl Into<Output<Option<String>>>,
) -> VirtualMachineArgsBuilder<SetProximityPlacementGroupId<S>>where
S::ProximityPlacementGroupId: IsUnset,
sourcepub fn maybe_proximity_placement_group_id(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> VirtualMachineArgsBuilder<SetProximityPlacementGroupId<S>>where
S::ProximityPlacementGroupId: IsUnset,
pub fn maybe_proximity_placement_group_id(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> VirtualMachineArgsBuilder<SetProximityPlacementGroupId<S>>where
S::ProximityPlacementGroupId: IsUnset,
sourcepub fn resource_group_name(
self,
value: impl Into<Output<String>>,
) -> VirtualMachineArgsBuilder<SetResourceGroupName<S>>where
S::ResourceGroupName: IsUnset,
pub fn resource_group_name(
self,
value: impl Into<Output<String>>,
) -> VirtualMachineArgsBuilder<SetResourceGroupName<S>>where
S::ResourceGroupName: IsUnset,
Required.
Specifies the name of the Resource Group in which the Virtual Machine should exist. Changing this forces a new resource to be created.
sourcepub fn storage_data_disks(
self,
value: impl Into<Output<Option<Vec<VirtualMachineStorageDataDisk>>>>,
) -> VirtualMachineArgsBuilder<SetStorageDataDisks<S>>where
S::StorageDataDisks: IsUnset,
pub fn storage_data_disks(
self,
value: impl Into<Output<Option<Vec<VirtualMachineStorageDataDisk>>>>,
) -> VirtualMachineArgsBuilder<SetStorageDataDisks<S>>where
S::StorageDataDisks: IsUnset,
Optional (Some / Option setters). Default:
<pulumi_wasm_rust::Output<
Option<Vec<super::super::types::compute::VirtualMachineStorageDataDisk>>,
> as Default>::default()
One or more storage_data_disk
blocks as defined below.
Please Note: Data Disks can also be attached either using this block or the
azure.compute.DataDiskAttachment
resource - but not both.
sourcepub fn maybe_storage_data_disks(
self,
value: Option<impl Into<Output<Option<Vec<VirtualMachineStorageDataDisk>>>>>,
) -> VirtualMachineArgsBuilder<SetStorageDataDisks<S>>where
S::StorageDataDisks: IsUnset,
pub fn maybe_storage_data_disks(
self,
value: Option<impl Into<Output<Option<Vec<VirtualMachineStorageDataDisk>>>>>,
) -> VirtualMachineArgsBuilder<SetStorageDataDisks<S>>where
S::StorageDataDisks: IsUnset,
Optional (Some / Option setters). Default:
<pulumi_wasm_rust::Output<
Option<Vec<super::super::types::compute::VirtualMachineStorageDataDisk>>,
> as Default>::default()
One or more storage_data_disk
blocks as defined below.
Please Note: Data Disks can also be attached either using this block or the
azure.compute.DataDiskAttachment
resource - but not both.
sourcepub fn storage_image_reference(
self,
value: impl Into<Output<Option<VirtualMachineStorageImageReference>>>,
) -> VirtualMachineArgsBuilder<SetStorageImageReference<S>>where
S::StorageImageReference: IsUnset,
pub fn storage_image_reference(
self,
value: impl Into<Output<Option<VirtualMachineStorageImageReference>>>,
) -> VirtualMachineArgsBuilder<SetStorageImageReference<S>>where
S::StorageImageReference: IsUnset,
sourcepub fn maybe_storage_image_reference(
self,
value: Option<impl Into<Output<Option<VirtualMachineStorageImageReference>>>>,
) -> VirtualMachineArgsBuilder<SetStorageImageReference<S>>where
S::StorageImageReference: IsUnset,
pub fn maybe_storage_image_reference(
self,
value: Option<impl Into<Output<Option<VirtualMachineStorageImageReference>>>>,
) -> VirtualMachineArgsBuilder<SetStorageImageReference<S>>where
S::StorageImageReference: IsUnset,
sourcepub fn storage_os_disk(
self,
value: impl Into<Output<VirtualMachineStorageOsDisk>>,
) -> VirtualMachineArgsBuilder<SetStorageOsDisk<S>>where
S::StorageOsDisk: IsUnset,
pub fn storage_os_disk(
self,
value: impl Into<Output<VirtualMachineStorageOsDisk>>,
) -> VirtualMachineArgsBuilder<SetStorageOsDisk<S>>where
S::StorageOsDisk: IsUnset,
Required.
A storage_os_disk
block as defined below.
sourcepub fn vm_size(
self,
value: impl Into<Output<String>>,
) -> VirtualMachineArgsBuilder<SetVmSize<S>>where
S::VmSize: IsUnset,
pub fn vm_size(
self,
value: impl Into<Output<String>>,
) -> VirtualMachineArgsBuilder<SetVmSize<S>>where
S::VmSize: IsUnset,
Required.
Specifies the size of the Virtual Machine. See also Azure VM Naming Conventions.
sourcepub fn zones(
self,
value: impl Into<Output<Option<String>>>,
) -> VirtualMachineArgsBuilder<SetZones<S>>where
S::Zones: IsUnset,
pub fn zones(
self,
value: impl Into<Output<Option<String>>>,
) -> VirtualMachineArgsBuilder<SetZones<S>>where
S::Zones: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
A list of a single item of the Availability Zone which the Virtual Machine should be allocated in. Changing this forces a new resource to be created.
Please Note: Availability Zones are only supported in several regions at this time.
For more information on the different example configurations, please check out the Azure documentation
sourcepub fn maybe_zones(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> VirtualMachineArgsBuilder<SetZones<S>>where
S::Zones: IsUnset,
pub fn maybe_zones(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> VirtualMachineArgsBuilder<SetZones<S>>where
S::Zones: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
A list of a single item of the Availability Zone which the Virtual Machine should be allocated in. Changing this forces a new resource to be created.
Please Note: Availability Zones are only supported in several regions at this time.
For more information on the different example configurations, please check out the Azure documentation