interface CfnPolicyProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.ResilienceHubV2.CfnPolicyProps |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsresiliencehubv2#CfnPolicyProps |
Java | software.amazon.awscdk.services.resiliencehubv2.CfnPolicyProps |
Python | aws_cdk.aws_resiliencehubv2.CfnPolicyProps |
TypeScript | aws-cdk-lib » aws_resiliencehubv2 » CfnPolicyProps |
Properties for defining a CfnPolicy.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_resiliencehubv2 as resiliencehubv2 } from 'aws-cdk-lib';
const cfnPolicyProps: resiliencehubv2.CfnPolicyProps = {
name: 'name',
// the properties below are optional
availabilitySlo: {
target: 123,
},
dataRecovery: {
timeBetweenBackupsInMinutes: 123,
},
description: 'description',
kmsKeyId: 'kmsKeyId',
multiAz: {
disasterRecoveryApproach: 'disasterRecoveryApproach',
rpoInMinutes: 123,
rtoInMinutes: 123,
},
multiRegion: {
disasterRecoveryApproach: 'disasterRecoveryApproach',
rpoInMinutes: 123,
rtoInMinutes: 123,
},
tags: [{
key: 'key',
value: 'value',
}],
};
Properties
| Name | Type | Description |
|---|---|---|
| name | string | The name of the policy. |
| availability | IResolvable | Availability | |
| data | IResolvable | Data | |
| description? | string | The description of the policy. |
| kms | string | The KMS key ID for encrypting policy data. |
| multi | IResolvable | Multi | |
| multi | IResolvable | Multi | |
| tags? | Cfn[] | Tags assigned to the policy. |
name
Type:
string
The name of the policy.
availabilitySlo?
Type:
IResolvable | Availability
(optional)
dataRecovery?
Type:
IResolvable | Data
(optional)
description?
Type:
string
(optional)
The description of the policy.
kmsKeyId?
Type:
string
(optional)
The KMS key ID for encrypting policy data.
multiAz?
Type:
IResolvable | Multi
(optional)
multiRegion?
Type:
IResolvable | Multi
(optional)
tags?
Type:
Cfn[]
(optional)
Tags assigned to the policy.

.NET
Go
Java
Python
TypeScript