module Stratosphere.Greengrass.ResourceDefinitionVersion.SecretsManagerSecretResourceDataProperty (
SecretsManagerSecretResourceDataProperty(..),
mkSecretsManagerSecretResourceDataProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data SecretsManagerSecretResourceDataProperty
=
SecretsManagerSecretResourceDataProperty {SecretsManagerSecretResourceDataProperty -> ()
haddock_workaround_ :: (),
SecretsManagerSecretResourceDataProperty -> Value Text
aRN :: (Value Prelude.Text),
SecretsManagerSecretResourceDataProperty -> Maybe (ValueList Text)
additionalStagingLabelsToDownload :: (Prelude.Maybe (ValueList Prelude.Text))}
deriving stock (SecretsManagerSecretResourceDataProperty
-> SecretsManagerSecretResourceDataProperty -> Bool
(SecretsManagerSecretResourceDataProperty
-> SecretsManagerSecretResourceDataProperty -> Bool)
-> (SecretsManagerSecretResourceDataProperty
-> SecretsManagerSecretResourceDataProperty -> Bool)
-> Eq SecretsManagerSecretResourceDataProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SecretsManagerSecretResourceDataProperty
-> SecretsManagerSecretResourceDataProperty -> Bool
== :: SecretsManagerSecretResourceDataProperty
-> SecretsManagerSecretResourceDataProperty -> Bool
$c/= :: SecretsManagerSecretResourceDataProperty
-> SecretsManagerSecretResourceDataProperty -> Bool
/= :: SecretsManagerSecretResourceDataProperty
-> SecretsManagerSecretResourceDataProperty -> Bool
Prelude.Eq, Int -> SecretsManagerSecretResourceDataProperty -> ShowS
[SecretsManagerSecretResourceDataProperty] -> ShowS
SecretsManagerSecretResourceDataProperty -> String
(Int -> SecretsManagerSecretResourceDataProperty -> ShowS)
-> (SecretsManagerSecretResourceDataProperty -> String)
-> ([SecretsManagerSecretResourceDataProperty] -> ShowS)
-> Show SecretsManagerSecretResourceDataProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> SecretsManagerSecretResourceDataProperty -> ShowS
showsPrec :: Int -> SecretsManagerSecretResourceDataProperty -> ShowS
$cshow :: SecretsManagerSecretResourceDataProperty -> String
show :: SecretsManagerSecretResourceDataProperty -> String
$cshowList :: [SecretsManagerSecretResourceDataProperty] -> ShowS
showList :: [SecretsManagerSecretResourceDataProperty] -> ShowS
Prelude.Show)
mkSecretsManagerSecretResourceDataProperty ::
Value Prelude.Text -> SecretsManagerSecretResourceDataProperty
mkSecretsManagerSecretResourceDataProperty :: Value Text -> SecretsManagerSecretResourceDataProperty
mkSecretsManagerSecretResourceDataProperty Value Text
aRN
= SecretsManagerSecretResourceDataProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), aRN :: Value Text
aRN = Value Text
aRN,
additionalStagingLabelsToDownload :: Maybe (ValueList Text)
additionalStagingLabelsToDownload = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties SecretsManagerSecretResourceDataProperty where
toResourceProperties :: SecretsManagerSecretResourceDataProperty -> ResourceProperties
toResourceProperties SecretsManagerSecretResourceDataProperty {Maybe (ValueList Text)
()
Value Text
haddock_workaround_ :: SecretsManagerSecretResourceDataProperty -> ()
aRN :: SecretsManagerSecretResourceDataProperty -> Value Text
additionalStagingLabelsToDownload :: SecretsManagerSecretResourceDataProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
aRN :: Value Text
additionalStagingLabelsToDownload :: Maybe (ValueList Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Greengrass::ResourceDefinitionVersion.SecretsManagerSecretResourceData",
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
"ARN" 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
aRN]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> ValueList 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
"AdditionalStagingLabelsToDownload"
(ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
additionalStagingLabelsToDownload]))}
instance JSON.ToJSON SecretsManagerSecretResourceDataProperty where
toJSON :: SecretsManagerSecretResourceDataProperty -> Value
toJSON SecretsManagerSecretResourceDataProperty {Maybe (ValueList Text)
()
Value Text
haddock_workaround_ :: SecretsManagerSecretResourceDataProperty -> ()
aRN :: SecretsManagerSecretResourceDataProperty -> Value Text
additionalStagingLabelsToDownload :: SecretsManagerSecretResourceDataProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
aRN :: Value Text
additionalStagingLabelsToDownload :: Maybe (ValueList 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
"ARN" 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
aRN]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> ValueList 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
"AdditionalStagingLabelsToDownload"
(ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
additionalStagingLabelsToDownload])))
instance Property "ARN" SecretsManagerSecretResourceDataProperty where
type PropertyType "ARN" SecretsManagerSecretResourceDataProperty = Value Prelude.Text
set :: PropertyType "ARN" SecretsManagerSecretResourceDataProperty
-> SecretsManagerSecretResourceDataProperty
-> SecretsManagerSecretResourceDataProperty
set PropertyType "ARN" SecretsManagerSecretResourceDataProperty
newValue SecretsManagerSecretResourceDataProperty {Maybe (ValueList Text)
()
Value Text
haddock_workaround_ :: SecretsManagerSecretResourceDataProperty -> ()
aRN :: SecretsManagerSecretResourceDataProperty -> Value Text
additionalStagingLabelsToDownload :: SecretsManagerSecretResourceDataProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
aRN :: Value Text
additionalStagingLabelsToDownload :: Maybe (ValueList Text)
..}
= SecretsManagerSecretResourceDataProperty {aRN :: Value Text
aRN = PropertyType "ARN" SecretsManagerSecretResourceDataProperty
Value Text
newValue, Maybe (ValueList Text)
()
haddock_workaround_ :: ()
additionalStagingLabelsToDownload :: Maybe (ValueList Text)
haddock_workaround_ :: ()
additionalStagingLabelsToDownload :: Maybe (ValueList Text)
..}
instance Property "AdditionalStagingLabelsToDownload" SecretsManagerSecretResourceDataProperty where
type PropertyType "AdditionalStagingLabelsToDownload" SecretsManagerSecretResourceDataProperty = ValueList Prelude.Text
set :: PropertyType
"AdditionalStagingLabelsToDownload"
SecretsManagerSecretResourceDataProperty
-> SecretsManagerSecretResourceDataProperty
-> SecretsManagerSecretResourceDataProperty
set PropertyType
"AdditionalStagingLabelsToDownload"
SecretsManagerSecretResourceDataProperty
newValue SecretsManagerSecretResourceDataProperty {Maybe (ValueList Text)
()
Value Text
haddock_workaround_ :: SecretsManagerSecretResourceDataProperty -> ()
aRN :: SecretsManagerSecretResourceDataProperty -> Value Text
additionalStagingLabelsToDownload :: SecretsManagerSecretResourceDataProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
aRN :: Value Text
additionalStagingLabelsToDownload :: Maybe (ValueList Text)
..}
= SecretsManagerSecretResourceDataProperty
{additionalStagingLabelsToDownload :: Maybe (ValueList Text)
additionalStagingLabelsToDownload = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"AdditionalStagingLabelsToDownload"
SecretsManagerSecretResourceDataProperty
ValueList Text
newValue, ()
Value Text
haddock_workaround_ :: ()
aRN :: Value Text
haddock_workaround_ :: ()
aRN :: Value Text
..}