pulumi_wasm_providers_azure_mini::compute::extension

Struct ExtensionArgsBuilder

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

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

Implementations§

source§

impl<S: State> ExtensionArgsBuilder<S>

source

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

Finish building and return the requested object

source

pub fn auto_upgrade_minor_version( self, value: impl Into<Output<Option<bool>>>, ) -> ExtensionArgsBuilder<SetAutoUpgradeMinorVersion<S>>
where S::AutoUpgradeMinorVersion: IsUnset,

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

Specifies if the platform deploys the latest minor version update to the type_handler_version specified.

source

pub fn maybe_auto_upgrade_minor_version( self, value: Option<impl Into<Output<Option<bool>>>>, ) -> ExtensionArgsBuilder<SetAutoUpgradeMinorVersion<S>>
where S::AutoUpgradeMinorVersion: IsUnset,

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

Specifies if the platform deploys the latest minor version update to the type_handler_version specified.

source

pub fn automatic_upgrade_enabled( self, value: impl Into<Output<Option<bool>>>, ) -> ExtensionArgsBuilder<SetAutomaticUpgradeEnabled<S>>
where S::AutomaticUpgradeEnabled: IsUnset,

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

Should the Extension be automatically updated whenever the Publisher releases a new version of this VM Extension?

source

pub fn maybe_automatic_upgrade_enabled( self, value: Option<impl Into<Output<Option<bool>>>>, ) -> ExtensionArgsBuilder<SetAutomaticUpgradeEnabled<S>>
where S::AutomaticUpgradeEnabled: IsUnset,

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

Should the Extension be automatically updated whenever the Publisher releases a new version of this VM Extension?

source

pub fn failure_suppression_enabled( self, value: impl Into<Output<Option<bool>>>, ) -> ExtensionArgsBuilder<SetFailureSuppressionEnabled<S>>
where S::FailureSuppressionEnabled: IsUnset,

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

Should failures from the extension be suppressed? Possible values are true or false. Defaults to false.

NOTE: Operational failures such as not connecting to the VM will not be suppressed regardless of the failure_suppression_enabled value.

source

pub fn maybe_failure_suppression_enabled( self, value: Option<impl Into<Output<Option<bool>>>>, ) -> ExtensionArgsBuilder<SetFailureSuppressionEnabled<S>>
where S::FailureSuppressionEnabled: IsUnset,

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

Should failures from the extension be suppressed? Possible values are true or false. Defaults to false.

NOTE: Operational failures such as not connecting to the VM will not be suppressed regardless of the failure_suppression_enabled value.

source

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

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

The name of the virtual machine extension peering. Changing this forces a new resource to be created.

source

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

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

The name of the virtual machine extension peering. Changing this forces a new resource to be created.

source

pub fn protected_settings( self, value: impl Into<Output<Option<String>>>, ) -> ExtensionArgsBuilder<SetProtectedSettings<S>>
where S::ProtectedSettings: IsUnset,

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

The protected_settings passed to the extension, like settings, these are specified as a JSON object in a string.

Please Note: Certain VM Extensions require that the keys in the protected_settings block are case sensitive. If you’re seeing unhelpful errors, please ensure the keys are consistent with how Azure is expecting them (for instance, for the JsonADDomainExtension extension, the keys are expected to be in TitleCase.)

source

pub fn maybe_protected_settings( self, value: Option<impl Into<Output<Option<String>>>>, ) -> ExtensionArgsBuilder<SetProtectedSettings<S>>
where S::ProtectedSettings: IsUnset,

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

The protected_settings passed to the extension, like settings, these are specified as a JSON object in a string.

Please Note: Certain VM Extensions require that the keys in the protected_settings block are case sensitive. If you’re seeing unhelpful errors, please ensure the keys are consistent with how Azure is expecting them (for instance, for the JsonADDomainExtension extension, the keys are expected to be in TitleCase.)

source

