{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.AppMesh.Types.VirtualGatewayTlsValidationContextAcmTrust where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data VirtualGatewayTlsValidationContextAcmTrust = VirtualGatewayTlsValidationContextAcmTrust'
{
VirtualGatewayTlsValidationContextAcmTrust -> NonEmpty Text
certificateAuthorityArns :: Prelude.NonEmpty Prelude.Text
}
deriving (VirtualGatewayTlsValidationContextAcmTrust
-> VirtualGatewayTlsValidationContextAcmTrust -> Bool
(VirtualGatewayTlsValidationContextAcmTrust
-> VirtualGatewayTlsValidationContextAcmTrust -> Bool)
-> (VirtualGatewayTlsValidationContextAcmTrust
-> VirtualGatewayTlsValidationContextAcmTrust -> Bool)
-> Eq VirtualGatewayTlsValidationContextAcmTrust
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: VirtualGatewayTlsValidationContextAcmTrust
-> VirtualGatewayTlsValidationContextAcmTrust -> Bool
$c/= :: VirtualGatewayTlsValidationContextAcmTrust
-> VirtualGatewayTlsValidationContextAcmTrust -> Bool
== :: VirtualGatewayTlsValidationContextAcmTrust
-> VirtualGatewayTlsValidationContextAcmTrust -> Bool
$c== :: VirtualGatewayTlsValidationContextAcmTrust
-> VirtualGatewayTlsValidationContextAcmTrust -> Bool
Prelude.Eq, ReadPrec [VirtualGatewayTlsValidationContextAcmTrust]
ReadPrec VirtualGatewayTlsValidationContextAcmTrust
Int -> ReadS VirtualGatewayTlsValidationContextAcmTrust
ReadS [VirtualGatewayTlsValidationContextAcmTrust]
(Int -> ReadS VirtualGatewayTlsValidationContextAcmTrust)
-> ReadS [VirtualGatewayTlsValidationContextAcmTrust]
-> ReadPrec VirtualGatewayTlsValidationContextAcmTrust
-> ReadPrec [VirtualGatewayTlsValidationContextAcmTrust]
-> Read VirtualGatewayTlsValidationContextAcmTrust
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [VirtualGatewayTlsValidationContextAcmTrust]
$creadListPrec :: ReadPrec [VirtualGatewayTlsValidationContextAcmTrust]
readPrec :: ReadPrec VirtualGatewayTlsValidationContextAcmTrust
$creadPrec :: ReadPrec VirtualGatewayTlsValidationContextAcmTrust
readList :: ReadS [VirtualGatewayTlsValidationContextAcmTrust]
$creadList :: ReadS [VirtualGatewayTlsValidationContextAcmTrust]
readsPrec :: Int -> ReadS VirtualGatewayTlsValidationContextAcmTrust
$creadsPrec :: Int -> ReadS VirtualGatewayTlsValidationContextAcmTrust
Prelude.Read, Int -> VirtualGatewayTlsValidationContextAcmTrust -> ShowS
[VirtualGatewayTlsValidationContextAcmTrust] -> ShowS
VirtualGatewayTlsValidationContextAcmTrust -> String
(Int -> VirtualGatewayTlsValidationContextAcmTrust -> ShowS)
-> (VirtualGatewayTlsValidationContextAcmTrust -> String)
-> ([VirtualGatewayTlsValidationContextAcmTrust] -> ShowS)
-> Show VirtualGatewayTlsValidationContextAcmTrust
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [VirtualGatewayTlsValidationContextAcmTrust] -> ShowS
$cshowList :: [VirtualGatewayTlsValidationContextAcmTrust] -> ShowS
show :: VirtualGatewayTlsValidationContextAcmTrust -> String
$cshow :: VirtualGatewayTlsValidationContextAcmTrust -> String
showsPrec :: Int -> VirtualGatewayTlsValidationContextAcmTrust -> ShowS
$cshowsPrec :: Int -> VirtualGatewayTlsValidationContextAcmTrust -> ShowS
Prelude.Show, (forall x.
VirtualGatewayTlsValidationContextAcmTrust
-> Rep VirtualGatewayTlsValidationContextAcmTrust x)
-> (forall x.
Rep VirtualGatewayTlsValidationContextAcmTrust x
-> VirtualGatewayTlsValidationContextAcmTrust)
-> Generic VirtualGatewayTlsValidationContextAcmTrust
forall x.
Rep VirtualGatewayTlsValidationContextAcmTrust x
-> VirtualGatewayTlsValidationContextAcmTrust
forall x.
VirtualGatewayTlsValidationContextAcmTrust
-> Rep VirtualGatewayTlsValidationContextAcmTrust x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep VirtualGatewayTlsValidationContextAcmTrust x
-> VirtualGatewayTlsValidationContextAcmTrust
$cfrom :: forall x.
VirtualGatewayTlsValidationContextAcmTrust
-> Rep VirtualGatewayTlsValidationContextAcmTrust x
Prelude.Generic)
newVirtualGatewayTlsValidationContextAcmTrust ::
Prelude.NonEmpty Prelude.Text ->
VirtualGatewayTlsValidationContextAcmTrust
newVirtualGatewayTlsValidationContextAcmTrust :: NonEmpty Text -> VirtualGatewayTlsValidationContextAcmTrust
newVirtualGatewayTlsValidationContextAcmTrust
NonEmpty Text
pCertificateAuthorityArns_ =
VirtualGatewayTlsValidationContextAcmTrust' :: NonEmpty Text -> VirtualGatewayTlsValidationContextAcmTrust
VirtualGatewayTlsValidationContextAcmTrust'
{ $sel:certificateAuthorityArns:VirtualGatewayTlsValidationContextAcmTrust' :: NonEmpty Text
certificateAuthorityArns =
Tagged (NonEmpty Text) (Identity (NonEmpty Text))
-> Tagged (NonEmpty Text) (Identity (NonEmpty Text))
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
(Tagged (NonEmpty Text) (Identity (NonEmpty Text))
-> Tagged (NonEmpty Text) (Identity (NonEmpty Text)))
-> NonEmpty Text -> NonEmpty Text
forall t b. AReview t b -> b -> t
Lens.# NonEmpty Text
pCertificateAuthorityArns_
}
virtualGatewayTlsValidationContextAcmTrust_certificateAuthorityArns :: Lens.Lens' VirtualGatewayTlsValidationContextAcmTrust (Prelude.NonEmpty Prelude.Text)
virtualGatewayTlsValidationContextAcmTrust_certificateAuthorityArns :: (NonEmpty Text -> f (NonEmpty Text))
-> VirtualGatewayTlsValidationContextAcmTrust
-> f VirtualGatewayTlsValidationContextAcmTrust
virtualGatewayTlsValidationContextAcmTrust_certificateAuthorityArns = (VirtualGatewayTlsValidationContextAcmTrust -> NonEmpty Text)
-> (VirtualGatewayTlsValidationContextAcmTrust
-> NonEmpty Text -> VirtualGatewayTlsValidationContextAcmTrust)
-> Lens
VirtualGatewayTlsValidationContextAcmTrust
VirtualGatewayTlsValidationContextAcmTrust
(NonEmpty Text)
(NonEmpty Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\VirtualGatewayTlsValidationContextAcmTrust' {NonEmpty Text
certificateAuthorityArns :: NonEmpty Text
$sel:certificateAuthorityArns:VirtualGatewayTlsValidationContextAcmTrust' :: VirtualGatewayTlsValidationContextAcmTrust -> NonEmpty Text
certificateAuthorityArns} -> NonEmpty Text
certificateAuthorityArns) (\s :: VirtualGatewayTlsValidationContextAcmTrust
s@VirtualGatewayTlsValidationContextAcmTrust' {} NonEmpty Text
a -> VirtualGatewayTlsValidationContextAcmTrust
s {$sel:certificateAuthorityArns:VirtualGatewayTlsValidationContextAcmTrust' :: NonEmpty Text
certificateAuthorityArns = NonEmpty Text
a} :: VirtualGatewayTlsValidationContextAcmTrust) ((NonEmpty Text -> f (NonEmpty Text))
-> VirtualGatewayTlsValidationContextAcmTrust
-> f VirtualGatewayTlsValidationContextAcmTrust)
-> ((NonEmpty Text -> f (NonEmpty Text))
-> NonEmpty Text -> f (NonEmpty Text))
-> (NonEmpty Text -> f (NonEmpty Text))
-> VirtualGatewayTlsValidationContextAcmTrust
-> f VirtualGatewayTlsValidationContextAcmTrust
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (NonEmpty Text -> f (NonEmpty Text))
-> NonEmpty Text -> f (NonEmpty Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instance
Core.FromJSON
VirtualGatewayTlsValidationContextAcmTrust
where
parseJSON :: Value -> Parser VirtualGatewayTlsValidationContextAcmTrust
parseJSON =
String
-> (Object -> Parser VirtualGatewayTlsValidationContextAcmTrust)
-> Value
-> Parser VirtualGatewayTlsValidationContextAcmTrust
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"VirtualGatewayTlsValidationContextAcmTrust"
( \Object
x ->
NonEmpty Text -> VirtualGatewayTlsValidationContextAcmTrust
VirtualGatewayTlsValidationContextAcmTrust'
(NonEmpty Text -> VirtualGatewayTlsValidationContextAcmTrust)
-> Parser (NonEmpty Text)
-> Parser VirtualGatewayTlsValidationContextAcmTrust
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (NonEmpty Text)
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"certificateAuthorityArns")
)
instance
Prelude.Hashable
VirtualGatewayTlsValidationContextAcmTrust
instance
Prelude.NFData
VirtualGatewayTlsValidationContextAcmTrust
instance
Core.ToJSON
VirtualGatewayTlsValidationContextAcmTrust
where
toJSON :: VirtualGatewayTlsValidationContextAcmTrust -> Value
toJSON
VirtualGatewayTlsValidationContextAcmTrust' {NonEmpty Text
certificateAuthorityArns :: NonEmpty Text
$sel:certificateAuthorityArns:VirtualGatewayTlsValidationContextAcmTrust' :: VirtualGatewayTlsValidationContextAcmTrust -> NonEmpty 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
"certificateAuthorityArns"
Text -> NonEmpty Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= NonEmpty Text
certificateAuthorityArns
)
]
)