interface LastLaunchedProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.ImageBuilder.Mixins.CfnLifecyclePolicyPropsMixin.LastLaunchedProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsimagebuilder/mixins#CfnLifecyclePolicyPropsMixin_LastLaunchedProperty |
Java | software.amazon.awscdk.mixins.preview.services.imagebuilder.mixins.CfnLifecyclePolicyPropsMixin.LastLaunchedProperty |
Python | aws_cdk.mixins_preview.aws_imagebuilder.mixins.CfnLifecyclePolicyPropsMixin.LastLaunchedProperty |
TypeScript | @aws-cdk/mixins-preview » aws_imagebuilder » mixins » CfnLifecyclePolicyPropsMixin » LastLaunchedProperty |
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 { mixins as imagebuilder_mixins } from '@aws-cdk/mixins-preview/aws-imagebuilder';
const lastLaunchedProperty: imagebuilder_mixins.CfnLifecyclePolicyPropsMixin.LastLaunchedProperty = {
unit: 'unit',
value: 123,
};
Properties
| Name | Type | Description |
|---|---|---|
| unit? | string | Defines the unit of time that the lifecycle policy uses to calculate elapsed time since the last instance launched from the AMI. |
| value? | number | The integer number of units for the time period. |
unit?
Type:
string
(optional)
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.
value?
Type:
number
(optional)
The integer number of units for the time period.
For example 6 (months).

.NET
Go
Java
Python
TypeScript