pub struct DiskEncryptionSetArgsBuilder<S: State = Empty> { /* private fields */ }
Expand description
Use builder syntax to set the inputs and finish with build_struct()
.
Implementations§
source§impl<S: State> DiskEncryptionSetArgsBuilder<S>
impl<S: State> DiskEncryptionSetArgsBuilder<S>
sourcepub fn build_struct(self) -> DiskEncryptionSetArgswhere
S: IsComplete,
pub fn build_struct(self) -> DiskEncryptionSetArgswhere
S: IsComplete,
Finish building and return the requested object
sourcepub fn auto_key_rotation_enabled(
self,
value: impl Into<Output<Option<bool>>>,
) -> DiskEncryptionSetArgsBuilder<SetAutoKeyRotationEnabled<S>>where
S::AutoKeyRotationEnabled: IsUnset,
pub fn auto_key_rotation_enabled(
self,
value: impl Into<Output<Option<bool>>>,
) -> DiskEncryptionSetArgsBuilder<SetAutoKeyRotationEnabled<S>>where
S::AutoKeyRotationEnabled: IsUnset,
sourcepub fn maybe_auto_key_rotation_enabled(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> DiskEncryptionSetArgsBuilder<SetAutoKeyRotationEnabled<S>>where
S::AutoKeyRotationEnabled: IsUnset,
pub fn maybe_auto_key_rotation_enabled(
self,
value: Option<impl Into<Output<Option<bool>>>>,
) -> DiskEncryptionSetArgsBuilder<SetAutoKeyRotationEnabled<S>>where
S::AutoKeyRotationEnabled: IsUnset,
sourcepub fn encryption_type(
self,
value: impl Into<Output<Option<String>>>,
) -> DiskEncryptionSetArgsBuilder<SetEncryptionType<S>>where
S::EncryptionType: IsUnset,
pub fn encryption_type(
self,
value: impl Into<Output<Option<String>>>,
) -> DiskEncryptionSetArgsBuilder<SetEncryptionType<S>>where
S::EncryptionType: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
The type of key used to encrypt the data of the disk. Possible values are EncryptionAtRestWithCustomerKey
, EncryptionAtRestWithPlatformAndCustomerKeys
and ConfidentialVmEncryptedWithCustomerKey
. Defaults to EncryptionAtRestWithCustomerKey
. Changing this forces a new resource to be created.
sourcepub fn maybe_encryption_type(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> DiskEncryptionSetArgsBuilder<SetEncryptionType<S>>where
S::EncryptionType: IsUnset,
pub fn maybe_encryption_type(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> DiskEncryptionSetArgsBuilder<SetEncryptionType<S>>where
S::EncryptionType: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
The type of key used to encrypt the data of the disk. Possible values are EncryptionAtRestWithCustomerKey
, EncryptionAtRestWithPlatformAndCustomerKeys
and ConfidentialVmEncryptedWithCustomerKey
. Defaults to EncryptionAtRestWithCustomerKey
. Changing this forces a new resource to be created.
sourcepub fn federated_client_id(
self,
value: impl Into<Output<Option<String>>>,
) -> DiskEncryptionSetArgsBuilder<SetFederatedClientId<S>>where
S::FederatedClientId: IsUnset,
pub fn federated_client_id(
self,
value: impl Into<Output<Option<String>>>,
) -> DiskEncryptionSetArgsBuilder<SetFederatedClientId<S>>where
S::FederatedClientId: IsUnset,
sourcepub fn maybe_federated_client_id(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> DiskEncryptionSetArgsBuilder<SetFederatedClientId<S>>where
S::FederatedClientId: IsUnset,
pub fn maybe_federated_client_id(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> DiskEncryptionSetArgsBuilder<SetFederatedClientId<S>>where
S::FederatedClientId: IsUnset,
sourcepub fn identity(
self,
value: impl Into<Output<DiskEncryptionSetIdentity>>,
) -> DiskEncryptionSetArgsBuilder<SetIdentity<S>>where
S::Identity: IsUnset,
pub fn identity(
self,
value: impl Into<Output<DiskEncryptionSetIdentity>>,
) -> DiskEncryptionSetArgsBuilder<SetIdentity<S>>where
S::Identity: IsUnset,
Required.
An identity
block as defined below.
sourcepub fn key_vault_key_id(
self,
value: impl Into<Output<Option<String>>>,
) -> DiskEncryptionSetArgsBuilder<SetKeyVaultKeyId<S>>where
S::KeyVaultKeyId: IsUnset,
pub fn key_vault_key_id(
self,
value: impl Into<Output<Option<String>>>,
) -> DiskEncryptionSetArgsBuilder<SetKeyVaultKeyId<S>>where
S::KeyVaultKeyId: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
Specifies the URL to a Key Vault Key (either from a Key Vault Key, or the Key URL for the Key Vault Secret). Exactly one of managed_hsm_key_id
, key_vault_key_id
must be specified.
NOTE Access to the KeyVault must be granted for this Disk Encryption Set, if you want to further use this Disk Encryption Set in a Managed Disk or Virtual Machine, or Virtual Machine Scale Set. For instructions, please refer to the doc of Server side encryption of Azure managed disks.
NOTE A KeyVault or Managed HSM using enable_rbac_authorization requires to use
azure.authorization.Assignment
to assign the roleKey Vault Crypto Service Encryption User
to this Disk Encryption Set. In this case,azure.keyvault.AccessPolicy
is not needed.
sourcepub fn maybe_key_vault_key_id(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> DiskEncryptionSetArgsBuilder<SetKeyVaultKeyId<S>>where
S::KeyVaultKeyId: IsUnset,
pub fn maybe_key_vault_key_id(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> DiskEncryptionSetArgsBuilder<SetKeyVaultKeyId<S>>where
S::KeyVaultKeyId: IsUnset,
Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default()
.
Specifies the URL to a Key Vault Key (either from a Key Vault Key, or the Key URL for the Key Vault Secret). Exactly one of managed_hsm_key_id
, key_vault_key_id
must be specified.
NOTE Access to the KeyVault must be granted for this Disk Encryption Set, if you want to further use this Disk Encryption Set in a Managed Disk or Virtual Machine, or Virtual Machine Scale Set. For instructions, please refer to the doc of Server side encryption of Azure managed disks.
NOTE A KeyVault or Managed HSM using enable_rbac_authorization requires to use
azure.authorization.Assignment
to assign the roleKey Vault Crypto Service Encryption User
to this Disk Encryption Set. In this case,azure.keyvault.AccessPolicy
is not needed.
sourcepub fn location(
self,
value: impl Into<Output<Option<String>>>,
) -> DiskEncryptionSetArgsBuilder<SetLocation<S>>where
S::Location: IsUnset,
pub fn location(
self,
value: impl Into<Output<Option<String>>>,
) -> DiskEncryptionSetArgsBuilder<SetLocation<S>>where
S::Location: IsUnset,
sourcepub fn maybe_location(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> DiskEncryptionSetArgsBuilder<SetLocation<S>>where
S::Location: IsUnset,
pub fn maybe_location(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> DiskEncryptionSetArgsBuilder<SetLocation<S>>where
S::Location: IsUnset,
sourcepub fn managed_hsm_key_id(
self,
value: impl Into<Output<Option<String>>>,
) -> DiskEncryptionSetArgsBuilder<SetManagedHsmKeyId<S>>where
S::ManagedHsmKeyId: IsUnset,
pub fn managed_hsm_key_id(
self,
value: impl Into<Output<Option<String>>>,
) -> DiskEncryptionSetArgsBuilder<SetManagedHsmKeyId<S>>where
S::ManagedHsmKeyId: IsUnset,
sourcepub fn maybe_managed_hsm_key_id(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> DiskEncryptionSetArgsBuilder<SetManagedHsmKeyId<S>>where
S::ManagedHsmKeyId: IsUnset,
pub fn maybe_managed_hsm_key_id(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> DiskEncryptionSetArgsBuilder<SetManagedHsmKeyId<S>>where
S::ManagedHsmKeyId: IsUnset,
sourcepub fn name(
self,
value: impl Into<Output<Option<String>>>,
) -> DiskEncryptionSetArgsBuilder<SetName<S>>where
S::Name: IsUnset,
pub fn name(
self,
value: impl Into<Output<Option<String>>>,
) -> DiskEncryptionSetArgsBuilder<SetName<S>>where
S::Name: IsUnset,
sourcepub fn maybe_name(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> DiskEncryptionSetArgsBuilder<SetName<S>>where
S::Name: IsUnset,
pub fn maybe_name(
self,
value: Option<impl Into<Output<Option<String>>>>,
) -> DiskEncryptionSetArgsBuilder<SetName<S>>where
S::Name: IsUnset,
sourcepub fn resource_group_name(
self,
value: impl Into<Output<String>>,
) -> DiskEncryptionSetArgsBuilder<SetResourceGroupName<S>>where
S::ResourceGroupName: IsUnset,
pub fn resource_group_name(
self,
value: impl Into<Output<String>>,
) -> DiskEncryptionSetArgsBuilder<SetResourceGroupName<S>>where
S::ResourceGroupName: IsUnset,
Required.
Specifies the name of the Resource Group where the Disk Encryption Set should exist. Changing this forces a new resource to be created.