Struct avalanche_ops::aws::spec::Resource
source · pub struct Resource {
pub identity: Option<Identity>,
pub regions: Vec<String>,
pub s3_bucket: String,
pub ingress_ipv4_cidr: String,
pub regional_resources: BTreeMap<String, RegionalResource>,
pub created_nodes: Option<Vec<Node>>,
}Expand description
Represents the current AWS resource configurations and states. These states are necessary for resource cleanups.
Fields§
§identity: Option<Identity>AWS STS caller loaded from its local environment. READ ONLY.
regions: Vec<String>AWS region to create resources. MUST BE NON-EMPTY.
s3_bucket: StringName of the bucket to store (or download from)
the configuration and resources (e.g., S3).
If not exists, it creates automatically.
If exists, it skips creation and uses the existing one.
MUST BE NON-EMPTY.
ALWAYS USE THE FIRST REGION IN regions for S3.
AND SHARED ACROSS MULTIPLE REGIONS.
ingress_ipv4_cidr: String§regional_resources: BTreeMap<String, RegionalResource>Only populate as many as we need to fill up anchor/non-anchor nodes. e.g., “regions” may have 5 but we may only need 2 regions for 3 node cluster.
created_nodes: Option<Vec<Node>>Created nodes at the start of the network. May become stale.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Resource
impl<'de> Deserialize<'de> for Resource
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<Resource> for Resource
impl PartialEq<Resource> for Resource
impl Eq for Resource
impl StructuralEq for Resource
impl StructuralPartialEq for Resource
Auto Trait Implementations§
impl RefUnwindSafe for Resource
impl Send for Resource
impl Sync for Resource
impl Unpin for Resource
impl UnwindSafe for Resource
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere T: 'a,
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.