Struct aws_sdk_resiliencehub::types::ResiliencyPolicy
source · #[non_exhaustive]pub struct ResiliencyPolicy {
pub policy_arn: Option<String>,
pub policy_name: Option<String>,
pub policy_description: Option<String>,
pub data_location_constraint: Option<DataLocationConstraint>,
pub tier: Option<ResiliencyPolicyTier>,
pub estimated_cost_tier: Option<EstimatedCostTier>,
pub policy: Option<HashMap<DisruptionType, FailurePolicy>>,
pub creation_time: Option<DateTime>,
pub tags: Option<HashMap<String, String>>,
}Expand description
Defines a resiliency policy.
Resilience Hub allows you to provide a value of zero for rtoInSecs and rpoInSecs of your resiliency policy. But, while assessing your application, the lowest possible assessment result is near zero. Hence, if you provide value zero for rtoInSecs and rpoInSecs, the estimated workload RTO and estimated workload RPO result will be near zero and the Compliance status for your application will be set to Policy breached.
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.policy_arn: Option<String>Amazon Resource Name (ARN) of the resiliency policy. The format for this ARN is: arn:partition:resiliencehub:region:account:resiliency-policy/policy-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.
policy_name: Option<String>The name of the policy
policy_description: Option<String>The description for the policy.
data_location_constraint: Option<DataLocationConstraint>Specifies a high-level geographical location constraint for where your resilience policy data can be stored.
tier: Option<ResiliencyPolicyTier>The tier for this resiliency policy, ranging from the highest severity (MissionCritical) to lowest (NonCritical).
estimated_cost_tier: Option<EstimatedCostTier>Specifies the estimated cost tier of the resiliency policy.
policy: Option<HashMap<DisruptionType, FailurePolicy>>The resiliency policy.
creation_time: Option<DateTime>Date and time when the resiliency policy was created.
Tags assigned to the resource. A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key/value pair.
Implementations§
source§impl ResiliencyPolicy
impl ResiliencyPolicy
sourcepub fn policy_arn(&self) -> Option<&str>
pub fn policy_arn(&self) -> Option<&str>
Amazon Resource Name (ARN) of the resiliency policy. The format for this ARN is: arn:partition:resiliencehub:region:account:resiliency-policy/policy-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.
sourcepub fn policy_name(&self) -> Option<&str>
pub fn policy_name(&self) -> Option<&str>
The name of the policy
sourcepub fn policy_description(&self) -> Option<&str>
pub fn policy_description(&self) -> Option<&str>
The description for the policy.
sourcepub fn data_location_constraint(&self) -> Option<&DataLocationConstraint>
pub fn data_location_constraint(&self) -> Option<&DataLocationConstraint>
Specifies a high-level geographical location constraint for where your resilience policy data can be stored.
sourcepub fn tier(&self) -> Option<&ResiliencyPolicyTier>
pub fn tier(&self) -> Option<&ResiliencyPolicyTier>
The tier for this resiliency policy, ranging from the highest severity (MissionCritical) to lowest (NonCritical).
sourcepub fn estimated_cost_tier(&self) -> Option<&EstimatedCostTier>
pub fn estimated_cost_tier(&self) -> Option<&EstimatedCostTier>
Specifies the estimated cost tier of the resiliency policy.
sourcepub fn policy(&self) -> Option<&HashMap<DisruptionType, FailurePolicy>>
pub fn policy(&self) -> Option<&HashMap<DisruptionType, FailurePolicy>>
The resiliency policy.
sourcepub fn creation_time(&self) -> Option<&DateTime>
pub fn creation_time(&self) -> Option<&DateTime>
Date and time when the resiliency policy was created.
Tags assigned to the resource. A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key/value pair.
source§impl ResiliencyPolicy
impl ResiliencyPolicy
sourcepub fn builder() -> ResiliencyPolicyBuilder
pub fn builder() -> ResiliencyPolicyBuilder
Creates a new builder-style object to manufacture ResiliencyPolicy.
Trait Implementations§
source§impl Clone for ResiliencyPolicy
impl Clone for ResiliencyPolicy
source§fn clone(&self) -> ResiliencyPolicy
fn clone(&self) -> ResiliencyPolicy
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ResiliencyPolicy
impl Debug for ResiliencyPolicy
source§impl PartialEq for ResiliencyPolicy
impl PartialEq for ResiliencyPolicy
source§fn eq(&self, other: &ResiliencyPolicy) -> bool
fn eq(&self, other: &ResiliencyPolicy) -> bool
self and other values to be equal, and is used
by ==.