pulumi_wasm_providers_azure_mini::compute::snapshot

Struct SnapshotArgsBuilder

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

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

Implementations§

source§

impl<S: State> SnapshotArgsBuilder<S>

source

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

Finish building and return the requested object

source

pub fn create_option( self, value: impl Into<Output<String>>, ) -> SnapshotArgsBuilder<SetCreateOption<S>>
where S::CreateOption: IsUnset,

Required.

Indicates how the snapshot is to be created. Possible values are Copy or Import.

Note: One of source_uri, source_resource_id or storage_account_id must be specified.

source

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

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

Specifies the ID of the Disk Access which should be used for this Snapshot. This is used in conjunction with setting network_access_policy to AllowPrivate.

source

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

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

Specifies the ID of the Disk Access which should be used for this Snapshot. This is used in conjunction with setting network_access_policy to AllowPrivate.

source

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

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

The size of the Snapshotted Disk in GB.

source

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

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

The size of the Snapshotted Disk in GB.

source

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

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::compute::SnapshotEncryptionSettings>,
> 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<SnapshotEncryptionSettings>>>>, ) -> SnapshotArgsBuilder<SetEncryptionSettings<S>>
where S::EncryptionSettings: IsUnset,

Optional (Some / Option setters). Default:

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

A encryption_settings block as defined below.

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

source

pub fn incremental_enabled( self, value: impl Into<Output<Option<bool>>>, ) -> SnapshotArgsBuilder<SetIncrementalEnabled<S>>
where S::IncrementalEnabled: IsUnset,

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

Specifies if the Snapshot is incremental. Changing this forces a new resource to be created.

source

pub fn maybe_incremental_enabled( self, value: Option<impl Into<Output<Option<bool>>>>, ) -> SnapshotArgsBuilder<SetIncrementalEnabled<S>>
where S::IncrementalEnabled: IsUnset,

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

Specifies if the Snapshot is incremental. Changing this forces a new resource to be created.

source

pub fn location( self, value: impl Into<Output<Option<String>>>, ) -> SnapshotArgsBuilder<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>>>>, ) -> SnapshotArgsBuilder<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>>>, ) -> SnapshotArgsBuilder<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 Snapshot resource. Changing this forces a new resource to be created.

source

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

source

pub fn network_access_policy( self, value: impl Into<Output<Option<String>>>, ) -> SnapshotArgsBuilder<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. Possible values are AllowAll, AllowPrivate, or DenyAll. Defaults to AllowAll.

source

pub fn maybe_network_access_policy( self, value: Option<impl Into<Output<Option<String>>>>, ) -> SnapshotArgsBuilder<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. Possible values are AllowAll, AllowPrivate, or DenyAll. Defaults to AllowAll.

source

pub fn public_network_access_enabled( self, value: impl Into<Output<Option<bool>>>, ) -> SnapshotArgsBuilder<SetPublicNetworkAccessEnabled<S>>
where S::PublicNetworkAccessEnabled: IsUnset,

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

Policy for controlling export on the disk. Possible values are true or false. Defaults to true.

source

pub fn maybe_public_network_access_enabled( self, value: Option<impl Into<Output<Option<bool>>>>, ) -> SnapshotArgsBuilder<SetPublicNetworkAccessEnabled<S>>
where S::PublicNetworkAccessEnabled: IsUnset,

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

Policy for controlling export on the disk. Possible values are true or false. Defaults to true.

source

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

Required.

The name of the resource group in which to create the Snapshot. Changing this forces a new resource to be created.

source

pub fn source_resource_id( self, value: impl Into<Output<Option<String>>>, ) -> SnapshotArgsBuilder<SetSourceResourceId<S>>
where S::SourceResourceId: IsUnset,

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

Specifies a reference to an existing snapshot, when create_option is Copy. Changing this forces a new resource to be created.

source

pub fn maybe_source_resource_id( self, value: Option<impl Into<Output<Option<String>>>>, ) -> SnapshotArgsBuilder<SetSourceResourceId<S>>
where S::SourceResourceId: IsUnset,

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

Specifies a reference to an existing snapshot, when create_option is Copy. Changing this forces a new resource to be created.

source

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

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

Specifies the URI to a Managed or Unmanaged Disk. Changing this forces a new resource to be created.

source

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

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

Specifies the URI to a Managed or Unmanaged Disk. Changing this forces a new resource to be created.

source

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

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

Specifies the ID of an storage account. Used with source_uri to allow authorization during import of unmanaged blobs from a different subscription. Changing this forces a new resource to be created.

source

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

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

Specifies the ID of an storage account. Used with source_uri to allow authorization during import of unmanaged blobs from a different subscription. Changing this forces a new resource to be created.

source

pub fn tags( self, value: impl Into<Output<Option<HashMap<String, String>>>>, ) -> SnapshotArgsBuilder<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>>>>>, ) -> SnapshotArgsBuilder<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.

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.