pulumi_wasm_providers_azure_mini::compute::scale_set

Struct ScaleSetArgsBuilder

source
pub struct ScaleSetArgsBuilder<S: State = Empty> { /* private fields */ }
Expand description

Use builder syntax to set the inputs and finish with build_struct().

Implementations§

source§

impl<S: State> ScaleSetArgsBuilder<S>

source

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

Finish building and return the requested object

source

pub fn automatic_os_upgrade( self, value: impl Into<Output<Option<bool>>>, ) -> ScaleSetArgsBuilder<SetAutomaticOsUpgrade<S>>
where S::AutomaticOsUpgrade: IsUnset,

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

Automatic OS patches can be applied by Azure to your scaleset. This is particularly useful when upgrade_policy_mode is set to Rolling. Defaults to false.

source

pub fn maybe_automatic_os_upgrade( self, value: Option<impl Into<Output<Option<bool>>>>, ) -> ScaleSetArgsBuilder<SetAutomaticOsUpgrade<S>>
where S::AutomaticOsUpgrade: IsUnset,

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

Automatic OS patches can be applied by Azure to your scaleset. This is particularly useful when upgrade_policy_mode is set to Rolling. Defaults to false.

source

pub fn boot_diagnostics( self, value: impl Into<Output<Option<ScaleSetBootDiagnostics>>>, ) -> ScaleSetArgsBuilder<SetBootDiagnostics<S>>
where S::BootDiagnostics: IsUnset,

Optional (Some / Option setters). Default:

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

A boot_diagnostics block as referenced below.

source

pub fn maybe_boot_diagnostics( self, value: Option<impl Into<Output<Option<ScaleSetBootDiagnostics>>>>, ) -> ScaleSetArgsBuilder<SetBootDiagnostics<S>>
where S::BootDiagnostics: IsUnset,

Optional (Some / Option setters). Default:

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

A boot_diagnostics block as referenced below.

source

pub fn eviction_policy( self, value: impl Into<Output<Option<String>>>, ) -> ScaleSetArgsBuilder<SetEvictionPolicy<S>>
where S::EvictionPolicy: IsUnset,

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

Specifies the eviction policy for Virtual Machines in this Scale Set. Possible values are Deallocate and Delete. Changing this forces a new resource to be created.

NOTE: eviction_policy can only be set when priority is set to Low.

source

pub fn maybe_eviction_policy( self, value: Option<impl Into<Output<Option<String>>>>, ) -> ScaleSetArgsBuilder<SetEvictionPolicy<S>>
where S::EvictionPolicy: IsUnset,

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

Specifies the eviction policy for Virtual Machines in this Scale Set. Possible values are Deallocate and Delete. Changing this forces a new resource to be created.

NOTE: eviction_policy can only be set when priority is set to Low.

source

pub fn extensions( self, value: impl Into<Output<Option<Vec<ScaleSetExtension>>>>, ) -> ScaleSetArgsBuilder<SetExtensions<S>>
where S::Extensions: IsUnset,

Optional (Some / Option setters). Default:

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

Can be specified multiple times to add extension profiles to the scale set. Each extension block supports the fields documented below.

source

pub fn maybe_extensions( self, value: Option<impl Into<Output<Option<Vec<ScaleSetExtension>>>>>, ) -> ScaleSetArgsBuilder<SetExtensions<S>>
where S::Extensions: IsUnset,

Optional (Some / Option setters). Default:

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

Can be specified multiple times to add extension profiles to the scale set. Each extension block supports the fields documented below.

source

pub fn health_probe_id( self, value: impl Into<Output<Option<String>>>, ) -> ScaleSetArgsBuilder<SetHealthProbeId<S>>
where S::HealthProbeId: IsUnset,

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

Specifies the identifier for the load balancer health probe. Required when using Rolling as your upgrade_policy_mode.

source

pub fn maybe_health_probe_id( self, value: Option<impl Into<Output<Option<String>>>>, ) -> ScaleSetArgsBuilder<SetHealthProbeId<S>>
where S::HealthProbeId: IsUnset,

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

Specifies the identifier for the load balancer health probe. Required when using Rolling as your upgrade_policy_mode.

source

