Copyright | (c) Nike Inc. 2019 |
---|---|
License | BSD3 |
Maintainer | [email protected], [email protected] |
Stability | stable |
Safe Haskell | None |
Language | Haskell2010 |
AWS.Lambda.Events.S3
Description
Synopsis
- data PrincipalIdentity = PrincipalIdentity {
- principalId :: Text
- newtype Records = Records {}
- data RequestParameters = RequestParameters {}
- data ResponseElements = ResponseElements {
- amazonId :: Text
- amazonRequestId :: Text
- data S3Bucket = S3Bucket {
- arn :: Text
- name :: Text
- ownerIdentity :: PrincipalIdentity
- data S3Config = S3Config {}
- data S3Event = S3Event {}
- data S3Object
Documentation
data PrincipalIdentity Source #
Constructors
PrincipalIdentity | |
Fields
|
Instances
data RequestParameters Source #
Constructors
RequestParameters | |
Fields |
Instances
FromJSON RequestParameters Source # | |||||
Defined in AWS.Lambda.Events.S3 Methods parseJSON :: Value -> Parser RequestParameters # parseJSONList :: Value -> Parser [RequestParameters] # | |||||
Generic RequestParameters Source # | |||||
Defined in AWS.Lambda.Events.S3 Associated Types
Methods from :: RequestParameters -> Rep RequestParameters x # to :: Rep RequestParameters x -> RequestParameters # | |||||
Show RequestParameters Source # | |||||
Defined in AWS.Lambda.Events.S3 Methods showsPrec :: Int -> RequestParameters -> ShowS # show :: RequestParameters -> String # showList :: [RequestParameters] -> ShowS # | |||||
Eq RequestParameters Source # | |||||
Defined in AWS.Lambda.Events.S3 Methods (==) :: RequestParameters -> RequestParameters -> Bool # (/=) :: RequestParameters -> RequestParameters -> Bool # | |||||
type Rep RequestParameters Source # | |||||
Defined in AWS.Lambda.Events.S3 type Rep RequestParameters = D1 ('MetaData "RequestParameters" "AWS.Lambda.Events.S3" "hal-1.1-IvQEMWcUKGXFiXEc69Lc43" 'False) (C1 ('MetaCons "RequestParameters" 'PrefixI 'True) (S1 ('MetaSel ('Just "sourceIPAddress") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text))) |
data ResponseElements Source #
Constructors
ResponseElements | |
Fields
|
Instances
FromJSON ResponseElements Source # | |
Defined in AWS.Lambda.Events.S3 Methods parseJSON :: Value -> Parser ResponseElements # parseJSONList :: Value -> Parser [ResponseElements] # | |
Show ResponseElements Source # | |
Defined in AWS.Lambda.Events.S3 Methods showsPrec :: Int -> ResponseElements -> ShowS # show :: ResponseElements -> String # showList :: [ResponseElements] -> ShowS # | |
Eq ResponseElements Source # | |
Defined in AWS.Lambda.Events.S3 Methods (==) :: ResponseElements -> ResponseElements -> Bool # (/=) :: ResponseElements -> ResponseElements -> Bool # |
Constructors
S3Bucket | |
Fields
|
Instances
FromJSON S3Bucket Source # | |||||
Defined in AWS.Lambda.Events.S3 | |||||
Generic S3Bucket Source # | |||||
Defined in AWS.Lambda.Events.S3 Associated Types
| |||||
Show S3Bucket Source # | |||||
Eq S3Bucket Source # | |||||
type Rep S3Bucket Source # | |||||
Defined in AWS.Lambda.Events.S3 type Rep S3Bucket = D1 ('MetaData "S3Bucket" "AWS.Lambda.Events.S3" "hal-1.1-IvQEMWcUKGXFiXEc69Lc43" 'False) (C1 ('MetaCons "S3Bucket" 'PrefixI 'True) (S1 ('MetaSel ('Just "arn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "ownerIdentity") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PrincipalIdentity)))) |
Constructors
S3Config | |
Fields
|
Instances
FromJSON S3Config Source # | |||||
Defined in AWS.Lambda.Events.S3 | |||||
Generic S3Config Source # | |||||
Defined in AWS.Lambda.Events.S3 Associated Types
| |||||
Show S3Config Source # | |||||
Eq S3Config Source # | |||||
type Rep S3Config Source # | |||||
Defined in AWS.Lambda.Events.S3 type Rep S3Config = D1 ('MetaData "S3Config" "AWS.Lambda.Events.S3" "hal-1.1-IvQEMWcUKGXFiXEc69Lc43" 'False) (C1 ('MetaCons "S3Config" 'PrefixI 'True) ((S1 ('MetaSel ('Just "bucket") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 S3Bucket) :*: S1 ('MetaSel ('Just "configurationId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "object") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 S3Object) :*: S1 ('MetaSel ('Just "s3SchemaVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))) |
Event data sent by S3 when triggering a Lambda.
Constructors
S3Event | |
Fields |
Instances
FromJSON S3Event Source # | |||||
Defined in AWS.Lambda.Events.S3 | |||||
Generic S3Event Source # | |||||
Defined in AWS.Lambda.Events.S3 Associated Types
| |||||
Show S3Event Source # | |||||
Eq S3Event Source # | |||||
type Rep S3Event Source # | |||||
Defined in AWS.Lambda.Events.S3 type Rep S3Event = D1 ('MetaData "S3Event" "AWS.Lambda.Events.S3" "hal-1.1-IvQEMWcUKGXFiXEc69Lc43" 'False) (C1 ('MetaCons "S3Event" 'PrefixI 'True) (((S1 ('MetaSel ('Just "awsRegion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "eventName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "eventSource") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "eventTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 UTCTime))) :*: ((S1 ('MetaSel ('Just "eventVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "requestParameters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RequestParameters)) :*: (S1 ('MetaSel ('Just "responseElements") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ResponseElements) :*: (S1 ('MetaSel ('Just "s3") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 S3Config) :*: S1 ('MetaSel ('Just "userIdentity") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PrincipalIdentity)))))) |
S3 object representations based on event type received.
Currently only Put/Delete events can trigger Lambdas
Constructors
PutObject | |
DeleteObject | |
Instances
FromJSON S3Object Source # | |||||
Defined in AWS.Lambda.Events.S3 | |||||
Generic S3Object Source # | |||||
Defined in AWS.Lambda.Events.S3 Associated Types
| |||||
Show S3Object Source # | |||||
Eq S3Object Source # | |||||
type Rep S3Object Source # | |||||
Defined in AWS.Lambda.Events.S3 type Rep S3Object = D1 ('MetaData "S3Object" "AWS.Lambda.Events.S3" "hal-1.1-IvQEMWcUKGXFiXEc69Lc43" 'False) (C1 ('MetaCons "PutObject" 'PrefixI 'True) ((S1 ('MetaSel ('Just "eTag") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "sequencer") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "key") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "size") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int))) :+: C1 ('MetaCons "DeleteObject" 'PrefixI 'True) (S1 ('MetaSel ('Just "sequencer") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "key") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text))) |