Skip to content
v2.274.0

ShareRuleProperty Struct ​

[Custom snapshot policies only] Specifies a rule for sharing snapshots across AWS accounts .

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_dlm as dlm } from 'aws-cdk-lib';
const shareRuleProperty: dlm.CfnLifecyclePolicy.ShareRuleProperty = {
  targetAccounts: ['targetAccounts'],
  unshareInterval: 123,
  unshareIntervalUnit: 'unshareIntervalUnit',
};

Properties ​

targetAccountsoptionalstring[]target_accountsoptionaltyping.List[str]targetAccountsoptionalList<String>TargetAccountsoptionalstring[]TargetAccountsoptional*[]*string#
The IDs of the AWS accounts with which to share the snapshots.
unshareIntervaloptionalnumberunshare_intervaloptionalint | floatunshareIntervaloptionalNumberUnshareIntervaloptionaldoubleUnshareIntervaloptional*float64#
The period after which snapshots that are shared with other AWS accounts are automatically unshared.
unshareIntervalUnitoptionalstringunshare_interval_unitoptionalstrunshareIntervalUnitoptionalStringUnshareIntervalUnitoptionalstringUnshareIntervalUnitoptional*string#
The unit of time for the automatic unsharing interval.