Struct aws_sdk_resiliencehub::operation::create_resiliency_policy::builders::CreateResiliencyPolicyFluentBuilder
source · pub struct CreateResiliencyPolicyFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateResiliencyPolicy
.
Creates a resiliency policy for an application.
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.
Implementations§
source§impl CreateResiliencyPolicyFluentBuilder
impl CreateResiliencyPolicyFluentBuilder
sourcepub fn as_input(&self) -> &CreateResiliencyPolicyInputBuilder
pub fn as_input(&self) -> &CreateResiliencyPolicyInputBuilder
Access the CreateResiliencyPolicy as a reference.
sourcepub async fn send(
self
) -> Result<CreateResiliencyPolicyOutput, SdkError<CreateResiliencyPolicyError, HttpResponse>>
pub async fn send( self ) -> Result<CreateResiliencyPolicyOutput, SdkError<CreateResiliencyPolicyError, 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<CreateResiliencyPolicyOutput, CreateResiliencyPolicyError, Self>
pub fn customize( self ) -> CustomizableOperation<CreateResiliencyPolicyOutput, CreateResiliencyPolicyError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn policy_name(self, input: impl Into<String>) -> Self
pub fn policy_name(self, input: impl Into<String>) -> Self
The name of the policy
sourcepub fn set_policy_name(self, input: Option<String>) -> Self
pub fn set_policy_name(self, input: Option<String>) -> Self
The name of the policy
sourcepub fn get_policy_name(&self) -> &Option<String>
pub fn get_policy_name(&self) -> &Option<String>
The name of the policy
sourcepub fn policy_description(self, input: impl Into<String>) -> Self
pub fn policy_description(self, input: impl Into<String>) -> Self
The description for the policy.
sourcepub fn set_policy_description(self, input: Option<String>) -> Self
pub fn set_policy_description(self, input: Option<String>) -> Self
The description for the policy.
sourcepub fn get_policy_description(&self) -> &Option<String>
pub fn get_policy_description(&self) -> &Option<String>
The description for the policy.
sourcepub fn data_location_constraint(self, input: DataLocationConstraint) -> Self
pub fn data_location_constraint(self, input: DataLocationConstraint) -> Self
Specifies a high-level geographical location constraint for where your resilience policy data can be stored.
sourcepub fn set_data_location_constraint(
self,
input: Option<DataLocationConstraint>
) -> Self
pub fn set_data_location_constraint( self, input: Option<DataLocationConstraint> ) -> Self
Specifies a high-level geographical location constraint for where your resilience policy data can be stored.
sourcepub fn get_data_location_constraint(&self) -> &Option<DataLocationConstraint>
pub fn get_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, input: ResiliencyPolicyTier) -> Self
pub fn tier(self, input: ResiliencyPolicyTier) -> Self
The tier for this resiliency policy, ranging from the highest severity (MissionCritical
) to lowest (NonCritical
).
sourcepub fn set_tier(self, input: Option<ResiliencyPolicyTier>) -> Self
pub fn set_tier(self, input: Option<ResiliencyPolicyTier>) -> Self
The tier for this resiliency policy, ranging from the highest severity (MissionCritical
) to lowest (NonCritical
).
sourcepub fn get_tier(&self) -> &Option<ResiliencyPolicyTier>
pub fn get_tier(&self) -> &Option<ResiliencyPolicyTier>
The tier for this resiliency policy, ranging from the highest severity (MissionCritical
) to lowest (NonCritical
).
sourcepub fn policy(self, k: DisruptionType, v: FailurePolicy) -> Self
pub fn policy(self, k: DisruptionType, v: FailurePolicy) -> Self
Adds a key-value pair to policy
.
To override the contents of this collection use set_policy
.
The type of resiliency policy to be created, including the recovery time objective (RTO) and recovery point objective (RPO) in seconds.
sourcepub fn set_policy(
self,
input: Option<HashMap<DisruptionType, FailurePolicy>>
) -> Self
pub fn set_policy( self, input: Option<HashMap<DisruptionType, FailurePolicy>> ) -> Self
The type of resiliency policy to be created, including the recovery time objective (RTO) and recovery point objective (RPO) in seconds.
sourcepub fn get_policy(&self) -> &Option<HashMap<DisruptionType, FailurePolicy>>
pub fn get_policy(&self) -> &Option<HashMap<DisruptionType, FailurePolicy>>
The type of resiliency policy to be created, including the recovery time objective (RTO) and recovery point objective (RPO) in seconds.
sourcepub fn client_token(self, input: impl Into<String>) -> Self
pub fn client_token(self, input: impl Into<String>) -> Self
Used for an idempotency token. A client token is a unique, case-sensitive string of up to 64 ASCII characters. You should not reuse the same client token for other API requests.
sourcepub fn set_client_token(self, input: Option<String>) -> Self
pub fn set_client_token(self, input: Option<String>) -> Self
Used for an idempotency token. A client token is a unique, case-sensitive string of up to 64 ASCII characters. You should not reuse the same client token for other API requests.
sourcepub fn get_client_token(&self) -> &Option<String>
pub fn get_client_token(&self) -> &Option<String>
Used for an idempotency token. A client token is a unique, case-sensitive string of up to 64 ASCII characters. You should not reuse the same client token for other API requests.
Adds a key-value pair to tags
.
To override the contents of this collection use set_tags
.
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.
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.
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.
Trait Implementations§
source§impl Clone for CreateResiliencyPolicyFluentBuilder
impl Clone for CreateResiliencyPolicyFluentBuilder
source§fn clone(&self) -> CreateResiliencyPolicyFluentBuilder
fn clone(&self) -> CreateResiliencyPolicyFluentBuilder
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 CreateResiliencyPolicyFluentBuilder
impl !RefUnwindSafe for CreateResiliencyPolicyFluentBuilder
impl Send for CreateResiliencyPolicyFluentBuilder
impl Sync for CreateResiliencyPolicyFluentBuilder
impl Unpin for CreateResiliencyPolicyFluentBuilder
impl !UnwindSafe for CreateResiliencyPolicyFluentBuilder
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