pub fn protected_settings_from_key_vault( self, value: impl Into<Output<Option<ExtensionProtectedSettingsFromKeyVault>>>, ) -> ExtensionArgsBuilder<SetProtectedSettingsFromKeyVault<S>>
where S::ProtectedSettingsFromKeyVault: IsUnset,

Optional (Some / Option setters). Default:

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

A protected_settings_from_key_vault block as defined below.

Note: protected_settings_from_key_vault cannot be used with protected_settings

source

pub fn maybe_protected_settings_from_key_vault( self, value: Option<impl Into<Output<Option<ExtensionProtectedSettingsFromKeyVault>>>>, ) -> ExtensionArgsBuilder<SetProtectedSettingsFromKeyVault<S>>
where S::ProtectedSettingsFromKeyVault: IsUnset,

Optional (Some / Option setters). Default:

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

A protected_settings_from_key_vault block as defined below.

Note: protected_settings_from_key_vault cannot be used with protected_settings

source

pub fn provision_after_extensions( self, value: impl Into<Output<Option<Vec<String>>>>, ) -> ExtensionArgsBuilder<SetProvisionAfterExtensions<S>>
where S::ProvisionAfterExtensions: IsUnset,

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

Specifies the collection of extension names after which this extension needs to be provisioned.

source

pub fn maybe_provision_after_extensions( self, value: Option<impl Into<Output<Option<Vec<String>>>>>, ) -> ExtensionArgsBuilder<SetProvisionAfterExtensions<S>>
where S::ProvisionAfterExtensions: IsUnset,

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

Specifies the collection of extension names after which this extension needs to be provisioned.

source

pub fn publisher( self, value: impl Into<Output<String>>, ) -> ExtensionArgsBuilder<SetPublisher<S>>
where S::Publisher: IsUnset,

Required.

The publisher of the extension, available publishers can be found by using the Azure CLI. Changing this forces a new resource to be created.

source

pub fn settings( self, value: impl Into<Output<Option<String>>>, ) -> ExtensionArgsBuilder<SetSettings<S>>
where S::Settings: IsUnset,

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

The settings passed to the extension, these are specified as a JSON object in a string.

Please Note: Certain VM Extensions require that the keys in the settings block are case sensitive. If you’re seeing unhelpful errors, please ensure the keys are consistent with how Azure is expecting them (for instance, for the JsonADDomainExtension extension, the keys are expected to be in TitleCase.)

source

pub fn maybe_settings( self, value: Option<impl Into<Output<Option<String>>>>, ) -> ExtensionArgsBuilder<SetSettings<S>>
where S::Settings: IsUnset,

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

The settings passed to the extension, these are specified as a JSON object in a string.

Please Note: Certain VM Extensions require that the keys in the settings block are case sensitive. If you’re seeing unhelpful errors, please ensure the keys are consistent with how Azure is expecting them (for instance, for the JsonADDomainExtension extension, the keys are expected to be in TitleCase.)

source

pub fn tags( self, value: impl Into<Output<Option<HashMap<String, String>>>>, ) -> ExtensionArgsBuilder<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>>>>>, ) -> ExtensionArgsBuilder<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 type_( self, value: impl Into<Output<String>>, ) -> ExtensionArgsBuilder<SetType<S>>
where S::Type: IsUnset,

Required.

The type of extension, available types for a publisher can be found using the Azure CLI.

Note: The Publisher and Type of Virtual Machine Extensions can be found using the Azure CLI, via:

az vm extension image list --location westus -o table
source

pub fn type_handler_version( self, value: impl Into<Output<String>>, ) -> ExtensionArgsBuilder<SetTypeHandlerVersion<S>>
where S::TypeHandlerVersion: IsUnset,

Required.

Specifies the version of the extension to use, available versions can be found using the Azure CLI.

source

pub fn virtual_machine_id( self, value: impl Into<Output<String>>, ) -> ExtensionArgsBuilder<SetVirtualMachineId<S>>
where S::VirtualMachineId: IsUnset,

Required.

The ID of the Virtual Machine. Changing this forces a new resource to be created

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.