module Stratosphere.EFS.AccessPoint.AccessPointTagProperty (
        AccessPointTagProperty(..), mkAccessPointTagProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data AccessPointTagProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-efs-accesspoint-accesspointtag.html>
    AccessPointTagProperty {AccessPointTagProperty -> ()
haddock_workaround_ :: (),
                            -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-efs-accesspoint-accesspointtag.html#cfn-efs-accesspoint-accesspointtag-key>
                            AccessPointTagProperty -> Maybe (Value Text)
key :: (Prelude.Maybe (Value Prelude.Text)),
                            -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-efs-accesspoint-accesspointtag.html#cfn-efs-accesspoint-accesspointtag-value>
                            AccessPointTagProperty -> Maybe (Value Text)
value :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (AccessPointTagProperty -> AccessPointTagProperty -> Bool
(AccessPointTagProperty -> AccessPointTagProperty -> Bool)
-> (AccessPointTagProperty -> AccessPointTagProperty -> Bool)
-> Eq AccessPointTagProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: AccessPointTagProperty -> AccessPointTagProperty -> Bool
== :: AccessPointTagProperty -> AccessPointTagProperty -> Bool
$c/= :: AccessPointTagProperty -> AccessPointTagProperty -> Bool
/= :: AccessPointTagProperty -> AccessPointTagProperty -> Bool
Prelude.Eq, Int -> AccessPointTagProperty -> ShowS
[AccessPointTagProperty] -> ShowS
AccessPointTagProperty -> String
(Int -> AccessPointTagProperty -> ShowS)
-> (AccessPointTagProperty -> String)
-> ([AccessPointTagProperty] -> ShowS)
-> Show AccessPointTagProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> AccessPointTagProperty -> ShowS
showsPrec :: Int -> AccessPointTagProperty -> ShowS
$cshow :: AccessPointTagProperty -> String
show :: AccessPointTagProperty -> String
$cshowList :: [AccessPointTagProperty] -> ShowS
showList :: [AccessPointTagProperty] -> ShowS
Prelude.Show)
mkAccessPointTagProperty :: AccessPointTagProperty
mkAccessPointTagProperty :: AccessPointTagProperty
mkAccessPointTagProperty
  = AccessPointTagProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), key :: Maybe (Value Text)
key = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       value :: Maybe (Value Text)
value = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties AccessPointTagProperty where
  toResourceProperties :: AccessPointTagProperty -> ResourceProperties
toResourceProperties AccessPointTagProperty {Maybe (Value Text)
()
haddock_workaround_ :: AccessPointTagProperty -> ()
key :: AccessPointTagProperty -> Maybe (Value Text)
value :: AccessPointTagProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
key :: Maybe (Value Text)
value :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::EFS::AccessPoint.AccessPointTag",
         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
"Key" (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)
key,
                            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
"Value" (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)
value])}
instance JSON.ToJSON AccessPointTagProperty where
  toJSON :: AccessPointTagProperty -> Value
toJSON AccessPointTagProperty {Maybe (Value Text)
()
haddock_workaround_ :: AccessPointTagProperty -> ()
key :: AccessPointTagProperty -> Maybe (Value Text)
value :: AccessPointTagProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
key :: Maybe (Value Text)
value :: 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
"Key" (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)
key,
               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
"Value" (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)
value]))
instance Property "Key" AccessPointTagProperty where
  type PropertyType "Key" AccessPointTagProperty = Value Prelude.Text
  set :: PropertyType "Key" AccessPointTagProperty
-> AccessPointTagProperty -> AccessPointTagProperty
set PropertyType "Key" AccessPointTagProperty
newValue AccessPointTagProperty {Maybe (Value Text)
()
haddock_workaround_ :: AccessPointTagProperty -> ()
key :: AccessPointTagProperty -> Maybe (Value Text)
value :: AccessPointTagProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
key :: Maybe (Value Text)
value :: Maybe (Value Text)
..}
    = AccessPointTagProperty {key :: Maybe (Value Text)
key = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Key" AccessPointTagProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
value :: Maybe (Value Text)
haddock_workaround_ :: ()
value :: Maybe (Value Text)
..}
instance Property "Value" AccessPointTagProperty where
  type PropertyType "Value" AccessPointTagProperty = Value Prelude.Text
  set :: PropertyType "Value" AccessPointTagProperty
-> AccessPointTagProperty -> AccessPointTagProperty
set PropertyType "Value" AccessPointTagProperty
newValue AccessPointTagProperty {Maybe (Value Text)
()
haddock_workaround_ :: AccessPointTagProperty -> ()
key :: AccessPointTagProperty -> Maybe (Value Text)
value :: AccessPointTagProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
key :: Maybe (Value Text)
value :: Maybe (Value Text)
..}
    = AccessPointTagProperty {value :: Maybe (Value Text)
value = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Value" AccessPointTagProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
key :: Maybe (Value Text)
haddock_workaround_ :: ()
key :: Maybe (Value Text)
..}