module Stratosphere.SimSpaceWeaver.Simulation.S3LocationProperty (
        S3LocationProperty(..), mkS3LocationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data S3LocationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-simspaceweaver-simulation-s3location.html>
    S3LocationProperty {S3LocationProperty -> ()
haddock_workaround_ :: (),
                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-simspaceweaver-simulation-s3location.html#cfn-simspaceweaver-simulation-s3location-bucketname>
                        S3LocationProperty -> Value Text
bucketName :: (Value Prelude.Text),
                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-simspaceweaver-simulation-s3location.html#cfn-simspaceweaver-simulation-s3location-objectkey>
                        S3LocationProperty -> Value Text
objectKey :: (Value Prelude.Text)}
  deriving stock (S3LocationProperty -> S3LocationProperty -> Bool
(S3LocationProperty -> S3LocationProperty -> Bool)
-> (S3LocationProperty -> S3LocationProperty -> Bool)
-> Eq S3LocationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: S3LocationProperty -> S3LocationProperty -> Bool
== :: S3LocationProperty -> S3LocationProperty -> Bool
$c/= :: S3LocationProperty -> S3LocationProperty -> Bool
/= :: S3LocationProperty -> S3LocationProperty -> Bool
Prelude.Eq, Int -> S3LocationProperty -> ShowS
[S3LocationProperty] -> ShowS
S3LocationProperty -> String
(Int -> S3LocationProperty -> ShowS)
-> (S3LocationProperty -> String)
-> ([S3LocationProperty] -> ShowS)
-> Show S3LocationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> S3LocationProperty -> ShowS
showsPrec :: Int -> S3LocationProperty -> ShowS
$cshow :: S3LocationProperty -> String
show :: S3LocationProperty -> String
$cshowList :: [S3LocationProperty] -> ShowS
showList :: [S3LocationProperty] -> ShowS
Prelude.Show)
mkS3LocationProperty ::
  Value Prelude.Text -> Value Prelude.Text -> S3LocationProperty
mkS3LocationProperty :: Value Text -> Value Text -> S3LocationProperty
mkS3LocationProperty Value Text
bucketName Value Text
objectKey
  = S3LocationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), bucketName :: Value Text
bucketName = Value Text
bucketName,
       objectKey :: Value Text
objectKey = Value Text
objectKey}
instance ToResourceProperties S3LocationProperty where
  toResourceProperties :: S3LocationProperty -> ResourceProperties
toResourceProperties S3LocationProperty {()
Value Text
haddock_workaround_ :: S3LocationProperty -> ()
bucketName :: S3LocationProperty -> Value Text
objectKey :: S3LocationProperty -> Value Text
haddock_workaround_ :: ()
bucketName :: Value Text
objectKey :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::SimSpaceWeaver::Simulation.S3Location",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"BucketName" 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
bucketName,
                       Key
"ObjectKey" 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
objectKey]}
instance JSON.ToJSON S3LocationProperty where
  toJSON :: S3LocationProperty -> Value
toJSON S3LocationProperty {()
Value Text
haddock_workaround_ :: S3LocationProperty -> ()
bucketName :: S3LocationProperty -> Value Text
objectKey :: S3LocationProperty -> Value Text
haddock_workaround_ :: ()
bucketName :: Value Text
objectKey :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object
        [Key
"BucketName" 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
bucketName, Key
"ObjectKey" 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
objectKey]
instance Property "BucketName" S3LocationProperty where
  type PropertyType "BucketName" S3LocationProperty = Value Prelude.Text
  set :: PropertyType "BucketName" S3LocationProperty
-> S3LocationProperty -> S3LocationProperty
set PropertyType "BucketName" S3LocationProperty
newValue S3LocationProperty {()
Value Text
haddock_workaround_ :: S3LocationProperty -> ()
bucketName :: S3LocationProperty -> Value Text
objectKey :: S3LocationProperty -> Value Text
haddock_workaround_ :: ()
bucketName :: Value Text
objectKey :: Value Text
..}
    = S3LocationProperty {bucketName :: Value Text
bucketName = PropertyType "BucketName" S3LocationProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
objectKey :: Value Text
haddock_workaround_ :: ()
objectKey :: Value Text
..}
instance Property "ObjectKey" S3LocationProperty where
  type PropertyType "ObjectKey" S3LocationProperty = Value Prelude.Text
  set :: PropertyType "ObjectKey" S3LocationProperty
-> S3LocationProperty -> S3LocationProperty
set PropertyType "ObjectKey" S3LocationProperty
newValue S3LocationProperty {()
Value Text
haddock_workaround_ :: S3LocationProperty -> ()
bucketName :: S3LocationProperty -> Value Text
objectKey :: S3LocationProperty -> Value Text
haddock_workaround_ :: ()
bucketName :: Value Text
objectKey :: Value Text
..}
    = S3LocationProperty {objectKey :: Value Text
objectKey = PropertyType "ObjectKey" S3LocationProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
bucketName :: Value Text
haddock_workaround_ :: ()
bucketName :: Value Text
..}