module Stratosphere.DataBrew.Job.OutputLocationProperty (
OutputLocationProperty(..), mkOutputLocationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data OutputLocationProperty
=
OutputLocationProperty {OutputLocationProperty -> ()
haddock_workaround_ :: (),
OutputLocationProperty -> Value Text
bucket :: (Value Prelude.Text),
OutputLocationProperty -> Maybe (Value Text)
bucketOwner :: (Prelude.Maybe (Value Prelude.Text)),
OutputLocationProperty -> Maybe (Value Text)
key :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (OutputLocationProperty -> OutputLocationProperty -> Bool
(OutputLocationProperty -> OutputLocationProperty -> Bool)
-> (OutputLocationProperty -> OutputLocationProperty -> Bool)
-> Eq OutputLocationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: OutputLocationProperty -> OutputLocationProperty -> Bool
== :: OutputLocationProperty -> OutputLocationProperty -> Bool
$c/= :: OutputLocationProperty -> OutputLocationProperty -> Bool
/= :: OutputLocationProperty -> OutputLocationProperty -> Bool
Prelude.Eq, Int -> OutputLocationProperty -> ShowS
[OutputLocationProperty] -> ShowS
OutputLocationProperty -> String
(Int -> OutputLocationProperty -> ShowS)
-> (OutputLocationProperty -> String)
-> ([OutputLocationProperty] -> ShowS)
-> Show OutputLocationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> OutputLocationProperty -> ShowS
showsPrec :: Int -> OutputLocationProperty -> ShowS
$cshow :: OutputLocationProperty -> String
show :: OutputLocationProperty -> String
$cshowList :: [OutputLocationProperty] -> ShowS
showList :: [OutputLocationProperty] -> ShowS
Prelude.Show)
mkOutputLocationProperty ::
Value Prelude.Text -> OutputLocationProperty
mkOutputLocationProperty :: Value Text -> OutputLocationProperty
mkOutputLocationProperty Value Text
bucket
= OutputLocationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), bucket :: Value Text
bucket = Value Text
bucket,
bucketOwner :: Maybe (Value Text)
bucketOwner = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, key :: Maybe (Value Text)
key = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties OutputLocationProperty where
toResourceProperties :: OutputLocationProperty -> ResourceProperties
toResourceProperties OutputLocationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: OutputLocationProperty -> ()
bucket :: OutputLocationProperty -> Value Text
bucketOwner :: OutputLocationProperty -> Maybe (Value Text)
key :: OutputLocationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
bucket :: Value Text
bucketOwner :: Maybe (Value Text)
key :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::DataBrew::Job.OutputLocation",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"Bucket" 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
bucket]
([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
"BucketOwner" (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)
bucketOwner,
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
"Key" (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)
key]))}
instance JSON.ToJSON OutputLocationProperty where
toJSON :: OutputLocationProperty -> Value
toJSON OutputLocationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: OutputLocationProperty -> ()
bucket :: OutputLocationProperty -> Value Text
bucketOwner :: OutputLocationProperty -> Maybe (Value Text)
key :: OutputLocationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
bucket :: Value Text
bucketOwner :: Maybe (Value Text)
key :: Maybe (Value Text)
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"Bucket" 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
bucket]
([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
"BucketOwner" (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)
bucketOwner,
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
"Key" (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)
key])))
instance Property "Bucket" OutputLocationProperty where
type PropertyType "Bucket" OutputLocationProperty = Value Prelude.Text
set :: PropertyType "Bucket" OutputLocationProperty
-> OutputLocationProperty -> OutputLocationProperty
set PropertyType "Bucket" OutputLocationProperty
newValue OutputLocationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: OutputLocationProperty -> ()
bucket :: OutputLocationProperty -> Value Text
bucketOwner :: OutputLocationProperty -> Maybe (Value Text)
key :: OutputLocationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
bucket :: Value Text
bucketOwner :: Maybe (Value Text)
key :: Maybe (Value Text)
..}
= OutputLocationProperty {bucket :: Value Text
bucket = PropertyType "Bucket" OutputLocationProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
bucketOwner :: Maybe (Value Text)
key :: Maybe (Value Text)
haddock_workaround_ :: ()
bucketOwner :: Maybe (Value Text)
key :: Maybe (Value Text)
..}
instance Property "BucketOwner" OutputLocationProperty where
type PropertyType "BucketOwner" OutputLocationProperty = Value Prelude.Text
set :: PropertyType "BucketOwner" OutputLocationProperty
-> OutputLocationProperty -> OutputLocationProperty
set PropertyType "BucketOwner" OutputLocationProperty
newValue OutputLocationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: OutputLocationProperty -> ()
bucket :: OutputLocationProperty -> Value Text
bucketOwner :: OutputLocationProperty -> Maybe (Value Text)
key :: OutputLocationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
bucket :: Value Text
bucketOwner :: Maybe (Value Text)
key :: Maybe (Value Text)
..}
= OutputLocationProperty {bucketOwner :: Maybe (Value Text)
bucketOwner = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "BucketOwner" OutputLocationProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
bucket :: Value Text
key :: Maybe (Value Text)
haddock_workaround_ :: ()
bucket :: Value Text
key :: Maybe (Value Text)
..}
instance Property "Key" OutputLocationProperty where
type PropertyType "Key" OutputLocationProperty = Value Prelude.Text
set :: PropertyType "Key" OutputLocationProperty
-> OutputLocationProperty -> OutputLocationProperty
set PropertyType "Key" OutputLocationProperty
newValue OutputLocationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: OutputLocationProperty -> ()
bucket :: OutputLocationProperty -> Value Text
bucketOwner :: OutputLocationProperty -> Maybe (Value Text)
key :: OutputLocationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
bucket :: Value Text
bucketOwner :: Maybe (Value Text)
key :: Maybe (Value Text)
..}
= OutputLocationProperty {key :: Maybe (Value Text)
key = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Key" OutputLocationProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
bucket :: Value Text
bucketOwner :: Maybe (Value Text)
haddock_workaround_ :: ()
bucket :: Value Text
bucketOwner :: Maybe (Value Text)
..}