module Stratosphere.AutoScaling.AutoScalingGroup.TrafficSourceIdentifierProperty (
        TrafficSourceIdentifierProperty(..),
        mkTrafficSourceIdentifierProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data TrafficSourceIdentifierProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-autoscalinggroup-trafficsourceidentifier.html>
    TrafficSourceIdentifierProperty {TrafficSourceIdentifierProperty -> ()
haddock_workaround_ :: (),
                                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-autoscalinggroup-trafficsourceidentifier.html#cfn-autoscaling-autoscalinggroup-trafficsourceidentifier-identifier>
                                     TrafficSourceIdentifierProperty -> Value Text
identifier :: (Value Prelude.Text),
                                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-autoscalinggroup-trafficsourceidentifier.html#cfn-autoscaling-autoscalinggroup-trafficsourceidentifier-type>
                                     TrafficSourceIdentifierProperty -> Value Text
type' :: (Value Prelude.Text)}
  deriving stock (TrafficSourceIdentifierProperty
-> TrafficSourceIdentifierProperty -> Bool
(TrafficSourceIdentifierProperty
 -> TrafficSourceIdentifierProperty -> Bool)
-> (TrafficSourceIdentifierProperty
    -> TrafficSourceIdentifierProperty -> Bool)
-> Eq TrafficSourceIdentifierProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: TrafficSourceIdentifierProperty
-> TrafficSourceIdentifierProperty -> Bool
== :: TrafficSourceIdentifierProperty
-> TrafficSourceIdentifierProperty -> Bool
$c/= :: TrafficSourceIdentifierProperty
-> TrafficSourceIdentifierProperty -> Bool
/= :: TrafficSourceIdentifierProperty
-> TrafficSourceIdentifierProperty -> Bool
Prelude.Eq, Int -> TrafficSourceIdentifierProperty -> ShowS
[TrafficSourceIdentifierProperty] -> ShowS
TrafficSourceIdentifierProperty -> String
(Int -> TrafficSourceIdentifierProperty -> ShowS)
-> (TrafficSourceIdentifierProperty -> String)
-> ([TrafficSourceIdentifierProperty] -> ShowS)
-> Show TrafficSourceIdentifierProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> TrafficSourceIdentifierProperty -> ShowS
showsPrec :: Int -> TrafficSourceIdentifierProperty -> ShowS
$cshow :: TrafficSourceIdentifierProperty -> String
show :: TrafficSourceIdentifierProperty -> String
$cshowList :: [TrafficSourceIdentifierProperty] -> ShowS
showList :: [TrafficSourceIdentifierProperty] -> ShowS
Prelude.Show)
mkTrafficSourceIdentifierProperty ::
  Value Prelude.Text
  -> Value Prelude.Text -> TrafficSourceIdentifierProperty
mkTrafficSourceIdentifierProperty :: Value Text -> Value Text -> TrafficSourceIdentifierProperty
mkTrafficSourceIdentifierProperty Value Text
identifier Value Text
type'
  = TrafficSourceIdentifierProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), identifier :: Value Text
identifier = Value Text
identifier, type' :: Value Text
type' = Value Text
type'}
instance ToResourceProperties TrafficSourceIdentifierProperty where
  toResourceProperties :: TrafficSourceIdentifierProperty -> ResourceProperties
toResourceProperties TrafficSourceIdentifierProperty {()
Value Text
haddock_workaround_ :: TrafficSourceIdentifierProperty -> ()
identifier :: TrafficSourceIdentifierProperty -> Value Text
type' :: TrafficSourceIdentifierProperty -> Value Text
haddock_workaround_ :: ()
identifier :: Value Text
type' :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::AutoScaling::AutoScalingGroup.TrafficSourceIdentifier",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"Identifier" 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
identifier,
                       Key
"Type" 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
type']}
instance JSON.ToJSON TrafficSourceIdentifierProperty where
  toJSON :: TrafficSourceIdentifierProperty -> Value
toJSON TrafficSourceIdentifierProperty {()
Value Text
haddock_workaround_ :: TrafficSourceIdentifierProperty -> ()
identifier :: TrafficSourceIdentifierProperty -> Value Text
type' :: TrafficSourceIdentifierProperty -> Value Text
haddock_workaround_ :: ()
identifier :: Value Text
type' :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object
        [Key
"Identifier" 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
identifier, Key
"Type" 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
type']
instance Property "Identifier" TrafficSourceIdentifierProperty where
  type PropertyType "Identifier" TrafficSourceIdentifierProperty = Value Prelude.Text
  set :: PropertyType "Identifier" TrafficSourceIdentifierProperty
-> TrafficSourceIdentifierProperty
-> TrafficSourceIdentifierProperty
set PropertyType "Identifier" TrafficSourceIdentifierProperty
newValue TrafficSourceIdentifierProperty {()
Value Text
haddock_workaround_ :: TrafficSourceIdentifierProperty -> ()
identifier :: TrafficSourceIdentifierProperty -> Value Text
type' :: TrafficSourceIdentifierProperty -> Value Text
haddock_workaround_ :: ()
identifier :: Value Text
type' :: Value Text
..}
    = TrafficSourceIdentifierProperty {identifier :: Value Text
identifier = PropertyType "Identifier" TrafficSourceIdentifierProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
type' :: Value Text
haddock_workaround_ :: ()
type' :: Value Text
..}
instance Property "Type" TrafficSourceIdentifierProperty where
  type PropertyType "Type" TrafficSourceIdentifierProperty = Value Prelude.Text
  set :: PropertyType "Type" TrafficSourceIdentifierProperty
-> TrafficSourceIdentifierProperty
-> TrafficSourceIdentifierProperty
set PropertyType "Type" TrafficSourceIdentifierProperty
newValue TrafficSourceIdentifierProperty {()
Value Text
haddock_workaround_ :: TrafficSourceIdentifierProperty -> ()
identifier :: TrafficSourceIdentifierProperty -> Value Text
type' :: TrafficSourceIdentifierProperty -> Value Text
haddock_workaround_ :: ()
identifier :: Value Text
type' :: Value Text
..}
    = TrafficSourceIdentifierProperty {type' :: Value Text
type' = PropertyType "Type" TrafficSourceIdentifierProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
identifier :: Value Text
haddock_workaround_ :: ()
identifier :: Value Text
..}