pub struct RefreshCommand { /* private fields */ }Expand description
Command for updating Terraform state to match remote systems.
Deprecated: terraform refresh is deprecated in favor of
terraform apply -refresh-only. Consider using ApplyCommand with
-refresh-only instead. This command is provided for compatibility
with existing workflows.
use terraform_wrapper::{Terraform, TerraformCommand};
use terraform_wrapper::commands::refresh::RefreshCommand;
let tf = Terraform::builder().working_dir("/tmp/infra").build()?;
RefreshCommand::new()
.var("region", "us-west-2")
.execute(&tf)
.await?;Implementations§
Source§impl RefreshCommand
impl RefreshCommand
Sourcepub fn lock_timeout(self, timeout: &str) -> Self
pub fn lock_timeout(self, timeout: &str) -> Self
Duration to wait for state lock (-lock-timeout).
Sourcepub fn parallelism(self, n: u32) -> Self
pub fn parallelism(self, n: u32) -> Self
Limit the number of concurrent operations (-parallelism).
Trait Implementations§
Source§impl Clone for RefreshCommand
impl Clone for RefreshCommand
Source§fn clone(&self) -> RefreshCommand
fn clone(&self) -> RefreshCommand
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RefreshCommand
impl Debug for RefreshCommand
Source§impl Default for RefreshCommand
impl Default for RefreshCommand
Source§fn default() -> RefreshCommand
fn default() -> RefreshCommand
Returns the “default value” for a type. Read more
Source§impl TerraformCommand for RefreshCommand
impl TerraformCommand for RefreshCommand
Source§type Output = CommandOutput
type Output = CommandOutput
The output type produced by this command.
Source§fn supports_input(&self) -> bool
fn supports_input(&self) -> bool
Whether this command supports the
-input=false flag. Read moreAuto Trait Implementations§
impl Freeze for RefreshCommand
impl RefUnwindSafe for RefreshCommand
impl Send for RefreshCommand
impl Sync for RefreshCommand
impl Unpin for RefreshCommand
impl UnsafeUnpin for RefreshCommand
impl UnwindSafe for RefreshCommand
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more