module Stratosphere.AppRunner.Service.ImageRepositoryProperty (
        module Exports, ImageRepositoryProperty(..),
        mkImageRepositoryProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.AppRunner.Service.ImageConfigurationProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ImageRepositoryProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apprunner-service-imagerepository.html>
    ImageRepositoryProperty {ImageRepositoryProperty -> ()
haddock_workaround_ :: (),
                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apprunner-service-imagerepository.html#cfn-apprunner-service-imagerepository-imageconfiguration>
                             ImageRepositoryProperty -> Maybe ImageConfigurationProperty
imageConfiguration :: (Prelude.Maybe ImageConfigurationProperty),
                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apprunner-service-imagerepository.html#cfn-apprunner-service-imagerepository-imageidentifier>
                             ImageRepositoryProperty -> Value Text
imageIdentifier :: (Value Prelude.Text),
                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apprunner-service-imagerepository.html#cfn-apprunner-service-imagerepository-imagerepositorytype>
                             ImageRepositoryProperty -> Value Text
imageRepositoryType :: (Value Prelude.Text)}
  deriving stock (ImageRepositoryProperty -> ImageRepositoryProperty -> Bool
(ImageRepositoryProperty -> ImageRepositoryProperty -> Bool)
-> (ImageRepositoryProperty -> ImageRepositoryProperty -> Bool)
-> Eq ImageRepositoryProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ImageRepositoryProperty -> ImageRepositoryProperty -> Bool
== :: ImageRepositoryProperty -> ImageRepositoryProperty -> Bool
$c/= :: ImageRepositoryProperty -> ImageRepositoryProperty -> Bool
/= :: ImageRepositoryProperty -> ImageRepositoryProperty -> Bool
Prelude.Eq, Int -> ImageRepositoryProperty -> ShowS
[ImageRepositoryProperty] -> ShowS
ImageRepositoryProperty -> String
(Int -> ImageRepositoryProperty -> ShowS)
-> (ImageRepositoryProperty -> String)
-> ([ImageRepositoryProperty] -> ShowS)
-> Show ImageRepositoryProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ImageRepositoryProperty -> ShowS
showsPrec :: Int -> ImageRepositoryProperty -> ShowS
$cshow :: ImageRepositoryProperty -> String
show :: ImageRepositoryProperty -> String
$cshowList :: [ImageRepositoryProperty] -> ShowS
showList :: [ImageRepositoryProperty] -> ShowS
Prelude.Show)
mkImageRepositoryProperty ::
  Value Prelude.Text -> Value Prelude.Text -> ImageRepositoryProperty
mkImageRepositoryProperty :: Value Text -> Value Text -> ImageRepositoryProperty
mkImageRepositoryProperty Value Text
imageIdentifier Value Text
imageRepositoryType
  = ImageRepositoryProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), imageIdentifier :: Value Text
imageIdentifier = Value Text
imageIdentifier,
       imageRepositoryType :: Value Text
imageRepositoryType = Value Text
imageRepositoryType,
       imageConfiguration :: Maybe ImageConfigurationProperty
imageConfiguration = Maybe ImageConfigurationProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ImageRepositoryProperty where
  toResourceProperties :: ImageRepositoryProperty -> ResourceProperties
toResourceProperties ImageRepositoryProperty {Maybe ImageConfigurationProperty
()
Value Text
haddock_workaround_ :: ImageRepositoryProperty -> ()
imageConfiguration :: ImageRepositoryProperty -> Maybe ImageConfigurationProperty
imageIdentifier :: ImageRepositoryProperty -> Value Text
imageRepositoryType :: ImageRepositoryProperty -> Value Text
haddock_workaround_ :: ()
imageConfiguration :: Maybe ImageConfigurationProperty
imageIdentifier :: Value Text
imageRepositoryType :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::AppRunner::Service.ImageRepository",
         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
"ImageIdentifier" 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
imageIdentifier,
                            Key
"ImageRepositoryType" 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
imageRepositoryType]
                           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                              [Key -> ImageConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ImageConfiguration" (ImageConfigurationProperty -> (Key, Value))
-> Maybe ImageConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ImageConfigurationProperty
imageConfiguration]))}
instance JSON.ToJSON ImageRepositoryProperty where
  toJSON :: ImageRepositoryProperty -> Value
