{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.IoTWireless.GetEventConfigurationByResourceTypes
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Get the event configuration based on resource types.
module Amazonka.IoTWireless.GetEventConfigurationByResourceTypes
  ( -- * Creating a Request
    GetEventConfigurationByResourceTypes (..),
    newGetEventConfigurationByResourceTypes,

    -- * Destructuring the Response
    GetEventConfigurationByResourceTypesResponse (..),
    newGetEventConfigurationByResourceTypesResponse,

    -- * Response Lenses
    getEventConfigurationByResourceTypesResponse_connectionStatus,
    getEventConfigurationByResourceTypesResponse_deviceRegistrationState,
    getEventConfigurationByResourceTypesResponse_join,
    getEventConfigurationByResourceTypesResponse_messageDeliveryStatus,
    getEventConfigurationByResourceTypesResponse_proximity,
    getEventConfigurationByResourceTypesResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.IoTWireless.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response

-- | /See:/ 'newGetEventConfigurationByResourceTypes' smart constructor.
data GetEventConfigurationByResourceTypes = GetEventConfigurationByResourceTypes'
  {
  }
  deriving (GetEventConfigurationByResourceTypes
-> GetEventConfigurationByResourceTypes -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetEventConfigurationByResourceTypes
-> GetEventConfigurationByResourceTypes -> Bool
$c/= :: GetEventConfigurationByResourceTypes
-> GetEventConfigurationByResourceTypes -> Bool
== :: GetEventConfigurationByResourceTypes
-> GetEventConfigurationByResourceTypes -> Bool
$c== :: GetEventConfigurationByResourceTypes
-> GetEventConfigurationByResourceTypes -> Bool
Prelude.Eq, ReadPrec [GetEventConfigurationByResourceTypes]
ReadPrec GetEventConfigurationByResourceTypes
Int -> ReadS GetEventConfigurationByResourceTypes
ReadS [GetEventConfigurationByResourceTypes]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetEventConfigurationByResourceTypes]
$creadListPrec :: ReadPrec [GetEventConfigurationByResourceTypes]
readPrec :: ReadPrec GetEventConfigurationByResourceTypes
$creadPrec :: ReadPrec GetEventConfigurationByResourceTypes
readList :: ReadS [GetEventConfigurationByResourceTypes]
$creadList :: ReadS [GetEventConfigurationByResourceTypes]
readsPrec :: Int -> ReadS GetEventConfigurationByResourceTypes
$creadsPrec :: Int -> ReadS GetEventConfigurationByResourceTypes
Prelude.Read, Int -> GetEventConfigurationByResourceTypes -> ShowS
[GetEventConfigurationByResourceTypes] -> ShowS
GetEventConfigurationByResourceTypes -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetEventConfigurationByResourceTypes] -> ShowS
$cshowList :: [GetEventConfigurationByResourceTypes] -> ShowS
show :: GetEventConfigurationByResourceTypes -> String
$cshow :: GetEventConfigurationByResourceTypes -> String
showsPrec :: Int -> GetEventConfigurationByResourceTypes -> ShowS
$cshowsPrec :: Int -> GetEventConfigurationByResourceTypes -> ShowS
Prelude.Show, forall x.
Rep GetEventConfigurationByResourceTypes x
-> GetEventConfigurationByResourceTypes
forall x.
GetEventConfigurationByResourceTypes
-> Rep GetEventConfigurationByResourceTypes x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetEventConfigurationByResourceTypes x
-> GetEventConfigurationByResourceTypes
$cfrom :: forall x.
GetEventConfigurationByResourceTypes
-> Rep GetEventConfigurationByResourceTypes x
Prelude.Generic)

-- |
-- Create a value of 'GetEventConfigurationByResourceTypes' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
newGetEventConfigurationByResourceTypes ::
  GetEventConfigurationByResourceTypes
newGetEventConfigurationByResourceTypes :: GetEventConfigurationByResourceTypes
newGetEventConfigurationByResourceTypes =
  GetEventConfigurationByResourceTypes
GetEventConfigurationByResourceTypes'

