Class CfnLifecyclePolicy.LastLaunchedProperty
Defines criteria to exclude AMIs from lifecycle actions based on the last time they were used to launch an instance.
Inheritance
System.Object
CfnLifecyclePolicy.LastLaunchedProperty
Implements
Namespace: Amazon.CDK.AWS.ImageBuilder
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class LastLaunchedProperty : Object, CfnLifecyclePolicy.ILastLaunchedProperty
Syntax (vb)
Public Class LastLaunchedProperty
Inherits Object
Implements CfnLifecyclePolicy.ILastLaunchedProperty
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ImageBuilder;
var lastLaunchedProperty = new LastLaunchedProperty {
Unit = "unit",
Value = 123
};
Synopsis
Constructors
LastLaunchedProperty() |
Properties
Unit | Defines the unit of time that the lifecycle policy uses to calculate elapsed time since the last instance launched from the AMI. |
Value | The integer number of units for the time period. |
Constructors
LastLaunchedProperty()
public LastLaunchedProperty()
Properties
Unit
Defines the unit of time that the lifecycle policy uses to calculate elapsed time since the last instance launched from the AMI.
public string Unit { get; set; }
Property Value
System.String
Remarks
For example: days, weeks, months, or years.
Value
The integer number of units for the time period.
public double Value { get; set; }
Property Value
System.Double