module Stratosphere.DataZone.Connection.S3PropertiesInputProperty (
S3PropertiesInputProperty(..), mkS3PropertiesInputProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data S3PropertiesInputProperty
=
S3PropertiesInputProperty {S3PropertiesInputProperty -> ()
haddock_workaround_ :: (),
S3PropertiesInputProperty -> Maybe (Value Text)
s3AccessGrantLocationId :: (Prelude.Maybe (Value Prelude.Text)),
S3PropertiesInputProperty -> Value Text
s3Uri :: (Value Prelude.Text)}
deriving stock (S3PropertiesInputProperty -> S3PropertiesInputProperty -> Bool
(S3PropertiesInputProperty -> S3PropertiesInputProperty -> Bool)
-> (S3PropertiesInputProperty -> S3PropertiesInputProperty -> Bool)
-> Eq S3PropertiesInputProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: S3PropertiesInputProperty -> S3PropertiesInputProperty -> Bool
== :: S3PropertiesInputProperty -> S3PropertiesInputProperty -> Bool
$c/= :: S3PropertiesInputProperty -> S3PropertiesInputProperty -> Bool
/= :: S3PropertiesInputProperty -> S3PropertiesInputProperty -> Bool
Prelude.Eq, Int -> S3PropertiesInputProperty -> ShowS
[S3PropertiesInputProperty] -> ShowS
S3PropertiesInputProperty -> String
(Int -> S3PropertiesInputProperty -> ShowS)
-> (S3PropertiesInputProperty -> String)
-> ([S3PropertiesInputProperty] -> ShowS)
-> Show S3PropertiesInputProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> S3PropertiesInputProperty -> ShowS
showsPrec :: Int -> S3PropertiesInputProperty -> ShowS
$cshow :: S3PropertiesInputProperty -> String
show :: S3PropertiesInputProperty -> String
$cshowList :: [S3PropertiesInputProperty] -> ShowS
showList :: [S3PropertiesInputProperty] -> ShowS
Prelude.Show)
mkS3PropertiesInputProperty ::
Value Prelude.Text -> S3PropertiesInputProperty
mkS3PropertiesInputProperty :: Value Text -> S3PropertiesInputProperty
mkS3PropertiesInputProperty Value Text
s3Uri
= S3PropertiesInputProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), s3Uri :: Value Text
s3Uri = Value Text
s3Uri,
s3AccessGrantLocationId :: Maybe (Value Text)
s3AccessGrantLocationId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties S3PropertiesInputProperty where
toResourceProperties :: S3PropertiesInputProperty -> ResourceProperties
toResourceProperties S3PropertiesInputProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: S3PropertiesInputProperty -> ()
s3AccessGrantLocationId :: S3PropertiesInputProperty -> Maybe (Value Text)
s3Uri :: S3PropertiesInputProperty -> Value Text
haddock_workaround_ :: ()
s3AccessGrantLocationId :: Maybe (Value Text)
s3Uri :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::DataZone::Connection.S3PropertiesInput",
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
"S3Uri" 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
s3Uri]
([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
"S3AccessGrantLocationId"
(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)
s3AccessGrantLocationId]))}
instance JSON.ToJSON S3PropertiesInputProperty where
toJSON :: S3PropertiesInputProperty -> Value
toJSON S3PropertiesInputProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: S3PropertiesInputProperty -> ()
s3AccessGrantLocationId :: S3PropertiesInputProperty -> Maybe (Value Text)
s3Uri :: S3PropertiesInputProperty -> Value Text
haddock_workaround_ :: ()
s3AccessGrantLocationId :: Maybe (Value Text)
s3Uri :: 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
"S3Uri" 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
s3Uri]
([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
"S3AccessGrantLocationId"
(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)
s3AccessGrantLocationId])))
instance Property "S3AccessGrantLocationId" S3PropertiesInputProperty where
type PropertyType "S3AccessGrantLocationId" S3PropertiesInputProperty = Value Prelude.Text
set :: PropertyType "S3AccessGrantLocationId" S3PropertiesInputProperty
-> S3PropertiesInputProperty -> S3PropertiesInputProperty
set PropertyType "S3AccessGrantLocationId" S3PropertiesInputProperty
newValue S3PropertiesInputProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: S3PropertiesInputProperty -> ()
s3AccessGrantLocationId :: S3PropertiesInputProperty -> Maybe (Value Text)
s3Uri :: S3PropertiesInputProperty -> Value Text
haddock_workaround_ :: ()
s3AccessGrantLocationId :: Maybe (Value Text)
s3Uri :: Value Text
..}
= S3PropertiesInputProperty
{s3AccessGrantLocationId :: Maybe (Value Text)
s3AccessGrantLocationId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "S3AccessGrantLocationId" S3PropertiesInputProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
s3Uri :: Value Text
haddock_workaround_ :: ()
s3Uri :: Value Text
..}
instance Property "S3Uri" S3PropertiesInputProperty where
type PropertyType "S3Uri" S3PropertiesInputProperty = Value Prelude.Text
set :: PropertyType "S3Uri" S3PropertiesInputProperty
-> S3PropertiesInputProperty -> S3PropertiesInputProperty
set PropertyType "S3Uri" S3PropertiesInputProperty
newValue S3PropertiesInputProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: S3PropertiesInputProperty -> ()
s3AccessGrantLocationId :: S3PropertiesInputProperty -> Maybe (Value Text)
s3Uri :: S3PropertiesInputProperty -> Value Text
haddock_workaround_ :: ()
s3AccessGrantLocationId :: Maybe (Value Text)
s3Uri :: Value Text
..}
= S3PropertiesInputProperty {s3Uri :: Value Text
s3Uri = PropertyType "S3Uri" S3PropertiesInputProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
s3AccessGrantLocationId :: Maybe (Value Text)
haddock_workaround_ :: ()
s3AccessGrantLocationId :: Maybe (Value Text)
..}