instance
  Core.AWSRequest
    GetEventConfigurationByResourceTypes
  where
  type
    AWSResponse GetEventConfigurationByResourceTypes =
      GetEventConfigurationByResourceTypesResponse
  request :: (Service -> Service)
-> GetEventConfigurationByResourceTypes
-> Request GetEventConfigurationByResourceTypes
request Service -> Service
overrides =
    forall a. ToRequest a => Service -> a -> Request a
Request.get (Service -> Service
overrides Service
defaultService)
  response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy GetEventConfigurationByResourceTypes
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse
           (AWSResponse GetEventConfigurationByResourceTypes)))
response =
    forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
      ( \Int
s ResponseHeaders
h Object
x ->
          Maybe ConnectionStatusResourceTypeEventConfiguration
-> Maybe DeviceRegistrationStateResourceTypeEventConfiguration
-> Maybe JoinResourceTypeEventConfiguration
-> Maybe MessageDeliveryStatusResourceTypeEventConfiguration
-> Maybe ProximityResourceTypeEventConfiguration
-> Int
-> GetEventConfigurationByResourceTypesResponse
GetEventConfigurationByResourceTypesResponse'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"ConnectionStatus")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"DeviceRegistrationState")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"Join")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"MessageDeliveryStatus")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"Proximity")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
      )

instance
  Prelude.Hashable
    GetEventConfigurationByResourceTypes
  where
  hashWithSalt :: Int -> GetEventConfigurationByResourceTypes -> Int
hashWithSalt Int
_salt GetEventConfigurationByResourceTypes
_ =
    Int
