module Stratosphere.ElasticLoadBalancingV2.LoadBalancer.LoadBalancerAttributeProperty (
        LoadBalancerAttributeProperty(..), mkLoadBalancerAttributeProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data LoadBalancerAttributeProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-loadbalancer-loadbalancerattribute.html>
    LoadBalancerAttributeProperty {LoadBalancerAttributeProperty -> ()
haddock_workaround_ :: (),
                                   -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-loadbalancer-loadbalancerattribute.html#cfn-elasticloadbalancingv2-loadbalancer-loadbalancerattribute-key>
                                   LoadBalancerAttributeProperty -> Maybe (Value Text)
key :: (Prelude.Maybe (Value Prelude.Text)),
                                   -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-loadbalancer-loadbalancerattribute.html#cfn-elasticloadbalancingv2-loadbalancer-loadbalancerattribute-value>
                                   LoadBalancerAttributeProperty -> Maybe (Value Text)
value :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (LoadBalancerAttributeProperty
-> LoadBalancerAttributeProperty -> Bool
(LoadBalancerAttributeProperty
 -> LoadBalancerAttributeProperty -> Bool)
-> (LoadBalancerAttributeProperty
    -> LoadBalancerAttributeProperty -> Bool)
-> Eq LoadBalancerAttributeProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: LoadBalancerAttributeProperty
-> LoadBalancerAttributeProperty -> Bool
== :: LoadBalancerAttributeProperty
-> LoadBalancerAttributeProperty -> Bool
$c/= :: LoadBalancerAttributeProperty
-> LoadBalancerAttributeProperty -> Bool
/= :: LoadBalancerAttributeProperty
-> LoadBalancerAttributeProperty -> Bool
Prelude.Eq, Int -> LoadBalancerAttributeProperty -> ShowS
[LoadBalancerAttributeProperty] -> ShowS
LoadBalancerAttributeProperty -> String
(Int -> LoadBalancerAttributeProperty -> ShowS)
-> (LoadBalancerAttributeProperty -> String)
-> ([LoadBalancerAttributeProperty] -> ShowS)
-> Show LoadBalancerAttributeProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> LoadBalancerAttributeProperty -> ShowS
showsPrec :: Int -> LoadBalancerAttributeProperty -> ShowS
$cshow :: LoadBalancerAttributeProperty -> String
show :: LoadBalancerAttributeProperty -> String
$cshowList :: [LoadBalancerAttributeProperty] -> ShowS
showList :: [LoadBalancerAttributeProperty] -> ShowS
Prelude.Show)
mkLoadBalancerAttributeProperty :: LoadBalancerAttributeProperty
mkLoadBalancerAttributeProperty :: LoadBalancerAttributeProperty
mkLoadBalancerAttributeProperty
  = LoadBalancerAttributeProperty
      {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 LoadBalancerAttributeProperty where
  toResourceProperties :: LoadBalancerAttributeProperty -> ResourceProperties
toResourceProperties LoadBalancerAttributeProperty {Maybe (Value Text)
()
haddock_workaround_ :: LoadBalancerAttributeProperty -> ()
key :: LoadBalancerAttributeProperty -> Maybe (Value Text)
value :: LoadBalancerAttributeProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
key :: Maybe (Value Text)
value :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::ElasticLoadBalancingV2::LoadBalancer.LoadBalancerAttribute",
         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 LoadBalancerAttributeProperty where
  toJSON :: LoadBalancerAttributeProperty -> Value
toJSON LoadBalancerAttributeProperty {Maybe (Value Text)
()
haddock_workaround_ :: LoadBalancerAttributeProperty -> ()
key :: LoadBalancerAttributeProperty -> Maybe (Value Text)
value :: LoadBalancerAttributeProperty -> 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" LoadBalancerAttributeProperty where
  type PropertyType "Key" LoadBalancerAttributeProperty = Value Prelude.Text
  set :: PropertyType "Key" LoadBalancerAttributeProperty
-> LoadBalancerAttributeProperty -> LoadBalancerAttributeProperty
set PropertyType "Key" LoadBalancerAttributeProperty
newValue LoadBalancerAttributeProperty {Maybe (Value Text)
()
haddock_workaround_ :: LoadBalancerAttributeProperty -> ()
key :: LoadBalancerAttributeProperty -> Maybe (Value Text)
value :: LoadBalancerAttributeProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
key :: Maybe (Value Text)
value :: Maybe (Value Text)
..}
    = LoadBalancerAttributeProperty {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" LoadBalancerAttributeProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
value :: Maybe (Value Text)
haddock_workaround_ :: ()
value :: Maybe (Value Text)
..}
instance Property "Value" LoadBalancerAttributeProperty where
  type PropertyType "Value" LoadBalancerAttributeProperty = Value Prelude.Text
  set :: PropertyType "Value" LoadBalancerAttributeProperty
-> LoadBalancerAttributeProperty -> LoadBalancerAttributeProperty
set PropertyType "Value" LoadBalancerAttributeProperty
newValue LoadBalancerAttributeProperty {Maybe (Value Text)
()
haddock_workaround_ :: LoadBalancerAttributeProperty -> ()
key :: LoadBalancerAttributeProperty -> Maybe (Value Text)
value :: LoadBalancerAttributeProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
key :: Maybe (Value Text)
value :: Maybe (Value Text)
..}
    = LoadBalancerAttributeProperty {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" LoadBalancerAttributeProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
key :: Maybe (Value Text)
haddock_workaround_ :: ()
key :: Maybe (Value Text)
..}