Struct aws_sdk_inspector::model::AssetAttributes
source · [−]#[non_exhaustive]pub struct AssetAttributes {
pub schema_version: i32,
pub agent_id: Option<String>,
pub auto_scaling_group: Option<String>,
pub ami_id: Option<String>,
pub hostname: Option<String>,
pub ipv4_addresses: Option<Vec<String>>,
pub tags: Option<Vec<Tag>>,
pub network_interfaces: Option<Vec<NetworkInterface>>,
}Expand description
A collection of attributes of the host from which the finding is generated.
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.schema_version: i32The schema version of this data type.
agent_id: Option<String>The ID of the agent that is installed on the EC2 instance where the finding is generated.
auto_scaling_group: Option<String>The Auto Scaling group of the EC2 instance where the finding is generated.
ami_id: Option<String>The ID of the Amazon Machine Image (AMI) that is installed on the EC2 instance where the finding is generated.
hostname: Option<String>The hostname of the EC2 instance where the finding is generated.
ipv4_addresses: Option<Vec<String>>The list of IP v4 addresses of the EC2 instance where the finding is generated.
The tags related to the EC2 instance where the finding is generated.
network_interfaces: Option<Vec<NetworkInterface>>An array of the network interfaces interacting with the EC2 instance where the finding is generated.
Implementations
sourceimpl AssetAttributes
impl AssetAttributes
sourcepub fn schema_version(&self) -> i32
pub fn schema_version(&self) -> i32
The schema version of this data type.
sourcepub fn agent_id(&self) -> Option<&str>
pub fn agent_id(&self) -> Option<&str>
The ID of the agent that is installed on the EC2 instance where the finding is generated.
sourcepub fn auto_scaling_group(&self) -> Option<&str>
pub fn auto_scaling_group(&self) -> Option<&str>
The Auto Scaling group of the EC2 instance where the finding is generated.
sourcepub fn ami_id(&self) -> Option<&str>
pub fn ami_id(&self) -> Option<&str>
The ID of the Amazon Machine Image (AMI) that is installed on the EC2 instance where the finding is generated.
sourcepub fn hostname(&self) -> Option<&str>
pub fn hostname(&self) -> Option<&str>
The hostname of the EC2 instance where the finding is generated.
sourcepub fn ipv4_addresses(&self) -> Option<&[String]>
pub fn ipv4_addresses(&self) -> Option<&[String]>
The list of IP v4 addresses of the EC2 instance where the finding is generated.
The tags related to the EC2 instance where the finding is generated.
sourcepub fn network_interfaces(&self) -> Option<&[NetworkInterface]>
pub fn network_interfaces(&self) -> Option<&[NetworkInterface]>
An array of the network interfaces interacting with the EC2 instance where the finding is generated.
sourceimpl AssetAttributes
impl AssetAttributes
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture AssetAttributes
Trait Implementations
sourceimpl Clone for AssetAttributes
impl Clone for AssetAttributes
sourcefn clone(&self) -> AssetAttributes
fn clone(&self) -> AssetAttributes
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for AssetAttributes
impl Debug for AssetAttributes
sourceimpl PartialEq<AssetAttributes> for AssetAttributes
impl PartialEq<AssetAttributes> for AssetAttributes
sourcefn eq(&self, other: &AssetAttributes) -> bool
fn eq(&self, other: &AssetAttributes) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &AssetAttributes) -> bool
fn ne(&self, other: &AssetAttributes) -> bool
This method tests for !=.
impl StructuralPartialEq for AssetAttributes
Auto Trait Implementations
impl RefUnwindSafe for AssetAttributes
impl Send for AssetAttributes
impl Sync for AssetAttributes
impl Unpin for AssetAttributes
impl UnwindSafe for AssetAttributes
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more