-
Notifications
You must be signed in to change notification settings - Fork 2
/
example.hs
25 lines (21 loc) · 1.04 KB
/
example.hs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{-# LANGUAGE OverloadedStrings #-}
module Example where
-------------------------------------------------------------------------------
import Aws
import Control.Applicative
-- import Data.List.NonEmpty
-------------------------------------------------------------------------------
import Aws.CloudFront
-------------------------------------------------------------------------------
example :: IO ()
example = do
cfg <- setDebug <$> Aws.baseConfiguration
-- let cfCfg = CloudFrontConfiguration :: ServiceConfiguration CreateInvalidationRequest NormalQuery
let cfCfg' = CloudFrontConfiguration :: ServiceConfiguration GetDistributionListRequest NormalQuery
-- print =<< simpleAws cfg cfCfg (CreateInvalidationRequest paths cr did)
print =<< simpleAws cfg cfCfg' (GetDistributionListRequest Nothing)
where
-- paths = ObjectPath "/bogus.xml" :| []
-- cr = CreateInvalidationRequestReference "bogusref"
-- did = DistributionId "bogus-did"
setDebug cfg = cfg { logger = defaultLog Debug}