module Stratosphere.ECS.Service.ServiceConnectTlsCertificateAuthorityProperty (
ServiceConnectTlsCertificateAuthorityProperty(..),
mkServiceConnectTlsCertificateAuthorityProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ServiceConnectTlsCertificateAuthorityProperty
=
ServiceConnectTlsCertificateAuthorityProperty {ServiceConnectTlsCertificateAuthorityProperty -> ()
haddock_workaround_ :: (),
ServiceConnectTlsCertificateAuthorityProperty -> Maybe (Value Text)
awsPcaAuthorityArn :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (ServiceConnectTlsCertificateAuthorityProperty
-> ServiceConnectTlsCertificateAuthorityProperty -> Bool
(ServiceConnectTlsCertificateAuthorityProperty
-> ServiceConnectTlsCertificateAuthorityProperty -> Bool)
-> (ServiceConnectTlsCertificateAuthorityProperty
-> ServiceConnectTlsCertificateAuthorityProperty -> Bool)
-> Eq ServiceConnectTlsCertificateAuthorityProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ServiceConnectTlsCertificateAuthorityProperty
-> ServiceConnectTlsCertificateAuthorityProperty -> Bool
== :: ServiceConnectTlsCertificateAuthorityProperty
-> ServiceConnectTlsCertificateAuthorityProperty -> Bool
$c/= :: ServiceConnectTlsCertificateAuthorityProperty
-> ServiceConnectTlsCertificateAuthorityProperty -> Bool
/= :: ServiceConnectTlsCertificateAuthorityProperty
-> ServiceConnectTlsCertificateAuthorityProperty -> Bool
Prelude.Eq, Int -> ServiceConnectTlsCertificateAuthorityProperty -> ShowS
[ServiceConnectTlsCertificateAuthorityProperty] -> ShowS
ServiceConnectTlsCertificateAuthorityProperty -> String
(Int -> ServiceConnectTlsCertificateAuthorityProperty -> ShowS)
-> (ServiceConnectTlsCertificateAuthorityProperty -> String)
-> ([ServiceConnectTlsCertificateAuthorityProperty] -> ShowS)
-> Show ServiceConnectTlsCertificateAuthorityProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ServiceConnectTlsCertificateAuthorityProperty -> ShowS
showsPrec :: Int -> ServiceConnectTlsCertificateAuthorityProperty -> ShowS
$cshow :: ServiceConnectTlsCertificateAuthorityProperty -> String
show :: ServiceConnectTlsCertificateAuthorityProperty -> String
$cshowList :: [ServiceConnectTlsCertificateAuthorityProperty] -> ShowS
showList :: [ServiceConnectTlsCertificateAuthorityProperty] -> ShowS
Prelude.Show)
mkServiceConnectTlsCertificateAuthorityProperty ::
ServiceConnectTlsCertificateAuthorityProperty
mkServiceConnectTlsCertificateAuthorityProperty :: ServiceConnectTlsCertificateAuthorityProperty
mkServiceConnectTlsCertificateAuthorityProperty
= ServiceConnectTlsCertificateAuthorityProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), awsPcaAuthorityArn :: Maybe (Value Text)
awsPcaAuthorityArn = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ServiceConnectTlsCertificateAuthorityProperty where
toResourceProperties :: ServiceConnectTlsCertificateAuthorityProperty -> ResourceProperties
toResourceProperties
ServiceConnectTlsCertificateAuthorityProperty {Maybe (Value Text)
()
haddock_workaround_ :: ServiceConnectTlsCertificateAuthorityProperty -> ()
awsPcaAuthorityArn :: ServiceConnectTlsCertificateAuthorityProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
awsPcaAuthorityArn :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::ECS::Service.ServiceConnectTlsCertificateAuthority",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[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..=) Key
"AwsPcaAuthorityArn" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
awsPcaAuthorityArn])}
instance JSON.ToJSON ServiceConnectTlsCertificateAuthorityProperty where
toJSON :: ServiceConnectTlsCertificateAuthorityProperty -> Value
toJSON ServiceConnectTlsCertificateAuthorityProperty {Maybe (Value Text)
()
haddock_workaround_ :: ServiceConnectTlsCertificateAuthorityProperty -> ()
awsPcaAuthorityArn :: ServiceConnectTlsCertificateAuthorityProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
awsPcaAuthorityArn :: Maybe (Value Text)
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[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..=) Key
"AwsPcaAuthorityArn" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
awsPcaAuthorityArn]))
instance Property "AwsPcaAuthorityArn" ServiceConnectTlsCertificateAuthorityProperty where
type PropertyType "AwsPcaAuthorityArn" ServiceConnectTlsCertificateAuthorityProperty = Value Prelude.Text
set :: PropertyType
"AwsPcaAuthorityArn" ServiceConnectTlsCertificateAuthorityProperty
-> ServiceConnectTlsCertificateAuthorityProperty
-> ServiceConnectTlsCertificateAuthorityProperty
set PropertyType
"AwsPcaAuthorityArn" ServiceConnectTlsCertificateAuthorityProperty
newValue ServiceConnectTlsCertificateAuthorityProperty {Maybe (Value Text)
()
haddock_workaround_ :: ServiceConnectTlsCertificateAuthorityProperty -> ()
awsPcaAuthorityArn :: ServiceConnectTlsCertificateAuthorityProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
awsPcaAuthorityArn :: Maybe (Value Text)
..}
= ServiceConnectTlsCertificateAuthorityProperty
{awsPcaAuthorityArn :: Maybe (Value Text)
awsPcaAuthorityArn = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"AwsPcaAuthorityArn" ServiceConnectTlsCertificateAuthorityProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}