module Stratosphere.AutoScaling.LaunchConfiguration.MetadataOptionsProperty (
        MetadataOptionsProperty(..), mkMetadataOptionsProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data MetadataOptionsProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-launchconfiguration-metadataoptions.html>
    MetadataOptionsProperty {MetadataOptionsProperty -> ()
haddock_workaround_ :: (),
                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-launchconfiguration-metadataoptions.html#cfn-autoscaling-launchconfiguration-metadataoptions-httpendpoint>
                             MetadataOptionsProperty -> Maybe (Value Text)
httpEndpoint :: (Prelude.Maybe (Value Prelude.Text)),
                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-launchconfiguration-metadataoptions.html#cfn-autoscaling-launchconfiguration-metadataoptions-httpputresponsehoplimit>
                             MetadataOptionsProperty -> Maybe (Value Integer)
httpPutResponseHopLimit :: (Prelude.Maybe (Value Prelude.Integer)),
                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-launchconfiguration-metadataoptions.html#cfn-autoscaling-launchconfiguration-metadataoptions-httptokens>
                             MetadataOptionsProperty -> Maybe (Value Text)
httpTokens :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (MetadataOptionsProperty -> MetadataOptionsProperty -> Bool
(MetadataOptionsProperty -> MetadataOptionsProperty -> Bool)
-> (MetadataOptionsProperty -> MetadataOptionsProperty -> Bool)
-> Eq MetadataOptionsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: MetadataOptionsProperty -> MetadataOptionsProperty -> Bool
== :: MetadataOptionsProperty -> MetadataOptionsProperty -> Bool
$c/= :: MetadataOptionsProperty -> MetadataOptionsProperty -> Bool
/= :: MetadataOptionsProperty -> MetadataOptionsProperty -> Bool
Prelude.Eq, Int -> MetadataOptionsProperty -> ShowS
[MetadataOptionsProperty] -> ShowS
MetadataOptionsProperty -> String
(Int -> MetadataOptionsProperty -> ShowS)
-> (MetadataOptionsProperty -> String)
-> ([MetadataOptionsProperty] -> ShowS)
-> Show MetadataOptionsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> MetadataOptionsProperty -> ShowS
showsPrec :: Int -> MetadataOptionsProperty -> ShowS
$cshow :: MetadataOptionsProperty -> String
show :: MetadataOptionsProperty -> String
$cshowList :: [MetadataOptionsProperty] -> ShowS
showList :: [MetadataOptionsProperty] -> ShowS
Prelude.Show)
mkMetadataOptionsProperty :: MetadataOptionsProperty
mkMetadataOptionsProperty :: MetadataOptionsProperty
mkMetadataOptionsProperty
  = MetadataOptionsProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), httpEndpoint :: Maybe (Value Text)
httpEndpoint = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       httpPutResponseHopLimit :: Maybe (Value Integer)
httpPutResponseHopLimit = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing,
       httpTokens :: Maybe (Value Text)
httpTokens = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties MetadataOptionsProperty where
  toResourceProperties :: MetadataOptionsProperty -> ResourceProperties
toResourceProperties MetadataOptionsProperty {Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: MetadataOptionsProperty -> ()
httpEndpoint :: MetadataOptionsProperty -> Maybe (Value Text)
httpPutResponseHopLimit :: MetadataOptionsProperty -> Maybe (Value Integer)
httpTokens :: MetadataOptionsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
httpEndpoint :: Maybe (Value Text)
httpPutResponseHopLimit :: Maybe (Value Integer)
httpTokens :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::AutoScaling::LaunchConfiguration.MetadataOptions",
         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
"HttpEndpoint" (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)
httpEndpoint,
                            Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"HttpPutResponseHopLimit"
                              (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
httpPutResponseHopLimit,
                            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
"HttpTokens" (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)
httpTokens])}
instance JSON.ToJSON MetadataOptionsProperty where
  toJSON :: MetadataOptionsProperty -> Value
