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