ShareRuleProperty Struct
[Custom snapshot policies only] Specifies a rule for sharing snapshots across AWS accounts .
| Source | |
|---|---|
| Type last changed |
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',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_dlm as dlm
share_rule_property = dlm.CfnLifecyclePolicy.ShareRuleProperty(
target_accounts=["targetAccounts"],
unshare_interval=123,
unshare_interval_unit="unshareIntervalUnit"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.dlm.*;
ShareRuleProperty shareRuleProperty = ShareRuleProperty.builder()
.targetAccounts(List.of("targetAccounts"))
.unshareInterval(123)
.unshareIntervalUnit("unshareIntervalUnit")
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.DLM;
var shareRuleProperty = new ShareRuleProperty {
TargetAccounts = new [] { "targetAccounts" },
UnshareInterval = 123,
UnshareIntervalUnit = "unshareIntervalUnit"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
shareRuleProperty := &ShareRuleProperty{
TargetAccounts: []*string{
jsii.String("targetAccounts"),
},
UnshareInterval: jsii.Number(123),
UnshareIntervalUnit: jsii.String("unshareIntervalUnit"),
}
Properties
targetAccountsoptionalstring[]target_accountsoptionaltyping.List[str]targetAccountsoptionalList<String>TargetAccountsoptionalstring[]TargetAccountsoptional*[]*string #The IDs of the AWS accounts with which to share the snapshots.