Skip to content
v2.278.0

PITPolicyRuleProperty Struct ​

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_drs as drs } from 'aws-cdk-lib';
const pITPolicyRuleProperty: drs.CfnReplicationConfigurationTemplate.PITPolicyRuleProperty = {
  interval: 123,
  retentionDuration: 123,
  units: 'units',

  // the properties below are optional
  enabled: false,
  ruleId: 123,
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_drs as drs

p_it_policy_rule_property = drs.CfnReplicationConfigurationTemplate.PITPolicyRuleProperty(
    interval=123,
    retention_duration=123,
    units="units",

    # the properties below are optional
    enabled=False,
    rule_id=123
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.drs.*;

PITPolicyRuleProperty pITPolicyRuleProperty = PITPolicyRuleProperty.builder()
        .interval(123)
        .retentionDuration(123)
        .units("units")

        // the properties below are optional
        .enabled(false)
        .ruleId(123)
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.DRS;

var pITPolicyRuleProperty = new PITPolicyRuleProperty {
    Interval = 123,
    RetentionDuration = 123,
    Units = "units",

    // the properties below are optional
    Enabled = false,
    RuleId = 123
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

pITPolicyRuleProperty := &PITPolicyRuleProperty{
	Interval: jsii.Number(123),
	RetentionDuration: jsii.Number(123),
	Units: jsii.String("units"),

	// the properties below are optional
	Enabled: jsii.Boolean(false),
	RuleId: jsii.Number(123),
}

Properties ​

enabledoptionalboolean | IResolvableenabledoptionaltyping.Union[bool, IResolvable]enabledoptionalBooleanEnabledoptionalboolEnabledoptionalinterface{} #
Whether this rule is enabled or not.
intervalnumberintervalint | floatintervalNumberIntervaldoubleInterval*float64 required #
How often, in the chosen units, a snapshot should be taken.
retentionDurationnumberretention_durationint | floatretentionDurationNumberRetentionDurationdoubleRetentionDuration*float64 required #
The duration to retain a snapshot for, in the chosen units.
ruleIdoptionalnumberrule_idoptionalint | floatruleIdoptionalNumberRuleIdoptionaldoubleRuleIdoptional*float64 #
The ID of the rule.
unitsstringunitsstrunitsStringUnitsstringUnits*string required #
The units used to measure the interval and retentionDuration.