Skip to content

Create Resiliency Policy

resiliencehub_create_resiliency_policy R Documentation

Creates a resiliency policy for an application

Description

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.

Usage

resiliencehub_create_resiliency_policy(clientToken,
  dataLocationConstraint, policy, policyDescription, policyName, tags,
  tier)

Arguments

clientToken

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.

dataLocationConstraint

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

policy

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

policyDescription

The description for the policy.

policyName

[required] The name of the policy

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.

tier

[required] 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$create_resiliency_policy(
  clientToken = "string",
  dataLocationConstraint = "AnyLocation"|"SameContinent"|"SameCountry",
  policy = list(
    list(
      rpoInSecs = 123,
      rtoInSecs = 123
    )
  ),
  policyDescription = "string",
  policyName = "string",
  tags = list(
    "string"
  ),
  tier = "MissionCritical"|"Critical"|"Important"|"CoreServices"|"NonCritical"|"NotApplicable"
)