pub struct ResolveComponentCandidates { /* private fields */ }
Expand description
Fluent builder constructing a request to ResolveComponentCandidates
.
Retrieves a list of components that meet the component, version, and platform requirements of a deployment. Greengrass core devices call this operation when they receive a deployment to identify the components to install.
This operation identifies components that meet all dependency requirements for a deployment. If the requirements conflict, then this operation returns an error and the deployment fails. For example, this occurs if component A
requires version >2.0.0
and component B
requires version <2.0.0
of a component dependency.
When you specify the component candidates to resolve, IoT Greengrass compares each component's digest from the core device with the component's digest in the Amazon Web Services Cloud. If the digests don't match, then IoT Greengrass specifies to use the version from the Amazon Web Services Cloud.
To use this operation, you must use the data plane API endpoint and authenticate with an IoT device certificate. For more information, see IoT Greengrass endpoints and quotas.
Implementations
sourceimpl ResolveComponentCandidates
impl ResolveComponentCandidates
sourcepub async fn send(
self
) -> Result<ResolveComponentCandidatesOutput, SdkError<ResolveComponentCandidatesError>>
pub async fn send(
self
) -> Result<ResolveComponentCandidatesOutput, SdkError<ResolveComponentCandidatesError>>
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 platform(self, input: ComponentPlatform) -> Self
pub fn platform(self, input: ComponentPlatform) -> Self
The platform to use to resolve compatible components.
sourcepub fn set_platform(self, input: Option<ComponentPlatform>) -> Self
pub fn set_platform(self, input: Option<ComponentPlatform>) -> Self
The platform to use to resolve compatible components.
sourcepub fn component_candidates(self, input: ComponentCandidate) -> Self
pub fn component_candidates(self, input: ComponentCandidate) -> Self
Appends an item to componentCandidates
.
To override the contents of this collection use set_component_candidates
.
The list of components to resolve.
sourcepub fn set_component_candidates(
self,
input: Option<Vec<ComponentCandidate>>
) -> Self
pub fn set_component_candidates(
self,
input: Option<Vec<ComponentCandidate>>
) -> Self
The list of components to resolve.
Trait Implementations
sourceimpl Clone for ResolveComponentCandidates
impl Clone for ResolveComponentCandidates
sourcefn clone(&self) -> ResolveComponentCandidates
fn clone(&self) -> ResolveComponentCandidates
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
Auto Trait Implementations
impl !RefUnwindSafe for ResolveComponentCandidates
impl Send for ResolveComponentCandidates
impl Sync for ResolveComponentCandidates
impl Unpin for ResolveComponentCandidates
impl !UnwindSafe for ResolveComponentCandidates
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
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.
sourcefn clone_into(&self, target: &mut T)
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