Interface CfnPolicyProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnPolicyProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.133.0 (build 0f43e37)",
date="2026-06-16T16:14:31.925Z")
@Stability(Stable)
public interface CfnPolicyProps
extends software.amazon.jsii.JsiiSerializable
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 software.amazon.awscdk.services.resiliencehubv2.*;
CfnPolicyProps cfnPolicyProps = CfnPolicyProps.builder()
.name("name")
// the properties below are optional
.availabilitySlo(AvailabilitySloProperty.builder()
.target(123)
.build())
.dataRecovery(DataRecoveryTargetsProperty.builder()
.timeBetweenBackupsInMinutes(123)
.build())
.description("description")
.kmsKeyId("kmsKeyId")
.multiAz(MultiAzTargetsProperty.builder()
.disasterRecoveryApproach("disasterRecoveryApproach")
.rpoInMinutes(123)
.rtoInMinutes(123)
.build())
.multiRegion(MultiRegionTargetsProperty.builder()
.disasterRecoveryApproach("disasterRecoveryApproach")
.rpoInMinutes(123)
.rtoInMinutes(123)
.build())
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnPolicyPropsstatic final classAn implementation forCfnPolicyProps -
Method Summary
Modifier and TypeMethodDescriptionstatic CfnPolicyProps.Builderbuilder()default ObjectReturns union: eitherIResolvableorCfnPolicy.AvailabilitySloPropertydefault ObjectReturns union: eitherIResolvableorCfnPolicy.DataRecoveryTargetsPropertydefault StringThe description of the policy.default StringThe KMS key ID for encrypting policy data.default ObjectReturns union: eitherIResolvableorCfnPolicy.MultiAzTargetsPropertydefault ObjectReturns union: eitherIResolvableorCfnPolicy.MultiRegionTargetsPropertygetName()The name of the policy.getTags()Tags assigned to the policy.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getName
The name of the policy.- See Also:
-
getAvailabilitySlo
Returns union: eitherIResolvableorCfnPolicy.AvailabilitySloProperty- See Also:
-
getDataRecovery
Returns union: eitherIResolvableorCfnPolicy.DataRecoveryTargetsProperty- See Also:
-
getDescription
The description of the policy.- See Also:
-
getKmsKeyId
The KMS key ID for encrypting policy data.- See Also:
-
getMultiAz
Returns union: eitherIResolvableorCfnPolicy.MultiAzTargetsProperty- See Also:
-
getMultiRegion
Returns union: eitherIResolvableorCfnPolicy.MultiRegionTargetsProperty- See Also:
-
getTags
Tags assigned to the policy.- See Also:
-
builder
- Returns:
- a
CfnPolicyProps.BuilderofCfnPolicyProps
-