module Stratosphere.ECS.Service.ServiceConnectTlsConfigurationProperty (
module Exports, ServiceConnectTlsConfigurationProperty(..),
mkServiceConnectTlsConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.ECS.Service.ServiceConnectTlsCertificateAuthorityProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ServiceConnectTlsConfigurationProperty
=
ServiceConnectTlsConfigurationProperty {ServiceConnectTlsConfigurationProperty -> ()
haddock_workaround_ :: (),
ServiceConnectTlsConfigurationProperty
-> ServiceConnectTlsCertificateAuthorityProperty
issuerCertificateAuthority :: ServiceConnectTlsCertificateAuthorityProperty,
ServiceConnectTlsConfigurationProperty -> Maybe (Value Text)
kmsKey :: (Prelude.Maybe (Value Prelude.Text)),
ServiceConnectTlsConfigurationProperty -> Maybe (Value Text)
roleArn :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (ServiceConnectTlsConfigurationProperty
-> ServiceConnectTlsConfigurationProperty -> Bool
(ServiceConnectTlsConfigurationProperty
-> ServiceConnectTlsConfigurationProperty -> Bool)
-> (ServiceConnectTlsConfigurationProperty
-> ServiceConnectTlsConfigurationProperty -> Bool)
-> Eq ServiceConnectTlsConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ServiceConnectTlsConfigurationProperty
-> ServiceConnectTlsConfigurationProperty -> Bool
== :: ServiceConnectTlsConfigurationProperty
-> ServiceConnectTlsConfigurationProperty -> Bool
$c/= :: ServiceConnectTlsConfigurationProperty
-> ServiceConnectTlsConfigurationProperty -> Bool
/= :: ServiceConnectTlsConfigurationProperty
-> ServiceConnectTlsConfigurationProperty -> Bool
Prelude.Eq, Int -> ServiceConnectTlsConfigurationProperty -> ShowS
[ServiceConnectTlsConfigurationProperty] -> ShowS
ServiceConnectTlsConfigurationProperty -> String
(Int -> ServiceConnectTlsConfigurationProperty -> ShowS)
-> (ServiceConnectTlsConfigurationProperty -> String)
-> ([ServiceConnectTlsConfigurationProperty] -> ShowS)
-> Show ServiceConnectTlsConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ServiceConnectTlsConfigurationProperty -> ShowS
showsPrec :: Int -> ServiceConnectTlsConfigurationProperty -> ShowS
$cshow :: ServiceConnectTlsConfigurationProperty -> String
show :: ServiceConnectTlsConfigurationProperty -> String
$cshowList :: [ServiceConnectTlsConfigurationProperty] -> ShowS
showList :: [ServiceConnectTlsConfigurationProperty] -> ShowS
Prelude.Show)
mkServiceConnectTlsConfigurationProperty ::
ServiceConnectTlsCertificateAuthorityProperty
-> ServiceConnectTlsConfigurationProperty
mkServiceConnectTlsConfigurationProperty :: ServiceConnectTlsCertificateAuthorityProperty
-> ServiceConnectTlsConfigurationProperty
mkServiceConnectTlsConfigurationProperty ServiceConnectTlsCertificateAuthorityProperty
issuerCertificateAuthority
= ServiceConnectTlsConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (),
issuerCertificateAuthority :: ServiceConnectTlsCertificateAuthorityProperty
issuerCertificateAuthority = ServiceConnectTlsCertificateAuthorityProperty
issuerCertificateAuthority,
kmsKey :: Maybe (Value Text)
kmsKey = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, roleArn :: Maybe (Value Text)
roleArn = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ServiceConnectTlsConfigurationProperty where
toResourceProperties :: ServiceConnectTlsConfigurationProperty -> ResourceProperties
toResourceProperties ServiceConnectTlsConfigurationProperty {Maybe (Value Text)
()
ServiceConnectTlsCertificateAuthorityProperty
haddock_workaround_ :: ServiceConnectTlsConfigurationProperty -> ()
issuerCertificateAuthority :: ServiceConnectTlsConfigurationProperty
-> ServiceConnectTlsCertificateAuthorityProperty
kmsKey :: ServiceConnectTlsConfigurationProperty -> Maybe (Value Text)
roleArn :: ServiceConnectTlsConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
issuerCertificateAuthority :: ServiceConnectTlsCertificateAuthorityProperty
kmsKey :: Maybe (Value Text)
roleArn :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::ECS::Service.ServiceConnectTlsConfiguration",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
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
"IssuerCertificateAuthority" Key
-> ServiceConnectTlsCertificateAuthorityProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= ServiceConnectTlsCertificateAuthorityProperty
issuerCertificateAuthority]
([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
"KmsKey" (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)
kmsKey,
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
"RoleArn" (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)
roleArn]))}
instance JSON.ToJSON ServiceConnectTlsConfigurationProperty where
toJSON :: ServiceConnectTlsConfigurationProperty -> Value
toJSON ServiceConnectTlsConfigurationProperty {Maybe (Value Text)
()
ServiceConnectTlsCertificateAuthorityProperty
haddock_workaround_ :: ServiceConnectTlsConfigurationProperty -> ()
issuerCertificateAuthority :: ServiceConnectTlsConfigurationProperty
-> ServiceConnectTlsCertificateAuthorityProperty
kmsKey :: ServiceConnectTlsConfigurationProperty -> Maybe (Value Text)
roleArn :: ServiceConnectTlsConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
issuerCertificateAuthority :: ServiceConnectTlsCertificateAuthorityProperty
kmsKey :: Maybe (Value Text)
roleArn :: Maybe (Value Text)
..}
= [(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
"IssuerCertificateAuthority" Key
-> ServiceConnectTlsCertificateAuthorityProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= ServiceConnectTlsCertificateAuthorityProperty
issuerCertificateAuthority]
([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
"KmsKey" (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)
kmsKey,
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
"RoleArn" (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)
roleArn])))
instance Property "IssuerCertificateAuthority" ServiceConnectTlsConfigurationProperty where
type PropertyType "IssuerCertificateAuthority" ServiceConnectTlsConfigurationProperty = ServiceConnectTlsCertificateAuthorityProperty
set :: PropertyType
"IssuerCertificateAuthority" ServiceConnectTlsConfigurationProperty
-> ServiceConnectTlsConfigurationProperty
-> ServiceConnectTlsConfigurationProperty
set PropertyType
"IssuerCertificateAuthority" ServiceConnectTlsConfigurationProperty
newValue ServiceConnectTlsConfigurationProperty {Maybe (Value Text)
()
ServiceConnectTlsCertificateAuthorityProperty
haddock_workaround_ :: ServiceConnectTlsConfigurationProperty -> ()
issuerCertificateAuthority :: ServiceConnectTlsConfigurationProperty
-> ServiceConnectTlsCertificateAuthorityProperty
kmsKey :: ServiceConnectTlsConfigurationProperty -> Maybe (Value Text)
roleArn :: ServiceConnectTlsConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
issuerCertificateAuthority :: ServiceConnectTlsCertificateAuthorityProperty
kmsKey :: Maybe (Value Text)
roleArn :: Maybe (Value Text)
..}
= ServiceConnectTlsConfigurationProperty
{issuerCertificateAuthority :: ServiceConnectTlsCertificateAuthorityProperty
issuerCertificateAuthority = PropertyType
"IssuerCertificateAuthority" ServiceConnectTlsConfigurationProperty
ServiceConnectTlsCertificateAuthorityProperty
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
kmsKey :: Maybe (Value Text)
roleArn :: Maybe (Value Text)
haddock_workaround_ :: ()
kmsKey :: Maybe (Value Text)
roleArn :: Maybe (Value Text)
..}
instance Property "KmsKey" ServiceConnectTlsConfigurationProperty where
type PropertyType "KmsKey" ServiceConnectTlsConfigurationProperty = Value Prelude.Text
set :: PropertyType "KmsKey" ServiceConnectTlsConfigurationProperty
-> ServiceConnectTlsConfigurationProperty
-> ServiceConnectTlsConfigurationProperty
set PropertyType "KmsKey" ServiceConnectTlsConfigurationProperty
newValue ServiceConnectTlsConfigurationProperty {Maybe (Value Text)
()
ServiceConnectTlsCertificateAuthorityProperty
haddock_workaround_ :: ServiceConnectTlsConfigurationProperty -> ()
issuerCertificateAuthority :: ServiceConnectTlsConfigurationProperty
-> ServiceConnectTlsCertificateAuthorityProperty
kmsKey :: ServiceConnectTlsConfigurationProperty -> Maybe (Value Text)
roleArn :: ServiceConnectTlsConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
issuerCertificateAuthority :: ServiceConnectTlsCertificateAuthorityProperty
kmsKey :: Maybe (Value Text)
roleArn :: Maybe (Value Text)
..}
= ServiceConnectTlsConfigurationProperty
{kmsKey :: Maybe (Value Text)
kmsKey = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "KmsKey" ServiceConnectTlsConfigurationProperty
Value Text
newValue, Maybe (Value Text)
()
ServiceConnectTlsCertificateAuthorityProperty
haddock_workaround_ :: ()
issuerCertificateAuthority :: ServiceConnectTlsCertificateAuthorityProperty
roleArn :: Maybe (Value Text)
haddock_workaround_ :: ()
issuerCertificateAuthority :: ServiceConnectTlsCertificateAuthorityProperty
roleArn :: Maybe (Value Text)
..}
instance Property "RoleArn" ServiceConnectTlsConfigurationProperty where
type PropertyType "RoleArn" ServiceConnectTlsConfigurationProperty = Value Prelude.Text
set :: PropertyType "RoleArn" ServiceConnectTlsConfigurationProperty
-> ServiceConnectTlsConfigurationProperty
-> ServiceConnectTlsConfigurationProperty
set PropertyType "RoleArn" ServiceConnectTlsConfigurationProperty
newValue ServiceConnectTlsConfigurationProperty {Maybe (Value Text)
()
ServiceConnectTlsCertificateAuthorityProperty
haddock_workaround_ :: ServiceConnectTlsConfigurationProperty -> ()
issuerCertificateAuthority :: ServiceConnectTlsConfigurationProperty
-> ServiceConnectTlsCertificateAuthorityProperty
kmsKey :: ServiceConnectTlsConfigurationProperty -> Maybe (Value Text)
roleArn :: ServiceConnectTlsConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
issuerCertificateAuthority :: ServiceConnectTlsCertificateAuthorityProperty
kmsKey :: Maybe (Value Text)
roleArn :: Maybe (Value Text)
..}
= ServiceConnectTlsConfigurationProperty
{roleArn :: Maybe (Value Text)
roleArn = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "RoleArn" ServiceConnectTlsConfigurationProperty
Value Text
newValue, Maybe (Value Text)
()
ServiceConnectTlsCertificateAuthorityProperty
haddock_workaround_ :: ()
issuerCertificateAuthority :: ServiceConnectTlsCertificateAuthorityProperty
kmsKey :: Maybe (Value Text)
haddock_workaround_ :: ()
issuerCertificateAuthority :: ServiceConnectTlsCertificateAuthorityProperty
kmsKey :: Maybe (Value Text)
..}