UNPKG

@altostra/core

Version:

Core library for shared types and logic

16 lines (15 loc) 775 B
import type { AwsResourceCommon, CloudFormationTags } from "../common"; import type { CloudFormationValue } from "../IntrinsicFunctions"; import type { LogGroupName } from "./LogGroupName"; export declare type LogGroupType = 'AWS::Logs::LogGroup'; export interface LogGroup extends AwsResourceCommon { Type: LogGroupType; Properties: LogGroupProperties; } export interface LogGroupProperties { LogGroupName?: CloudFormationValue<LogGroupName>; RetentionInDays?: CloudFormationValue<LogRetentionInDays>; Tags?: CloudFormationTags; } export declare type LogRetentionInDays = 1 | 3 | 5 | 7 | 14 | 30 | 60 | 90 | 120 | 150 | 180 | 365 | 400 | 545 | 731 | 1827 | 3653; export declare function isLogRetentionInDays(value: unknown): value is LogRetentionInDays;