Struct aws_sdk_greengrassv2::operation::get_core_device::builders::GetCoreDeviceFluentBuilder
source · pub struct GetCoreDeviceFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to GetCoreDevice
.
Retrieves metadata for a Greengrass core device.
IoT Greengrass relies on individual devices to send status updates to the Amazon Web Services Cloud. If the IoT Greengrass Core software isn't running on the device, or if device isn't connected to the Amazon Web Services Cloud, then the reported status of that device might not reflect its current status. The status timestamp indicates when the device status was last updated.
Core devices send status updates at the following times:
-
When the IoT Greengrass Core software starts
-
When the core device receives a deployment from the Amazon Web Services Cloud
-
When the status of any component on the core device becomes
BROKEN
-
At a regular interval that you can configure, which defaults to 24 hours
-
For IoT Greengrass Core v2.7.0, the core device sends status updates upon local deployment and cloud deployment
Implementations§
source§impl GetCoreDeviceFluentBuilder
impl GetCoreDeviceFluentBuilder
sourcepub fn as_input(&self) -> &GetCoreDeviceInputBuilder
pub fn as_input(&self) -> &GetCoreDeviceInputBuilder
Access the GetCoreDevice as a reference.
sourcepub async fn send(
self
) -> Result<GetCoreDeviceOutput, SdkError<GetCoreDeviceError, HttpResponse>>
pub async fn send( self ) -> Result<GetCoreDeviceOutput, SdkError<GetCoreDeviceError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<GetCoreDeviceOutput, GetCoreDeviceError, Self>
pub fn customize( self ) -> CustomizableOperation<GetCoreDeviceOutput, GetCoreDeviceError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn core_device_thing_name(self, input: impl Into<String>) -> Self
pub fn core_device_thing_name(self, input: impl Into<String>) -> Self
The name of the core device. This is also the name of the IoT thing.
sourcepub fn set_core_device_thing_name(self, input: Option<String>) -> Self
pub fn set_core_device_thing_name(self, input: Option<String>) -> Self
The name of the core device. This is also the name of the IoT thing.
sourcepub fn get_core_device_thing_name(&self) -> &Option<String>
pub fn get_core_device_thing_name(&self) -> &Option<String>
The name of the core device. This is also the name of the IoT thing.
Trait Implementations§
source§impl Clone for GetCoreDeviceFluentBuilder
impl Clone for GetCoreDeviceFluentBuilder
source§fn clone(&self) -> GetCoreDeviceFluentBuilder
fn clone(&self) -> GetCoreDeviceFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for GetCoreDeviceFluentBuilder
impl !RefUnwindSafe for GetCoreDeviceFluentBuilder
impl Send for GetCoreDeviceFluentBuilder
impl Sync for GetCoreDeviceFluentBuilder
impl Unpin for GetCoreDeviceFluentBuilder
impl !UnwindSafe for GetCoreDeviceFluentBuilder
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> 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