Struct aws_sdk_greengrassv2::types::CloudComponentStatus
source · #[non_exhaustive]pub struct CloudComponentStatus {
pub component_state: Option<CloudComponentState>,
pub message: Option<String>,
pub errors: Option<HashMap<String, String>>,
pub vendor_guidance: Option<VendorGuidance>,
pub vendor_guidance_message: Option<String>,
}Expand description
Contains the status of a component version in the IoT Greengrass service.
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.component_state: Option<CloudComponentState>The state of the component version.
message: Option<String>A message that communicates details, such as errors, about the status of the component version.
errors: Option<HashMap<String, String>>A dictionary of errors that communicate why the component version is in an error state. For example, if IoT Greengrass can't access an artifact for the component version, then errors contains the artifact's URI as a key, and the error message as the value for that key.
vendor_guidance: Option<VendorGuidance>The vendor guidance state for the component version. This state indicates whether the component version has any issues that you should consider before you deploy it. The vendor guidance state can be:
-
ACTIVE– This component version is available and recommended for use. -
DISCONTINUED– This component version has been discontinued by its publisher. You can deploy this component version, but we recommend that you use a different version of this component. -
DELETED– This component version has been deleted by its publisher, so you can't deploy it. If you have any existing deployments that specify this component version, those deployments will fail.
vendor_guidance_message: Option<String>A message that communicates details about the vendor guidance state of the component version. This message communicates why a component version is discontinued or deleted.
Implementations§
source§impl CloudComponentStatus
impl CloudComponentStatus
sourcepub fn component_state(&self) -> Option<&CloudComponentState>
pub fn component_state(&self) -> Option<&CloudComponentState>
The state of the component version.
sourcepub fn message(&self) -> Option<&str>
pub fn message(&self) -> Option<&str>
A message that communicates details, such as errors, about the status of the component version.
sourcepub fn errors(&self) -> Option<&HashMap<String, String>>
pub fn errors(&self) -> Option<&HashMap<String, String>>
A dictionary of errors that communicate why the component version is in an error state. For example, if IoT Greengrass can't access an artifact for the component version, then errors contains the artifact's URI as a key, and the error message as the value for that key.
sourcepub fn vendor_guidance(&self) -> Option<&VendorGuidance>
pub fn vendor_guidance(&self) -> Option<&VendorGuidance>
The vendor guidance state for the component version. This state indicates whether the component version has any issues that you should consider before you deploy it. The vendor guidance state can be:
-
ACTIVE– This component version is available and recommended for use. -
DISCONTINUED– This component version has been discontinued by its publisher. You can deploy this component version, but we recommend that you use a different version of this component. -
DELETED– This component version has been deleted by its publisher, so you can't deploy it. If you have any existing deployments that specify this component version, those deployments will fail.
sourcepub fn vendor_guidance_message(&self) -> Option<&str>
pub fn vendor_guidance_message(&self) -> Option<&str>
A message that communicates details about the vendor guidance state of the component version. This message communicates why a component version is discontinued or deleted.
source§impl CloudComponentStatus
impl CloudComponentStatus
sourcepub fn builder() -> CloudComponentStatusBuilder
pub fn builder() -> CloudComponentStatusBuilder
Creates a new builder-style object to manufacture CloudComponentStatus.
Trait Implementations§
source§impl Clone for CloudComponentStatus
impl Clone for CloudComponentStatus
source§fn clone(&self) -> CloudComponentStatus
fn clone(&self) -> CloudComponentStatus
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for CloudComponentStatus
impl Debug for CloudComponentStatus
source§impl PartialEq for CloudComponentStatus
impl PartialEq for CloudComponentStatus
impl StructuralPartialEq for CloudComponentStatus
Auto Trait Implementations§
impl Freeze for CloudComponentStatus
impl RefUnwindSafe for CloudComponentStatus
impl Send for CloudComponentStatus
impl Sync for CloudComponentStatus
impl Unpin for CloudComponentStatus
impl UnwindSafe for CloudComponentStatus
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more