pub fn identity( self, value: impl Into<Output<Option<ScaleSetIdentity>>>, ) -> ScaleSetArgsBuilder<SetIdentity<S>>
where S::Identity: IsUnset,

Optional (Some / Option setters). Default:

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

An identity block as defined below.

source

pub fn maybe_identity( self, value: Option<impl Into<Output<Option<ScaleSetIdentity>>>>, ) -> ScaleSetArgsBuilder<SetIdentity<S>>
where S::Identity: IsUnset,

Optional (Some / Option setters). Default:

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

An identity block as defined below.

source

pub fn license_type( self, value: impl Into<Output<Option<String>>>, ) -> ScaleSetArgsBuilder<SetLicenseType<S>>
where S::LicenseType: IsUnset,

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

(Optional, when a Windows machine) Specifies the Windows OS license type. If supplied, the only allowed values are Windows_Client and Windows_Server.

source

pub fn maybe_license_type( self, value: Option<impl Into<Output<Option<String>>>>, ) -> ScaleSetArgsBuilder<SetLicenseType<S>>
where S::LicenseType: IsUnset,

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

(Optional, when a Windows machine) Specifies the Windows OS license type. If supplied, the only allowed values are Windows_Client and Windows_Server.

source

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

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

Specifies 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>>>>, ) -> ScaleSetArgsBuilder<SetLocation<S>>
where S::Location: IsUnset,

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

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

source

pub fn name( self, value: impl Into<Output<Option<String>>>, ) -> ScaleSetArgsBuilder<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 virtual machine scale set resource. Changing this forces a new resource to be created.

source

pub fn maybe_name( self, value: Option<impl Into<Output<Option<String>>>>, ) -> ScaleSetArgsBuilder<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 virtual machine scale set resource. Changing this forces a new resource to be created.

source

pub fn network_profiles( self, value: impl Into<Output<Vec<ScaleSetNetworkProfile>>>, ) -> ScaleSetArgsBuilder<SetNetworkProfiles<S>>
where S::NetworkProfiles: IsUnset,

Required.

A collection of network_profile blocks as documented below.

source

pub fn os_profile( self, value: impl Into<Output<ScaleSetOsProfile>>, ) -> ScaleSetArgsBuilder<SetOsProfile<S>>
where S::OsProfile: IsUnset,

Required.

A os_profile block as documented below.

source

pub fn os_profile_linux_config( self, value: impl Into<Output<Option<ScaleSetOsProfileLinuxConfig>>>, ) -> ScaleSetArgsBuilder<SetOsProfileLinuxConfig<S>>
where S::OsProfileLinuxConfig: IsUnset,

Optional (Some / Option setters). Default:

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

A os_profile_linux_config block as documented below.

source

pub fn maybe_os_profile_linux_config( self, value: Option<impl Into<Output<Option<ScaleSetOsProfileLinuxConfig>>>>, ) -> ScaleSetArgsBuilder<SetOsProfileLinuxConfig<S>>
where S::OsProfileLinuxConfig: IsUnset,

Optional (Some / Option setters). Default:

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

A os_profile_linux_config block as documented below.

source

pub fn os_profile_secrets( self, value: impl Into<Output<Option<Vec<ScaleSetOsProfileSecret>>>>, ) -> ScaleSetArgsBuilder<SetOsProfileSecrets<S>>
where S::OsProfileSecrets: IsUnset,

Optional (Some / Option setters). Default:

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

A collection of os_profile_secrets blocks as documented below.

source

pub fn maybe_os_profile_secrets( self, value: Option<impl Into<Output<Option<Vec<ScaleSetOsProfileSecret>>>>>, ) -> ScaleSetArgsBuilder<SetOsProfileSecrets<S>>
where S::OsProfileSecrets: IsUnset,

Optional (Some / Option setters). Default:

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

A collection of os_profile_secrets blocks as documented below.

source

pub fn os_profile_windows_config( self, value: impl Into<Output<Option<ScaleSetOsProfileWindowsConfig>>>, ) -> ScaleSetArgsBuilder<SetOsProfileWindowsConfig<S>>
where S::OsProfileWindowsConfig: IsUnset,

Optional (Some / Option setters). Default:

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

