{-# 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.ELB.SetLoadBalancerListenerSSLCertificate
(
SetLoadBalancerListenerSSLCertificate (..),
newSetLoadBalancerListenerSSLCertificate,
setLoadBalancerListenerSSLCertificate_loadBalancerName,
setLoadBalancerListenerSSLCertificate_loadBalancerPort,
setLoadBalancerListenerSSLCertificate_sSLCertificateId,
SetLoadBalancerListenerSSLCertificateResponse (..),
newSetLoadBalancerListenerSSLCertificateResponse,
setLoadBalancerListenerSSLCertificateResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.ELB.Types
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data =
{
:: Prelude.Text,
:: Prelude.Int,
:: Prelude.Text
}
deriving (SetLoadBalancerListenerSSLCertificate
-> SetLoadBalancerListenerSSLCertificate -> Bool
(SetLoadBalancerListenerSSLCertificate
-> SetLoadBalancerListenerSSLCertificate -> Bool)
-> (SetLoadBalancerListenerSSLCertificate
-> SetLoadBalancerListenerSSLCertificate -> Bool)
-> Eq SetLoadBalancerListenerSSLCertificate
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: SetLoadBalancerListenerSSLCertificate
-> SetLoadBalancerListenerSSLCertificate -> Bool
$c/= :: SetLoadBalancerListenerSSLCertificate
-> SetLoadBalancerListenerSSLCertificate -> Bool
== :: SetLoadBalancerListenerSSLCertificate
-> SetLoadBalancerListenerSSLCertificate -> Bool
$c== :: SetLoadBalancerListenerSSLCertificate
-> SetLoadBalancerListenerSSLCertificate -> Bool
Prelude.Eq, ReadPrec [SetLoadBalancerListenerSSLCertificate]
ReadPrec SetLoadBalancerListenerSSLCertificate
Int -> ReadS SetLoadBalancerListenerSSLCertificate
ReadS [SetLoadBalancerListenerSSLCertificate]
(Int -> ReadS SetLoadBalancerListenerSSLCertificate)
-> ReadS [SetLoadBalancerListenerSSLCertificate]
-> ReadPrec SetLoadBalancerListenerSSLCertificate
-> ReadPrec [SetLoadBalancerListenerSSLCertificate]
-> Read SetLoadBalancerListenerSSLCertificate
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [SetLoadBalancerListenerSSLCertificate]
$creadListPrec :: ReadPrec [SetLoadBalancerListenerSSLCertificate]
readPrec :: ReadPrec SetLoadBalancerListenerSSLCertificate
$creadPrec :: ReadPrec SetLoadBalancerListenerSSLCertificate
readList :: ReadS [SetLoadBalancerListenerSSLCertificate]
$creadList :: ReadS [SetLoadBalancerListenerSSLCertificate]
readsPrec :: Int -> ReadS SetLoadBalancerListenerSSLCertificate
$creadsPrec :: Int -> ReadS SetLoadBalancerListenerSSLCertificate
Prelude.Read, Int -> SetLoadBalancerListenerSSLCertificate -> ShowS
[SetLoadBalancerListenerSSLCertificate] -> ShowS
SetLoadBalancerListenerSSLCertificate -> String
(Int -> SetLoadBalancerListenerSSLCertificate -> ShowS)
-> (SetLoadBalancerListenerSSLCertificate -> String)
-> ([SetLoadBalancerListenerSSLCertificate] -> ShowS)
-> Show SetLoadBalancerListenerSSLCertificate
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [SetLoadBalancerListenerSSLCertificate] -> ShowS
$cshowList :: [SetLoadBalancerListenerSSLCertificate] -> ShowS
show :: SetLoadBalancerListenerSSLCertificate -> String
$cshow :: SetLoadBalancerListenerSSLCertificate -> String
showsPrec :: Int -> SetLoadBalancerListenerSSLCertificate -> ShowS
$cshowsPrec :: Int -> SetLoadBalancerListenerSSLCertificate -> ShowS
Prelude.Show, (forall x.
SetLoadBalancerListenerSSLCertificate
-> Rep SetLoadBalancerListenerSSLCertificate x)
-> (forall x.
Rep SetLoadBalancerListenerSSLCertificate x
-> SetLoadBalancerListenerSSLCertificate)
-> Generic SetLoadBalancerListenerSSLCertificate
forall x.
Rep SetLoadBalancerListenerSSLCertificate x
-> SetLoadBalancerListenerSSLCertificate
forall x.
SetLoadBalancerListenerSSLCertificate
-> Rep SetLoadBalancerListenerSSLCertificate x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep SetLoadBalancerListenerSSLCertificate x
-> SetLoadBalancerListenerSSLCertificate
$cfrom :: forall x.
SetLoadBalancerListenerSSLCertificate
-> Rep SetLoadBalancerListenerSSLCertificate x
Prelude.Generic)
newSetLoadBalancerListenerSSLCertificate ::
Prelude.Text ->
Prelude.Int ->
Prelude.Text ->
SetLoadBalancerListenerSSLCertificate
Text
pLoadBalancerName_
Int
pLoadBalancerPort_
Text
pSSLCertificateId_ =
SetLoadBalancerListenerSSLCertificate' :: Text -> Int -> Text -> SetLoadBalancerListenerSSLCertificate
SetLoadBalancerListenerSSLCertificate'
{ $sel:loadBalancerName:SetLoadBalancerListenerSSLCertificate' :: Text
loadBalancerName =
Text
pLoadBalancerName_,
$sel:loadBalancerPort:SetLoadBalancerListenerSSLCertificate' :: Int
loadBalancerPort =
Int
pLoadBalancerPort_,
$sel:sSLCertificateId:SetLoadBalancerListenerSSLCertificate' :: Text
sSLCertificateId =
Text
pSSLCertificateId_
}
setLoadBalancerListenerSSLCertificate_loadBalancerName :: Lens.Lens' SetLoadBalancerListenerSSLCertificate Prelude.Text
= (SetLoadBalancerListenerSSLCertificate -> Text)
-> (SetLoadBalancerListenerSSLCertificate
-> Text -> SetLoadBalancerListenerSSLCertificate)
-> Lens
SetLoadBalancerListenerSSLCertificate
SetLoadBalancerListenerSSLCertificate
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SetLoadBalancerListenerSSLCertificate' {Text
loadBalancerName :: Text
$sel:loadBalancerName:SetLoadBalancerListenerSSLCertificate' :: SetLoadBalancerListenerSSLCertificate -> Text
loadBalancerName} -> Text
loadBalancerName) (\s :: SetLoadBalancerListenerSSLCertificate
s@SetLoadBalancerListenerSSLCertificate' {} Text
a -> SetLoadBalancerListenerSSLCertificate
s {$sel:loadBalancerName:SetLoadBalancerListenerSSLCertificate' :: Text
loadBalancerName = Text
a} :: SetLoadBalancerListenerSSLCertificate)
setLoadBalancerListenerSSLCertificate_loadBalancerPort :: Lens.Lens' SetLoadBalancerListenerSSLCertificate Prelude.Int
= (SetLoadBalancerListenerSSLCertificate -> Int)
-> (SetLoadBalancerListenerSSLCertificate
-> Int -> SetLoadBalancerListenerSSLCertificate)
-> Lens
SetLoadBalancerListenerSSLCertificate
SetLoadBalancerListenerSSLCertificate
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SetLoadBalancerListenerSSLCertificate' {Int
loadBalancerPort :: Int
$sel:loadBalancerPort:SetLoadBalancerListenerSSLCertificate' :: SetLoadBalancerListenerSSLCertificate -> Int
loadBalancerPort} -> Int
loadBalancerPort) (\s :: SetLoadBalancerListenerSSLCertificate
s@SetLoadBalancerListenerSSLCertificate' {} Int
a -> SetLoadBalancerListenerSSLCertificate
s {$sel:loadBalancerPort:SetLoadBalancerListenerSSLCertificate' :: Int
loadBalancerPort = Int
a} :: SetLoadBalancerListenerSSLCertificate)
setLoadBalancerListenerSSLCertificate_sSLCertificateId :: Lens.Lens' SetLoadBalancerListenerSSLCertificate Prelude.Text
= (SetLoadBalancerListenerSSLCertificate -> Text)
-> (SetLoadBalancerListenerSSLCertificate
-> Text -> SetLoadBalancerListenerSSLCertificate)
-> Lens
SetLoadBalancerListenerSSLCertificate
SetLoadBalancerListenerSSLCertificate
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SetLoadBalancerListenerSSLCertificate' {Text
sSLCertificateId :: Text
$sel:sSLCertificateId:SetLoadBalancerListenerSSLCertificate' :: SetLoadBalancerListenerSSLCertificate -> Text
sSLCertificateId} -> Text
sSLCertificateId) (\s :: SetLoadBalancerListenerSSLCertificate
s@SetLoadBalancerListenerSSLCertificate' {} Text
a -> SetLoadBalancerListenerSSLCertificate
s {$sel:sSLCertificateId:SetLoadBalancerListenerSSLCertificate' :: Text
sSLCertificateId = Text
a} :: SetLoadBalancerListenerSSLCertificate)
instance
Core.AWSRequest
SetLoadBalancerListenerSSLCertificate
where
type
AWSResponse
SetLoadBalancerListenerSSLCertificate =
SetLoadBalancerListenerSSLCertificateResponse
request :: SetLoadBalancerListenerSSLCertificate
-> Request SetLoadBalancerListenerSSLCertificate
request = Service
-> SetLoadBalancerListenerSSLCertificate
-> Request SetLoadBalancerListenerSSLCertificate
forall a. ToRequest a => Service -> a -> Request a
Request.postQuery Service
defaultService
response :: Logger
-> Service
-> Proxy SetLoadBalancerListenerSSLCertificate
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse
(AWSResponse SetLoadBalancerListenerSSLCertificate)))
response =
Text
-> (Int
-> ResponseHeaders
-> [Node]
-> Either
String (AWSResponse SetLoadBalancerListenerSSLCertificate))
-> Logger
-> Service
-> Proxy SetLoadBalancerListenerSSLCertificate
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse
(AWSResponse SetLoadBalancerListenerSSLCertificate)))
forall (m :: * -> *) a.
MonadResource m =>
Text
-> (Int
-> ResponseHeaders -> [Node] -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveXMLWrapper
Text
"SetLoadBalancerListenerSSLCertificateResult"
( \Int
s ResponseHeaders
h [Node]
x ->
Int -> SetLoadBalancerListenerSSLCertificateResponse
SetLoadBalancerListenerSSLCertificateResponse'
(Int -> SetLoadBalancerListenerSSLCertificateResponse)
-> Either String Int
-> Either String SetLoadBalancerListenerSSLCertificateResponse
forall (f :: * -> *) a b. Functor 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))
)
instance
Prelude.Hashable
SetLoadBalancerListenerSSLCertificate
instance
Prelude.NFData
SetLoadBalancerListenerSSLCertificate
instance
Core.ToHeaders
SetLoadBalancerListenerSSLCertificate
where
toHeaders :: SetLoadBalancerListenerSSLCertificate -> ResponseHeaders
toHeaders = ResponseHeaders
-> SetLoadBalancerListenerSSLCertificate -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty
instance
Core.ToPath
SetLoadBalancerListenerSSLCertificate
where
toPath :: SetLoadBalancerListenerSSLCertificate -> ByteString
toPath = ByteString -> SetLoadBalancerListenerSSLCertificate -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance
Core.ToQuery
SetLoadBalancerListenerSSLCertificate
where
toQuery :: SetLoadBalancerListenerSSLCertificate -> QueryString
toQuery SetLoadBalancerListenerSSLCertificate' {Int
Text
sSLCertificateId :: Text
loadBalancerPort :: Int
loadBalancerName :: Text
$sel:sSLCertificateId:SetLoadBalancerListenerSSLCertificate' :: SetLoadBalancerListenerSSLCertificate -> Text
$sel:loadBalancerPort:SetLoadBalancerListenerSSLCertificate' :: SetLoadBalancerListenerSSLCertificate -> Int
$sel:loadBalancerName:SetLoadBalancerListenerSSLCertificate' :: SetLoadBalancerListenerSSLCertificate -> Text
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"Action"
ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: ( ByteString
"SetLoadBalancerListenerSSLCertificate" ::
Prelude.ByteString
),
ByteString
"Version"
ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"2012-06-01" :: Prelude.ByteString),
ByteString
"LoadBalancerName" ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
loadBalancerName,
ByteString
"LoadBalancerPort" ByteString -> Int -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Int
loadBalancerPort,
ByteString
"SSLCertificateId" ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
sSLCertificateId
]
data =
{
:: Prelude.Int
}
deriving (SetLoadBalancerListenerSSLCertificateResponse
-> SetLoadBalancerListenerSSLCertificateResponse -> Bool
(SetLoadBalancerListenerSSLCertificateResponse
-> SetLoadBalancerListenerSSLCertificateResponse -> Bool)
-> (SetLoadBalancerListenerSSLCertificateResponse
-> SetLoadBalancerListenerSSLCertificateResponse -> Bool)
-> Eq SetLoadBalancerListenerSSLCertificateResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: SetLoadBalancerListenerSSLCertificateResponse
-> SetLoadBalancerListenerSSLCertificateResponse -> Bool
$c/= :: SetLoadBalancerListenerSSLCertificateResponse
-> SetLoadBalancerListenerSSLCertificateResponse -> Bool
== :: SetLoadBalancerListenerSSLCertificateResponse
-> SetLoadBalancerListenerSSLCertificateResponse -> Bool
$c== :: SetLoadBalancerListenerSSLCertificateResponse
-> SetLoadBalancerListenerSSLCertificateResponse -> Bool
Prelude.Eq, ReadPrec [SetLoadBalancerListenerSSLCertificateResponse]
ReadPrec SetLoadBalancerListenerSSLCertificateResponse
Int -> ReadS SetLoadBalancerListenerSSLCertificateResponse
ReadS [SetLoadBalancerListenerSSLCertificateResponse]
(Int -> ReadS SetLoadBalancerListenerSSLCertificateResponse)
-> ReadS [SetLoadBalancerListenerSSLCertificateResponse]
-> ReadPrec SetLoadBalancerListenerSSLCertificateResponse
-> ReadPrec [SetLoadBalancerListenerSSLCertificateResponse]
-> Read SetLoadBalancerListenerSSLCertificateResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [SetLoadBalancerListenerSSLCertificateResponse]
$creadListPrec :: ReadPrec [SetLoadBalancerListenerSSLCertificateResponse]
readPrec :: ReadPrec SetLoadBalancerListenerSSLCertificateResponse
$creadPrec :: ReadPrec SetLoadBalancerListenerSSLCertificateResponse
readList :: ReadS [SetLoadBalancerListenerSSLCertificateResponse]
$creadList :: ReadS [SetLoadBalancerListenerSSLCertificateResponse]
readsPrec :: Int -> ReadS SetLoadBalancerListenerSSLCertificateResponse
$creadsPrec :: Int -> ReadS SetLoadBalancerListenerSSLCertificateResponse
Prelude.Read, Int -> SetLoadBalancerListenerSSLCertificateResponse -> ShowS
[SetLoadBalancerListenerSSLCertificateResponse] -> ShowS
SetLoadBalancerListenerSSLCertificateResponse -> String
(Int -> SetLoadBalancerListenerSSLCertificateResponse -> ShowS)
-> (SetLoadBalancerListenerSSLCertificateResponse -> String)
-> ([SetLoadBalancerListenerSSLCertificateResponse] -> ShowS)
-> Show SetLoadBalancerListenerSSLCertificateResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [SetLoadBalancerListenerSSLCertificateResponse] -> ShowS
$cshowList :: [SetLoadBalancerListenerSSLCertificateResponse] -> ShowS
show :: SetLoadBalancerListenerSSLCertificateResponse -> String
$cshow :: SetLoadBalancerListenerSSLCertificateResponse -> String
showsPrec :: Int -> SetLoadBalancerListenerSSLCertificateResponse -> ShowS
$cshowsPrec :: Int -> SetLoadBalancerListenerSSLCertificateResponse -> ShowS
Prelude.Show, (forall x.
SetLoadBalancerListenerSSLCertificateResponse
-> Rep SetLoadBalancerListenerSSLCertificateResponse x)
-> (forall x.
Rep SetLoadBalancerListenerSSLCertificateResponse x
-> SetLoadBalancerListenerSSLCertificateResponse)
-> Generic SetLoadBalancerListenerSSLCertificateResponse
forall x.
Rep SetLoadBalancerListenerSSLCertificateResponse x
-> SetLoadBalancerListenerSSLCertificateResponse
forall x.
SetLoadBalancerListenerSSLCertificateResponse
-> Rep SetLoadBalancerListenerSSLCertificateResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep SetLoadBalancerListenerSSLCertificateResponse x
-> SetLoadBalancerListenerSSLCertificateResponse
$cfrom :: forall x.
SetLoadBalancerListenerSSLCertificateResponse
-> Rep SetLoadBalancerListenerSSLCertificateResponse x
Prelude.Generic)
newSetLoadBalancerListenerSSLCertificateResponse ::
Prelude.Int ->
SetLoadBalancerListenerSSLCertificateResponse
Int
pHttpStatus_ =
SetLoadBalancerListenerSSLCertificateResponse' :: Int -> SetLoadBalancerListenerSSLCertificateResponse
SetLoadBalancerListenerSSLCertificateResponse'
{ $sel:httpStatus:SetLoadBalancerListenerSSLCertificateResponse' :: Int
httpStatus =
Int
pHttpStatus_
}
setLoadBalancerListenerSSLCertificateResponse_httpStatus :: Lens.Lens' SetLoadBalancerListenerSSLCertificateResponse Prelude.Int
= (SetLoadBalancerListenerSSLCertificateResponse -> Int)
-> (SetLoadBalancerListenerSSLCertificateResponse
-> Int -> SetLoadBalancerListenerSSLCertificateResponse)
-> Lens
SetLoadBalancerListenerSSLCertificateResponse
SetLoadBalancerListenerSSLCertificateResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SetLoadBalancerListenerSSLCertificateResponse' {Int
httpStatus :: Int
$sel:httpStatus:SetLoadBalancerListenerSSLCertificateResponse' :: SetLoadBalancerListenerSSLCertificateResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: SetLoadBalancerListenerSSLCertificateResponse
s@SetLoadBalancerListenerSSLCertificateResponse' {} Int
a -> SetLoadBalancerListenerSSLCertificateResponse
s {$sel:httpStatus:SetLoadBalancerListenerSSLCertificateResponse' :: Int
httpStatus = Int
a} :: SetLoadBalancerListenerSSLCertificateResponse)
instance
Prelude.NFData
SetLoadBalancerListenerSSLCertificateResponse