{-# 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 #-}
module Amazonka.SSMContacts.GetContactChannel
(
GetContactChannel (..),
newGetContactChannel,
getContactChannel_contactChannelId,
GetContactChannelResponse (..),
newGetContactChannelResponse,
getContactChannelResponse_activationStatus,
getContactChannelResponse_httpStatus,
getContactChannelResponse_contactArn,
getContactChannelResponse_contactChannelArn,
getContactChannelResponse_name,
getContactChannelResponse_type,
getContactChannelResponse_deliveryAddress,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
import Amazonka.SSMContacts.Types
data GetContactChannel = GetContactChannel'
{
GetContactChannel -> Text
contactChannelId :: Prelude.Text
}
deriving (GetContactChannel -> GetContactChannel -> Bool
(GetContactChannel -> GetContactChannel -> Bool)
-> (GetContactChannel -> GetContactChannel -> Bool)
-> Eq GetContactChannel
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetContactChannel -> GetContactChannel -> Bool
$c/= :: GetContactChannel -> GetContactChannel -> Bool
== :: GetContactChannel -> GetContactChannel -> Bool
$c== :: GetContactChannel -> GetContactChannel -> Bool
Prelude.Eq, ReadPrec [GetContactChannel]
ReadPrec GetContactChannel
Int -> ReadS GetContactChannel
ReadS [GetContactChannel]
(Int -> ReadS GetContactChannel)
-> ReadS [GetContactChannel]
-> ReadPrec GetContactChannel
-> ReadPrec [GetContactChannel]
-> Read GetContactChannel
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetContactChannel]
$creadListPrec :: ReadPrec [GetContactChannel]
readPrec :: ReadPrec GetContactChannel
$creadPrec :: ReadPrec GetContactChannel
readList :: ReadS [GetContactChannel]
$creadList :: ReadS [GetContactChannel]
readsPrec :: Int -> ReadS GetContactChannel
$creadsPrec :: Int -> ReadS GetContactChannel
Prelude.Read, Int -> GetContactChannel -> ShowS
[GetContactChannel] -> ShowS
GetContactChannel -> String
(Int -> GetContactChannel -> ShowS)
-> (GetContactChannel -> String)
-> ([GetContactChannel] -> ShowS)
-> Show GetContactChannel
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetContactChannel] -> ShowS
$cshowList :: [GetContactChannel] -> ShowS
show :: GetContactChannel -> String
$cshow :: GetContactChannel -> String
showsPrec :: Int -> GetContactChannel -> ShowS
$cshowsPrec :: Int -> GetContactChannel -> ShowS
Prelude.Show, (forall x. GetContactChannel -> Rep GetContactChannel x)
-> (forall x. Rep GetContactChannel x -> GetContactChannel)
-> Generic GetContactChannel
forall x. Rep GetContactChannel x -> GetContactChannel
forall x. GetContactChannel -> Rep GetContactChannel x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetContactChannel x -> GetContactChannel
$cfrom :: forall x. GetContactChannel -> Rep GetContactChannel x
Prelude.Generic)
newGetContactChannel ::
Prelude.Text ->
GetContactChannel
newGetContactChannel :: Text -> GetContactChannel
newGetContactChannel Text
pContactChannelId_ =
GetContactChannel' :: Text -> GetContactChannel
GetContactChannel'
{ $sel:contactChannelId:GetContactChannel' :: Text
contactChannelId =
Text
pContactChannelId_
}
getContactChannel_contactChannelId :: Lens.Lens' GetContactChannel Prelude.Text
getContactChannel_contactChannelId :: (Text -> f Text) -> GetContactChannel -> f GetContactChannel
getContactChannel_contactChannelId = (GetContactChannel -> Text)
-> (GetContactChannel -> Text -> GetContactChannel)
-> Lens GetContactChannel GetContactChannel Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetContactChannel' {Text
contactChannelId :: Text
$sel:contactChannelId:GetContactChannel' :: GetContactChannel -> Text
contactChannelId} -> Text
contactChannelId) (\s :: GetContactChannel
s@GetContactChannel' {} Text
a -> GetContactChannel
s {$sel:contactChannelId:GetContactChannel' :: Text
contactChannelId = Text
a} :: GetContactChannel)
instance Core.AWSRequest GetContactChannel where
type
AWSResponse GetContactChannel =
GetContactChannelResponse
request :: GetContactChannel -> Request GetContactChannel
request = Service -> GetContactChannel -> Request GetContactChannel
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy GetContactChannel
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse GetContactChannel)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse GetContactChannel))
-> Logger
-> Service
-> Proxy GetContactChannel
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse GetContactChannel)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe ActivationStatus
-> Int
-> Text
-> Text
-> Text
-> ChannelType
-> ContactChannelAddress
-> GetContactChannelResponse
GetContactChannelResponse'
(Maybe ActivationStatus
-> Int
-> Text
-> Text
-> Text
-> ChannelType
-> ContactChannelAddress
-> GetContactChannelResponse)
-> Either String (Maybe ActivationStatus)
-> Either
String
(Int
-> Text
-> Text
-> Text
-> ChannelType
-> ContactChannelAddress
-> GetContactChannelResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe ActivationStatus)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"ActivationStatus")
Either
String
(Int
-> Text
-> Text
-> Text
-> ChannelType
-> ContactChannelAddress
-> GetContactChannelResponse)
-> Either String Int
-> Either
String
(Text
-> Text
-> Text
-> ChannelType
-> ContactChannelAddress
-> GetContactChannelResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
Either
String
(Text
-> Text
-> Text
-> ChannelType
-> ContactChannelAddress
-> GetContactChannelResponse)
-> Either String Text
-> Either
String
(Text
-> Text
-> ChannelType
-> ContactChannelAddress
-> GetContactChannelResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String Text
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"ContactArn")
Either
String
(Text
-> Text
-> ChannelType
-> ContactChannelAddress
-> GetContactChannelResponse)
-> Either String Text
-> Either
String
(Text
-> ChannelType
-> ContactChannelAddress
-> GetContactChannelResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String Text
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"ContactChannelArn")
Either
String
(Text
-> ChannelType
-> ContactChannelAddress
-> GetContactChannelResponse)
-> Either String Text
-> Either
String
(ChannelType -> ContactChannelAddress -> GetContactChannelResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String Text
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"Name")
Either
String
(ChannelType -> ContactChannelAddress -> GetContactChannelResponse)
-> Either String ChannelType
-> Either
String (ContactChannelAddress -> GetContactChannelResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String ChannelType
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"Type")
Either String (ContactChannelAddress -> GetContactChannelResponse)
-> Either String ContactChannelAddress
-> Either String GetContactChannelResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String ContactChannelAddress
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"DeliveryAddress")
)
instance Prelude.Hashable GetContactChannel
instance Prelude.NFData GetContactChannel
instance Core.ToHeaders GetContactChannel where
toHeaders :: GetContactChannel -> ResponseHeaders
toHeaders =
ResponseHeaders -> GetContactChannel -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"X-Amz-Target"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"SSMContacts.GetContactChannel" ::
Prelude.ByteString
),
HeaderName
"Content-Type"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Core.ToJSON GetContactChannel where
toJSON :: GetContactChannel -> Value
toJSON GetContactChannel' {Text
contactChannelId :: Text
$sel:contactChannelId:GetContactChannel' :: GetContactChannel -> Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
(Text
"ContactChannelId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
contactChannelId)
]
)
instance Core.ToPath GetContactChannel where
toPath :: GetContactChannel -> ByteString
toPath = ByteString -> GetContactChannel -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery GetContactChannel where
toQuery :: GetContactChannel -> QueryString
toQuery = QueryString -> GetContactChannel -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data GetContactChannelResponse = GetContactChannelResponse'
{
GetContactChannelResponse -> Maybe ActivationStatus
activationStatus :: Prelude.Maybe ActivationStatus,
GetContactChannelResponse -> Int
httpStatus :: Prelude.Int,
GetContactChannelResponse -> Text
contactArn :: Prelude.Text,
GetContactChannelResponse -> Text
contactChannelArn :: Prelude.Text,
GetContactChannelResponse -> Text
name :: Prelude.Text,
GetContactChannelResponse -> ChannelType
type' :: ChannelType,
GetContactChannelResponse -> ContactChannelAddress
deliveryAddress :: ContactChannelAddress
}
deriving (GetContactChannelResponse -> GetContactChannelResponse -> Bool
(GetContactChannelResponse -> GetContactChannelResponse -> Bool)
-> (GetContactChannelResponse -> GetContactChannelResponse -> Bool)
-> Eq GetContactChannelResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetContactChannelResponse -> GetContactChannelResponse -> Bool
$c/= :: GetContactChannelResponse -> GetContactChannelResponse -> Bool
== :: GetContactChannelResponse -> GetContactChannelResponse -> Bool
$c== :: GetContactChannelResponse -> GetContactChannelResponse -> Bool
Prelude.Eq, ReadPrec [GetContactChannelResponse]
ReadPrec GetContactChannelResponse
Int -> ReadS GetContactChannelResponse
ReadS [GetContactChannelResponse]
(Int -> ReadS GetContactChannelResponse)
-> ReadS [GetContactChannelResponse]
-> ReadPrec GetContactChannelResponse
-> ReadPrec [GetContactChannelResponse]
-> Read GetContactChannelResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetContactChannelResponse]
$creadListPrec :: ReadPrec [GetContactChannelResponse]
readPrec :: ReadPrec GetContactChannelResponse
$creadPrec :: ReadPrec GetContactChannelResponse
readList :: ReadS [GetContactChannelResponse]
$creadList :: ReadS [GetContactChannelResponse]
readsPrec :: Int -> ReadS GetContactChannelResponse
$creadsPrec :: Int -> ReadS GetContactChannelResponse
Prelude.Read, Int -> GetContactChannelResponse -> ShowS
[GetContactChannelResponse] -> ShowS
GetContactChannelResponse -> String
(Int -> GetContactChannelResponse -> ShowS)
-> (GetContactChannelResponse -> String)
-> ([GetContactChannelResponse] -> ShowS)
-> Show GetContactChannelResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetContactChannelResponse] -> ShowS
$cshowList :: [GetContactChannelResponse] -> ShowS
show :: GetContactChannelResponse -> String
$cshow :: GetContactChannelResponse -> String
showsPrec :: Int -> GetContactChannelResponse -> ShowS
$cshowsPrec :: Int -> GetContactChannelResponse -> ShowS
Prelude.Show, (forall x.
GetContactChannelResponse -> Rep GetContactChannelResponse x)
-> (forall x.
Rep GetContactChannelResponse x -> GetContactChannelResponse)
-> Generic GetContactChannelResponse
forall x.
Rep GetContactChannelResponse x -> GetContactChannelResponse
forall x.
GetContactChannelResponse -> Rep GetContactChannelResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetContactChannelResponse x -> GetContactChannelResponse
$cfrom :: forall x.
GetContactChannelResponse -> Rep GetContactChannelResponse x
Prelude.Generic)
newGetContactChannelResponse ::
Prelude.Int ->
Prelude.Text ->
Prelude.Text ->
Prelude.Text ->
ChannelType ->
ContactChannelAddress ->
GetContactChannelResponse
newGetContactChannelResponse :: Int
-> Text
-> Text
-> Text
-> ChannelType
-> ContactChannelAddress
-> GetContactChannelResponse
newGetContactChannelResponse
Int
pHttpStatus_
Text
pContactArn_
Text
pContactChannelArn_
Text
pName_
ChannelType
pType_
ContactChannelAddress
pDeliveryAddress_ =
GetContactChannelResponse' :: Maybe ActivationStatus
-> Int
-> Text
-> Text
-> Text
-> ChannelType
-> ContactChannelAddress
-> GetContactChannelResponse
GetContactChannelResponse'
{ $sel:activationStatus:GetContactChannelResponse' :: Maybe ActivationStatus
activationStatus =
Maybe ActivationStatus
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:GetContactChannelResponse' :: Int
httpStatus = Int
pHttpStatus_,
$sel:contactArn:GetContactChannelResponse' :: Text
contactArn = Text
pContactArn_,
$sel:contactChannelArn:GetContactChannelResponse' :: Text
contactChannelArn = Text
pContactChannelArn_,
$sel:name:GetContactChannelResponse' :: Text
name = Text
pName_,
$sel:type':GetContactChannelResponse' :: ChannelType
type' = ChannelType
pType_,
$sel:deliveryAddress:GetContactChannelResponse' :: ContactChannelAddress
deliveryAddress = ContactChannelAddress
pDeliveryAddress_
}
getContactChannelResponse_activationStatus :: Lens.Lens' GetContactChannelResponse (Prelude.Maybe ActivationStatus)
getContactChannelResponse_activationStatus :: (Maybe ActivationStatus -> f (Maybe ActivationStatus))
-> GetContactChannelResponse -> f GetContactChannelResponse
getContactChannelResponse_activationStatus = (GetContactChannelResponse -> Maybe ActivationStatus)
-> (GetContactChannelResponse
-> Maybe ActivationStatus -> GetContactChannelResponse)
-> Lens
GetContactChannelResponse
GetContactChannelResponse
(Maybe ActivationStatus)
(Maybe ActivationStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetContactChannelResponse' {Maybe ActivationStatus
activationStatus :: Maybe ActivationStatus
$sel:activationStatus:GetContactChannelResponse' :: GetContactChannelResponse -> Maybe ActivationStatus
activationStatus} -> Maybe ActivationStatus
activationStatus) (\s :: GetContactChannelResponse
s@GetContactChannelResponse' {} Maybe ActivationStatus
a -> GetContactChannelResponse
s {$sel:activationStatus:GetContactChannelResponse' :: Maybe ActivationStatus
activationStatus = Maybe ActivationStatus
a} :: GetContactChannelResponse)
getContactChannelResponse_httpStatus :: Lens.Lens' GetContactChannelResponse Prelude.Int
getContactChannelResponse_httpStatus :: (Int -> f Int)
-> GetContactChannelResponse -> f GetContactChannelResponse
getContactChannelResponse_httpStatus = (GetContactChannelResponse -> Int)
-> (GetContactChannelResponse -> Int -> GetContactChannelResponse)
-> Lens GetContactChannelResponse GetContactChannelResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetContactChannelResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetContactChannelResponse' :: GetContactChannelResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetContactChannelResponse
s@GetContactChannelResponse' {} Int
a -> GetContactChannelResponse
s {$sel:httpStatus:GetContactChannelResponse' :: Int
httpStatus = Int
a} :: GetContactChannelResponse)
getContactChannelResponse_contactArn :: Lens.Lens' GetContactChannelResponse Prelude.Text
getContactChannelResponse_contactArn :: (Text -> f Text)
-> GetContactChannelResponse -> f GetContactChannelResponse
getContactChannelResponse_contactArn = (GetContactChannelResponse -> Text)
-> (GetContactChannelResponse -> Text -> GetContactChannelResponse)
-> Lens
GetContactChannelResponse GetContactChannelResponse Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetContactChannelResponse' {Text
contactArn :: Text
$sel:contactArn:GetContactChannelResponse' :: GetContactChannelResponse -> Text
contactArn} -> Text
contactArn) (\s :: GetContactChannelResponse
s@GetContactChannelResponse' {} Text
a -> GetContactChannelResponse
s {$sel:contactArn:GetContactChannelResponse' :: Text
contactArn = Text
a} :: GetContactChannelResponse)
getContactChannelResponse_contactChannelArn :: Lens.Lens' GetContactChannelResponse Prelude.Text
getContactChannelResponse_contactChannelArn :: (Text -> f Text)
-> GetContactChannelResponse -> f GetContactChannelResponse
getContactChannelResponse_contactChannelArn = (GetContactChannelResponse -> Text)
-> (GetContactChannelResponse -> Text -> GetContactChannelResponse)
-> Lens
GetContactChannelResponse GetContactChannelResponse Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetContactChannelResponse' {Text
contactChannelArn :: Text
$sel:contactChannelArn:GetContactChannelResponse' :: GetContactChannelResponse -> Text
contactChannelArn} -> Text
contactChannelArn) (\s :: GetContactChannelResponse
s@GetContactChannelResponse' {} Text
a -> GetContactChannelResponse
s {$sel:contactChannelArn:GetContactChannelResponse' :: Text
contactChannelArn = Text
a} :: GetContactChannelResponse)
getContactChannelResponse_name :: Lens.Lens' GetContactChannelResponse Prelude.Text
getContactChannelResponse_name :: (Text -> f Text)
-> GetContactChannelResponse -> f GetContactChannelResponse
getContactChannelResponse_name = (GetContactChannelResponse -> Text)
-> (GetContactChannelResponse -> Text -> GetContactChannelResponse)
-> Lens
GetContactChannelResponse GetContactChannelResponse Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetContactChannelResponse' {Text
name :: Text
$sel:name:GetContactChannelResponse' :: GetContactChannelResponse -> Text
name} -> Text
name) (\s :: GetContactChannelResponse
s@GetContactChannelResponse' {} Text
a -> GetContactChannelResponse
s {$sel:name:GetContactChannelResponse' :: Text
name = Text
a} :: GetContactChannelResponse)
getContactChannelResponse_type :: Lens.Lens' GetContactChannelResponse ChannelType
getContactChannelResponse_type :: (ChannelType -> f ChannelType)
-> GetContactChannelResponse -> f GetContactChannelResponse
getContactChannelResponse_type = (GetContactChannelResponse -> ChannelType)
-> (GetContactChannelResponse
-> ChannelType -> GetContactChannelResponse)
-> Lens
GetContactChannelResponse
GetContactChannelResponse
ChannelType
ChannelType
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetContactChannelResponse' {ChannelType
type' :: ChannelType
$sel:type':GetContactChannelResponse' :: GetContactChannelResponse -> ChannelType
type'} -> ChannelType
type') (\s :: GetContactChannelResponse
s@GetContactChannelResponse' {} ChannelType
a -> GetContactChannelResponse
s {$sel:type':GetContactChannelResponse' :: ChannelType
type' = ChannelType
a} :: GetContactChannelResponse)
getContactChannelResponse_deliveryAddress :: Lens.Lens' GetContactChannelResponse ContactChannelAddress
getContactChannelResponse_deliveryAddress :: (ContactChannelAddress -> f ContactChannelAddress)
-> GetContactChannelResponse -> f GetContactChannelResponse
getContactChannelResponse_deliveryAddress = (GetContactChannelResponse -> ContactChannelAddress)
-> (GetContactChannelResponse
-> ContactChannelAddress -> GetContactChannelResponse)
-> Lens
GetContactChannelResponse
GetContactChannelResponse
ContactChannelAddress
ContactChannelAddress
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetContactChannelResponse' {ContactChannelAddress
deliveryAddress :: ContactChannelAddress
$sel:deliveryAddress:GetContactChannelResponse' :: GetContactChannelResponse -> ContactChannelAddress
deliveryAddress} -> ContactChannelAddress
deliveryAddress) (\s :: GetContactChannelResponse
s@GetContactChannelResponse' {} ContactChannelAddress
a -> GetContactChannelResponse
s {$sel:deliveryAddress:GetContactChannelResponse' :: ContactChannelAddress
deliveryAddress = ContactChannelAddress
a} :: GetContactChannelResponse)
instance Prelude.NFData GetContactChannelResponse