module Stratosphere.SSM.Association.InstanceAssociationOutputLocationProperty (
        module Exports, InstanceAssociationOutputLocationProperty(..),
        mkInstanceAssociationOutputLocationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.SSM.Association.S3OutputLocationProperty as Exports
import Stratosphere.ResourceProperties
data InstanceAssociationOutputLocationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-association-instanceassociationoutputlocation.html>
    InstanceAssociationOutputLocationProperty {InstanceAssociationOutputLocationProperty -> ()
haddock_workaround_ :: (),
                                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-association-instanceassociationoutputlocation.html#cfn-ssm-association-instanceassociationoutputlocation-s3location>
                                               InstanceAssociationOutputLocationProperty
-> Maybe S3OutputLocationProperty
s3Location :: (Prelude.Maybe S3OutputLocationProperty)}
  deriving stock (InstanceAssociationOutputLocationProperty
-> InstanceAssociationOutputLocationProperty -> Bool
(InstanceAssociationOutputLocationProperty
 -> InstanceAssociationOutputLocationProperty -> Bool)
-> (InstanceAssociationOutputLocationProperty
    -> InstanceAssociationOutputLocationProperty -> Bool)
-> Eq InstanceAssociationOutputLocationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: InstanceAssociationOutputLocationProperty
-> InstanceAssociationOutputLocationProperty -> Bool
== :: InstanceAssociationOutputLocationProperty
-> InstanceAssociationOutputLocationProperty -> Bool
$c/= :: InstanceAssociationOutputLocationProperty
-> InstanceAssociationOutputLocationProperty -> Bool
/= :: InstanceAssociationOutputLocationProperty
-> InstanceAssociationOutputLocationProperty -> Bool
Prelude.Eq, Int -> InstanceAssociationOutputLocationProperty -> ShowS
[InstanceAssociationOutputLocationProperty] -> ShowS
InstanceAssociationOutputLocationProperty -> String
(Int -> InstanceAssociationOutputLocationProperty -> ShowS)
-> (InstanceAssociationOutputLocationProperty -> String)
-> ([InstanceAssociationOutputLocationProperty] -> ShowS)
-> Show InstanceAssociationOutputLocationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> InstanceAssociationOutputLocationProperty -> ShowS
showsPrec :: Int -> InstanceAssociationOutputLocationProperty -> ShowS
$cshow :: InstanceAssociationOutputLocationProperty -> String
show :: InstanceAssociationOutputLocationProperty -> String
$cshowList :: [InstanceAssociationOutputLocationProperty] -> ShowS
showList :: [InstanceAssociationOutputLocationProperty] -> ShowS
Prelude.Show)
mkInstanceAssociationOutputLocationProperty ::
  InstanceAssociationOutputLocationProperty
mkInstanceAssociationOutputLocationProperty :: InstanceAssociationOutputLocationProperty
mkInstanceAssociationOutputLocationProperty
  = InstanceAssociationOutputLocationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), s3Location :: Maybe S3OutputLocationProperty
s3Location = Maybe S3OutputLocationProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties InstanceAssociationOutputLocationProperty where
  toResourceProperties :: InstanceAssociationOutputLocationProperty -> ResourceProperties
toResourceProperties InstanceAssociationOutputLocationProperty {Maybe S3OutputLocationProperty
()
haddock_workaround_ :: InstanceAssociationOutputLocationProperty -> ()
s3Location :: InstanceAssociationOutputLocationProperty
-> Maybe S3OutputLocationProperty
haddock_workaround_ :: ()
s3Location :: Maybe S3OutputLocationProperty
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::SSM::Association.InstanceAssociationOutputLocation",
         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 -> S3OutputLocationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"S3Location" (S3OutputLocationProperty -> (Key, Value))
-> Maybe S3OutputLocationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe S3OutputLocationProperty
s3Location])}
instance JSON.ToJSON InstanceAssociationOutputLocationProperty where
  toJSON :: InstanceAssociationOutputLocationProperty -> Value
toJSON InstanceAssociationOutputLocationProperty {Maybe S3OutputLocationProperty
()
haddock_workaround_ :: InstanceAssociationOutputLocationProperty -> ()
s3Location :: InstanceAssociationOutputLocationProperty
-> Maybe S3OutputLocationProperty
haddock_workaround_ :: ()
s3Location :: Maybe S3OutputLocationProperty
..}
    = [(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 -> S3OutputLocationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"S3Location" (S3OutputLocationProperty -> (Key, Value))
-> Maybe S3OutputLocationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe S3OutputLocationProperty
s3Location]))
instance Property "S3Location" InstanceAssociationOutputLocationProperty where
  type PropertyType "S3Location" InstanceAssociationOutputLocationProperty = S3OutputLocationProperty
  set :: PropertyType "S3Location" InstanceAssociationOutputLocationProperty
-> InstanceAssociationOutputLocationProperty
-> InstanceAssociationOutputLocationProperty
set PropertyType "S3Location" InstanceAssociationOutputLocationProperty
newValue InstanceAssociationOutputLocationProperty {Maybe S3OutputLocationProperty
()
haddock_workaround_ :: InstanceAssociationOutputLocationProperty -> ()
s3Location :: InstanceAssociationOutputLocationProperty
-> Maybe S3OutputLocationProperty
haddock_workaround_ :: ()
s3Location :: Maybe S3OutputLocationProperty
..}
    = InstanceAssociationOutputLocationProperty
        {s3Location :: Maybe S3OutputLocationProperty
s3Location = S3OutputLocationProperty -> Maybe S3OutputLocationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "S3Location" InstanceAssociationOutputLocationProperty
S3OutputLocationProperty
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}