A os_profile_windows_config block as documented below.

source

pub fn maybe_os_profile_windows_config( self, value: Option<impl Into<Output<Option<ScaleSetOsProfileWindowsConfig>>>>, ) -> ScaleSetArgsBuilder<SetOsProfileWindowsConfig<S>>
where S::OsProfileWindowsConfig: IsUnset,

Optional (Some / Option setters). Default:

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

A os_profile_windows_config block as documented below.

source

pub fn overprovision( self, value: impl Into<Output<Option<bool>>>, ) -> ScaleSetArgsBuilder<SetOverprovision<S>>
where S::Overprovision: IsUnset,

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

Specifies whether the virtual machine scale set should be overprovisioned. Defaults to true.

source

pub fn maybe_overprovision( self, value: Option<impl Into<Output<Option<bool>>>>, ) -> ScaleSetArgsBuilder<SetOverprovision<S>>
where S::Overprovision: IsUnset,

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

Specifies whether the virtual machine scale set should be overprovisioned. Defaults to true.

source

pub fn plan( self, value: impl Into<Output<Option<ScaleSetPlan>>>, ) -> ScaleSetArgsBuilder<SetPlan<S>>
where S::Plan: IsUnset,

Optional (Some / Option setters). Default:

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

A plan block as documented below.

source

pub fn maybe_plan( self, value: Option<impl Into<Output<Option<ScaleSetPlan>>>>, ) -> ScaleSetArgsBuilder<SetPlan<S>>
where S::Plan: IsUnset,

Optional (Some / Option setters). Default:

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

A plan block as documented below.

source

pub fn priority( self, value: impl Into<Output<Option<String>>>, ) -> ScaleSetArgsBuilder<SetPriority<S>>
where S::Priority: IsUnset,

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

Specifies the priority for the Virtual Machines in the Scale Set. Possible values are Low and Regular. Changing this forces a new resource to be created.

source

pub fn maybe_priority( self, value: Option<impl Into<Output<Option<String>>>>, ) -> ScaleSetArgsBuilder<SetPriority<S>>
where S::Priority: IsUnset,

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

Specifies the priority for the Virtual Machines in the Scale Set. Possible values are Low and Regular. Changing this forces a new resource to be created.

source

pub fn proximity_placement_group_id( self, value: impl Into<Output<Option<String>>>, ) -> ScaleSetArgsBuilder<SetProximityPlacementGroupId<S>>
where S::ProximityPlacementGroupId: IsUnset,

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

The ID of the Proximity Placement Group to which this Virtual Machine should be assigned. Changing this forces a new resource to be created

source

pub fn maybe_proximity_placement_group_id( self, value: Option<impl Into<Output<Option<String>>>>, ) -> ScaleSetArgsBuilder<SetProximityPlacementGroupId<S>>
where S::ProximityPlacementGroupId: IsUnset,

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

The ID of the Proximity Placement Group to which this Virtual Machine should be assigned. Changing this forces a new resource to be created

source

pub fn resource_group_name( self, value: impl Into<Output<String>>, ) -> ScaleSetArgsBuilder<SetResourceGroupName<S>>
where S::ResourceGroupName: IsUnset,

Required.

The name of the resource group in which to create the virtual machine scale set. Changing this forces a new resource to be created.

source

pub fn rolling_upgrade_policy( self, value: impl Into<Output<Option<ScaleSetRollingUpgradePolicy>>>, ) -> ScaleSetArgsBuilder<SetRollingUpgradePolicy<S>>
where S::RollingUpgradePolicy: IsUnset,

Optional (Some / Option setters). Default:

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

A rolling_upgrade_policy block as defined below. This is only applicable when the upgrade_policy_mode is Rolling.

source

pub fn maybe_rolling_upgrade_policy( self, value: Option<impl Into<Output<Option<ScaleSetRollingUpgradePolicy>>>>, ) -> ScaleSetArgsBuilder<SetRollingUpgradePolicy<S>>
where S::RollingUpgradePolicy: IsUnset,

Optional (Some / Option setters). Default:

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

A rolling_upgrade_policy block as defined below. This is only applicable when the upgrade_policy_mode is Rolling.

source

