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 RetentionInDays
Constructors
Retention1Day
Retention3Days
Retention5Days
Retention1Week
Retention2Weeks
Retention1Month
Retention2Months
Retention3Months
Retention4Months
Retention5Months
Retention6Months
Retention12Months
Retention13Months
Retention18Months
Retention24Months
Retention60Months
Retention120Months
NoRetention
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 Unit
Sets the retention policy for the log group.
For setting NoRetention aka Never Expire
use deleteRetentionPolicy
.
#deleteRetentionPolicy Source
deleteRetentionPolicy :: CloudWatchLogs -> LogGroupName -> Aff Unit
Deletes 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.