module Stratosphere.PCAConnectorAD.Connector (
module Exports, Connector(..), mkConnector
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.PCAConnectorAD.Connector.VpcInformationProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data Connector
=
Connector {Connector -> ()
haddock_workaround_ :: (),
Connector -> Value Text
certificateAuthorityArn :: (Value Prelude.Text),
Connector -> Value Text
directoryId :: (Value Prelude.Text),
Connector -> Maybe (Map Text (Value Text))
tags :: (Prelude.Maybe (Prelude.Map Prelude.Text (Value Prelude.Text))),
Connector -> VpcInformationProperty
vpcInformation :: VpcInformationProperty}
deriving stock (Connector -> Connector -> Bool
(Connector -> Connector -> Bool)
-> (Connector -> Connector -> Bool) -> Eq Connector
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: Connector -> Connector -> Bool
== :: Connector -> Connector -> Bool
$c/= :: Connector -> Connector -> Bool
/= :: Connector -> Connector -> Bool
Prelude.Eq, Int -> Connector -> ShowS
[Connector] -> ShowS
Connector -> String
(Int -> Connector -> ShowS)
-> (Connector -> String)
-> ([Connector] -> ShowS)
-> Show Connector
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> Connector -> ShowS
showsPrec :: Int -> Connector -> ShowS
$cshow :: Connector -> String
show :: Connector -> String
$cshowList :: [Connector] -> ShowS
showList :: [Connector] -> ShowS
Prelude.Show)
mkConnector ::
Value Prelude.Text
-> Value Prelude.Text -> VpcInformationProperty -> Connector
mkConnector :: Value Text -> Value Text -> VpcInformationProperty -> Connector
mkConnector Value Text
certificateAuthorityArn Value Text
directoryId VpcInformationProperty
vpcInformation
= Connector
{haddock_workaround_ :: ()
haddock_workaround_ = (),
certificateAuthorityArn :: Value Text
certificateAuthorityArn = Value Text
certificateAuthorityArn,
directoryId :: Value Text
directoryId = Value Text
directoryId, vpcInformation :: VpcInformationProperty
vpcInformation = VpcInformationProperty
vpcInformation,
tags :: Maybe (Map Text (Value Text))
tags = Maybe (Map Text (Value Text))
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties Connector where
toResourceProperties :: Connector -> ResourceProperties
toResourceProperties Connector {Maybe (Map Text (Value Text))
()
Value Text
VpcInformationProperty
haddock_workaround_ :: Connector -> ()
certificateAuthorityArn :: Connector -> Value Text
directoryId :: Connector -> Value Text
tags :: Connector -> Maybe (Map Text (Value Text))
vpcInformation :: Connector -> VpcInformationProperty
haddock_workaround_ :: ()
certificateAuthorityArn :: Value Text
directoryId :: Value Text
tags :: Maybe (Map Text (Value Text))
vpcInformation :: VpcInformationProperty
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::PCAConnectorAD::Connector",
supportsTags :: Bool
supportsTags = Bool
Prelude.True,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"CertificateAuthorityArn" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
certificateAuthorityArn,
Key
"DirectoryId" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
directoryId,
Key
"VpcInformation" Key -> VpcInformationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= VpcInformationProperty
vpcInformation]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes [Key -> Map Text (Value Text) -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" (Map Text (Value Text) -> (Key, Value))
-> Maybe (Map Text (Value Text)) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Map Text (Value Text))
tags]))}
instance JSON.ToJSON Connector where
toJSON :: Connector -> Value
toJSON Connector {Maybe (Map Text (Value Text))
()
Value Text
VpcInformationProperty
haddock_workaround_ :: Connector -> ()
certificateAuthorityArn :: Connector -> Value Text
directoryId :: Connector -> Value Text
tags :: Connector -> Maybe (Map Text (Value Text))
vpcInformation :: Connector -> VpcInformationProperty
haddock_workaround_ :: ()
certificateAuthorityArn :: Value Text
directoryId :: Value Text
tags :: Maybe (Map Text (Value Text))
vpcInformation :: VpcInformationProperty
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"CertificateAuthorityArn" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
certificateAuthorityArn,
Key
"DirectoryId" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
directoryId,
Key
"VpcInformation" Key -> VpcInformationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= VpcInformationProperty
vpcInformation]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes [Key -> Map Text (Value Text) -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" (Map Text (Value Text) -> (Key, Value))
-> Maybe (Map Text (Value Text)) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Map Text (Value Text))
tags])))
instance Property "CertificateAuthorityArn" Connector where
type PropertyType "CertificateAuthorityArn" Connector = Value Prelude.Text
set :: PropertyType "CertificateAuthorityArn" Connector
-> Connector -> Connector
set PropertyType "CertificateAuthorityArn" Connector
newValue Connector {Maybe (Map Text (Value Text))
()
Value Text
VpcInformationProperty
haddock_workaround_ :: Connector -> ()
certificateAuthorityArn :: Connector -> Value Text
directoryId :: Connector -> Value Text
tags :: Connector -> Maybe (Map Text (Value Text))
vpcInformation :: Connector -> VpcInformationProperty
haddock_workaround_ :: ()
certificateAuthorityArn :: Value Text
directoryId :: Value Text
tags :: Maybe (Map Text (Value Text))
vpcInformation :: VpcInformationProperty
..}
= Connector {certificateAuthorityArn :: Value Text
certificateAuthorityArn = PropertyType "CertificateAuthorityArn" Connector
Value Text
newValue, Maybe (Map Text (Value Text))
()
Value Text
VpcInformationProperty
haddock_workaround_ :: ()
directoryId :: Value Text
tags :: Maybe (Map Text (Value Text))
vpcInformation :: VpcInformationProperty
haddock_workaround_ :: ()
directoryId :: Value Text
tags :: Maybe (Map Text (Value Text))
vpcInformation :: VpcInformationProperty
..}
instance Property "DirectoryId" Connector where
type PropertyType "DirectoryId" Connector = Value Prelude.Text
set :: PropertyType "DirectoryId" Connector -> Connector -> Connector
set PropertyType "DirectoryId" Connector
newValue Connector {Maybe (Map Text (Value Text))
()
Value Text
VpcInformationProperty
haddock_workaround_ :: Connector -> ()
certificateAuthorityArn :: Connector -> Value Text
directoryId :: Connector -> Value Text
tags :: Connector -> Maybe (Map Text (Value Text))
vpcInformation :: Connector -> VpcInformationProperty
haddock_workaround_ :: ()
certificateAuthorityArn :: Value Text
directoryId :: Value Text
tags :: Maybe (Map Text (Value Text))
vpcInformation :: VpcInformationProperty
..}
= Connector {directoryId :: Value Text
directoryId = PropertyType "DirectoryId" Connector
Value Text
newValue, Maybe (Map Text (Value Text))
()
Value Text
VpcInformationProperty
haddock_workaround_ :: ()
certificateAuthorityArn :: Value Text
tags :: Maybe (Map Text (Value Text))
vpcInformation :: VpcInformationProperty
haddock_workaround_ :: ()
certificateAuthorityArn :: Value Text
tags :: Maybe (Map Text (Value Text))
vpcInformation :: VpcInformationProperty
..}
instance Property "Tags" Connector where
type PropertyType "Tags" Connector = Prelude.Map Prelude.Text (Value Prelude.Text)
set :: PropertyType "Tags" Connector -> Connector -> Connector
set PropertyType "Tags" Connector
newValue Connector {Maybe (Map Text (Value Text))
()
Value Text
VpcInformationProperty
haddock_workaround_ :: Connector -> ()
certificateAuthorityArn :: Connector -> Value Text
directoryId :: Connector -> Value Text
tags :: Connector -> Maybe (Map Text (Value Text))
vpcInformation :: Connector -> VpcInformationProperty
haddock_workaround_ :: ()
certificateAuthorityArn :: Value Text
directoryId :: Value Text
tags :: Maybe (Map Text (Value Text))
vpcInformation :: VpcInformationProperty
..}
= Connector {tags :: Maybe (Map Text (Value Text))
tags = Map Text (Value Text) -> Maybe (Map Text (Value Text))
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure Map Text (Value Text)
PropertyType "Tags" Connector
newValue, ()
Value Text
VpcInformationProperty
haddock_workaround_ :: ()
certificateAuthorityArn :: Value Text
directoryId :: Value Text
vpcInformation :: VpcInformationProperty
haddock_workaround_ :: ()
certificateAuthorityArn :: Value Text
directoryId :: Value Text
vpcInformation :: VpcInformationProperty
..}
instance Property "VpcInformation" Connector where
type PropertyType "VpcInformation" Connector = VpcInformationProperty
set :: PropertyType "VpcInformation" Connector -> Connector -> Connector
set PropertyType "VpcInformation" Connector
newValue Connector {Maybe (Map Text (Value Text))
()
Value Text
VpcInformationProperty
haddock_workaround_ :: Connector -> ()
certificateAuthorityArn :: Connector -> Value Text
directoryId :: Connector -> Value Text
tags :: Connector -> Maybe (Map Text (Value Text))
vpcInformation :: Connector -> VpcInformationProperty
haddock_workaround_ :: ()
certificateAuthorityArn :: Value Text
directoryId :: Value Text
tags :: Maybe (Map Text (Value Text))
vpcInformation :: VpcInformationProperty
..}
= Connector {vpcInformation :: VpcInformationProperty
vpcInformation = PropertyType "VpcInformation" Connector
VpcInformationProperty
newValue, Maybe (Map Text (Value Text))
()
Value Text
haddock_workaround_ :: ()
certificateAuthorityArn :: Value Text
directoryId :: Value Text
tags :: Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
certificateAuthorityArn :: Value Text
directoryId :: Value Text
tags :: Maybe (Map Text (Value Text))
..}