{-# 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.ELBV2.DescribeSSLPolicies
(
DescribeSSLPolicies (..),
newDescribeSSLPolicies,
describeSSLPolicies_loadBalancerType,
describeSSLPolicies_names,
describeSSLPolicies_marker,
describeSSLPolicies_pageSize,
DescribeSSLPoliciesResponse (..),
newDescribeSSLPoliciesResponse,
describeSSLPoliciesResponse_sslPolicies,
describeSSLPoliciesResponse_nextMarker,
describeSSLPoliciesResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.ELBV2.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 DescribeSSLPolicies = DescribeSSLPolicies'
{
DescribeSSLPolicies -> Maybe LoadBalancerTypeEnum
loadBalancerType :: Prelude.Maybe LoadBalancerTypeEnum,
DescribeSSLPolicies -> Maybe [Text]
names :: Prelude.Maybe [Prelude.Text],
DescribeSSLPolicies -> Maybe Text
marker :: Prelude.Maybe Prelude.Text,
DescribeSSLPolicies -> Maybe Natural
pageSize :: Prelude.Maybe Prelude.Natural
}
deriving (DescribeSSLPolicies -> DescribeSSLPolicies -> Bool
(DescribeSSLPolicies -> DescribeSSLPolicies -> Bool)
-> (DescribeSSLPolicies -> DescribeSSLPolicies -> Bool)
-> Eq DescribeSSLPolicies
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeSSLPolicies -> DescribeSSLPolicies -> Bool
$c/= :: DescribeSSLPolicies -> DescribeSSLPolicies -> Bool
== :: DescribeSSLPolicies -> DescribeSSLPolicies -> Bool
$c== :: DescribeSSLPolicies -> DescribeSSLPolicies -> Bool
Prelude.Eq, ReadPrec [DescribeSSLPolicies]
ReadPrec DescribeSSLPolicies
Int -> ReadS DescribeSSLPolicies
ReadS [DescribeSSLPolicies]
(Int -> ReadS DescribeSSLPolicies)
-> ReadS [DescribeSSLPolicies]
-> ReadPrec DescribeSSLPolicies
-> ReadPrec [DescribeSSLPolicies]
-> Read DescribeSSLPolicies
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeSSLPolicies]
$creadListPrec :: ReadPrec [DescribeSSLPolicies]
readPrec :: ReadPrec DescribeSSLPolicies
$creadPrec :: ReadPrec DescribeSSLPolicies
readList :: ReadS [DescribeSSLPolicies]
$creadList :: ReadS [DescribeSSLPolicies]
readsPrec :: Int -> ReadS DescribeSSLPolicies
$creadsPrec :: Int -> ReadS DescribeSSLPolicies
Prelude.Read, Int -> DescribeSSLPolicies -> ShowS
[DescribeSSLPolicies] -> ShowS
DescribeSSLPolicies -> String
(Int -> DescribeSSLPolicies -> ShowS)
-> (DescribeSSLPolicies -> String)
-> ([DescribeSSLPolicies] -> ShowS)
-> Show DescribeSSLPolicies
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeSSLPolicies] -> ShowS
$cshowList :: [DescribeSSLPolicies] -> ShowS
show :: DescribeSSLPolicies -> String
$cshow :: DescribeSSLPolicies -> String
showsPrec :: Int -> DescribeSSLPolicies -> ShowS
$cshowsPrec :: Int -> DescribeSSLPolicies -> ShowS
Prelude.Show, (forall x. DescribeSSLPolicies -> Rep DescribeSSLPolicies x)
-> (forall x. Rep DescribeSSLPolicies x -> DescribeSSLPolicies)
-> Generic DescribeSSLPolicies
forall x. Rep DescribeSSLPolicies x -> DescribeSSLPolicies
forall x. DescribeSSLPolicies -> Rep DescribeSSLPolicies x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeSSLPolicies x -> DescribeSSLPolicies
$cfrom :: forall x. DescribeSSLPolicies -> Rep DescribeSSLPolicies x
Prelude.Generic)
newDescribeSSLPolicies ::
DescribeSSLPolicies
newDescribeSSLPolicies :: DescribeSSLPolicies
newDescribeSSLPolicies =
DescribeSSLPolicies' :: Maybe LoadBalancerTypeEnum
-> Maybe [Text]
-> Maybe Text
-> Maybe Natural
-> DescribeSSLPolicies
DescribeSSLPolicies'
{ $sel:loadBalancerType:DescribeSSLPolicies' :: Maybe LoadBalancerTypeEnum
loadBalancerType =
Maybe LoadBalancerTypeEnum
forall a. Maybe a
Prelude.Nothing,
$sel:names:DescribeSSLPolicies' :: Maybe [Text]
names = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:marker:DescribeSSLPolicies' :: Maybe Text
marker = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:pageSize:DescribeSSLPolicies' :: Maybe Natural
pageSize = Maybe Natural
forall a. Maybe a
Prelude.Nothing
}
describeSSLPolicies_loadBalancerType :: Lens.Lens' DescribeSSLPolicies (Prelude.Maybe LoadBalancerTypeEnum)
describeSSLPolicies_loadBalancerType :: (Maybe LoadBalancerTypeEnum -> f (Maybe LoadBalancerTypeEnum))
-> DescribeSSLPolicies -> f DescribeSSLPolicies
describeSSLPolicies_loadBalancerType = (DescribeSSLPolicies -> Maybe LoadBalancerTypeEnum)
-> (DescribeSSLPolicies
-> Maybe LoadBalancerTypeEnum -> DescribeSSLPolicies)
-> Lens
DescribeSSLPolicies
DescribeSSLPolicies
(Maybe LoadBalancerTypeEnum)
(Maybe LoadBalancerTypeEnum)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeSSLPolicies' {Maybe LoadBalancerTypeEnum
loadBalancerType :: Maybe LoadBalancerTypeEnum
$sel:loadBalancerType:DescribeSSLPolicies' :: DescribeSSLPolicies -> Maybe LoadBalancerTypeEnum
loadBalancerType} -> Maybe LoadBalancerTypeEnum
loadBalancerType) (\s :: DescribeSSLPolicies
s@DescribeSSLPolicies' {} Maybe LoadBalancerTypeEnum
a -> DescribeSSLPolicies
s {$sel:loadBalancerType:DescribeSSLPolicies' :: Maybe LoadBalancerTypeEnum
loadBalancerType = Maybe LoadBalancerTypeEnum
a} :: DescribeSSLPolicies)
describeSSLPolicies_names :: Lens.Lens' DescribeSSLPolicies (Prelude.Maybe [Prelude.Text])
describeSSLPolicies_names :: (Maybe [Text] -> f (Maybe [Text]))
-> DescribeSSLPolicies -> f DescribeSSLPolicies
describeSSLPolicies_names = (DescribeSSLPolicies -> Maybe [Text])
-> (DescribeSSLPolicies -> Maybe [Text] -> DescribeSSLPolicies)
-> Lens
DescribeSSLPolicies
DescribeSSLPolicies
(Maybe [Text])
(Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeSSLPolicies' {Maybe [Text]
names :: Maybe [Text]
$sel:names:DescribeSSLPolicies' :: DescribeSSLPolicies -> Maybe [Text]
names} -> Maybe [Text]
names) (\s :: DescribeSSLPolicies
s@DescribeSSLPolicies' {} Maybe [Text]
a -> DescribeSSLPolicies
s {$sel:names:DescribeSSLPolicies' :: Maybe [Text]
names = Maybe [Text]
a} :: DescribeSSLPolicies) ((Maybe [Text] -> f (Maybe [Text]))
-> DescribeSSLPolicies -> f DescribeSSLPolicies)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> DescribeSSLPolicies
-> f DescribeSSLPolicies
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [Text])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describeSSLPolicies_marker :: Lens.Lens' DescribeSSLPolicies (Prelude.Maybe Prelude.Text)
describeSSLPolicies_marker :: (Maybe Text -> f (Maybe Text))
-> DescribeSSLPolicies -> f DescribeSSLPolicies
describeSSLPolicies_marker = (DescribeSSLPolicies -> Maybe Text)
-> (DescribeSSLPolicies -> Maybe Text -> DescribeSSLPolicies)
-> Lens
DescribeSSLPolicies DescribeSSLPolicies (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeSSLPolicies' {Maybe Text
marker :: Maybe Text
$sel:marker:DescribeSSLPolicies' :: DescribeSSLPolicies -> Maybe Text
marker} -> Maybe Text
marker) (\s :: DescribeSSLPolicies
s@DescribeSSLPolicies' {} Maybe Text
a -> DescribeSSLPolicies
s {$sel:marker:DescribeSSLPolicies' :: Maybe Text
marker = Maybe Text
a} :: DescribeSSLPolicies)
describeSSLPolicies_pageSize :: Lens.Lens' DescribeSSLPolicies (Prelude.Maybe Prelude.Natural)
describeSSLPolicies_pageSize :: (Maybe Natural -> f (Maybe Natural))
-> DescribeSSLPolicies -> f DescribeSSLPolicies
describeSSLPolicies_pageSize = (DescribeSSLPolicies -> Maybe Natural)
-> (DescribeSSLPolicies -> Maybe Natural -> DescribeSSLPolicies)
-> Lens
DescribeSSLPolicies
DescribeSSLPolicies
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeSSLPolicies' {Maybe Natural
pageSize :: Maybe Natural
$sel:pageSize:DescribeSSLPolicies' :: DescribeSSLPolicies -> Maybe Natural
pageSize} -> Maybe Natural
pageSize) (\s :: DescribeSSLPolicies
s@DescribeSSLPolicies' {} Maybe Natural
a -> DescribeSSLPolicies
s {$sel:pageSize:DescribeSSLPolicies' :: Maybe Natural
pageSize = Maybe Natural
a} :: DescribeSSLPolicies)
instance Core.AWSPager DescribeSSLPolicies where
page :: DescribeSSLPolicies
-> AWSResponse DescribeSSLPolicies -> Maybe DescribeSSLPolicies
page DescribeSSLPolicies
rq AWSResponse DescribeSSLPolicies
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse DescribeSSLPolicies
DescribeSSLPoliciesResponse
rs
DescribeSSLPoliciesResponse
-> Getting (First Text) DescribeSSLPoliciesResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeSSLPoliciesResponse
-> Const (First Text) DescribeSSLPoliciesResponse
Lens' DescribeSSLPoliciesResponse (Maybe Text)
describeSSLPoliciesResponse_nextMarker
((Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeSSLPoliciesResponse
-> Const (First Text) DescribeSSLPoliciesResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) DescribeSSLPoliciesResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe DescribeSSLPolicies
forall a. Maybe a
Prelude.Nothing
| Maybe [SslPolicy] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse DescribeSSLPolicies
DescribeSSLPoliciesResponse
rs
DescribeSSLPoliciesResponse
-> Getting
(First [SslPolicy]) DescribeSSLPoliciesResponse [SslPolicy]
-> Maybe [SslPolicy]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [SslPolicy]
-> Const (First [SslPolicy]) (Maybe [SslPolicy]))
-> DescribeSSLPoliciesResponse
-> Const (First [SslPolicy]) DescribeSSLPoliciesResponse
Lens' DescribeSSLPoliciesResponse (Maybe [SslPolicy])
describeSSLPoliciesResponse_sslPolicies
((Maybe [SslPolicy]
-> Const (First [SslPolicy]) (Maybe [SslPolicy]))
-> DescribeSSLPoliciesResponse
-> Const (First [SslPolicy]) DescribeSSLPoliciesResponse)
-> (([SslPolicy] -> Const (First [SslPolicy]) [SslPolicy])
-> Maybe [SslPolicy]
-> Const (First [SslPolicy]) (Maybe [SslPolicy]))
-> Getting
(First [SslPolicy]) DescribeSSLPoliciesResponse [SslPolicy]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([SslPolicy] -> Const (First [SslPolicy]) [SslPolicy])
-> Maybe [SslPolicy]
-> Const (First [SslPolicy]) (Maybe [SslPolicy])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe DescribeSSLPolicies
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
DescribeSSLPolicies -> Maybe DescribeSSLPolicies
forall a. a -> Maybe a
Prelude.Just (DescribeSSLPolicies -> Maybe DescribeSSLPolicies)
-> DescribeSSLPolicies -> Maybe DescribeSSLPolicies
forall a b. (a -> b) -> a -> b
Prelude.$
DescribeSSLPolicies
rq
DescribeSSLPolicies
-> (DescribeSSLPolicies -> DescribeSSLPolicies)
-> DescribeSSLPolicies
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> DescribeSSLPolicies -> Identity DescribeSSLPolicies
Lens
DescribeSSLPolicies DescribeSSLPolicies (Maybe Text) (Maybe Text)
describeSSLPolicies_marker
((Maybe Text -> Identity (Maybe Text))
-> DescribeSSLPolicies -> Identity DescribeSSLPolicies)
-> Maybe Text -> DescribeSSLPolicies -> DescribeSSLPolicies
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse DescribeSSLPolicies
DescribeSSLPoliciesResponse
rs
DescribeSSLPoliciesResponse
-> Getting (First Text) DescribeSSLPoliciesResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeSSLPoliciesResponse
-> Const (First Text) DescribeSSLPoliciesResponse
Lens' DescribeSSLPoliciesResponse (Maybe Text)
describeSSLPoliciesResponse_nextMarker
((Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeSSLPoliciesResponse
-> Const (First Text) DescribeSSLPoliciesResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) DescribeSSLPoliciesResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
instance Core.AWSRequest DescribeSSLPolicies where
type
AWSResponse DescribeSSLPolicies =
DescribeSSLPoliciesResponse
request :: DescribeSSLPolicies -> Request DescribeSSLPolicies
request = Service -> DescribeSSLPolicies -> Request DescribeSSLPolicies
forall a. ToRequest a => Service -> a -> Request a
Request.postQuery Service
defaultService
response :: Logger
-> Service
-> Proxy DescribeSSLPolicies
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeSSLPolicies)))
response =
Text
-> (Int
-> ResponseHeaders
-> [Node]
-> Either String (AWSResponse DescribeSSLPolicies))
-> Logger
-> Service
-> Proxy DescribeSSLPolicies
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeSSLPolicies)))
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
"DescribeSSLPoliciesResult"
( \Int
s ResponseHeaders
h [Node]
x ->
Maybe [SslPolicy]
-> Maybe Text -> Int -> DescribeSSLPoliciesResponse
DescribeSSLPoliciesResponse'
(Maybe [SslPolicy]
-> Maybe Text -> Int -> DescribeSSLPoliciesResponse)
-> Either String (Maybe [SslPolicy])
-> Either String (Maybe Text -> Int -> DescribeSSLPoliciesResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( [Node]
x [Node] -> Text -> Either String (Maybe [Node])
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"SslPolicies" Either String (Maybe [Node]) -> [Node] -> Either String [Node]
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ [Node]
forall a. Monoid a => a
Prelude.mempty
Either String [Node]
-> ([Node] -> Either String (Maybe [SslPolicy]))
-> Either String (Maybe [SslPolicy])
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
Prelude.>>= ([Node] -> Either String [SslPolicy])
-> [Node] -> Either String (Maybe [SslPolicy])
forall (f :: * -> *) a b.
Applicative f =>
([a] -> f b) -> [a] -> f (Maybe b)
Core.may (Text -> [Node] -> Either String [SslPolicy]
forall a. FromXML a => Text -> [Node] -> Either String [a]
Core.parseXMLList Text
"member")
)
Either String (Maybe Text -> Int -> DescribeSSLPoliciesResponse)
-> Either String (Maybe Text)
-> Either String (Int -> DescribeSSLPoliciesResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"NextMarker")
Either String (Int -> DescribeSSLPoliciesResponse)
-> Either String Int -> Either String DescribeSSLPoliciesResponse
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))
)
instance Prelude.Hashable DescribeSSLPolicies
instance Prelude.NFData DescribeSSLPolicies
instance Core.ToHeaders DescribeSSLPolicies where
toHeaders :: DescribeSSLPolicies -> ResponseHeaders
toHeaders = ResponseHeaders -> DescribeSSLPolicies -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty
instance Core.ToPath DescribeSSLPolicies where
toPath :: DescribeSSLPolicies -> ByteString
toPath = ByteString -> DescribeSSLPolicies -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery DescribeSSLPolicies where
toQuery :: DescribeSSLPolicies -> QueryString
toQuery DescribeSSLPolicies' {Maybe Natural
Maybe [Text]
Maybe Text
Maybe LoadBalancerTypeEnum
pageSize :: Maybe Natural
marker :: Maybe Text
names :: Maybe [Text]
loadBalancerType :: Maybe LoadBalancerTypeEnum
$sel:pageSize:DescribeSSLPolicies' :: DescribeSSLPolicies -> Maybe Natural
$sel:marker:DescribeSSLPolicies' :: DescribeSSLPolicies -> Maybe Text
$sel:names:DescribeSSLPolicies' :: DescribeSSLPolicies -> Maybe [Text]
$sel:loadBalancerType:DescribeSSLPolicies' :: DescribeSSLPolicies -> Maybe LoadBalancerTypeEnum
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"Action"
ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"DescribeSSLPolicies" :: Prelude.ByteString),
ByteString
"Version"
ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"2015-12-01" :: Prelude.ByteString),
ByteString
"LoadBalancerType" ByteString -> Maybe LoadBalancerTypeEnum -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe LoadBalancerTypeEnum
loadBalancerType,
ByteString
"Names"
ByteString -> QueryString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe QueryString -> QueryString
forall a. ToQuery a => a -> QueryString
Core.toQuery
(ByteString -> [Text] -> QueryString
forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Core.toQueryList ByteString
"member" ([Text] -> QueryString) -> Maybe [Text] -> Maybe QueryString
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Text]
names),
ByteString
"Marker" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
marker,
ByteString
"PageSize" ByteString -> Maybe Natural -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Natural
pageSize
]
data DescribeSSLPoliciesResponse = DescribeSSLPoliciesResponse'
{
DescribeSSLPoliciesResponse -> Maybe [SslPolicy]
sslPolicies :: Prelude.Maybe [SslPolicy],
DescribeSSLPoliciesResponse -> Maybe Text
nextMarker :: Prelude.Maybe Prelude.Text,
DescribeSSLPoliciesResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DescribeSSLPoliciesResponse -> DescribeSSLPoliciesResponse -> Bool
(DescribeSSLPoliciesResponse
-> DescribeSSLPoliciesResponse -> Bool)
-> (DescribeSSLPoliciesResponse
-> DescribeSSLPoliciesResponse -> Bool)
-> Eq DescribeSSLPoliciesResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeSSLPoliciesResponse -> DescribeSSLPoliciesResponse -> Bool
$c/= :: DescribeSSLPoliciesResponse -> DescribeSSLPoliciesResponse -> Bool
== :: DescribeSSLPoliciesResponse -> DescribeSSLPoliciesResponse -> Bool
$c== :: DescribeSSLPoliciesResponse -> DescribeSSLPoliciesResponse -> Bool
Prelude.Eq, ReadPrec [DescribeSSLPoliciesResponse]
ReadPrec DescribeSSLPoliciesResponse
Int -> ReadS DescribeSSLPoliciesResponse
ReadS [DescribeSSLPoliciesResponse]
(Int -> ReadS DescribeSSLPoliciesResponse)
-> ReadS [DescribeSSLPoliciesResponse]
-> ReadPrec DescribeSSLPoliciesResponse
-> ReadPrec [DescribeSSLPoliciesResponse]
-> Read DescribeSSLPoliciesResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeSSLPoliciesResponse]
$creadListPrec :: ReadPrec [DescribeSSLPoliciesResponse]
readPrec :: ReadPrec DescribeSSLPoliciesResponse
$creadPrec :: ReadPrec DescribeSSLPoliciesResponse
readList :: ReadS [DescribeSSLPoliciesResponse]
$creadList :: ReadS [DescribeSSLPoliciesResponse]
readsPrec :: Int -> ReadS DescribeSSLPoliciesResponse
$creadsPrec :: Int -> ReadS DescribeSSLPoliciesResponse
Prelude.Read, Int -> DescribeSSLPoliciesResponse -> ShowS
[DescribeSSLPoliciesResponse] -> ShowS
DescribeSSLPoliciesResponse -> String
(Int -> DescribeSSLPoliciesResponse -> ShowS)
-> (DescribeSSLPoliciesResponse -> String)
-> ([DescribeSSLPoliciesResponse] -> ShowS)
-> Show DescribeSSLPoliciesResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeSSLPoliciesResponse] -> ShowS
$cshowList :: [DescribeSSLPoliciesResponse] -> ShowS
show :: DescribeSSLPoliciesResponse -> String
$cshow :: DescribeSSLPoliciesResponse -> String
showsPrec :: Int -> DescribeSSLPoliciesResponse -> ShowS
$cshowsPrec :: Int -> DescribeSSLPoliciesResponse -> ShowS
Prelude.Show, (forall x.
DescribeSSLPoliciesResponse -> Rep DescribeSSLPoliciesResponse x)
-> (forall x.
Rep DescribeSSLPoliciesResponse x -> DescribeSSLPoliciesResponse)
-> Generic DescribeSSLPoliciesResponse
forall x.
Rep DescribeSSLPoliciesResponse x -> DescribeSSLPoliciesResponse
forall x.
DescribeSSLPoliciesResponse -> Rep DescribeSSLPoliciesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeSSLPoliciesResponse x -> DescribeSSLPoliciesResponse
$cfrom :: forall x.
DescribeSSLPoliciesResponse -> Rep DescribeSSLPoliciesResponse x
Prelude.Generic)
newDescribeSSLPoliciesResponse ::
Prelude.Int ->
DescribeSSLPoliciesResponse
newDescribeSSLPoliciesResponse :: Int -> DescribeSSLPoliciesResponse
newDescribeSSLPoliciesResponse Int
pHttpStatus_ =
DescribeSSLPoliciesResponse' :: Maybe [SslPolicy]
-> Maybe Text -> Int -> DescribeSSLPoliciesResponse
DescribeSSLPoliciesResponse'
{ $sel:sslPolicies:DescribeSSLPoliciesResponse' :: Maybe [SslPolicy]
sslPolicies =
Maybe [SslPolicy]
forall a. Maybe a
Prelude.Nothing,
$sel:nextMarker:DescribeSSLPoliciesResponse' :: Maybe Text
nextMarker = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeSSLPoliciesResponse' :: Int
httpStatus = Int
pHttpStatus_
}
describeSSLPoliciesResponse_sslPolicies :: Lens.Lens' DescribeSSLPoliciesResponse (Prelude.Maybe [SslPolicy])
describeSSLPoliciesResponse_sslPolicies :: (Maybe [SslPolicy] -> f (Maybe [SslPolicy]))
-> DescribeSSLPoliciesResponse -> f DescribeSSLPoliciesResponse
describeSSLPoliciesResponse_sslPolicies = (DescribeSSLPoliciesResponse -> Maybe [SslPolicy])
-> (DescribeSSLPoliciesResponse
-> Maybe [SslPolicy] -> DescribeSSLPoliciesResponse)
-> Lens' DescribeSSLPoliciesResponse (Maybe [SslPolicy])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeSSLPoliciesResponse' {Maybe [SslPolicy]
sslPolicies :: Maybe [SslPolicy]
$sel:sslPolicies:DescribeSSLPoliciesResponse' :: DescribeSSLPoliciesResponse -> Maybe [SslPolicy]
sslPolicies} -> Maybe [SslPolicy]
sslPolicies) (\s :: DescribeSSLPoliciesResponse
s@DescribeSSLPoliciesResponse' {} Maybe [SslPolicy]
a -> DescribeSSLPoliciesResponse
s {$sel:sslPolicies:DescribeSSLPoliciesResponse' :: Maybe [SslPolicy]
sslPolicies = Maybe [SslPolicy]
a} :: DescribeSSLPoliciesResponse) ((Maybe [SslPolicy] -> f (Maybe [SslPolicy]))
-> DescribeSSLPoliciesResponse -> f DescribeSSLPoliciesResponse)
-> ((Maybe [SslPolicy] -> f (Maybe [SslPolicy]))
-> Maybe [SslPolicy] -> f (Maybe [SslPolicy]))
-> (Maybe [SslPolicy] -> f (Maybe [SslPolicy]))
-> DescribeSSLPoliciesResponse
-> f DescribeSSLPoliciesResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [SslPolicy] [SslPolicy] [SslPolicy] [SslPolicy]
-> Iso
(Maybe [SslPolicy])
(Maybe [SslPolicy])
(Maybe [SslPolicy])
(Maybe [SslPolicy])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso [SslPolicy] [SslPolicy] [SslPolicy] [SslPolicy]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describeSSLPoliciesResponse_nextMarker :: Lens.Lens' DescribeSSLPoliciesResponse (Prelude.Maybe Prelude.Text)
describeSSLPoliciesResponse_nextMarker :: (Maybe Text -> f (Maybe Text))
-> DescribeSSLPoliciesResponse -> f DescribeSSLPoliciesResponse
describeSSLPoliciesResponse_nextMarker = (DescribeSSLPoliciesResponse -> Maybe Text)
-> (DescribeSSLPoliciesResponse
-> Maybe Text -> DescribeSSLPoliciesResponse)
-> Lens' DescribeSSLPoliciesResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeSSLPoliciesResponse' {Maybe Text
nextMarker :: Maybe Text
$sel:nextMarker:DescribeSSLPoliciesResponse' :: DescribeSSLPoliciesResponse -> Maybe Text
nextMarker} -> Maybe Text
nextMarker) (\s :: DescribeSSLPoliciesResponse
s@DescribeSSLPoliciesResponse' {} Maybe Text
a -> DescribeSSLPoliciesResponse
s {$sel:nextMarker:DescribeSSLPoliciesResponse' :: Maybe Text
nextMarker = Maybe Text
a} :: DescribeSSLPoliciesResponse)
describeSSLPoliciesResponse_httpStatus :: Lens.Lens' DescribeSSLPoliciesResponse Prelude.Int
describeSSLPoliciesResponse_httpStatus :: (Int -> f Int)
-> DescribeSSLPoliciesResponse -> f DescribeSSLPoliciesResponse
describeSSLPoliciesResponse_httpStatus = (DescribeSSLPoliciesResponse -> Int)
-> (DescribeSSLPoliciesResponse
-> Int -> DescribeSSLPoliciesResponse)
-> Lens
DescribeSSLPoliciesResponse DescribeSSLPoliciesResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeSSLPoliciesResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeSSLPoliciesResponse' :: DescribeSSLPoliciesResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeSSLPoliciesResponse
s@DescribeSSLPoliciesResponse' {} Int
a -> DescribeSSLPoliciesResponse
s {$sel:httpStatus:DescribeSSLPoliciesResponse' :: Int
httpStatus = Int
a} :: DescribeSSLPoliciesResponse)
instance Prelude.NFData DescribeSSLPoliciesResponse