Package com.pulumi.aws.glacier.inputs
Class VaultLockState.Builder
- java.lang.Object
-
- com.pulumi.aws.glacier.inputs.VaultLockState.Builder
-
- Enclosing class:
- VaultLockState
public static final class VaultLockState.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()Builder(VaultLockState defaults)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VaultLockStatebuild()VaultLockState.BuildercompleteLock(com.pulumi.core.Output<java.lang.Boolean> completeLock)VaultLockState.BuildercompleteLock(java.lang.Boolean completeLock)VaultLockState.BuilderignoreDeletionError(com.pulumi.core.Output<java.lang.Boolean> ignoreDeletionError)VaultLockState.BuilderignoreDeletionError(java.lang.Boolean ignoreDeletionError)VaultLockState.Builderpolicy(com.pulumi.core.Output<java.lang.String> policy)VaultLockState.Builderpolicy(java.lang.String policy)VaultLockState.Builderregion(com.pulumi.core.Output<java.lang.String> region)VaultLockState.Builderregion(java.lang.String region)VaultLockState.BuildervaultName(com.pulumi.core.Output<java.lang.String> vaultName)VaultLockState.BuildervaultName(java.lang.String vaultName)
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(VaultLockState defaults)
-
-
Method Detail
-
completeLock
public VaultLockState.Builder completeLock(@Nullable com.pulumi.core.Output<java.lang.Boolean> completeLock)
- Parameters:
completeLock- Boolean whether to permanently apply this Glacier Lock Policy. Once completed, this cannot be undone. If set to `false`, the Glacier Lock Policy remains in a testing mode for 24 hours. After that time, the Glacier Lock Policy is automatically removed by Glacier and the this provider resource will show as needing recreation. Changing this from `false` to `true` will show as resource recreation, which is expected. Changing this from `true` to `false` is not possible unless the Glacier Vault is recreated at the same time.- Returns:
- builder
-
completeLock
public VaultLockState.Builder completeLock(java.lang.Boolean completeLock)
- Parameters:
completeLock- Boolean whether to permanently apply this Glacier Lock Policy. Once completed, this cannot be undone. If set to `false`, the Glacier Lock Policy remains in a testing mode for 24 hours. After that time, the Glacier Lock Policy is automatically removed by Glacier and the this provider resource will show as needing recreation. Changing this from `false` to `true` will show as resource recreation, which is expected. Changing this from `true` to `false` is not possible unless the Glacier Vault is recreated at the same time.- Returns:
- builder
-
ignoreDeletionError
public VaultLockState.Builder ignoreDeletionError(@Nullable com.pulumi.core.Output<java.lang.Boolean> ignoreDeletionError)
- Parameters:
ignoreDeletionError- Allow this provider to ignore the error returned when attempting to delete the Glacier Lock Policy. This can be used to delete or recreate the Glacier Vault via this provider, for example, if the Glacier Vault Lock policy permits that action. This should only be used in conjunction with `completeLock` being set to `true`.- Returns:
- builder
-
ignoreDeletionError
public VaultLockState.Builder ignoreDeletionError(java.lang.Boolean ignoreDeletionError)
- Parameters:
ignoreDeletionError- Allow this provider to ignore the error returned when attempting to delete the Glacier Lock Policy. This can be used to delete or recreate the Glacier Vault via this provider, for example, if the Glacier Vault Lock policy permits that action. This should only be used in conjunction with `completeLock` being set to `true`.- Returns:
- builder
-
policy
public VaultLockState.Builder policy(@Nullable com.pulumi.core.Output<java.lang.String> policy)
- Parameters:
policy- JSON string containing the IAM policy to apply as the Glacier Vault Lock policy.- Returns:
- builder
-
policy
public VaultLockState.Builder policy(java.lang.String policy)
- Parameters:
policy- JSON string containing the IAM policy to apply as the Glacier Vault Lock policy.- Returns:
- builder
-
region
public VaultLockState.Builder region(@Nullable com.pulumi.core.Output<java.lang.String> region)
- Parameters:
region- Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.- Returns:
- builder
-
region
public VaultLockState.Builder region(java.lang.String region)
- Parameters:
region- Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.- Returns:
- builder
-
vaultName
public VaultLockState.Builder vaultName(@Nullable com.pulumi.core.Output<java.lang.String> vaultName)
- Parameters:
vaultName- Name of the Glacier Vault.- Returns:
- builder
-
vaultName
public VaultLockState.Builder vaultName(java.lang.String vaultName)
- Parameters:
vaultName- Name of the Glacier Vault.- Returns:
- builder
-
build
public VaultLockState build()
-
-