ResiliencyPolicy

class ResiliencyPolicy : KotlinCustomResource

Resource for managing an AWS Resilience Hub Resiliency Policy.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.resiliencehub.ResiliencyPolicy;
import com.pulumi.aws.resiliencehub.ResiliencyPolicyArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new ResiliencyPolicy("example", ResiliencyPolicyArgs.builder()
.name("testexample")
.description("testexample")
.tier("NonCritical")
.dataLocationConstraint("AnyLocation")
.policy(ResiliencyPolicyPolicyArgs.builder()
.region(ResiliencyPolicyPolicyRegionArgs.builder()
.rpo("24h")
.rto("24h")
.build())
.az(ResiliencyPolicyPolicyAzArgs.builder()
.rpo("24h")
.rto("24h")
.build())
.hardware(ResiliencyPolicyPolicyHardwareArgs.builder()
.rpo("24h")
.rto("24h")
.build())
.software(ResiliencyPolicyPolicySoftwareArgs.builder()
.rpo("24h")
.rto("24h")
.build())
.build())
.build());
}
}
resources:
example:
type: aws:resiliencehub:ResiliencyPolicy
properties:
name: testexample
description: testexample
tier: NonCritical
dataLocationConstraint: AnyLocation
policy:
- region:
- rpo: 24h
rto: 24h
az:
- rpo: 24h
rto: 24h
hardware:
- rpo: 24h
rto: 24h
software:
- rpo: 24h
rto: 24h

Import

Using pulumi import, import Resilience Hub Resiliency Policy using the arn. For example:

$ pulumi import aws:resiliencehub/resiliencyPolicy:ResiliencyPolicy example arn:aws:resiliencehub:us-east-1:123456789012:resiliency-policy/8c1cfa29-d1dd-4421-aa68-c9f64cced4c2

Properties

Link copied to clipboard
val arn: Output<String>

ARN of the Resiliency Policy.

Link copied to clipboard

Data Location Constraint of the Policy. Valid values are AnyLocation, SameContinent, and SameCountry.

Link copied to clipboard
val description: Output<String>?

Description of Resiliency Policy.

Link copied to clipboard

Estimated Cost Tier of the Resiliency Policy.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val name: Output<String>

Name of Resiliency Policy. Must be between 2 and 60 characters long. Must start with an alphanumeric character and contain alphanumeric characters, underscores, or hyphens.

Link copied to clipboard

The type of resiliency policy to be created, including the recovery time objective (RTO) and recovery point objective (RPO) in seconds. See policy. The following arguments are optional:

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val tags: Output<Map<String, String>>?

A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Link copied to clipboard
val tagsAll: Output<Map<String, String>>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Link copied to clipboard
val tier: Output<String>

Resiliency Policy Tier. Valid values are MissionCritical, Critical, Important, CoreServices, NonCritical, and NotApplicable.

Link copied to clipboard
Link copied to clipboard
val urn: Output<String>