pulumi_wasm_providers_azure_mini::compute::run_command

Struct RunCommandArgsBuilder

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

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

Implementations§

source§

impl<S: State> RunCommandArgsBuilder<S>

source

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

Finish building and return the requested object

source

pub fn error_blob_managed_identity( self, value: impl Into<Output<Option<RunCommandErrorBlobManagedIdentity>>>, ) -> RunCommandArgsBuilder<SetErrorBlobManagedIdentity<S>>
where S::ErrorBlobManagedIdentity: IsUnset,

Optional (Some / Option setters). Default:

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

An error_blob_managed_identity block as defined below. User-assigned managed Identity that has access to errorBlobUri storage blob.

source

pub fn maybe_error_blob_managed_identity( self, value: Option<impl Into<Output<Option<RunCommandErrorBlobManagedIdentity>>>>, ) -> RunCommandArgsBuilder<SetErrorBlobManagedIdentity<S>>
where S::ErrorBlobManagedIdentity: IsUnset,

Optional (Some / Option setters). Default:

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

An error_blob_managed_identity block as defined below. User-assigned managed Identity that has access to errorBlobUri storage blob.

source

pub fn error_blob_uri( self, value: impl Into<Output<Option<String>>>, ) -> RunCommandArgsBuilder<SetErrorBlobUri<S>>
where S::ErrorBlobUri: IsUnset,

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

Specifies the Azure storage blob where script error stream will be uploaded.

source

pub fn maybe_error_blob_uri( self, value: Option<impl Into<Output<Option<String>>>>, ) -> RunCommandArgsBuilder<SetErrorBlobUri<S>>
where S::ErrorBlobUri: IsUnset,

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

Specifies the Azure storage blob where script error stream will be uploaded.

source

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

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

The Azure Region where the Virtual Machine Run Command should exist. Changing this forces a new Virtual Machine Run Command to be created.

source

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

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

The Azure Region where the Virtual Machine Run Command should exist. Changing this forces a new Virtual Machine Run Command to be created.

source

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

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

Specifies the name of this Virtual Machine Run Command. Changing this forces a new Virtual Machine Run Command to be created.

source

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

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

Specifies the name of this Virtual Machine Run Command. Changing this forces a new Virtual Machine Run Command to be created.

source

pub fn output_blob_managed_identity( self, value: impl Into<Output<Option<RunCommandOutputBlobManagedIdentity>>>, ) -> RunCommandArgsBuilder<SetOutputBlobManagedIdentity<S>>
where S::OutputBlobManagedIdentity: IsUnset,

Optional (Some / Option setters). Default:

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

An output_blob_managed_identity block as defined below. User-assigned managed Identity that has access to outputBlobUri storage blob.

source

pub fn maybe_output_blob_managed_identity( self, value: Option<impl Into<Output<Option<RunCommandOutputBlobManagedIdentity>>>>, ) -> RunCommandArgsBuilder<SetOutputBlobManagedIdentity<S>>
where S::OutputBlobManagedIdentity: IsUnset,

Optional (Some / Option setters). Default:

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

An output_blob_managed_identity block as defined below. User-assigned managed Identity that has access to outputBlobUri storage blob.

source

pub fn output_blob_uri( self, value: impl Into<Output<Option<String>>>, ) -> RunCommandArgsBuilder<SetOutputBlobUri<S>>
where S::OutputBlobUri: IsUnset,

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

Specifies the Azure storage blob where script output stream will be uploaded. It can be basic blob URI with SAS token.

source

pub fn maybe_output_blob_uri( self, value: Option<impl Into<Output<Option<String>>>>, ) -> RunCommandArgsBuilder<SetOutputBlobUri<S>>
where S::OutputBlobUri: IsUnset,

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

Specifies the Azure storage blob where script output stream will be uploaded. It can be basic blob URI with SAS token.

source

pub fn parameters( self, value: impl Into<Output<Option<Vec<RunCommandParameter>>>>, ) -> RunCommandArgsBuilder<SetParameters<S>>
where S::Parameters: IsUnset,

Optional (Some / Option setters). Default:

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

A list of parameter blocks as defined below. The parameters used by the script.

source

pub fn maybe_parameters( self, value: Option<impl Into<Output<Option<Vec<RunCommandParameter>>>>>, ) -> RunCommandArgsBuilder<SetParameters<S>>
where S::Parameters: IsUnset,

Optional (Some / Option setters). Default:

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

A list of parameter blocks as defined below. The parameters used by the script.

source

pub fn protected_parameters( self, value: impl Into<Output<Option<Vec<RunCommandProtectedParameter>>>>, ) -> RunCommandArgsBuilder<SetProtectedParameters<S>>
where S::ProtectedParameters: IsUnset,

Optional (Some / Option setters). Default:

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

A list of protected_parameter blocks as defined below. The protected parameters used by the script.

source

pub fn maybe_protected_parameters( self, value: Option<impl Into<Output<Option<Vec<RunCommandProtectedParameter>>>>>, ) -> RunCommandArgsBuilder<SetProtectedParameters<S>>
where S::ProtectedParameters: IsUnset,

Optional (Some / Option setters). Default:

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

A list of protected_parameter blocks as defined below. The protected parameters used by the script.

source

pub fn run_as_password( self, value: impl Into<Output<Option<String>>>, ) -> RunCommandArgsBuilder<SetRunAsPassword<S>>
where S::RunAsPassword: IsUnset,

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

Specifies the user account password on the VM when executing the Virtual Machine Run Command.

source

pub fn maybe_run_as_password( self, value: Option<impl Into<Output<Option<String>>>>, ) -> RunCommandArgsBuilder<SetRunAsPassword<S>>
where S::RunAsPassword: IsUnset,

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

Specifies the user account password on the VM when executing the Virtual Machine Run Command.

source

pub fn run_as_user( self, value: impl Into<Output<Option<String>>>, ) -> RunCommandArgsBuilder<SetRunAsUser<S>>
where S::RunAsUser: IsUnset,

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

Specifies the user account on the VM when executing the Virtual Machine Run Command.

source

pub fn maybe_run_as_user( self, value: Option<impl Into<Output<Option<String>>>>, ) -> RunCommandArgsBuilder<SetRunAsUser<S>>
where S::RunAsUser: IsUnset,

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

Specifies the user account on the VM when executing the Virtual Machine Run Command.

source

pub fn source( self, value: impl Into<Output<RunCommandSource>>, ) -> RunCommandArgsBuilder<SetSource<S>>
where S::Source: IsUnset,

Required.

A source block as defined below. The source of the run command script.

source

pub fn tags( self, value: impl Into<Output<Option<HashMap<String, String>>>>, ) -> RunCommandArgsBuilder<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 which should be assigned to the Virtual Machine Run Command.

source

pub fn maybe_tags( self, value: Option<impl Into<Output<Option<HashMap<String, String>>>>>, ) -> RunCommandArgsBuilder<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 which should be assigned to the Virtual Machine Run Command.

source

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

Required.

Specifies the Virtual Machine ID within which this Virtual Machine Run Command should exist. Changing this forces a new Virtual Machine Run Command 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.