Skip to content
v2.274.0

RetentionDays Enum ​

How long, in days, the log contents will be retained.

Example ​

ts
const pipelineLogGroup = new logs.LogGroup(this, 'PipelineLogGroup', {
  logGroupName: '/custom/imagebuilder/pipeline/logs',
  retention: logs.RetentionDays.ONE_MONTH
});

const imageLogGroup = new logs.LogGroup(this, 'ImageLogGroup', {
  logGroupName: '/custom/imagebuilder/image/logs',
  retention: logs.RetentionDays.ONE_WEEK
});

const loggedPipeline = new imagebuilder.ImagePipeline(this, 'LoggedPipeline', {
  recipe: exampleImageRecipe,
  imagePipelineLogGroup: pipelineLogGroup,
  imageLogGroup: imageLogGroup
});

Members ​

MemberDescription
ONE_DAY1 day.
THREE_DAYS3 days.
FIVE_DAYS5 days.
ONE_WEEK1 week.
TWO_WEEKS2 weeks.
ONE_MONTH1 month.
TWO_MONTHS2 months.
THREE_MONTHS3 months.
FOUR_MONTHS4 months.
FIVE_MONTHS5 months.
SIX_MONTHS6 months.
ONE_YEAR1 year.
THIRTEEN_MONTHS13 months.
EIGHTEEN_MONTHS18 months.
TWO_YEARS2 years.
THREE_YEARS3 years.
FIVE_YEARS5 years.
SIX_YEARS6 years.
SEVEN_YEARS7 years.
EIGHT_YEARS8 years.
NINE_YEARS9 years.
TEN_YEARS10 years.
INFINITERetain logs forever.

Referenced by ​