module Stratosphere.DataSync.LocationSMB.CustomSecretConfigProperty (
CustomSecretConfigProperty(..), mkCustomSecretConfigProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data CustomSecretConfigProperty
=
CustomSecretConfigProperty {CustomSecretConfigProperty -> ()
haddock_workaround_ :: (),
CustomSecretConfigProperty -> Value Text
secretAccessRoleArn :: (Value Prelude.Text),
CustomSecretConfigProperty -> Value Text
secretArn :: (Value Prelude.Text)}
deriving stock (CustomSecretConfigProperty -> CustomSecretConfigProperty -> Bool
(CustomSecretConfigProperty -> CustomSecretConfigProperty -> Bool)
-> (CustomSecretConfigProperty
-> CustomSecretConfigProperty -> Bool)
-> Eq CustomSecretConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: CustomSecretConfigProperty -> CustomSecretConfigProperty -> Bool
== :: CustomSecretConfigProperty -> CustomSecretConfigProperty -> Bool
$c/= :: CustomSecretConfigProperty -> CustomSecretConfigProperty -> Bool
/= :: CustomSecretConfigProperty -> CustomSecretConfigProperty -> Bool
Prelude.Eq, Int -> CustomSecretConfigProperty -> ShowS
[CustomSecretConfigProperty] -> ShowS
CustomSecretConfigProperty -> String
(Int -> CustomSecretConfigProperty -> ShowS)
-> (CustomSecretConfigProperty -> String)
-> ([CustomSecretConfigProperty] -> ShowS)
-> Show CustomSecretConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> CustomSecretConfigProperty -> ShowS
showsPrec :: Int -> CustomSecretConfigProperty -> ShowS
$cshow :: CustomSecretConfigProperty -> String
show :: CustomSecretConfigProperty -> String
$cshowList :: [CustomSecretConfigProperty] -> ShowS
showList :: [CustomSecretConfigProperty] -> ShowS
Prelude.Show)
mkCustomSecretConfigProperty ::
Value Prelude.Text
-> Value Prelude.Text -> CustomSecretConfigProperty
mkCustomSecretConfigProperty :: Value Text -> Value Text -> CustomSecretConfigProperty
mkCustomSecretConfigProperty Value Text
secretAccessRoleArn Value Text
secretArn
= CustomSecretConfigProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (),
secretAccessRoleArn :: Value Text
secretAccessRoleArn = Value Text
secretAccessRoleArn, secretArn :: Value Text
secretArn = Value Text
secretArn}
instance ToResourceProperties CustomSecretConfigProperty where
toResourceProperties :: CustomSecretConfigProperty -> ResourceProperties
toResourceProperties CustomSecretConfigProperty {()
Value Text
haddock_workaround_ :: CustomSecretConfigProperty -> ()
secretAccessRoleArn :: CustomSecretConfigProperty -> Value Text
secretArn :: CustomSecretConfigProperty -> Value Text
haddock_workaround_ :: ()
secretAccessRoleArn :: Value Text
secretArn :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::DataSync::LocationSMB.CustomSecretConfig",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"SecretAccessRoleArn" 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
secretAccessRoleArn,
Key
"SecretArn" 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
secretArn]}
instance JSON.ToJSON CustomSecretConfigProperty where
toJSON :: CustomSecretConfigProperty -> Value
toJSON CustomSecretConfigProperty {()
Value Text
haddock_workaround_ :: CustomSecretConfigProperty -> ()
secretAccessRoleArn :: CustomSecretConfigProperty -> Value Text
secretArn :: CustomSecretConfigProperty -> Value Text
haddock_workaround_ :: ()
secretAccessRoleArn :: Value Text
secretArn :: Value Text
..}
= [(Key, Value)] -> Value
JSON.object
[Key
"SecretAccessRoleArn" 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
secretAccessRoleArn,
Key
"SecretArn" 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
secretArn]
instance Property "SecretAccessRoleArn" CustomSecretConfigProperty where
type PropertyType "SecretAccessRoleArn" CustomSecretConfigProperty = Value Prelude.Text
set :: PropertyType "SecretAccessRoleArn" CustomSecretConfigProperty
-> CustomSecretConfigProperty -> CustomSecretConfigProperty
set PropertyType "SecretAccessRoleArn" CustomSecretConfigProperty
newValue CustomSecretConfigProperty {()
Value Text
haddock_workaround_ :: CustomSecretConfigProperty -> ()
secretAccessRoleArn :: CustomSecretConfigProperty -> Value Text
secretArn :: CustomSecretConfigProperty -> Value Text
haddock_workaround_ :: ()
secretAccessRoleArn :: Value Text
secretArn :: Value Text
..}
= CustomSecretConfigProperty {secretAccessRoleArn :: Value Text
secretAccessRoleArn = PropertyType "SecretAccessRoleArn" CustomSecretConfigProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
secretArn :: Value Text
haddock_workaround_ :: ()
secretArn :: Value Text
..}
instance Property "SecretArn" CustomSecretConfigProperty where
type PropertyType "SecretArn" CustomSecretConfigProperty = Value Prelude.Text
set :: PropertyType "SecretArn" CustomSecretConfigProperty
-> CustomSecretConfigProperty -> CustomSecretConfigProperty
set PropertyType "SecretArn" CustomSecretConfigProperty
newValue CustomSecretConfigProperty {()
Value Text
haddock_workaround_ :: CustomSecretConfigProperty -> ()
secretAccessRoleArn :: CustomSecretConfigProperty -> Value Text
secretArn :: CustomSecretConfigProperty -> Value Text
haddock_workaround_ :: ()
secretAccessRoleArn :: Value Text
secretArn :: Value Text
..}
= CustomSecretConfigProperty {secretArn :: Value Text
secretArn = PropertyType "SecretArn" CustomSecretConfigProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
secretAccessRoleArn :: Value Text
haddock_workaround_ :: ()
secretAccessRoleArn :: Value Text
..}