@Stability(value=Stable)
public static interface CfnLifecyclePolicy.ShareRuleProperty
extends software.amazon.jsii.JsiiSerializable
Example:
// 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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnLifecyclePolicy.ShareRuleProperty.Builder
A builder for
CfnLifecyclePolicy.ShareRuleProperty |
static class |
CfnLifecyclePolicy.ShareRuleProperty.Jsii$Proxy
An implementation for
CfnLifecyclePolicy.ShareRuleProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnLifecyclePolicy.ShareRuleProperty.Builder |
builder() |
default List<String> |
getTargetAccounts()
The IDs of the AWS accounts with which to share the snapshots.
|
default Number |
getUnshareInterval()
The period after which snapshots that are shared with other AWS accounts are automatically unshared.
|
default String |
getUnshareIntervalUnit()
The unit of time for the automatic unsharing interval.
|
@Stability(value=Stable) @Nullable default List<String> getTargetAccounts()
@Stability(value=Stable) @Nullable default Number getUnshareInterval()
@Stability(value=Stable) @Nullable default String getUnshareIntervalUnit()
@Stability(value=Stable) static CfnLifecyclePolicy.ShareRuleProperty.Builder builder()
Copyright © 2022. All rights reserved.