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