module Stratosphere.IoTAnalytics.Datastore.CustomerManagedS3Property (
CustomerManagedS3Property(..), mkCustomerManagedS3Property
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data CustomerManagedS3Property
=
CustomerManagedS3Property {CustomerManagedS3Property -> ()
haddock_workaround_ :: (),
CustomerManagedS3Property -> Value Text
bucket :: (Value Prelude.Text),
CustomerManagedS3Property -> Maybe (Value Text)
keyPrefix :: (Prelude.Maybe (Value Prelude.Text)),
CustomerManagedS3Property -> Value Text
roleArn :: (Value Prelude.Text)}
deriving stock (CustomerManagedS3Property -> CustomerManagedS3Property -> Bool
(CustomerManagedS3Property -> CustomerManagedS3Property -> Bool)
-> (CustomerManagedS3Property -> CustomerManagedS3Property -> Bool)
-> Eq CustomerManagedS3Property
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: CustomerManagedS3Property -> CustomerManagedS3Property -> Bool
== :: CustomerManagedS3Property -> CustomerManagedS3Property -> Bool
$c/= :: CustomerManagedS3Property -> CustomerManagedS3Property -> Bool
/= :: CustomerManagedS3Property -> CustomerManagedS3Property -> Bool
Prelude.Eq, Int -> CustomerManagedS3Property -> ShowS
[CustomerManagedS3Property] -> ShowS
CustomerManagedS3Property -> String
(Int -> CustomerManagedS3Property -> ShowS)
-> (CustomerManagedS3Property -> String)
-> ([CustomerManagedS3Property] -> ShowS)
-> Show CustomerManagedS3Property
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> CustomerManagedS3Property -> ShowS
showsPrec :: Int -> CustomerManagedS3Property -> ShowS
$cshow :: CustomerManagedS3Property -> String
show :: CustomerManagedS3Property -> String
$cshowList :: [CustomerManagedS3Property] -> ShowS
showList :: [CustomerManagedS3Property] -> ShowS
Prelude.Show)
mkCustomerManagedS3Property ::
Value Prelude.Text
-> Value Prelude.Text -> CustomerManagedS3Property
mkCustomerManagedS3Property :: Value Text -> Value Text -> CustomerManagedS3Property
mkCustomerManagedS3Property Value Text
bucket Value Text
roleArn
= CustomerManagedS3Property
{haddock_workaround_ :: ()
haddock_workaround_ = (), bucket :: Value Text
bucket = Value Text
bucket, roleArn :: Value Text
roleArn = Value Text
roleArn,
keyPrefix :: Maybe (Value Text)
keyPrefix = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties CustomerManagedS3Property where
toResourceProperties :: CustomerManagedS3Property -> ResourceProperties
toResourceProperties CustomerManagedS3Property {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: CustomerManagedS3Property -> ()
bucket :: CustomerManagedS3Property -> Value Text
keyPrefix :: CustomerManagedS3Property -> Maybe (Value Text)
roleArn :: CustomerManagedS3Property -> Value Text
haddock_workaround_ :: ()
bucket :: Value Text
keyPrefix :: Maybe (Value Text)
roleArn :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::IoTAnalytics::Datastore.CustomerManagedS3",
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, Key
"RoleArn" 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
roleArn]
([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
"KeyPrefix" (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)
keyPrefix]))}
instance JSON.ToJSON CustomerManagedS3Property where
toJSON :: CustomerManagedS3Property -> Value
toJSON CustomerManagedS3Property {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: CustomerManagedS3Property -> ()
bucket :: CustomerManagedS3Property -> Value Text
keyPrefix :: CustomerManagedS3Property -> Maybe (Value Text)
roleArn :: CustomerManagedS3Property -> Value Text
haddock_workaround_ :: ()
bucket :: Value Text
keyPrefix :: Maybe (Value Text)
roleArn :: 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, Key
"RoleArn" 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
roleArn]
([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
"KeyPrefix" (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)
keyPrefix])))
instance Property "Bucket" CustomerManagedS3Property where
type PropertyType "Bucket" CustomerManagedS3Property = Value Prelude.Text
set :: PropertyType "Bucket" CustomerManagedS3Property
-> CustomerManagedS3Property -> CustomerManagedS3Property
set PropertyType "Bucket" CustomerManagedS3Property
newValue CustomerManagedS3Property {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: CustomerManagedS3Property -> ()
bucket :: CustomerManagedS3Property -> Value Text
keyPrefix :: CustomerManagedS3Property -> Maybe (Value Text)
roleArn :: CustomerManagedS3Property -> Value Text
haddock_workaround_ :: ()
bucket :: Value Text
keyPrefix :: Maybe (Value Text)
roleArn :: Value Text
..}
= CustomerManagedS3Property {bucket :: Value Text
bucket = PropertyType "Bucket" CustomerManagedS3Property
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
keyPrefix :: Maybe (Value Text)
roleArn :: Value Text
haddock_workaround_ :: ()
keyPrefix :: Maybe (Value Text)
roleArn :: Value Text
..}
instance Property "KeyPrefix" CustomerManagedS3Property where
type PropertyType "KeyPrefix" CustomerManagedS3Property = Value Prelude.Text
set :: PropertyType "KeyPrefix" CustomerManagedS3Property
-> CustomerManagedS3Property -> CustomerManagedS3Property
set PropertyType "KeyPrefix" CustomerManagedS3Property
newValue CustomerManagedS3Property {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: CustomerManagedS3Property -> ()
bucket :: CustomerManagedS3Property -> Value Text
keyPrefix :: CustomerManagedS3Property -> Maybe (Value Text)
roleArn :: CustomerManagedS3Property -> Value Text
haddock_workaround_ :: ()
bucket :: Value Text
keyPrefix :: Maybe (Value Text)
roleArn :: Value Text
..}
= CustomerManagedS3Property {keyPrefix :: Maybe (Value Text)
keyPrefix = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "KeyPrefix" CustomerManagedS3Property
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
bucket :: Value Text
roleArn :: Value Text
haddock_workaround_ :: ()
bucket :: Value Text
roleArn :: Value Text
..}
instance Property "RoleArn" CustomerManagedS3Property where
type PropertyType "RoleArn" CustomerManagedS3Property = Value Prelude.Text
set :: PropertyType "RoleArn" CustomerManagedS3Property
-> CustomerManagedS3Property -> CustomerManagedS3Property
set PropertyType "RoleArn" CustomerManagedS3Property
newValue CustomerManagedS3Property {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: CustomerManagedS3Property -> ()
bucket :: CustomerManagedS3Property -> Value Text
keyPrefix :: CustomerManagedS3Property -> Maybe (Value Text)
roleArn :: CustomerManagedS3Property -> Value Text
haddock_workaround_ :: ()
bucket :: Value Text
keyPrefix :: Maybe (Value Text)
roleArn :: Value Text
..}
= CustomerManagedS3Property {roleArn :: Value Text
roleArn = PropertyType "RoleArn" CustomerManagedS3Property
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
bucket :: Value Text
keyPrefix :: Maybe (Value Text)
haddock_workaround_ :: ()
bucket :: Value Text
keyPrefix :: Maybe (Value Text)
..}