Module
AWS.CloudWatchLogs
- Package
- purescript-aws-sdk-basic
- Repository
- HivemindTechnologies/purescript-aws-sdk
#CloudWatchLogs Source
data CloudWatchLogs :: Type#newCloudWatchLogs Source
newCloudWatchLogs :: Foreign -> (Effect CloudWatchLogs)#makeClient Source
makeClient :: forall via r. Justifiable (Record r) (Record via) => Fillable (Record via) DefaultClientProps => Record r -> Effect CloudWatchLogs#LogGroupName Source
#RetentionInDays Source
data RetentionInDaysConstructors
Retention1DayRetention3DaysRetention5DaysRetention1WeekRetention2WeeksRetention1MonthRetention2MonthsRetention3MonthsRetention4MonthsRetention5MonthsRetention6MonthsRetention12MonthsRetention13MonthsRetention18MonthsRetention24MonthsRetention60MonthsRetention120MonthsNoRetention
Instances
#toRetention Source
toRetention :: Maybe Int -> RetentionInDays#RetentionSettings Source
type RetentionSettings = { logGroupName :: LogGroupName, retentionInDays :: RetentionInDays }#InternalDescribeLogGroupsResponse Source
type InternalDescribeLogGroupsResponse = { logGroups :: Array InternalLogGroup }#DescribeLogGroupsResponse Source
type DescribeLogGroupsResponse = { logGroups :: Array LogGroup }#InternalDescribeLogStreamsResponse Source
type InternalDescribeLogStreamsResponse = { logStreams :: Array InternalLogStream }#DescribeLogStreamsResponse Source
type DescribeLogStreamsResponse = { logStreams :: Array LogStream }#putRetentionPolicy Source
putRetentionPolicy :: CloudWatchLogs -> LogGroupName -> RetentionInDays -> Aff UnitSets the retention policy for the log group.
For setting NoRetention aka Never Expire use deleteRetentionPolicy.
#deleteRetentionPolicy Source
deleteRetentionPolicy :: CloudWatchLogs -> LogGroupName -> Aff UnitDeletes the retention policy from the log group, i.e. set's it to NoRetention aka Never Expire.
For setting a retention policy use putRetentionPolicy instead.