#[non_exhaustive]pub enum ResourceOp {
SetDescription(String),
SetCategory(String),
MarkSensitive(String),
AddOptionalString {
canonical_name: String,
api_name: String,
description: String,
},
RemoveAttribute(String),
}Expand description
A single declarative edit to an IacResource.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
SetDescription(String)
Set the resource’s description.
SetCategory(String)
Set the resource’s category.
MarkSensitive(String)
Mark an attribute (by canonical name) as sensitive.
AddOptionalString
Append a new optional String attribute if one with that
canonical_name does not already exist. Idempotent.
RemoveAttribute(String)
Remove an attribute by canonical name. No-op if absent.
Trait Implementations§
Source§impl Clone for ResourceOp
impl Clone for ResourceOp
Source§impl Debug for ResourceOp
impl Debug for ResourceOp
impl Eq for ResourceOp
Source§impl PartialEq for ResourceOp
impl PartialEq for ResourceOp
impl StructuralPartialEq for ResourceOp
Source§impl Transform<IacResource> for ResourceOp
A single op is also a Transform.
impl Transform<IacResource> for ResourceOp
A single op is also a Transform.
Source§fn apply(&self, r: IacResource) -> IacResource
fn apply(&self, r: IacResource) -> IacResource
Apply the transform, returning a new value. Must be deterministic.
Auto Trait Implementations§
impl Freeze for ResourceOp
impl RefUnwindSafe for ResourceOp
impl Send for ResourceOp
impl Sync for ResourceOp
impl Unpin for ResourceOp
impl UnsafeUnpin for ResourceOp
impl UnwindSafe for ResourceOp
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.