module Stratosphere.OpsWorks.ElasticLoadBalancerAttachment (
        ElasticLoadBalancerAttachment(..), mkElasticLoadBalancerAttachment
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ElasticLoadBalancerAttachment
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-elbattachment.html>
    ElasticLoadBalancerAttachment {ElasticLoadBalancerAttachment -> ()
haddock_workaround_ :: (),
                                   -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-elbattachment.html#cfn-opsworks-elbattachment-elbname>
                                   ElasticLoadBalancerAttachment -> Value Text
elasticLoadBalancerName :: (Value Prelude.Text),
                                   -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-elbattachment.html#cfn-opsworks-elbattachment-layerid>
                                   ElasticLoadBalancerAttachment -> Value Text
layerId :: (Value Prelude.Text)}
  deriving stock (ElasticLoadBalancerAttachment
-> ElasticLoadBalancerAttachment -> Bool
(ElasticLoadBalancerAttachment
 -> ElasticLoadBalancerAttachment -> Bool)
-> (ElasticLoadBalancerAttachment
    -> ElasticLoadBalancerAttachment -> Bool)
-> Eq ElasticLoadBalancerAttachment
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ElasticLoadBalancerAttachment
-> ElasticLoadBalancerAttachment -> Bool
== :: ElasticLoadBalancerAttachment
-> ElasticLoadBalancerAttachment -> Bool
$c/= :: ElasticLoadBalancerAttachment
-> ElasticLoadBalancerAttachment -> Bool
/= :: ElasticLoadBalancerAttachment
-> ElasticLoadBalancerAttachment -> Bool
Prelude.Eq, Int -> ElasticLoadBalancerAttachment -> ShowS
[ElasticLoadBalancerAttachment] -> ShowS
ElasticLoadBalancerAttachment -> String
(Int -> ElasticLoadBalancerAttachment -> ShowS)
-> (ElasticLoadBalancerAttachment -> String)
-> ([ElasticLoadBalancerAttachment] -> ShowS)
-> Show ElasticLoadBalancerAttachment
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ElasticLoadBalancerAttachment -> ShowS
showsPrec :: Int -> ElasticLoadBalancerAttachment -> ShowS
$cshow :: ElasticLoadBalancerAttachment -> String
show :: ElasticLoadBalancerAttachment -> String
$cshowList :: [ElasticLoadBalancerAttachment] -> ShowS
showList :: [ElasticLoadBalancerAttachment] -> ShowS
Prelude.Show)
mkElasticLoadBalancerAttachment ::
  Value Prelude.Text
  -> Value Prelude.Text -> ElasticLoadBalancerAttachment
mkElasticLoadBalancerAttachment :: Value Text -> Value Text -> ElasticLoadBalancerAttachment
mkElasticLoadBalancerAttachment Value Text
elasticLoadBalancerName Value Text
layerId
  = ElasticLoadBalancerAttachment
      {haddock_workaround_ :: ()
haddock_workaround_ = (),
       elasticLoadBalancerName :: Value Text
elasticLoadBalancerName = Value Text
elasticLoadBalancerName,
       layerId :: Value Text
layerId = Value Text
layerId}
instance ToResourceProperties ElasticLoadBalancerAttachment where
  toResourceProperties :: ElasticLoadBalancerAttachment -> ResourceProperties
toResourceProperties ElasticLoadBalancerAttachment {()
Value Text
haddock_workaround_ :: ElasticLoadBalancerAttachment -> ()
elasticLoadBalancerName :: ElasticLoadBalancerAttachment -> Value Text
layerId :: ElasticLoadBalancerAttachment -> Value Text
haddock_workaround_ :: ()
elasticLoadBalancerName :: Value Text
layerId :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::OpsWorks::ElasticLoadBalancerAttachment",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"ElasticLoadBalancerName"
                         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
elasticLoadBalancerName,
                       Key
"LayerId" 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
layerId]}
instance JSON.ToJSON ElasticLoadBalancerAttachment where
  toJSON :: ElasticLoadBalancerAttachment -> Value
toJSON ElasticLoadBalancerAttachment {()
Value Text
haddock_workaround_ :: ElasticLoadBalancerAttachment -> ()
elasticLoadBalancerName :: ElasticLoadBalancerAttachment -> Value Text
layerId :: ElasticLoadBalancerAttachment -> Value Text
haddock_workaround_ :: ()
elasticLoadBalancerName :: Value Text
layerId :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object
        [Key
"ElasticLoadBalancerName" 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
elasticLoadBalancerName,
         Key
"LayerId" 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
layerId]
instance Property "ElasticLoadBalancerName" ElasticLoadBalancerAttachment where
  type PropertyType "ElasticLoadBalancerName" ElasticLoadBalancerAttachment = Value Prelude.Text
  set :: PropertyType
  "ElasticLoadBalancerName" ElasticLoadBalancerAttachment
-> ElasticLoadBalancerAttachment -> ElasticLoadBalancerAttachment
set PropertyType
  "ElasticLoadBalancerName" ElasticLoadBalancerAttachment
newValue ElasticLoadBalancerAttachment {()
Value Text
haddock_workaround_ :: ElasticLoadBalancerAttachment -> ()
elasticLoadBalancerName :: ElasticLoadBalancerAttachment -> Value Text
layerId :: ElasticLoadBalancerAttachment -> Value Text
haddock_workaround_ :: ()
elasticLoadBalancerName :: Value Text
layerId :: Value Text
..}
    = ElasticLoadBalancerAttachment
        {elasticLoadBalancerName :: Value Text
elasticLoadBalancerName = PropertyType
  "ElasticLoadBalancerName" ElasticLoadBalancerAttachment
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
layerId :: Value Text
haddock_workaround_ :: ()
layerId :: Value Text
..}
instance Property "LayerId" ElasticLoadBalancerAttachment where
  type PropertyType "LayerId" ElasticLoadBalancerAttachment = Value Prelude.Text
  set :: PropertyType "LayerId" ElasticLoadBalancerAttachment
-> ElasticLoadBalancerAttachment -> ElasticLoadBalancerAttachment
set PropertyType "LayerId" ElasticLoadBalancerAttachment
newValue ElasticLoadBalancerAttachment {()
Value Text
haddock_workaround_ :: ElasticLoadBalancerAttachment -> ()
elasticLoadBalancerName :: ElasticLoadBalancerAttachment -> Value Text
layerId :: ElasticLoadBalancerAttachment -> Value Text
haddock_workaround_ :: ()
elasticLoadBalancerName :: Value Text
layerId :: Value Text
..}
    = ElasticLoadBalancerAttachment {layerId :: Value Text
layerId = PropertyType "LayerId" ElasticLoadBalancerAttachment
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
elasticLoadBalancerName :: Value Text
haddock_workaround_ :: ()
elasticLoadBalancerName :: Value Text
..}