interface ShareRuleProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.DLM.Mixins.CfnLifecyclePolicyPropsMixin.ShareRuleProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsdlm/mixins#CfnLifecyclePolicyPropsMixin_ShareRuleProperty |
Java | software.amazon.awscdk.mixins.preview.services.dlm.mixins.CfnLifecyclePolicyPropsMixin.ShareRuleProperty |
Python | aws_cdk.mixins_preview.aws_dlm.mixins.CfnLifecyclePolicyPropsMixin.ShareRuleProperty |
TypeScript | @aws-cdk/mixins-preview » aws_dlm » mixins » CfnLifecyclePolicyPropsMixin » ShareRuleProperty |
[Custom 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 { mixins as dlm_mixins } from '@aws-cdk/mixins-preview/aws-dlm';
const shareRuleProperty: dlm_mixins.CfnLifecyclePolicyPropsMixin.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.

.NET
Go
Java
Python
TypeScript