Interface CfnLifecyclePolicy.LastLaunchedProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnLifecyclePolicy.LastLaunchedProperty.Jsii$Proxy
- Enclosing class:
CfnLifecyclePolicy
@Stability(Stable)
public static interface CfnLifecyclePolicy.LastLaunchedProperty
extends software.amazon.jsii.JsiiSerializable
Defines criteria to exclude AMIs from lifecycle actions based on the last time they were used to launch an instance.
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.imagebuilder.*; LastLaunchedProperty lastLaunchedProperty = LastLaunchedProperty.builder() .unit("unit") .value(123) .build();
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnLifecyclePolicy.LastLaunchedProperty
static final class
An implementation forCfnLifecyclePolicy.LastLaunchedProperty
-
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getUnit
Defines the unit of time that the lifecycle policy uses to calculate elapsed time since the last instance launched from the AMI.For example: days, weeks, months, or years.
- See Also:
-
getValue
The integer number of units for the time period.For example
6
(months).- See Also:
-
builder
-