Cloud

Struct Cloud 

Source
#[non_exhaustive]
pub struct Cloud { pub account: Option<Box<Account>>, pub cloud_partition: Option<String>, pub org: Option<Box<Organization>>, pub project_uid: Option<String>, pub provider: Option<String>, pub region: Option<String>, pub zone: Option<String>, }
Expand description

Cloud

The Cloud object describes the cloud computing environment where an event or finding originated. It provides comprehensive context about the cloud infrastructure, including the cloud service provider, account or subscription details, organizational structure, geographic regions, availability zones, and logical partitions.

[] Category: | Name: cloud

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.
§account: Option<Box<Account>>

Account

The Account object containing details about the cloud account, subscription, or billing unit where the event or finding was created. This object includes properties such as the account name, unique identifier, type, labels, and tags.

Examples:

  • AWS: Account object with name, uid (Account ID), type, and other account properties
  • Azure: Subscription object with name, uid (Subscription ID), type, and subscription metadata
  • GCP: Project object with name, uid (Project ID), type, and project attributes
  • Oracle Cloud: Compartment object with name, uid (Tenancy OCID), type, and compartment details

optional

§cloud_partition: Option<String>

Cloud Partition

The logical grouping or isolated segment within a cloud provider’s infrastructure where the event or finding was created, often used for compliance, governance, or regional separation.

Examples:

  • AWS: Partition where the event occurred (aws, aws-cn, aws-us-gov)
  • Azure: Cloud environment where the event occurred (AzureCloud, AzureUSGovernment, AzureChinaCloud)

optional

§org: Option<Box<Organization>>

Organization

The Organization object containing details about the organizational unit or management structure that governs the account, subscription, or project where the event or finding was created. This object includes properties such as the organization name, unique identifier, type, and other organizational metadata.

Examples:

  • AWS: Organization object with name, uid (Organization ID), type, and other organizational properties
  • Azure: Management Group object with name, uid (Management Group ID), type, and management group metadata
  • GCP: Organization object with name, uid (Organization ID), type, and organizational attributes
  • Oracle Cloud: Tenancy object with name, uid (Tenancy OCID), type, and tenancy details

optional

§project_uid: Option<String>

Project ID

The unique identifier of a Cloud project.

optional

§provider: Option<String>

Provider

The unique name of the Cloud services provider where the event or finding was created, such as AWS, MS Azure, GCP, etc.

required

§region: Option<String>

Region

The cloud region where the event or finding was created, as defined by the cloud provider.

Examples:

  • AWS: Region where the event occurred (us-east-1, eu-west-1)
  • Azure: Region where the event occurred (East US, West Europe)
  • GCP: Region where the event occurred (us-central1, europe-west1)
  • Oracle Cloud: Region where the event occurred (us-ashburn-1, uk-london-1)

recommended

§zone: Option<String>

Cloud Availability Zone

The availability zone in the cloud region where the event or finding was created, as defined by the cloud provider.

Examples:

  • AWS: Availability zone where the event occurred (us-east-1a, us-east-1b)
  • Azure: Availability zone where the event occurred (1, 2, 3 within a region)
  • GCP: Availability zone where the event occurred (us-central1-a, us-central1-b)
  • Oracle Cloud: Availability zone where the event occurred (AD-1, AD-2, AD-3)

optional

Trait Implementations§

Source§

impl Clone for Cloud

Source§

fn clone(&self) -> Cloud

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Cloud

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Cloud

Source§

fn default() -> Cloud

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for Cloud
where Cloud: Default,

Source§

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 Cloud

Source§

fn eq(&self, other: &Cloud) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for Cloud

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for Cloud

Auto Trait Implementations§

§

impl Freeze for Cloud

§

impl RefUnwindSafe for Cloud

§

impl Send for Cloud

§

impl Sync for Cloud

§

impl Unpin for Cloud

§

impl UnwindSafe for Cloud

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,