interface ShareRuleProperty
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.DLM.CfnLifecyclePolicy.ShareRuleProperty |
Java | software.amazon.awscdk.services.dlm.CfnLifecyclePolicy.ShareRuleProperty |
Python | aws_cdk.aws_dlm.CfnLifecyclePolicy.ShareRuleProperty |
TypeScript | @aws-cdk/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 * as dlm from '@aws-cdk/aws-dlm';
const shareRuleProperty: dlm.CfnLifecyclePolicy.ShareRuleProperty = {
targetAccounts: ['targetAccounts'],
unshareInterval: 123,
unshareIntervalUnit: 'unshareIntervalUnit',
};
Properties
Name | Type | Description |
---|---|---|
target | string[] | The IDs of the AWS accounts with which to share the snapshots. |
unshare | number | The period after which snapshots that are shared with other AWS accounts are automatically unshared. |
unshare | string | The 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.