_salt forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` ()

instance
  Prelude.NFData
    GetEventConfigurationByResourceTypes
  where
  rnf :: GetEventConfigurationByResourceTypes -> ()
rnf GetEventConfigurationByResourceTypes
_ = ()

instance
  Data.ToHeaders
    GetEventConfigurationByResourceTypes
  where
  toHeaders :: GetEventConfigurationByResourceTypes -> ResponseHeaders
toHeaders = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty

instance
  Data.ToPath
    GetEventConfigurationByResourceTypes
  where
  toPath :: GetEventConfigurationByResourceTypes -> ByteString
toPath =
    forall a b. a -> b -> a
Prelude.const
      ByteString
"/event-configurations-resource-types"

instance
  Data.ToQuery
    GetEventConfigurationByResourceTypes
  where
  toQuery :: GetEventConfigurationByResourceTypes -> QueryString
toQuery = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty

-- | /See:/ 'newGetEventConfigurationByResourceTypesResponse' smart constructor.
data GetEventConfigurationByResourceTypesResponse = GetEventConfigurationByResourceTypesResponse'
  { -- | Resource type event configuration for the connection status event.
    GetEventConfigurationByResourceTypesResponse
-> Maybe ConnectionStatusResourceTypeEventConfiguration
connectionStatus :: Prelude.Maybe ConnectionStatusResourceTypeEventConfiguration,
    -- | Resource type event configuration for the device registration state
    -- event.
    GetEventConfigurationByResourceTypesResponse
-> Maybe DeviceRegistrationStateResourceTypeEventConfiguration
deviceRegistrationState :: Prelude.Maybe DeviceRegistrationStateResourceTypeEventConfiguration,
    -- | Resource type event configuration for the join event.
    GetEventConfigurationByResourceTypesResponse
-> Maybe JoinResourceTypeEventConfiguration
join :: Prelude.Maybe JoinResourceTypeEventConfiguration,
    -- | Resource type event configuration object for the message delivery status
    -- event.
    GetEventConfigurationByResourceTypesResponse
-> Maybe MessageDeliveryStatusResourceTypeEventConfiguration
messageDeliveryStatus :: Prelude.Maybe MessageDeliveryStatusResourceTypeEventConfiguration,
    -- | Resource type event configuration for the proximity event.
    GetEventConfigurationByResourceTypesResponse
-> Maybe ProximityResourceTypeEventConfiguration
proximity :: Prelude.Maybe ProximityResourceTypeEventConfiguration,
    -- | The response's http status code.
    GetEventConfigurationByResourceTypesResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (GetEventConfigurationByResourceTypesResponse
-> GetEventConfigurationByResourceTypesResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetEventConfigurationByResourceTypesResponse
-> GetEventConfigurationByResourceTypesResponse -> Bool
$c/= :: GetEventConfigurationByResourceTypesResponse
-> GetEventConfigurationByResourceTypesResponse -> Bool
== :: GetEventConfigurationByResourceTypesResponse
-> GetEventConfigurationByResourceTypesResponse -> Bool
$c== :: GetEventConfigurationByResourceTypesResponse
-> GetEventConfigurationByResourceTypesResponse -> Bool
Prelude.Eq, ReadPrec [GetEventConfigurationByResourceTypesResponse]
ReadPrec GetEventConfigurationByResourceTypesResponse
Int -> ReadS GetEventConfigurationByResourceTypesResponse
ReadS [GetEventConfigurationByResourceTypesResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetEventConfigurationByResourceTypesResponse]
$creadListPrec :: ReadPrec [GetEventConfigurationByResourceTypesResponse]
readPrec :: ReadPrec GetEventConfigurationByResourceTypesResponse
$creadPrec :: ReadPrec GetEventConfigurationByResourceTypesResponse
readList :: ReadS [GetEventConfigurationByResourceTypesResponse]
$creadList :: ReadS [GetEventConfigurationByResourceTypesResponse]
readsPrec :: Int -> ReadS GetEventConfigurationByResourceTypesResponse
$creadsPrec :: Int -> ReadS GetEventConfigurationByResourceTypesResponse
Prelude.Read, Int -> GetEventConfigurationByResourceTypesResponse -> ShowS
[GetEventConfigurationByResourceTypesResponse] -> ShowS
GetEventConfigurationByResourceTypesResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetEventConfigurationByResourceTypesResponse] -> ShowS
$cshowList :: [GetEventConfigurationByResourceTypesResponse] -> ShowS
show :: GetEventConfigurationByResourceTypesResponse -> String
$cshow :: GetEventConfigurationByResourceTypesResponse -> String
showsPrec :: Int -> GetEventConfigurationByResourceTypesResponse -> ShowS
$cshowsPrec :: Int -> GetEventConfigurationByResourceTypesResponse -> ShowS
Prelude.Show, forall x.
Rep GetEventConfigurationByResourceTypesResponse x
-> GetEventConfigurationByResourceTypesResponse
forall x.
GetEventConfigurationByResourceTypesResponse
-> Rep GetEventConfigurationByResourceTypesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetEventConfigurationByResourceTypesResponse x
-> GetEventConfigurationByResourceTypesResponse
$cfrom :: forall x.
GetEventConfigurationByResourceTypesResponse
-> Rep GetEventConfigurationByResourceTypesResponse x
Prelude.Generic)

-- |
-- Create a value of 'GetEventConfigurationByResourceTypesResponse' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'connectionStatus', 'getEventConfigurationByResourceTypesResponse_connectionStatus' - Resource type event configuration for the connection status event.
--
-- 'deviceRegistrationState', 'getEventConfigurationByResourceTypesResponse_deviceRegistrationState' - Resource type event configuration for the device registration state
-- event.
--
-- 'join', 'getEventConfigurationByResourceTypesResponse_join' - Resource type event configuration for the join event.
--
-- 'messageDeliveryStatus', 'getEventConfigurationByResourceTypesResponse_messageDeliveryStatus' - Resource type event configuration object for the message delivery status
-- event.
--
-- 'proximity', 'getEventConfigurationByResourceTypesResponse_proximity' - Resource type event configuration for the proximity event.
--
-- 'httpStatus', 'getEventConfigurationByResourceTypesResponse_httpStatus' - The response's http status code.
newGetEventConfigurationByResourceTypesResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  GetEventConfigurationByResourceTypesResponse
newGetEventConfigurationByResourceTypesResponse :: Int -> GetEventConfigurationByResourceTypesResponse
newGetEventConfigurationByResourceTypesResponse
  Int
pHttpStatus_ =
    GetEventConfigurationByResourceTypesResponse'
      { $sel:connectionStatus:GetEventConfigurationByResourceTypesResponse' :: Maybe ConnectionStatusResourceTypeEventConfiguration
connectionStatus =
          forall a. Maybe a
Prelude.Nothing,
        $sel:deviceRegistrationState:GetEventConfigurationByResourceTypesResponse' :: Maybe DeviceRegistrationStateResourceTypeEventConfiguration
deviceRegistrationState =
          forall a. Maybe a
Prelude.Nothing,
        $sel:join:GetEventConfigurationByResourceTypesResponse' :: Maybe JoinResourceTypeEventConfiguration
join = forall a. Maybe a
Prelude.Nothing,
        $sel:messageDeliveryStatus:GetEventConfigurationByResourceTypesResponse' :: Maybe MessageDeliveryStatusResourceTypeEventConfiguration
messageDeliveryStatus =
          forall a. Maybe a
Prelude.Nothing,
        $sel:proximity:GetEventConfigurationByResourceTypesResponse' :: Maybe ProximityResourceTypeEventConfiguration
proximity = forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:GetEventConfigurationByResourceTypesResponse' :: Int
httpStatus = Int
pHttpStatus_
      }

-- | Resource type event configuration for the connection status event.
getEventConfigurationByResourceTypesResponse_connectionStatus :: Lens.Lens' GetEventConfigurationByResourceTypesResponse (Prelude.Maybe ConnectionStatusResourceTypeEventConfiguration)
getEventConfigurationByResourceTypesResponse_connectionStatus :: Lens'
  GetEventConfigurationByResourceTypesResponse
  (Maybe ConnectionStatusResourceTypeEventConfiguration)
getEventConfigurationByResourceTypesResponse_connectionStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetEventConfigurationByResourceTypesResponse' {Maybe ConnectionStatusResourceTypeEventConfiguration
connectionStatus :: Maybe ConnectionStatusResourceTypeEventConfiguration
$sel:connectionStatus:GetEventConfigurationByResourceTypesResponse' :: GetEventConfigurationByResourceTypesResponse
-> Maybe ConnectionStatusResourceTypeEventConfiguration
connectionStatus} -> Maybe ConnectionStatusResourceTypeEventConfiguration
connectionStatus) (\s :: GetEventConfigurationByResourceTypesResponse
s@GetEventConfigurationByResourceTypesResponse' {} Maybe ConnectionStatusResourceTypeEventConfiguration
a -> GetEventConfigurationByResourceTypesResponse
s {$sel:connectionStatus:GetEventConfigurationByResourceTypesResponse' :: Maybe ConnectionStatusResourceTypeEventConfiguration
connectionStatus = Maybe ConnectionStatusResourceTypeEventConfiguration
a} :: GetEventConfigurationByResourceTypesResponse)

-- | Resource type event configuration for the device registration state
-- event.
getEventConfigurationByResourceTypesResponse_deviceRegistrationState :: Lens.Lens' GetEventConfigurationByResourceTypesResponse (Prelude.Maybe DeviceRegistrationStateResourceTypeEventConfiguration)
getEventConfigurationByResourceTypesResponse_deviceRegistrationState :: Lens'
  GetEventConfigurationByResourceTypesResponse
  (Maybe DeviceRegistrationStateResourceTypeEventConfiguration)
getEventConfigurationByResourceTypesResponse_deviceRegistrationState = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetEventConfigurationByResourceTypesResponse' {Maybe DeviceRegistrationStateResourceTypeEventConfiguration
deviceRegistrationState :: Maybe DeviceRegistrationStateResourceTypeEventConfiguration
$sel:deviceRegistrationState:GetEventConfigurationByResourceTypesResponse' :: GetEventConfigurationByResourceTypesResponse
-> Maybe DeviceRegistrationStateResourceTypeEventConfiguration
deviceRegistrationState} -> Maybe DeviceRegistrationStateResourceTypeEventConfiguration
deviceRegistrationState) (\s :: GetEventConfigurationByResourceTypesResponse
s@GetEventConfigurationByResourceTypesResponse' {} Maybe DeviceRegistrationStateResourceTypeEventConfiguration
a -> GetEventConfigurationByResourceTypesResponse
s {$sel:deviceRegistrationState:GetEventConfigurationByResourceTypesResponse' :: Maybe DeviceRegistrationStateResourceTypeEventConfiguration
deviceRegistrationState = Maybe DeviceRegistrationStateResourceTypeEventConfiguration
a} :: GetEventConfigurationByResourceTypesResponse)

-- | Resource type event configuration for the join event.
getEventConfigurationByResourceTypesResponse_join :: Lens.Lens' GetEventConfigurationByResourceTypesResponse (Prelude.Maybe JoinResourceTypeEventConfiguration)
getEventConfigurationByResourceTypesResponse_join :: Lens'
  GetEventConfigurationByResourceTypesResponse
  (Maybe JoinResourceTypeEventConfiguration)
getEventConfigurationByResourceTypesResponse_join = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetEventConfigurationByResourceTypesResponse' {Maybe JoinResourceTypeEventConfiguration
join :: Maybe JoinResourceTypeEventConfiguration
$sel:join:GetEventConfigurationByResourceTypesResponse' :: GetEventConfigurationByResourceTypesResponse
-> Maybe JoinResourceTypeEventConfiguration
join} -> Maybe JoinResourceTypeEventConfiguration
join) (\s :: GetEventConfigurationByResourceTypesResponse
s@GetEventConfigurationByResourceTypesResponse' {} Maybe JoinResourceTypeEventConfiguration
a -> GetEventConfigurationByResourceTypesResponse
s {$sel:join:GetEventConfigurationByResourceTypesResponse' :: Maybe JoinResourceTypeEventConfiguration
join = Maybe JoinResourceTypeEventConfiguration
a} :: GetEventConfigurationByResourceTypesResponse)

-- | Resource type event configuration object for the message delivery status
-- event.
getEventConfigurationByResourceTypesResponse_messageDeliveryStatus :: Lens.Lens' GetEventConfigurationByResourceTypesResponse (Prelude.Maybe MessageDeliveryStatusResourceTypeEventConfiguration)
getEventConfigurationByResourceTypesResponse_messageDeliveryStatus :: Lens'
  GetEventConfigurationByResourceTypesResponse
  (Maybe MessageDeliveryStatusResourceTypeEventConfiguration)
getEventConfigurationByResourceTypesResponse_messageDeliveryStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetEventConfigurationByResourceTypesResponse' {Maybe MessageDeliveryStatusResourceTypeEventConfiguration
messageDeliveryStatus :: Maybe MessageDeliveryStatusResourceTypeEventConfiguration
$sel:messageDeliveryStatus:GetEventConfigurationByResourceTypesResponse' :: GetEventConfigurationByResourceTypesResponse
-> Maybe MessageDeliveryStatusResourceTypeEventConfiguration
messageDeliveryStatus} -> Maybe MessageDeliveryStatusResourceTypeEventConfiguration
messageDeliveryStatus) (\s :: GetEventConfigurationByResourceTypesResponse
s@GetEventConfigurationByResourceTypesResponse' {} Maybe MessageDeliveryStatusResourceTypeEventConfiguration
a -> GetEventConfigurationByResourceTypesResponse
s {$sel:messageDeliveryStatus:GetEventConfigurationByResourceTypesResponse' :: Maybe MessageDeliveryStatusResourceTypeEventConfiguration
messageDeliveryStatus = Maybe MessageDeliveryStatusResourceTypeEventConfiguration
a} :: GetEventConfigurationByResourceTypesResponse)

-- | Resource type event configuration for the proximity event.
getEventConfigurationByResourceTypesResponse_proximity :: Lens.Lens' GetEventConfigurationByResourceTypesResponse (Prelude.Maybe ProximityResourceTypeEventConfiguration)
getEventConfigurationByResourceTypesResponse_proximity :: Lens'
  GetEventConfigurationByResourceTypesResponse
  (Maybe ProximityResourceTypeEventConfiguration)
getEventConfigurationByResourceTypesResponse_proximity = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetEventConfigurationByResourceTypesResponse' {Maybe ProximityResourceTypeEventConfiguration
proximity :: Maybe ProximityResourceTypeEventConfiguration
$sel:proximity:GetEventConfigurationByResourceTypesResponse' :: GetEventConfigurationByResourceTypesResponse
-> Maybe ProximityResourceTypeEventConfiguration
proximity} -> Maybe ProximityResourceTypeEventConfiguration
proximity) (\s :: GetEventConfigurationByResourceTypesResponse
s@GetEventConfigurationByResourceTypesResponse' {} Maybe ProximityResourceTypeEventConfiguration
a -> GetEventConfigurationByResourceTypesResponse
s {$sel:proximity:GetEventConfigurationByResourceTypesResponse' :: Maybe ProximityResourceTypeEventConfiguration
proximity = Maybe ProximityResourceTypeEventConfiguration
a} :: GetEventConfigurationByResourceTypesResponse)

-- | The response's http status code.
getEventConfigurationByResourceTypesResponse_httpStatus :: Lens.Lens' GetEventConfigurationByResourceTypesResponse Prelude.Int
getEventConfigurationByResourceTypesResponse_httpStatus :: Lens' GetEventConfigurationByResourceTypesResponse Int
getEventConfigurationByResourceTypesResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetEventConfigurationByResourceTypesResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetEventConfigurationByResourceTypesResponse' :: GetEventConfigurationByResourceTypesResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetEventConfigurationByResourceTypesResponse
s@GetEventConfigurationByResourceTypesResponse' {} Int
a -> GetEventConfigurationByResourceTypesResponse
s {$sel:httpStatus:GetEventConfigurationByResourceTypesResponse' :: Int
httpStatus = Int
a} :: GetEventConfigurationByResourceTypesResponse)

instance
  Prelude.NFData
    GetEventConfigurationByResourceTypesResponse
  where
  rnf :: GetEventConfigurationByResourceTypesResponse -> ()
rnf GetEventConfigurationByResourceTypesResponse' {Int
Maybe ConnectionStatusResourceTypeEventConfiguration
Maybe JoinResourceTypeEventConfiguration
Maybe ProximityResourceTypeEventConfiguration
Maybe MessageDeliveryStatusResourceTypeEventConfiguration
Maybe DeviceRegistrationStateResourceTypeEventConfiguration
httpStatus :: Int
proximity :: Maybe ProximityResourceTypeEventConfiguration
messageDeliveryStatus :: Maybe MessageDeliveryStatusResourceTypeEventConfiguration
join :: Maybe JoinResourceTypeEventConfiguration
deviceRegistrationState :: Maybe DeviceRegistrationStateResourceTypeEventConfiguration
connectionStatus :: Maybe ConnectionStatusResourceTypeEventConfiguration
$sel:httpStatus:GetEventConfigurationByResourceTypesResponse' :: GetEventConfigurationByResourceTypesResponse -> Int
$sel:proximity:GetEventConfigurationByResourceTypesResponse' :: GetEventConfigurationByResourceTypesResponse
-> Maybe ProximityResourceTypeEventConfiguration
$sel:messageDeliveryStatus:GetEventConfigurationByResourceTypesResponse' :: GetEventConfigurationByResourceTypesResponse
-> Maybe MessageDeliveryStatusResourceTypeEventConfiguration
$sel:join:GetEventConfigurationByResourceTypesResponse' :: GetEventConfigurationByResourceTypesResponse
-> Maybe JoinResourceTypeEventConfiguration
$sel:deviceRegistrationState:GetEventConfigurationByResourceTypesResponse' :: GetEventConfigurationByResourceTypesResponse
-> Maybe DeviceRegistrationStateResourceTypeEventConfiguration
$sel:connectionStatus:GetEventConfigurationByResourceTypesResponse' :: GetEventConfigurationByResourceTypesResponse
-> Maybe ConnectionStatusResourceTypeEventConfiguration
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe ConnectionStatusResourceTypeEventConfiguration
connectionStatus
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe DeviceRegistrationStateResourceTypeEventConfiguration
deviceRegistrationState
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe JoinResourceTypeEventConfiguration
join
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe MessageDeliveryStatusResourceTypeEventConfiguration
messageDeliveryStatus
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ProximityResourceTypeEventConfiguration
proximity
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus