pub struct ShareArgsBuilder<S: State = Empty> { /* private fields */ }
Expand description
Use builder syntax to set the inputs and finish with build_struct()
.
Implementations§
sourcepub fn build_struct(self) -> ShareArgswhere
S: IsComplete,
pub fn build_struct(self) -> ShareArgswhere
S: IsComplete,
Finish building and return the requested object
sourcepub fn access_tier(
self,
value: impl Into<Output<Option<String>>>,
) -> ShareArgsBuilder<SetAccessTier<S>>where
S::AccessTier: IsUnset,
pub fn access_tier(
self,
value: impl Into<Output<Option<String>>>,
) -> ShareArgsBuilder<SetAccessTier<S>>where
S::AccessTier: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
The access tier of the File Share. Possible values are Hot
, Cool
and TransactionOptimized
, Premium
.
~>NOTE: The FileStorage
account_kind
of the azure.storage.Account
requires Premium
access_tier
.
sourcepub fn maybe_access_tier(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> ShareArgsBuilder<SetAccessTier<S>>where
S::AccessTier: IsUnset,
pub fn maybe_access_tier(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> ShareArgsBuilder<SetAccessTier<S>>where
S::AccessTier: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
The access tier of the File Share. Possible values are Hot
, Cool
and TransactionOptimized
, Premium
.
~>NOTE: The FileStorage
account_kind
of the azure.storage.Account
requires Premium
access_tier
.
sourcepub fn acls(
self,
value: impl Into<Output<Option<Vec<ShareAcl>>>>,
) -> ShareArgsBuilder<SetAcls<S>>where
S::Acls: IsUnset,
pub fn acls(
self,
value: impl Into<Output<Option<Vec<ShareAcl>>>>,
) -> ShareArgsBuilder<SetAcls<S>>where
S::Acls: IsUnset,
sourcepub fn maybe_acls(
self,
value: Option<impl Into<Output<Option<Vec<ShareAcl>>>>>,
) -> ShareArgsBuilder<SetAcls<S>>where
S::Acls: IsUnset,
pub fn maybe_acls(
self,
value: Option<impl Into<Output<Option<Vec<ShareAcl>>>>>,
) -> ShareArgsBuilder<SetAcls<S>>where
S::Acls: IsUnset,
sourcepub fn enabled_protocol(
self,
value: impl Into<Output<Option<String>>>,
) -> ShareArgsBuilder<SetEnabledProtocol<S>>where
S::EnabledProtocol: IsUnset,
pub fn enabled_protocol(
self,
value: impl Into<Output<Option<String>>>,
) -> ShareArgsBuilder<SetEnabledProtocol<S>>where
S::EnabledProtocol: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
The protocol used for the share. Possible values are SMB
and NFS
. The SMB
indicates the share can be accessed by SMBv3.0, SMBv2.1 and REST. The NFS
indicates the share can be accessed by NFSv4.1. Defaults to SMB
. Changing this forces a new resource to be created.
~>NOTE: The FileStorage
account_kind
of the azure.storage.Account
is required for the NFS
protocol.
sourcepub fn maybe_enabled_protocol(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> ShareArgsBuilder<SetEnabledProtocol<S>>where
S::EnabledProtocol: IsUnset,
pub fn maybe_enabled_protocol(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> ShareArgsBuilder<SetEnabledProtocol<S>>where
S::EnabledProtocol: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
The protocol used for the share. Possible values are SMB
and NFS
. The SMB
indicates the share can be accessed by SMBv3.0, SMBv2.1 and REST. The NFS
indicates the share can be accessed by NFSv4.1. Defaults to SMB
. Changing this forces a new resource to be created.
~>NOTE: The FileStorage
account_kind
of the azure.storage.Account
is required for the NFS
protocol.
sourcepub fn metadata(
self,
value: impl Into<Output<Option<HashMap<String, String>>>>,
) -> ShareArgsBuilder<SetMetadata<S>>where
S::Metadata: IsUnset,
pub fn metadata(
self,
value: impl Into<Output<Option<HashMap<String, String>>>>,
) -> ShareArgsBuilder<SetMetadata<S>>where
S::Metadata: IsUnset,
sourcepub fn maybe_metadata(
self,
value: Option<impl Into<Output<Option<HashMap<String, String>>>>>,
) -> ShareArgsBuilder<SetMetadata<S>>where
S::Metadata: IsUnset,
pub fn maybe_metadata(
self,
value: Option<impl Into<Output<Option<HashMap<String, String>>>>>,
) -> ShareArgsBuilder<SetMetadata<S>>where
S::Metadata: IsUnset,
sourcepub fn name(
self,
value: impl Into<Output<Option<String>>>,
) -> ShareArgsBuilder<SetName<S>>where
S::Name: IsUnset,
pub fn name(
self,
value: impl Into<Output<Option<String>>>,
) -> ShareArgsBuilder<SetName<S>>where
S::Name: IsUnset,
sourcepub fn maybe_name(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> ShareArgsBuilder<SetName<S>>where
S::Name: IsUnset,
pub fn maybe_name(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> ShareArgsBuilder<SetName<S>>where
S::Name: IsUnset,
sourcepub fn quota(
self,
value: impl Into<Output<i32>>,
) -> ShareArgsBuilder<SetQuota<S>>where
S::Quota: IsUnset,
pub fn quota(
self,
value: impl Into<Output<i32>>,
) -> ShareArgsBuilder<SetQuota<S>>where
S::Quota: IsUnset,
Required.
The maximum size of the share, in gigabytes.
~>NOTE: For Standard storage accounts, by default this must be 1
GB (or higher) and at most 5120
GB (5
TB). This can be set to a value larger than 5120
GB if large_file_share_enabled
is set to true
in the parent azure.storage.Account
.
~>NOTE: For Premium FileStorage storage accounts, this must be greater than 100
GB and at most 102400
GB (100
TB).
sourcepub fn storage_account_id(
self,
value: impl Into<Output<Option<String>>>,
) -> ShareArgsBuilder<SetStorageAccountId<S>>where
S::StorageAccountId: IsUnset,
pub fn storage_account_id(
self,
value: impl Into<Output<Option<String>>>,
) -> ShareArgsBuilder<SetStorageAccountId<S>>where
S::StorageAccountId: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
Specifies the storage account in which to create the share. Changing this forces a new resource to be created.
NOTE: One of
storage_account_name
orstorage_account_id
must be specified. When specifyingstorage_account_id
the resource will use the Resource Manager API, rather than the Data Plane API.
sourcepub fn maybe_storage_account_id(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> ShareArgsBuilder<SetStorageAccountId<S>>where
S::StorageAccountId: IsUnset,
pub fn maybe_storage_account_id(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> ShareArgsBuilder<SetStorageAccountId<S>>where
S::StorageAccountId: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
Specifies the storage account in which to create the share. Changing this forces a new resource to be created.
NOTE: One of
storage_account_name
orstorage_account_id
must be specified. When specifyingstorage_account_id
the resource will use the Resource Manager API, rather than the Data Plane API.