module Stratosphere.GroundStation.MissionProfile.StreamsKmsKeyProperty (
        StreamsKmsKeyProperty(..), mkStreamsKmsKeyProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data StreamsKmsKeyProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-groundstation-missionprofile-streamskmskey.html>
    StreamsKmsKeyProperty {StreamsKmsKeyProperty -> ()
haddock_workaround_ :: (),
                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-groundstation-missionprofile-streamskmskey.html#cfn-groundstation-missionprofile-streamskmskey-kmsaliasarn>
                           StreamsKmsKeyProperty -> Maybe (Value Text)
kmsAliasArn :: (Prelude.Maybe (Value Prelude.Text)),
                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-groundstation-missionprofile-streamskmskey.html#cfn-groundstation-missionprofile-streamskmskey-kmsaliasname>
                           StreamsKmsKeyProperty -> Maybe (Value Text)
kmsAliasName :: (Prelude.Maybe (Value Prelude.Text)),
                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-groundstation-missionprofile-streamskmskey.html#cfn-groundstation-missionprofile-streamskmskey-kmskeyarn>
                           StreamsKmsKeyProperty -> Maybe (Value Text)
kmsKeyArn :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (StreamsKmsKeyProperty -> StreamsKmsKeyProperty -> Bool
(StreamsKmsKeyProperty -> StreamsKmsKeyProperty -> Bool)
-> (StreamsKmsKeyProperty -> StreamsKmsKeyProperty -> Bool)
-> Eq StreamsKmsKeyProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: StreamsKmsKeyProperty -> StreamsKmsKeyProperty -> Bool
== :: StreamsKmsKeyProperty -> StreamsKmsKeyProperty -> Bool
$c/= :: StreamsKmsKeyProperty -> StreamsKmsKeyProperty -> Bool
/= :: StreamsKmsKeyProperty -> StreamsKmsKeyProperty -> Bool
Prelude.Eq, Int -> StreamsKmsKeyProperty -> ShowS
[StreamsKmsKeyProperty] -> ShowS
StreamsKmsKeyProperty -> String
(Int -> StreamsKmsKeyProperty -> ShowS)
-> (StreamsKmsKeyProperty -> String)
-> ([StreamsKmsKeyProperty] -> ShowS)
-> Show StreamsKmsKeyProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> StreamsKmsKeyProperty -> ShowS
showsPrec :: Int -> StreamsKmsKeyProperty -> ShowS
$cshow :: StreamsKmsKeyProperty -> String
show :: StreamsKmsKeyProperty -> String
$cshowList :: [StreamsKmsKeyProperty] -> ShowS
showList :: [StreamsKmsKeyProperty] -> ShowS
Prelude.Show)
mkStreamsKmsKeyProperty :: StreamsKmsKeyProperty
mkStreamsKmsKeyProperty :: StreamsKmsKeyProperty
mkStreamsKmsKeyProperty
  = StreamsKmsKeyProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), kmsAliasArn :: Maybe (Value Text)
kmsAliasArn = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       kmsAliasName :: Maybe (Value Text)
kmsAliasName = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, kmsKeyArn :: Maybe (Value Text)
kmsKeyArn = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties StreamsKmsKeyProperty where
  toResourceProperties :: StreamsKmsKeyProperty -> ResourceProperties
toResourceProperties StreamsKmsKeyProperty {Maybe (Value Text)
()
haddock_workaround_ :: StreamsKmsKeyProperty -> ()
kmsAliasArn :: StreamsKmsKeyProperty -> Maybe (Value Text)
kmsAliasName :: StreamsKmsKeyProperty -> Maybe (Value Text)
kmsKeyArn :: StreamsKmsKeyProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
kmsAliasArn :: Maybe (Value Text)
kmsAliasName :: Maybe (Value Text)
kmsKeyArn :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::GroundStation::MissionProfile.StreamsKmsKey",
         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
"KmsAliasArn" (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)
kmsAliasArn,
                            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
"KmsAliasName" (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)
kmsAliasName,
                            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
"KmsKeyArn" (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)
kmsKeyArn])}
instance JSON.ToJSON StreamsKmsKeyProperty where
  toJSON :: StreamsKmsKeyProperty -> Value
