Class CfnLifecyclePolicyPropsMixin.LastLaunchedProperty
Defines criteria to exclude AMIs from lifecycle actions based on the last time they were used to launch an instance.
Inherited Members
Namespace: Amazon.CDK.Mixins.Preview.AWS.ImageBuilder.Mixins
Assembly: Amazon.CDK.Mixins.Preview.dll
Syntax (csharp)
public class CfnLifecyclePolicyPropsMixin.LastLaunchedProperty : CfnLifecyclePolicyPropsMixin.ILastLaunchedProperty
Syntax (vb)
Public Class CfnLifecyclePolicyPropsMixin.LastLaunchedProperty Implements CfnLifecyclePolicyPropsMixin.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.Mixins.Preview.AWS.ImageBuilder.Mixins;
var lastLaunchedProperty = new LastLaunchedProperty {
Unit = "unit",
Value = 123
};
Synopsis
Constructors
| LastLaunchedProperty() | Defines criteria to exclude AMIs from lifecycle actions based on the last time they were used to launch an instance. |
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()
Defines criteria to exclude AMIs from lifecycle actions based on the last time they were used to launch an instance.
public LastLaunchedProperty()
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.Mixins.Preview.AWS.ImageBuilder.Mixins;
var lastLaunchedProperty = new LastLaunchedProperty {
Unit = "unit",
Value = 123
};
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
Remarks
For example: days, weeks, months, or years.
Value
The integer number of units for the time period.
public double? Value { get; set; }