module Stratosphere.ECR.ReplicationConfiguration.RepositoryFilterProperty (
RepositoryFilterProperty(..), mkRepositoryFilterProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data RepositoryFilterProperty
=
RepositoryFilterProperty {RepositoryFilterProperty -> ()
haddock_workaround_ :: (),
RepositoryFilterProperty -> Value Text
filter :: (Value Prelude.Text),
RepositoryFilterProperty -> Value Text
filterType :: (Value Prelude.Text)}
deriving stock (RepositoryFilterProperty -> RepositoryFilterProperty -> Bool
(RepositoryFilterProperty -> RepositoryFilterProperty -> Bool)
-> (RepositoryFilterProperty -> RepositoryFilterProperty -> Bool)
-> Eq RepositoryFilterProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: RepositoryFilterProperty -> RepositoryFilterProperty -> Bool
== :: RepositoryFilterProperty -> RepositoryFilterProperty -> Bool
$c/= :: RepositoryFilterProperty -> RepositoryFilterProperty -> Bool
/= :: RepositoryFilterProperty -> RepositoryFilterProperty -> Bool
Prelude.Eq, Int -> RepositoryFilterProperty -> ShowS
[RepositoryFilterProperty] -> ShowS
RepositoryFilterProperty -> String
(Int -> RepositoryFilterProperty -> ShowS)
-> (RepositoryFilterProperty -> String)
-> ([RepositoryFilterProperty] -> ShowS)
-> Show RepositoryFilterProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> RepositoryFilterProperty -> ShowS
showsPrec :: Int -> RepositoryFilterProperty -> ShowS
$cshow :: RepositoryFilterProperty -> String
show :: RepositoryFilterProperty -> String
$cshowList :: [RepositoryFilterProperty] -> ShowS
showList :: [RepositoryFilterProperty] -> ShowS
Prelude.Show)
mkRepositoryFilterProperty ::
Value Prelude.Text
-> Value Prelude.Text -> RepositoryFilterProperty
mkRepositoryFilterProperty :: Value Text -> Value Text -> RepositoryFilterProperty
mkRepositoryFilterProperty Value Text
filter Value Text
filterType
= RepositoryFilterProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), filter :: Value Text
filter = Value Text
filter,
filterType :: Value Text
filterType = Value Text
filterType}
instance ToResourceProperties RepositoryFilterProperty where
toResourceProperties :: RepositoryFilterProperty -> ResourceProperties
toResourceProperties RepositoryFilterProperty {()
Value Text
haddock_workaround_ :: RepositoryFilterProperty -> ()
filter :: RepositoryFilterProperty -> Value Text
filterType :: RepositoryFilterProperty -> Value Text
haddock_workaround_ :: ()
filter :: Value Text
filterType :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::ECR::ReplicationConfiguration.RepositoryFilter",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"Filter" 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
filter,
Key
"FilterType" 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
filterType]}
instance JSON.ToJSON RepositoryFilterProperty where
toJSON :: RepositoryFilterProperty -> Value
toJSON RepositoryFilterProperty {()
Value Text
haddock_workaround_ :: RepositoryFilterProperty -> ()
filter :: RepositoryFilterProperty -> Value Text
filterType :: RepositoryFilterProperty -> Value Text
haddock_workaround_ :: ()
filter :: Value Text
filterType :: Value Text
..}
= [(Key, Value)] -> Value
JSON.object
[Key
"Filter" 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
filter, Key
"FilterType" 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
filterType]
instance Property "Filter" RepositoryFilterProperty where
type PropertyType "Filter" RepositoryFilterProperty = Value Prelude.Text
set :: PropertyType "Filter" RepositoryFilterProperty
-> RepositoryFilterProperty -> RepositoryFilterProperty
set PropertyType "Filter" RepositoryFilterProperty
newValue RepositoryFilterProperty {()
Value Text
haddock_workaround_ :: RepositoryFilterProperty -> ()
filter :: RepositoryFilterProperty -> Value Text
filterType :: RepositoryFilterProperty -> Value Text
haddock_workaround_ :: ()
filter :: Value Text
filterType :: Value Text
..}
= RepositoryFilterProperty {filter :: Value Text
filter = PropertyType "Filter" RepositoryFilterProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
filterType :: Value Text
haddock_workaround_ :: ()
filterType :: Value Text
..}
instance Property "FilterType" RepositoryFilterProperty where
type PropertyType "FilterType" RepositoryFilterProperty = Value Prelude.Text
set :: PropertyType "FilterType" RepositoryFilterProperty
-> RepositoryFilterProperty -> RepositoryFilterProperty
set PropertyType "FilterType" RepositoryFilterProperty
newValue RepositoryFilterProperty {()
Value Text
haddock_workaround_ :: RepositoryFilterProperty -> ()
filter :: RepositoryFilterProperty -> Value Text
filterType :: RepositoryFilterProperty -> Value Text
haddock_workaround_ :: ()
filter :: Value Text
filterType :: Value Text
..}
= RepositoryFilterProperty {filterType :: Value Text
filterType = PropertyType "FilterType" RepositoryFilterProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
filter :: Value Text
haddock_workaround_ :: ()
filter :: Value Text
..}