@Stability(value=Stable)
public static interface CfnLifecyclePolicy.PolicyDetailsProperty
extends software.amazon.jsii.JsiiSerializable
// 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.*;
PolicyDetailsProperty policyDetailsProperty = PolicyDetailsProperty.builder()
.actions(List.of(ActionProperty.builder()
.crossRegionCopy(List.of(CrossRegionCopyActionProperty.builder()
.encryptionConfiguration(EncryptionConfigurationProperty.builder()
.encrypted(false)
// the properties below are optional
.cmkArn("cmkArn")
.build())
.target("target")
// the properties below are optional
.retainRule(CrossRegionCopyRetainRuleProperty.builder()
.interval(123)
.intervalUnit("intervalUnit")
.build())
.build()))
.name("name")
.build()))
.eventSource(EventSourceProperty.builder()
.type("type")
// the properties below are optional
.parameters(EventParametersProperty.builder()
.eventType("eventType")
.snapshotOwner(List.of("snapshotOwner"))
// the properties below are optional
.descriptionRegex("descriptionRegex")
.build())
.build())
.parameters(ParametersProperty.builder()
.excludeBootVolume(false)
.noReboot(false)
.build())
.policyType("policyType")
.resourceLocations(List.of("resourceLocations"))
.resourceTypes(List.of("resourceTypes"))
.schedules(List.of(ScheduleProperty.builder()
.copyTags(false)
.createRule(CreateRuleProperty.builder()
.cronExpression("cronExpression")
.interval(123)
.intervalUnit("intervalUnit")
.location("location")
.times(List.of("times"))
.build())
.crossRegionCopyRules(List.of(CrossRegionCopyRuleProperty.builder()
.encrypted(false)
// the properties below are optional
.cmkArn("cmkArn")
.copyTags(false)
.deprecateRule(CrossRegionCopyDeprecateRuleProperty.builder()
.interval(123)
.intervalUnit("intervalUnit")
.build())
.retainRule(CrossRegionCopyRetainRuleProperty.builder()
.interval(123)
.intervalUnit("intervalUnit")
.build())
.target("target")
.targetRegion("targetRegion")
.build()))
.deprecateRule(DeprecateRuleProperty.builder()
.count(123)
.interval(123)
.intervalUnit("intervalUnit")
.build())
.fastRestoreRule(FastRestoreRuleProperty.builder()
.availabilityZones(List.of("availabilityZones"))
.count(123)
.interval(123)
.intervalUnit("intervalUnit")
.build())
.name("name")
.retainRule(RetainRuleProperty.builder()
.count(123)
.interval(123)
.intervalUnit("intervalUnit")
.build())
.shareRules(List.of(ShareRuleProperty.builder()
.targetAccounts(List.of("targetAccounts"))
.unshareInterval(123)
.unshareIntervalUnit("unshareIntervalUnit")
.build()))
.tagsToAdd(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.variableTags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build()))
.targetTags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnLifecyclePolicy.PolicyDetailsProperty.Builder
A builder for
CfnLifecyclePolicy.PolicyDetailsProperty |
static class |
CfnLifecyclePolicy.PolicyDetailsProperty.Jsii$Proxy
An implementation for
CfnLifecyclePolicy.PolicyDetailsProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnLifecyclePolicy.PolicyDetailsProperty.Builder |
builder() |
default Object |
getActions()
`CfnLifecyclePolicy.PolicyDetailsProperty.Actions`.
|
default Object |
getEventSource()
`CfnLifecyclePolicy.PolicyDetailsProperty.EventSource`.
|
default Object |
getParameters()
`CfnLifecyclePolicy.PolicyDetailsProperty.Parameters`.
|
default String |
getPolicyType()
`CfnLifecyclePolicy.PolicyDetailsProperty.PolicyType`.
|
default List<String> |
getResourceLocations()
`CfnLifecyclePolicy.PolicyDetailsProperty.ResourceLocations`.
|
default List<String> |
getResourceTypes()
`CfnLifecyclePolicy.PolicyDetailsProperty.ResourceTypes`.
|
default Object |
getSchedules()
`CfnLifecyclePolicy.PolicyDetailsProperty.Schedules`.
|
default Object |
getTargetTags()
`CfnLifecyclePolicy.PolicyDetailsProperty.TargetTags`.
|
@Stability(value=Stable) @Nullable default Object getActions()
@Stability(value=Stable) @Nullable default Object getEventSource()
@Stability(value=Stable) @Nullable default Object getParameters()
@Stability(value=Stable) @Nullable default String getPolicyType()
@Stability(value=Stable) @Nullable default List<String> getResourceLocations()
@Stability(value=Stable) @Nullable default List<String> getResourceTypes()
@Stability(value=Stable) @Nullable default Object getSchedules()
@Stability(value=Stable) @Nullable default Object getTargetTags()
@Stability(value=Stable) static CfnLifecyclePolicy.PolicyDetailsProperty.Builder builder()
Copyright © 2021. All rights reserved.