toJSON StreamsKmsKeyProperty {Maybe (Value Text)
()
haddock_workaround_ :: StreamsKmsKeyProperty -> ()
kmsAliasArn :: StreamsKmsKeyProperty -> Maybe (Value Text)
kmsAliasName :: StreamsKmsKeyProperty -> Maybe (Value Text)
kmsKeyArn :: StreamsKmsKeyProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
kmsAliasArn :: Maybe (Value Text)
kmsAliasName :: Maybe (Value Text)
kmsKeyArn :: 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
"KmsAliasArn" (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)
kmsAliasArn,
               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
"KmsAliasName" (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)
kmsAliasName,
               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
"KmsKeyArn" (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)
kmsKeyArn]))
instance Property "KmsAliasArn" StreamsKmsKeyProperty where
  type PropertyType "KmsAliasArn" StreamsKmsKeyProperty = Value Prelude.Text
  set :: PropertyType "KmsAliasArn" StreamsKmsKeyProperty
-> StreamsKmsKeyProperty -> StreamsKmsKeyProperty
set PropertyType "KmsAliasArn" StreamsKmsKeyProperty
newValue StreamsKmsKeyProperty {Maybe (Value Text)
()
haddock_workaround_ :: StreamsKmsKeyProperty -> ()
kmsAliasArn :: StreamsKmsKeyProperty -> Maybe (Value Text)
kmsAliasName :: StreamsKmsKeyProperty -> Maybe (Value Text)
kmsKeyArn :: StreamsKmsKeyProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
kmsAliasArn :: Maybe (Value Text)
kmsAliasName :: Maybe (Value Text)
kmsKeyArn :: Maybe (Value Text)
..}
    = StreamsKmsKeyProperty {kmsAliasArn :: Maybe (Value Text)
kmsAliasArn = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "KmsAliasArn" StreamsKmsKeyProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
kmsAliasName :: Maybe (Value Text)
kmsKeyArn :: Maybe (Value Text)
haddock_workaround_ :: ()
kmsAliasName :: Maybe (Value Text)
kmsKeyArn :: Maybe (Value Text)
..}
instance Property "KmsAliasName" StreamsKmsKeyProperty where
  type PropertyType "KmsAliasName" StreamsKmsKeyProperty = Value Prelude.Text
  set :: PropertyType "KmsAliasName" StreamsKmsKeyProperty
-> StreamsKmsKeyProperty -> StreamsKmsKeyProperty
set PropertyType "KmsAliasName" StreamsKmsKeyProperty
newValue StreamsKmsKeyProperty {Maybe (Value Text)
()
haddock_workaround_ :: StreamsKmsKeyProperty -> ()
kmsAliasArn :: StreamsKmsKeyProperty -> Maybe (Value Text)
kmsAliasName :: StreamsKmsKeyProperty -> Maybe (Value Text)
kmsKeyArn :: StreamsKmsKeyProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
kmsAliasArn :: Maybe (Value Text)
kmsAliasName :: Maybe (Value Text)
kmsKeyArn :: Maybe (Value Text)
..}
    = StreamsKmsKeyProperty {kmsAliasName :: Maybe (Value Text)
kmsAliasName = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "KmsAliasName" StreamsKmsKeyProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
kmsAliasArn :: Maybe (Value Text)
kmsKeyArn :: Maybe (Value Text)
haddock_workaround_ :: ()
kmsAliasArn :: Maybe (Value Text)
kmsKeyArn :: Maybe (Value Text)
..}
instance Property "KmsKeyArn" StreamsKmsKeyProperty where
  type PropertyType "KmsKeyArn" StreamsKmsKeyProperty = Value Prelude.Text
  set :: PropertyType "KmsKeyArn" StreamsKmsKeyProperty
-> StreamsKmsKeyProperty -> StreamsKmsKeyProperty
set PropertyType "KmsKeyArn" StreamsKmsKeyProperty
newValue StreamsKmsKeyProperty {Maybe (Value Text)
()
haddock_workaround_ :: StreamsKmsKeyProperty -> ()
kmsAliasArn :: StreamsKmsKeyProperty -> Maybe (Value Text)
kmsAliasName :: StreamsKmsKeyProperty -> Maybe (Value Text)
kmsKeyArn :: StreamsKmsKeyProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
kmsAliasArn :: Maybe (Value Text)
kmsAliasName :: Maybe (Value Text)
kmsKeyArn :: Maybe (Value Text)
..}
    = StreamsKmsKeyProperty {kmsKeyArn :: Maybe (Value Text)
kmsKeyArn = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "KmsKeyArn" StreamsKmsKeyProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
kmsAliasArn :: Maybe (Value Text)
kmsAliasName :: Maybe (Value Text)
haddock_workaround_ :: ()
kmsAliasArn :: Maybe (Value Text)
kmsAliasName :: Maybe (Value Text)
..}