module Stratosphere.EC2.NetworkInsightsAnalysis.AlternatePathHintProperty (
        AlternatePathHintProperty(..), mkAlternatePathHintProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data AlternatePathHintProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-networkinsightsanalysis-alternatepathhint.html>
    AlternatePathHintProperty {AlternatePathHintProperty -> ()
haddock_workaround_ :: (),
                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-networkinsightsanalysis-alternatepathhint.html#cfn-ec2-networkinsightsanalysis-alternatepathhint-componentarn>
                               AlternatePathHintProperty -> Maybe (Value Text)
componentArn :: (Prelude.Maybe (Value Prelude.Text)),
                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-networkinsightsanalysis-alternatepathhint.html#cfn-ec2-networkinsightsanalysis-alternatepathhint-componentid>
                               AlternatePathHintProperty -> Maybe (Value Text)
componentId :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (AlternatePathHintProperty -> AlternatePathHintProperty -> Bool
(AlternatePathHintProperty -> AlternatePathHintProperty -> Bool)
-> (AlternatePathHintProperty -> AlternatePathHintProperty -> Bool)
-> Eq AlternatePathHintProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: AlternatePathHintProperty -> AlternatePathHintProperty -> Bool
== :: AlternatePathHintProperty -> AlternatePathHintProperty -> Bool
$c/= :: AlternatePathHintProperty -> AlternatePathHintProperty -> Bool
/= :: AlternatePathHintProperty -> AlternatePathHintProperty -> Bool
Prelude.Eq, Int -> AlternatePathHintProperty -> ShowS
[AlternatePathHintProperty] -> ShowS
AlternatePathHintProperty -> String
(Int -> AlternatePathHintProperty -> ShowS)
-> (AlternatePathHintProperty -> String)
-> ([AlternatePathHintProperty] -> ShowS)
-> Show AlternatePathHintProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> AlternatePathHintProperty -> ShowS
showsPrec :: Int -> AlternatePathHintProperty -> ShowS
$cshow :: AlternatePathHintProperty -> String
show :: AlternatePathHintProperty -> String
$cshowList :: [AlternatePathHintProperty] -> ShowS
showList :: [AlternatePathHintProperty] -> ShowS
Prelude.Show)
mkAlternatePathHintProperty :: AlternatePathHintProperty
mkAlternatePathHintProperty :: AlternatePathHintProperty
mkAlternatePathHintProperty
  = AlternatePathHintProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), componentArn :: Maybe (Value Text)
componentArn = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       componentId :: Maybe (Value Text)
componentId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties AlternatePathHintProperty where
  toResourceProperties :: AlternatePathHintProperty -> ResourceProperties
toResourceProperties AlternatePathHintProperty {Maybe (Value Text)
()
haddock_workaround_ :: AlternatePathHintProperty -> ()
componentArn :: AlternatePathHintProperty -> Maybe (Value Text)
componentId :: AlternatePathHintProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
componentArn :: Maybe (Value Text)
componentId :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::EC2::NetworkInsightsAnalysis.AlternatePathHint",
         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
"ComponentArn" (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)
componentArn,
                            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
"ComponentId" (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)
componentId])}
instance JSON.ToJSON AlternatePathHintProperty where
  toJSON :: AlternatePathHintProperty -> Value
toJSON AlternatePathHintProperty {Maybe (Value Text)
()
haddock_workaround_ :: AlternatePathHintProperty -> ()
componentArn :: AlternatePathHintProperty -> Maybe (Value Text)
componentId :: AlternatePathHintProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
componentArn :: Maybe (Value Text)
componentId :: 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
"ComponentArn" (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)
componentArn,
               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
"ComponentId" (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)
componentId]))
instance Property "ComponentArn" AlternatePathHintProperty where
  type PropertyType "ComponentArn" AlternatePathHintProperty = Value Prelude.Text
  set :: PropertyType "ComponentArn" AlternatePathHintProperty
-> AlternatePathHintProperty -> AlternatePathHintProperty
set PropertyType "ComponentArn" AlternatePathHintProperty
newValue AlternatePathHintProperty {Maybe (Value Text)
()
haddock_workaround_ :: AlternatePathHintProperty -> ()
componentArn :: AlternatePathHintProperty -> Maybe (Value Text)
componentId :: AlternatePathHintProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
componentArn :: Maybe (Value Text)
componentId :: Maybe (Value Text)
..}
    = AlternatePathHintProperty
        {componentArn :: Maybe (Value Text)
componentArn = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ComponentArn" AlternatePathHintProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
componentId :: Maybe (Value Text)
haddock_workaround_ :: ()
componentId :: Maybe (Value Text)
..}
instance Property "ComponentId" AlternatePathHintProperty where
  type PropertyType "ComponentId" AlternatePathHintProperty = Value Prelude.Text
  set :: PropertyType "ComponentId" AlternatePathHintProperty
-> AlternatePathHintProperty -> AlternatePathHintProperty
set PropertyType "ComponentId" AlternatePathHintProperty
newValue AlternatePathHintProperty {Maybe (Value Text)
()
haddock_workaround_ :: AlternatePathHintProperty -> ()
componentArn :: AlternatePathHintProperty -> Maybe (Value Text)
componentId :: AlternatePathHintProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
componentArn :: Maybe (Value Text)
componentId :: Maybe (Value Text)
..}
    = AlternatePathHintProperty
        {componentId :: Maybe (Value Text)
componentId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ComponentId" AlternatePathHintProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
componentArn :: Maybe (Value Text)
haddock_workaround_ :: ()
componentArn :: Maybe (Value Text)
..}