pub fn single_placement_group( self, value: impl Into<Output<Option<bool>>>, ) -> ScaleSetArgsBuilder<SetSinglePlacementGroup<S>>
where S::SinglePlacementGroup: IsUnset,

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

Specifies whether the scale set is limited to a single placement group with a maximum size of 100 virtual machines. If set to false, managed disks must be used. Changing this forces a new resource to be created. See documentation for more information. Defaults to true.

source

pub fn maybe_single_placement_group( self, value: Option<impl Into<Output<Option<bool>>>>, ) -> ScaleSetArgsBuilder<SetSinglePlacementGroup<S>>
where S::SinglePlacementGroup: IsUnset,

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

Specifies whether the scale set is limited to a single placement group with a maximum size of 100 virtual machines. If set to false, managed disks must be used. Changing this forces a new resource to be created. See documentation for more information. Defaults to true.

source

pub fn sku( self, value: impl Into<Output<ScaleSetSku>>, ) -> ScaleSetArgsBuilder<SetSku<S>>
where S::Sku: IsUnset,

Required.

A sku block as documented below.

source

pub fn storage_profile_data_disks( self, value: impl Into<Output<Option<Vec<ScaleSetStorageProfileDataDisk>>>>, ) -> ScaleSetArgsBuilder<SetStorageProfileDataDisks<S>>
where S::StorageProfileDataDisks: IsUnset,

Optional (Some / Option setters). Default:

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

A storage_profile_data_disk block as documented below.

source

pub fn maybe_storage_profile_data_disks( self, value: Option<impl Into<Output<Option<Vec<ScaleSetStorageProfileDataDisk>>>>>, ) -> ScaleSetArgsBuilder<SetStorageProfileDataDisks<S>>
where S::StorageProfileDataDisks: IsUnset,

Optional (Some / Option setters). Default:

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

A storage_profile_data_disk block as documented below.

source

pub fn storage_profile_image_reference( self, value: impl Into<Output<Option<ScaleSetStorageProfileImageReference>>>, ) -> ScaleSetArgsBuilder<SetStorageProfileImageReference<S>>
where S::StorageProfileImageReference: IsUnset,

Optional (Some / Option setters). Default:

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

A storage_profile_image_reference block as documented below.

source

pub fn maybe_storage_profile_image_reference( self, value: Option<impl Into<Output<Option<ScaleSetStorageProfileImageReference>>>>, ) -> ScaleSetArgsBuilder<SetStorageProfileImageReference<S>>
where S::StorageProfileImageReference: IsUnset,

Optional (Some / Option setters). Default:

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

A storage_profile_image_reference block as documented below.

source

pub fn storage_profile_os_disk( self, value: impl Into<Output<ScaleSetStorageProfileOsDisk>>, ) -> ScaleSetArgsBuilder<SetStorageProfileOsDisk<S>>
where S::StorageProfileOsDisk: IsUnset,

Required.

A storage_profile_os_disk block as documented below.

source

pub fn tags( self, value: impl Into<Output<Option<HashMap<String, String>>>>, ) -> ScaleSetArgsBuilder<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>>>>>, ) -> ScaleSetArgsBuilder<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 upgrade_policy_mode( self, value: impl Into<Output<String>>, ) -> ScaleSetArgsBuilder<SetUpgradePolicyMode<S>>
where S::UpgradePolicyMode: IsUnset,

Required.

Specifies the mode of an upgrade to virtual machines in the scale set. Possible values, Rolling, Manual, or Automatic. When choosing Rolling, you will need to set a health probe.

source

pub fn zones( self, value: impl Into<Output<Option<Vec<String>>>>, ) -> ScaleSetArgsBuilder<SetZones<S>>
where S::Zones: IsUnset,

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

A collection of availability zones to spread the Virtual Machines over. Changing this forces a new resource to be created.

NOTE: Availability Zones are only supported in several regions at this time.

source

pub fn maybe_zones( self, value: Option<impl Into<Output<Option<Vec<String>>>>>, ) -> ScaleSetArgsBuilder<SetZones<S>>
where S::Zones: IsUnset,

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

A collection of availability zones to spread the Virtual Machines over. Changing this forces a new resource to be created.

NOTE: Availability Zones are only supported in several 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.