module Stratosphere.S3.StorageLens.DetailedStatusCodesMetricsProperty (
        DetailedStatusCodesMetricsProperty(..),
        mkDetailedStatusCodesMetricsProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data DetailedStatusCodesMetricsProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-storagelens-detailedstatuscodesmetrics.html>
    DetailedStatusCodesMetricsProperty {DetailedStatusCodesMetricsProperty -> ()
haddock_workaround_ :: (),
                                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-storagelens-detailedstatuscodesmetrics.html#cfn-s3-storagelens-detailedstatuscodesmetrics-isenabled>
                                        DetailedStatusCodesMetricsProperty -> Maybe (Value Bool)
isEnabled :: (Prelude.Maybe (Value Prelude.Bool))}
  deriving stock (DetailedStatusCodesMetricsProperty
-> DetailedStatusCodesMetricsProperty -> Bool
(DetailedStatusCodesMetricsProperty
 -> DetailedStatusCodesMetricsProperty -> Bool)
-> (DetailedStatusCodesMetricsProperty
    -> DetailedStatusCodesMetricsProperty -> Bool)
-> Eq DetailedStatusCodesMetricsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DetailedStatusCodesMetricsProperty
-> DetailedStatusCodesMetricsProperty -> Bool
== :: DetailedStatusCodesMetricsProperty
-> DetailedStatusCodesMetricsProperty -> Bool
$c/= :: DetailedStatusCodesMetricsProperty
-> DetailedStatusCodesMetricsProperty -> Bool
/= :: DetailedStatusCodesMetricsProperty
-> DetailedStatusCodesMetricsProperty -> Bool
Prelude.Eq, Int -> DetailedStatusCodesMetricsProperty -> ShowS
[DetailedStatusCodesMetricsProperty] -> ShowS
DetailedStatusCodesMetricsProperty -> String
(Int -> DetailedStatusCodesMetricsProperty -> ShowS)
-> (DetailedStatusCodesMetricsProperty -> String)
-> ([DetailedStatusCodesMetricsProperty] -> ShowS)
-> Show DetailedStatusCodesMetricsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> DetailedStatusCodesMetricsProperty -> ShowS
showsPrec :: Int -> DetailedStatusCodesMetricsProperty -> ShowS
$cshow :: DetailedStatusCodesMetricsProperty -> String
show :: DetailedStatusCodesMetricsProperty -> String
$cshowList :: [DetailedStatusCodesMetricsProperty] -> ShowS
showList :: [DetailedStatusCodesMetricsProperty] -> ShowS
Prelude.Show)
mkDetailedStatusCodesMetricsProperty ::
  DetailedStatusCodesMetricsProperty
mkDetailedStatusCodesMetricsProperty :: DetailedStatusCodesMetricsProperty
mkDetailedStatusCodesMetricsProperty
  = DetailedStatusCodesMetricsProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), isEnabled :: Maybe (Value Bool)
isEnabled = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties DetailedStatusCodesMetricsProperty where
  toResourceProperties :: DetailedStatusCodesMetricsProperty -> ResourceProperties
toResourceProperties DetailedStatusCodesMetricsProperty {Maybe (Value Bool)
()
haddock_workaround_ :: DetailedStatusCodesMetricsProperty -> ()
isEnabled :: DetailedStatusCodesMetricsProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
isEnabled :: Maybe (Value Bool)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::S3::StorageLens.DetailedStatusCodesMetrics",
         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 Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"IsEnabled" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
isEnabled])}
instance JSON.ToJSON DetailedStatusCodesMetricsProperty where
  toJSON :: DetailedStatusCodesMetricsProperty -> Value
toJSON DetailedStatusCodesMetricsProperty {Maybe (Value Bool)
()
haddock_workaround_ :: DetailedStatusCodesMetricsProperty -> ()
isEnabled :: DetailedStatusCodesMetricsProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
isEnabled :: Maybe (Value Bool)
..}
    = [(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 Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"IsEnabled" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
isEnabled]))
instance Property "IsEnabled" DetailedStatusCodesMetricsProperty where
  type PropertyType "IsEnabled" DetailedStatusCodesMetricsProperty = Value Prelude.Bool
  set :: PropertyType "IsEnabled" DetailedStatusCodesMetricsProperty
-> DetailedStatusCodesMetricsProperty
-> DetailedStatusCodesMetricsProperty
set PropertyType "IsEnabled" DetailedStatusCodesMetricsProperty
newValue DetailedStatusCodesMetricsProperty {Maybe (Value Bool)
()
haddock_workaround_ :: DetailedStatusCodesMetricsProperty -> ()
isEnabled :: DetailedStatusCodesMetricsProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
isEnabled :: Maybe (Value Bool)
..}
    = DetailedStatusCodesMetricsProperty
        {isEnabled :: Maybe (Value Bool)
isEnabled = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "IsEnabled" DetailedStatusCodesMetricsProperty
Value Bool
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}