aws-cdk-lib.aws_dlm.CfnLifecyclePolicy.ShareRuleProperty

interface ShareRuleProperty

LanguageType name
.NETAmazon.CDK.AWS.DLM.CfnLifecyclePolicy.ShareRuleProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsdlm#CfnLifecyclePolicy_ShareRuleProperty
Javasoftware.amazon.awscdk.services.dlm.CfnLifecyclePolicy.ShareRuleProperty
Pythonaws_cdk.aws_dlm.CfnLifecyclePolicy.ShareRuleProperty
TypeScript aws-cdk-lib » aws_dlm » CfnLifecyclePolicy » ShareRuleProperty

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

Example

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

NameTypeDescription
targetAccounts?string[]The IDs of the AWS accounts with which to share the snapshots.
unshareInterval?numberThe period after which snapshots that are shared with other AWS accounts are automatically unshared.
unshareIntervalUnit?stringThe unit of time for the automatic unsharing interval.

targetAccounts?

Type: string[] (optional)

The IDs of the AWS accounts with which to share the snapshots.


unshareInterval?

Type: number (optional)

The period after which snapshots that are shared with other AWS accounts are automatically unshared.


unshareIntervalUnit?

Type: string (optional)

The unit of time for the automatic unsharing interval.