Skip to content

Update Resiliency Policy

resiliencehub_update_resiliency_policy R Documentation

Updates a resiliency policy

Description

Updates 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.

Usage

resiliencehub_update_resiliency_policy(dataLocationConstraint, policy,
  policyArn, policyDescription, policyName, tier)

Arguments

dataLocationConstraint

Specifies a high-level geographical location constraint for where your resilience policy data can be stored.

policy

The type of resiliency policy to be created, including the recovery time objective (RTO) and recovery point objective (RPO) in seconds.

policyArn

[required] 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.

policyDescription

The description for the policy.

policyName

The name of the policy

tier

The tier for this resiliency policy, ranging from the highest severity (MissionCritical) to lowest (NonCritical).

Value

A list with the following syntax:

list(
  policy = list(
    creationTime = as.POSIXct(
      "2015-01-01"
    ),
    dataLocationConstraint = "AnyLocation"|"SameContinent"|"SameCountry",
    estimatedCostTier = "L1"|"L2"|"L3"|"L4",
    policy = list(
      list(
        rpoInSecs = 123,
        rtoInSecs = 123
      )
    ),
    policyArn = "string",
    policyDescription = "string",
    policyName = "string",
    tags = list(
      "string"
    ),
    tier = "MissionCritical"|"Critical"|"Important"|"CoreServices"|"NonCritical"|"NotApplicable"
  )
)

Request syntax

svc$update_resiliency_policy(
  dataLocationConstraint = "AnyLocation"|"SameContinent"|"SameCountry",
  policy = list(
    list(
      rpoInSecs = 123,
      rtoInSecs = 123
    )
  ),
  policyArn = "string",
  policyDescription = "string",
  policyName = "string",
  tier = "MissionCritical"|"Critical"|"Important"|"CoreServices"|"NonCritical"|"NotApplicable"
)