module Stratosphere.Macie.AllowList.S3WordsListProperty (
        S3WordsListProperty(..), mkS3WordsListProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data S3WordsListProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-macie-allowlist-s3wordslist.html>
    S3WordsListProperty {S3WordsListProperty -> ()
haddock_workaround_ :: (),
                         -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-macie-allowlist-s3wordslist.html#cfn-macie-allowlist-s3wordslist-bucketname>
                         S3WordsListProperty -> Value Text
bucketName :: (Value Prelude.Text),
                         -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-macie-allowlist-s3wordslist.html#cfn-macie-allowlist-s3wordslist-objectkey>
                         S3WordsListProperty -> Value Text
objectKey :: (Value Prelude.Text)}
  deriving stock (S3WordsListProperty -> S3WordsListProperty -> Bool
(S3WordsListProperty -> S3WordsListProperty -> Bool)
-> (S3WordsListProperty -> S3WordsListProperty -> Bool)
-> Eq S3WordsListProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: S3WordsListProperty -> S3WordsListProperty -> Bool
== :: S3WordsListProperty -> S3WordsListProperty -> Bool
$c/= :: S3WordsListProperty -> S3WordsListProperty -> Bool
/= :: S3WordsListProperty -> S3WordsListProperty -> Bool
Prelude.Eq, Int -> S3WordsListProperty -> ShowS
[S3WordsListProperty] -> ShowS
S3WordsListProperty -> String
(Int -> S3WordsListProperty -> ShowS)
-> (S3WordsListProperty -> String)
-> ([S3WordsListProperty] -> ShowS)
-> Show S3WordsListProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> S3WordsListProperty -> ShowS
showsPrec :: Int -> S3WordsListProperty -> ShowS
$cshow :: S3WordsListProperty -> String
show :: S3WordsListProperty -> String
$cshowList :: [S3WordsListProperty] -> ShowS
showList :: [S3WordsListProperty] -> ShowS
Prelude.Show)
mkS3WordsListProperty ::
  Value Prelude.Text -> Value Prelude.Text -> S3WordsListProperty
mkS3WordsListProperty :: Value Text -> Value Text -> S3WordsListProperty
mkS3WordsListProperty Value Text
bucketName Value Text
objectKey
  = S3WordsListProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), bucketName :: Value Text
bucketName = Value Text
bucketName,
       objectKey :: Value Text
objectKey = Value Text
objectKey}
instance ToResourceProperties S3WordsListProperty where
  toResourceProperties :: S3WordsListProperty -> ResourceProperties
toResourceProperties S3WordsListProperty {()
Value Text
haddock_workaround_ :: S3WordsListProperty -> ()
bucketName :: S3WordsListProperty -> Value Text
objectKey :: S3WordsListProperty -> Value Text
haddock_workaround_ :: ()
bucketName :: Value Text
objectKey :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Macie::AllowList.S3WordsList",
         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 S3WordsListProperty where
  toJSON :: S3WordsListProperty -> Value
toJSON S3WordsListProperty {()
Value Text
haddock_workaround_ :: S3WordsListProperty -> ()
bucketName :: S3WordsListProperty -> Value Text
objectKey :: S3WordsListProperty -> 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" S3WordsListProperty where
  type PropertyType "BucketName" S3WordsListProperty = Value Prelude.Text
  set :: PropertyType "BucketName" S3WordsListProperty
-> S3WordsListProperty -> S3WordsListProperty
set PropertyType "BucketName" S3WordsListProperty
newValue S3WordsListProperty {()
Value Text
haddock_workaround_ :: S3WordsListProperty -> ()
bucketName :: S3WordsListProperty -> Value Text
objectKey :: S3WordsListProperty -> Value Text
haddock_workaround_ :: ()
bucketName :: Value Text
objectKey :: Value Text
..}
    = S3WordsListProperty {bucketName :: Value Text
bucketName = PropertyType "BucketName" S3WordsListProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
objectKey :: Value Text
haddock_workaround_ :: ()
objectKey :: Value Text
..}
instance Property "ObjectKey" S3WordsListProperty where
  type PropertyType "ObjectKey" S3WordsListProperty = Value Prelude.Text
  set :: PropertyType "ObjectKey" S3WordsListProperty
-> S3WordsListProperty -> S3WordsListProperty
set PropertyType "ObjectKey" S3WordsListProperty
newValue S3WordsListProperty {()
Value Text
haddock_workaround_ :: S3WordsListProperty -> ()
bucketName :: S3WordsListProperty -> Value Text
objectKey :: S3WordsListProperty -> Value Text
haddock_workaround_ :: ()
bucketName :: Value Text
objectKey :: Value Text
..}
    = S3WordsListProperty {objectKey :: Value Text
objectKey = PropertyType "ObjectKey" S3WordsListProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
bucketName :: Value Text
haddock_workaround_ :: ()
bucketName :: Value Text
..}