toJSON ImageRepositoryProperty {Maybe ImageConfigurationProperty
()
Value Text
haddock_workaround_ :: ImageRepositoryProperty -> ()
imageConfiguration :: ImageRepositoryProperty -> Maybe ImageConfigurationProperty
imageIdentifier :: ImageRepositoryProperty -> Value Text
imageRepositoryType :: ImageRepositoryProperty -> Value Text
haddock_workaround_ :: ()
imageConfiguration :: Maybe ImageConfigurationProperty
imageIdentifier :: Value Text
imageRepositoryType :: 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
"ImageIdentifier" 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
imageIdentifier,
               Key
"ImageRepositoryType" 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
imageRepositoryType]
              ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                 [Key -> ImageConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ImageConfiguration" (ImageConfigurationProperty -> (Key, Value))
-> Maybe ImageConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ImageConfigurationProperty
imageConfiguration])))
instance Property "ImageConfiguration" ImageRepositoryProperty where
  type PropertyType "ImageConfiguration" ImageRepositoryProperty = ImageConfigurationProperty
  set :: PropertyType "ImageConfiguration" ImageRepositoryProperty
-> ImageRepositoryProperty -> ImageRepositoryProperty
set PropertyType "ImageConfiguration" ImageRepositoryProperty
newValue ImageRepositoryProperty {Maybe ImageConfigurationProperty
()
Value Text
haddock_workaround_ :: ImageRepositoryProperty -> ()
imageConfiguration :: ImageRepositoryProperty -> Maybe ImageConfigurationProperty
imageIdentifier :: ImageRepositoryProperty -> Value Text
imageRepositoryType :: ImageRepositoryProperty -> Value Text
haddock_workaround_ :: ()
imageConfiguration :: Maybe ImageConfigurationProperty
imageIdentifier :: Value Text
imageRepositoryType :: Value Text
..}
    = ImageRepositoryProperty
        {imageConfiguration :: Maybe ImageConfigurationProperty
imageConfiguration = ImageConfigurationProperty -> Maybe ImageConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ImageConfiguration" ImageRepositoryProperty
ImageConfigurationProperty
newValue, ()
Value Text
haddock_workaround_ :: ()
imageIdentifier :: Value Text
imageRepositoryType :: Value Text
haddock_workaround_ :: ()
imageIdentifier :: Value Text
imageRepositoryType :: Value Text
..}
instance Property "ImageIdentifier" ImageRepositoryProperty where
  type PropertyType "ImageIdentifier" ImageRepositoryProperty = Value Prelude.Text
  set :: PropertyType "ImageIdentifier" ImageRepositoryProperty
-> ImageRepositoryProperty -> ImageRepositoryProperty
set PropertyType "ImageIdentifier" ImageRepositoryProperty
newValue ImageRepositoryProperty {Maybe ImageConfigurationProperty
()
Value Text
haddock_workaround_ :: ImageRepositoryProperty -> ()
imageConfiguration :: ImageRepositoryProperty -> Maybe ImageConfigurationProperty
imageIdentifier :: ImageRepositoryProperty -> Value Text
imageRepositoryType :: ImageRepositoryProperty -> Value Text
haddock_workaround_ :: ()
imageConfiguration :: Maybe ImageConfigurationProperty
imageIdentifier :: Value Text
imageRepositoryType :: Value Text
..}
    = ImageRepositoryProperty {imageIdentifier :: Value Text
imageIdentifier = PropertyType "ImageIdentifier" ImageRepositoryProperty
Value Text
newValue, Maybe ImageConfigurationProperty
()
Value Text
haddock_workaround_ :: ()
imageConfiguration :: Maybe ImageConfigurationProperty
imageRepositoryType :: Value Text
haddock_workaround_ :: ()
imageConfiguration :: Maybe ImageConfigurationProperty
imageRepositoryType :: Value Text
..}
instance Property "ImageRepositoryType" ImageRepositoryProperty where
  type PropertyType "ImageRepositoryType" ImageRepositoryProperty = Value Prelude.Text
  set :: PropertyType "ImageRepositoryType" ImageRepositoryProperty
-> ImageRepositoryProperty -> ImageRepositoryProperty
set PropertyType "ImageRepositoryType" ImageRepositoryProperty
newValue ImageRepositoryProperty {Maybe ImageConfigurationProperty
()
Value Text
haddock_workaround_ :: ImageRepositoryProperty -> ()
imageConfiguration :: ImageRepositoryProperty -> Maybe ImageConfigurationProperty
imageIdentifier :: ImageRepositoryProperty -> Value Text
imageRepositoryType :: ImageRepositoryProperty -> Value Text
haddock_workaround_ :: ()
imageConfiguration :: Maybe ImageConfigurationProperty
imageIdentifier :: Value Text
imageRepositoryType :: Value Text
..}
    = ImageRepositoryProperty {imageRepositoryType :: Value Text
imageRepositoryType = PropertyType "ImageRepositoryType" ImageRepositoryProperty
Value Text
newValue, Maybe ImageConfigurationProperty
()
Value Text
haddock_workaround_ :: ()
imageConfiguration :: Maybe ImageConfigurationProperty
imageIdentifier :: Value Text
haddock_workaround_ :: ()
imageConfiguration :: Maybe ImageConfigurationProperty
imageIdentifier :: Value Text
..}