{-# 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.Greengrass.Types.GroupCertificateAuthorityProperties where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data GroupCertificateAuthorityProperties = GroupCertificateAuthorityProperties'
{
GroupCertificateAuthorityProperties -> Maybe Text
groupCertificateAuthorityArn :: Prelude.Maybe Prelude.Text,
GroupCertificateAuthorityProperties -> Maybe Text
groupCertificateAuthorityId :: Prelude.Maybe Prelude.Text
}
deriving (GroupCertificateAuthorityProperties
-> GroupCertificateAuthorityProperties -> Bool
(GroupCertificateAuthorityProperties
-> GroupCertificateAuthorityProperties -> Bool)
-> (GroupCertificateAuthorityProperties
-> GroupCertificateAuthorityProperties -> Bool)
-> Eq GroupCertificateAuthorityProperties
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GroupCertificateAuthorityProperties
-> GroupCertificateAuthorityProperties -> Bool
$c/= :: GroupCertificateAuthorityProperties
-> GroupCertificateAuthorityProperties -> Bool
== :: GroupCertificateAuthorityProperties
-> GroupCertificateAuthorityProperties -> Bool
$c== :: GroupCertificateAuthorityProperties
-> GroupCertificateAuthorityProperties -> Bool
Prelude.Eq, ReadPrec [GroupCertificateAuthorityProperties]
ReadPrec GroupCertificateAuthorityProperties
Int -> ReadS GroupCertificateAuthorityProperties
ReadS [GroupCertificateAuthorityProperties]
(Int -> ReadS GroupCertificateAuthorityProperties)
-> ReadS [GroupCertificateAuthorityProperties]
-> ReadPrec GroupCertificateAuthorityProperties
-> ReadPrec [GroupCertificateAuthorityProperties]
-> Read GroupCertificateAuthorityProperties
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GroupCertificateAuthorityProperties]
$creadListPrec :: ReadPrec [GroupCertificateAuthorityProperties]
readPrec :: ReadPrec GroupCertificateAuthorityProperties
$creadPrec :: ReadPrec GroupCertificateAuthorityProperties
readList :: ReadS [GroupCertificateAuthorityProperties]
$creadList :: ReadS [GroupCertificateAuthorityProperties]
readsPrec :: Int -> ReadS GroupCertificateAuthorityProperties
$creadsPrec :: Int -> ReadS GroupCertificateAuthorityProperties
Prelude.Read, Int -> GroupCertificateAuthorityProperties -> ShowS
[GroupCertificateAuthorityProperties] -> ShowS
GroupCertificateAuthorityProperties -> String
(Int -> GroupCertificateAuthorityProperties -> ShowS)
-> (GroupCertificateAuthorityProperties -> String)
-> ([GroupCertificateAuthorityProperties] -> ShowS)
-> Show GroupCertificateAuthorityProperties
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GroupCertificateAuthorityProperties] -> ShowS
$cshowList :: [GroupCertificateAuthorityProperties] -> ShowS
show :: GroupCertificateAuthorityProperties -> String
$cshow :: GroupCertificateAuthorityProperties -> String
showsPrec :: Int -> GroupCertificateAuthorityProperties -> ShowS
$cshowsPrec :: Int -> GroupCertificateAuthorityProperties -> ShowS
Prelude.Show, (forall x.
GroupCertificateAuthorityProperties
-> Rep GroupCertificateAuthorityProperties x)
-> (forall x.
Rep GroupCertificateAuthorityProperties x
-> GroupCertificateAuthorityProperties)
-> Generic GroupCertificateAuthorityProperties
forall x.
Rep GroupCertificateAuthorityProperties x
-> GroupCertificateAuthorityProperties
forall x.
GroupCertificateAuthorityProperties
-> Rep GroupCertificateAuthorityProperties x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GroupCertificateAuthorityProperties x
-> GroupCertificateAuthorityProperties
$cfrom :: forall x.
GroupCertificateAuthorityProperties
-> Rep GroupCertificateAuthorityProperties x
Prelude.Generic)
newGroupCertificateAuthorityProperties ::
GroupCertificateAuthorityProperties
newGroupCertificateAuthorityProperties :: GroupCertificateAuthorityProperties
newGroupCertificateAuthorityProperties =
GroupCertificateAuthorityProperties' :: Maybe Text -> Maybe Text -> GroupCertificateAuthorityProperties
GroupCertificateAuthorityProperties'
{ $sel:groupCertificateAuthorityArn:GroupCertificateAuthorityProperties' :: Maybe Text
groupCertificateAuthorityArn =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:groupCertificateAuthorityId:GroupCertificateAuthorityProperties' :: Maybe Text
groupCertificateAuthorityId =
Maybe Text
forall a. Maybe a
Prelude.Nothing
}
groupCertificateAuthorityProperties_groupCertificateAuthorityArn :: Lens.Lens' GroupCertificateAuthorityProperties (Prelude.Maybe Prelude.Text)
groupCertificateAuthorityProperties_groupCertificateAuthorityArn :: (Maybe Text -> f (Maybe Text))
-> GroupCertificateAuthorityProperties
-> f GroupCertificateAuthorityProperties
groupCertificateAuthorityProperties_groupCertificateAuthorityArn = (GroupCertificateAuthorityProperties -> Maybe Text)
-> (GroupCertificateAuthorityProperties
-> Maybe Text -> GroupCertificateAuthorityProperties)
-> Lens
GroupCertificateAuthorityProperties
GroupCertificateAuthorityProperties
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GroupCertificateAuthorityProperties' {Maybe Text
groupCertificateAuthorityArn :: Maybe Text
$sel:groupCertificateAuthorityArn:GroupCertificateAuthorityProperties' :: GroupCertificateAuthorityProperties -> Maybe Text
groupCertificateAuthorityArn} -> Maybe Text
groupCertificateAuthorityArn) (\s :: GroupCertificateAuthorityProperties
s@GroupCertificateAuthorityProperties' {} Maybe Text
a -> GroupCertificateAuthorityProperties
s {$sel:groupCertificateAuthorityArn:GroupCertificateAuthorityProperties' :: Maybe Text
groupCertificateAuthorityArn = Maybe Text
a} :: GroupCertificateAuthorityProperties)
groupCertificateAuthorityProperties_groupCertificateAuthorityId :: Lens.Lens' GroupCertificateAuthorityProperties (Prelude.Maybe Prelude.Text)
groupCertificateAuthorityProperties_groupCertificateAuthorityId :: (Maybe Text -> f (Maybe Text))
-> GroupCertificateAuthorityProperties
-> f GroupCertificateAuthorityProperties
groupCertificateAuthorityProperties_groupCertificateAuthorityId = (GroupCertificateAuthorityProperties -> Maybe Text)
-> (GroupCertificateAuthorityProperties
-> Maybe Text -> GroupCertificateAuthorityProperties)
-> Lens
GroupCertificateAuthorityProperties
GroupCertificateAuthorityProperties
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GroupCertificateAuthorityProperties' {Maybe Text
groupCertificateAuthorityId :: Maybe Text
$sel:groupCertificateAuthorityId:GroupCertificateAuthorityProperties' :: GroupCertificateAuthorityProperties -> Maybe Text
groupCertificateAuthorityId} -> Maybe Text
groupCertificateAuthorityId) (\s :: GroupCertificateAuthorityProperties
s@GroupCertificateAuthorityProperties' {} Maybe Text
a -> GroupCertificateAuthorityProperties
s {$sel:groupCertificateAuthorityId:GroupCertificateAuthorityProperties' :: Maybe Text
groupCertificateAuthorityId = Maybe Text
a} :: GroupCertificateAuthorityProperties)
instance
Core.FromJSON
GroupCertificateAuthorityProperties
where
parseJSON :: Value -> Parser GroupCertificateAuthorityProperties
parseJSON =
String
-> (Object -> Parser GroupCertificateAuthorityProperties)
-> Value
-> Parser GroupCertificateAuthorityProperties
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"GroupCertificateAuthorityProperties"
( \Object
x ->
Maybe Text -> Maybe Text -> GroupCertificateAuthorityProperties
GroupCertificateAuthorityProperties'
(Maybe Text -> Maybe Text -> GroupCertificateAuthorityProperties)
-> Parser (Maybe Text)
-> Parser (Maybe Text -> GroupCertificateAuthorityProperties)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"GroupCertificateAuthorityArn")
Parser (Maybe Text -> GroupCertificateAuthorityProperties)
-> Parser (Maybe Text)
-> Parser GroupCertificateAuthorityProperties
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"GroupCertificateAuthorityId")
)
instance
Prelude.Hashable
GroupCertificateAuthorityProperties
instance
Prelude.NFData
GroupCertificateAuthorityProperties