#[non_exhaustive]pub struct StateBackend {
pub kind: Arc<str>,
pub attributes: AttributeMap,
pub state_account_id: Option<AccountId>,
pub state_region: Option<Region>,
pub span: Span,
}Expand description
Terraform state backend description.
Source can be terraform { backend "s3" {} } declared in the component
directly, or extracted from a generate "backend" block’s contents.
state_account_id is derived later from profile / role_arn by the
provider resolver.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.kind: Arc<str>Backend kind (e.g. "s3", "local", "remote").
attributes: AttributeMapVerbatim attribute body of the backend block.
state_account_id: Option<AccountId>Account id derived from the backend profile / role_arn, if any.
state_region: Option<Region>Region declared in the backend block, if any.
span: SpanSpan of the backend block.
Implementations§
Source§impl StateBackend
impl StateBackend
Sourcepub fn builder() -> StateBackendBuilder<((), (), (), (), ())>
pub fn builder() -> StateBackendBuilder<((), (), (), (), ())>
Create a builder for building StateBackend.
On the builder, call .kind(...), .attributes(...), .state_account_id(...)(optional), .state_region(...)(optional), .span(...) to set the values of the fields.
Finally, call .build() to create the instance of StateBackend.
Trait Implementations§
Source§impl Clone for StateBackend
impl Clone for StateBackend
Source§fn clone(&self) -> StateBackend
fn clone(&self) -> StateBackend
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 StateBackend
impl Debug for StateBackend
Source§impl<'de> Deserialize<'de> for StateBackend
impl<'de> Deserialize<'de> for StateBackend
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for StateBackend
impl PartialEq for StateBackend
Source§fn eq(&self, other: &StateBackend) -> bool
fn eq(&self, other: &StateBackend) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for StateBackend
impl Serialize for StateBackend
impl StructuralPartialEq for StateBackend
Auto Trait Implementations§
impl Freeze for StateBackend
impl RefUnwindSafe for StateBackend
impl Send for StateBackend
impl Sync for StateBackend
impl Unpin for StateBackend
impl UnsafeUnpin for StateBackend
impl UnwindSafe for StateBackend
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