# ShareRuleProperty

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

- Source: Generated code
- Type last changed: v2.93.0 · 23 Aug 2023

## 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

- `targetAccounts`: string[] — The IDs of the AWS accounts with which to share the snapshots.

- `unshareInterval`: number — The period after which snapshots that are shared with other AWS accounts are automatically unshared.

- `unshareIntervalUnit`: string — The unit of time for the automatic unsharing interval.
