module Stratosphere.SageMaker.Model.ImageConfigProperty (
module Exports, ImageConfigProperty(..), mkImageConfigProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.SageMaker.Model.RepositoryAuthConfigProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ImageConfigProperty
=
ImageConfigProperty {ImageConfigProperty -> ()
haddock_workaround_ :: (),
ImageConfigProperty -> Value Text
repositoryAccessMode :: (Value Prelude.Text),
ImageConfigProperty -> Maybe RepositoryAuthConfigProperty
repositoryAuthConfig :: (Prelude.Maybe RepositoryAuthConfigProperty)}
deriving stock (ImageConfigProperty -> ImageConfigProperty -> Bool
(ImageConfigProperty -> ImageConfigProperty -> Bool)
-> (ImageConfigProperty -> ImageConfigProperty -> Bool)
-> Eq ImageConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ImageConfigProperty -> ImageConfigProperty -> Bool
== :: ImageConfigProperty -> ImageConfigProperty -> Bool
$c/= :: ImageConfigProperty -> ImageConfigProperty -> Bool
/= :: ImageConfigProperty -> ImageConfigProperty -> Bool
Prelude.Eq, Int -> ImageConfigProperty -> ShowS
[ImageConfigProperty] -> ShowS
ImageConfigProperty -> String
(Int -> ImageConfigProperty -> ShowS)
-> (ImageConfigProperty -> String)
-> ([ImageConfigProperty] -> ShowS)
-> Show ImageConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ImageConfigProperty -> ShowS
showsPrec :: Int -> ImageConfigProperty -> ShowS
$cshow :: ImageConfigProperty -> String
show :: ImageConfigProperty -> String
$cshowList :: [ImageConfigProperty] -> ShowS
showList :: [ImageConfigProperty] -> ShowS
Prelude.Show)
mkImageConfigProperty :: Value Prelude.Text -> ImageConfigProperty
mkImageConfigProperty :: Value Text -> ImageConfigProperty
mkImageConfigProperty Value Text
repositoryAccessMode
= ImageConfigProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (),
repositoryAccessMode :: Value Text
repositoryAccessMode = Value Text
repositoryAccessMode,
repositoryAuthConfig :: Maybe RepositoryAuthConfigProperty
repositoryAuthConfig = Maybe RepositoryAuthConfigProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ImageConfigProperty where
toResourceProperties :: ImageConfigProperty -> ResourceProperties
toResourceProperties ImageConfigProperty {Maybe RepositoryAuthConfigProperty
()
Value Text
haddock_workaround_ :: ImageConfigProperty -> ()
repositoryAccessMode :: ImageConfigProperty -> Value Text
repositoryAuthConfig :: ImageConfigProperty -> Maybe RepositoryAuthConfigProperty
haddock_workaround_ :: ()
repositoryAccessMode :: Value Text
repositoryAuthConfig :: Maybe RepositoryAuthConfigProperty
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::SageMaker::Model.ImageConfig",
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
"RepositoryAccessMode" 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
repositoryAccessMode]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> RepositoryAuthConfigProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"RepositoryAuthConfig"
(RepositoryAuthConfigProperty -> (Key, Value))
-> Maybe RepositoryAuthConfigProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe RepositoryAuthConfigProperty
repositoryAuthConfig]))}
instance JSON.ToJSON ImageConfigProperty where
toJSON :: ImageConfigProperty -> Value
toJSON ImageConfigProperty {Maybe RepositoryAuthConfigProperty
()
Value Text
haddock_workaround_ :: ImageConfigProperty -> ()
repositoryAccessMode :: ImageConfigProperty -> Value Text
repositoryAuthConfig :: ImageConfigProperty -> Maybe RepositoryAuthConfigProperty
haddock_workaround_ :: ()
repositoryAccessMode :: Value Text
repositoryAuthConfig :: Maybe RepositoryAuthConfigProperty
..}
= [(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
"RepositoryAccessMode" 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
repositoryAccessMode]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> RepositoryAuthConfigProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"RepositoryAuthConfig"
(RepositoryAuthConfigProperty -> (Key, Value))
-> Maybe RepositoryAuthConfigProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe RepositoryAuthConfigProperty
repositoryAuthConfig])))
instance Property "RepositoryAccessMode" ImageConfigProperty where
type PropertyType "RepositoryAccessMode" ImageConfigProperty = Value Prelude.Text
set :: PropertyType "RepositoryAccessMode" ImageConfigProperty
-> ImageConfigProperty -> ImageConfigProperty
set PropertyType "RepositoryAccessMode" ImageConfigProperty
newValue ImageConfigProperty {Maybe RepositoryAuthConfigProperty
()
Value Text
haddock_workaround_ :: ImageConfigProperty -> ()
repositoryAccessMode :: ImageConfigProperty -> Value Text
repositoryAuthConfig :: ImageConfigProperty -> Maybe RepositoryAuthConfigProperty
haddock_workaround_ :: ()
repositoryAccessMode :: Value Text
repositoryAuthConfig :: Maybe RepositoryAuthConfigProperty
..}
= ImageConfigProperty {repositoryAccessMode :: Value Text
repositoryAccessMode = PropertyType "RepositoryAccessMode" ImageConfigProperty
Value Text
newValue, Maybe RepositoryAuthConfigProperty
()
haddock_workaround_ :: ()
repositoryAuthConfig :: Maybe RepositoryAuthConfigProperty
haddock_workaround_ :: ()
repositoryAuthConfig :: Maybe RepositoryAuthConfigProperty
..}
instance Property "RepositoryAuthConfig" ImageConfigProperty where
type PropertyType "RepositoryAuthConfig" ImageConfigProperty = RepositoryAuthConfigProperty
set :: PropertyType "RepositoryAuthConfig" ImageConfigProperty
-> ImageConfigProperty -> ImageConfigProperty
set PropertyType "RepositoryAuthConfig" ImageConfigProperty
newValue ImageConfigProperty {Maybe RepositoryAuthConfigProperty
()
Value Text
haddock_workaround_ :: ImageConfigProperty -> ()
repositoryAccessMode :: ImageConfigProperty -> Value Text
repositoryAuthConfig :: ImageConfigProperty -> Maybe RepositoryAuthConfigProperty
haddock_workaround_ :: ()
repositoryAccessMode :: Value Text
repositoryAuthConfig :: Maybe RepositoryAuthConfigProperty
..}
= ImageConfigProperty
{repositoryAuthConfig :: Maybe RepositoryAuthConfigProperty
repositoryAuthConfig = RepositoryAuthConfigProperty -> Maybe RepositoryAuthConfigProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "RepositoryAuthConfig" ImageConfigProperty
RepositoryAuthConfigProperty
newValue, ()
Value Text
haddock_workaround_ :: ()
repositoryAccessMode :: Value Text
haddock_workaround_ :: ()
repositoryAccessMode :: Value Text
..}