Struct aws_sdk_greengrassv2::types::DeploymentPolicies
source · #[non_exhaustive]pub struct DeploymentPolicies {
pub failure_handling_policy: Option<DeploymentFailureHandlingPolicy>,
pub component_update_policy: Option<DeploymentComponentUpdatePolicy>,
pub configuration_validation_policy: Option<DeploymentConfigurationValidationPolicy>,
}Expand description
Contains information about policies that define how a deployment updates components and handles failure.
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.failure_handling_policy: Option<DeploymentFailureHandlingPolicy>The failure handling policy for the configuration deployment. This policy defines what to do if the deployment fails.
Default: ROLLBACK
component_update_policy: Option<DeploymentComponentUpdatePolicy>The component update policy for the configuration deployment. This policy defines when it's safe to deploy the configuration to devices.
configuration_validation_policy: Option<DeploymentConfigurationValidationPolicy>The configuration validation policy for the configuration deployment. This policy defines how long each component has to validate its configure updates.
Implementations§
source§impl DeploymentPolicies
impl DeploymentPolicies
sourcepub fn failure_handling_policy(
&self,
) -> Option<&DeploymentFailureHandlingPolicy>
pub fn failure_handling_policy( &self, ) -> Option<&DeploymentFailureHandlingPolicy>
The failure handling policy for the configuration deployment. This policy defines what to do if the deployment fails.
Default: ROLLBACK
sourcepub fn component_update_policy(
&self,
) -> Option<&DeploymentComponentUpdatePolicy>
pub fn component_update_policy( &self, ) -> Option<&DeploymentComponentUpdatePolicy>
The component update policy for the configuration deployment. This policy defines when it's safe to deploy the configuration to devices.
sourcepub fn configuration_validation_policy(
&self,
) -> Option<&DeploymentConfigurationValidationPolicy>
pub fn configuration_validation_policy( &self, ) -> Option<&DeploymentConfigurationValidationPolicy>
The configuration validation policy for the configuration deployment. This policy defines how long each component has to validate its configure updates.
source§impl DeploymentPolicies
impl DeploymentPolicies
sourcepub fn builder() -> DeploymentPoliciesBuilder
pub fn builder() -> DeploymentPoliciesBuilder
Creates a new builder-style object to manufacture DeploymentPolicies.
Trait Implementations§
source§impl Clone for DeploymentPolicies
impl Clone for DeploymentPolicies
source§fn clone(&self) -> DeploymentPolicies
fn clone(&self) -> DeploymentPolicies
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for DeploymentPolicies
impl Debug for DeploymentPolicies
source§impl PartialEq for DeploymentPolicies
impl PartialEq for DeploymentPolicies
impl StructuralPartialEq for DeploymentPolicies
Auto Trait Implementations§
impl Freeze for DeploymentPolicies
impl RefUnwindSafe for DeploymentPolicies
impl Send for DeploymentPolicies
impl Sync for DeploymentPolicies
impl Unpin for DeploymentPolicies
impl UnwindSafe for DeploymentPolicies
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