toJSON MetadataOptionsProperty {Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: MetadataOptionsProperty -> ()
httpEndpoint :: MetadataOptionsProperty -> Maybe (Value Text)
httpPutResponseHopLimit :: MetadataOptionsProperty -> Maybe (Value Integer)
httpTokens :: MetadataOptionsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
httpEndpoint :: Maybe (Value Text)
httpPutResponseHopLimit :: Maybe (Value Integer)
httpTokens :: 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
"HttpEndpoint" (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)
httpEndpoint,
               Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"HttpPutResponseHopLimit"
                 (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
httpPutResponseHopLimit,
               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
"HttpTokens" (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)
httpTokens]))
instance Property "HttpEndpoint" MetadataOptionsProperty where
  type PropertyType "HttpEndpoint" MetadataOptionsProperty = Value Prelude.Text
  set :: PropertyType "HttpEndpoint" MetadataOptionsProperty
-> MetadataOptionsProperty -> MetadataOptionsProperty
set PropertyType "HttpEndpoint" MetadataOptionsProperty
newValue MetadataOptionsProperty {Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: MetadataOptionsProperty -> ()
httpEndpoint :: MetadataOptionsProperty -> Maybe (Value Text)
httpPutResponseHopLimit :: MetadataOptionsProperty -> Maybe (Value Integer)
httpTokens :: MetadataOptionsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
httpEndpoint :: Maybe (Value Text)
httpPutResponseHopLimit :: Maybe (Value Integer)
httpTokens :: Maybe (Value Text)
..}
    = MetadataOptionsProperty
        {httpEndpoint :: Maybe (Value Text)
httpEndpoint = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "HttpEndpoint" MetadataOptionsProperty
Value Text
newValue, Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: ()
httpPutResponseHopLimit :: Maybe (Value Integer)
httpTokens :: Maybe (Value Text)
haddock_workaround_ :: ()
httpPutResponseHopLimit :: Maybe (Value Integer)
httpTokens :: Maybe (Value Text)
..}
instance Property "HttpPutResponseHopLimit" MetadataOptionsProperty where
  type PropertyType "HttpPutResponseHopLimit" MetadataOptionsProperty = Value Prelude.Integer
  set :: PropertyType "HttpPutResponseHopLimit" MetadataOptionsProperty
-> MetadataOptionsProperty -> MetadataOptionsProperty
set PropertyType "HttpPutResponseHopLimit" MetadataOptionsProperty
newValue MetadataOptionsProperty {Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: MetadataOptionsProperty -> ()
httpEndpoint :: MetadataOptionsProperty -> Maybe (Value Text)
httpPutResponseHopLimit :: MetadataOptionsProperty -> Maybe (Value Integer)
httpTokens :: MetadataOptionsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
httpEndpoint :: Maybe (Value Text)
httpPutResponseHopLimit :: Maybe (Value Integer)
httpTokens :: Maybe (Value Text)
..}
    = MetadataOptionsProperty
        {httpPutResponseHopLimit :: Maybe (Value Integer)
httpPutResponseHopLimit = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "HttpPutResponseHopLimit" MetadataOptionsProperty
Value Integer
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
httpEndpoint :: Maybe (Value Text)
httpTokens :: Maybe (Value Text)
haddock_workaround_ :: ()
httpEndpoint :: Maybe (Value Text)
httpTokens :: Maybe (Value Text)
..}
instance Property "HttpTokens" MetadataOptionsProperty where
  type PropertyType "HttpTokens" MetadataOptionsProperty = Value Prelude.Text
  set :: PropertyType "HttpTokens" MetadataOptionsProperty
-> MetadataOptionsProperty -> MetadataOptionsProperty
set PropertyType "HttpTokens" MetadataOptionsProperty
newValue MetadataOptionsProperty {Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: MetadataOptionsProperty -> ()
httpEndpoint :: MetadataOptionsProperty -> Maybe (Value Text)
httpPutResponseHopLimit :: MetadataOptionsProperty -> Maybe (Value Integer)
httpTokens :: MetadataOptionsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
httpEndpoint :: Maybe (Value Text)
httpPutResponseHopLimit :: Maybe (Value Integer)
httpTokens :: Maybe (Value Text)
..}
    = MetadataOptionsProperty {httpTokens :: Maybe (Value Text)
httpTokens = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "HttpTokens" MetadataOptionsProperty
Value Text
newValue, Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: ()
httpEndpoint :: Maybe (Value Text)
httpPutResponseHopLimit :: Maybe (Value Integer)
haddock_workaround_ :: ()
httpEndpoint :: Maybe (Value Text)
httpPutResponseHopLimit :: Maybe (Value Integer)
..}