module Stratosphere.SageMaker.ModelCard.AdditionalInformationProperty (
        AdditionalInformationProperty(..), mkAdditionalInformationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data AdditionalInformationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-modelcard-additionalinformation.html>
    AdditionalInformationProperty {AdditionalInformationProperty -> ()
haddock_workaround_ :: (),
                                   -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-modelcard-additionalinformation.html#cfn-sagemaker-modelcard-additionalinformation-caveatsandrecommendations>
                                   AdditionalInformationProperty -> Maybe (Value Text)
caveatsAndRecommendations :: (Prelude.Maybe (Value Prelude.Text)),
                                   -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-modelcard-additionalinformation.html#cfn-sagemaker-modelcard-additionalinformation-customdetails>
                                   AdditionalInformationProperty -> Maybe (Map Text (Value Text))
customDetails :: (Prelude.Maybe (Prelude.Map Prelude.Text (Value Prelude.Text))),
                                   -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-modelcard-additionalinformation.html#cfn-sagemaker-modelcard-additionalinformation-ethicalconsiderations>
                                   AdditionalInformationProperty -> Maybe (Value Text)
ethicalConsiderations :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (AdditionalInformationProperty
-> AdditionalInformationProperty -> Bool
(AdditionalInformationProperty
 -> AdditionalInformationProperty -> Bool)
-> (AdditionalInformationProperty
    -> AdditionalInformationProperty -> Bool)
-> Eq AdditionalInformationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: AdditionalInformationProperty
-> AdditionalInformationProperty -> Bool
== :: AdditionalInformationProperty
-> AdditionalInformationProperty -> Bool
$c/= :: AdditionalInformationProperty
-> AdditionalInformationProperty -> Bool
/= :: AdditionalInformationProperty
-> AdditionalInformationProperty -> Bool
Prelude.Eq, Int -> AdditionalInformationProperty -> ShowS
[AdditionalInformationProperty] -> ShowS
AdditionalInformationProperty -> String
(Int -> AdditionalInformationProperty -> ShowS)
-> (AdditionalInformationProperty -> String)
-> ([AdditionalInformationProperty] -> ShowS)
-> Show AdditionalInformationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> AdditionalInformationProperty -> ShowS
showsPrec :: Int -> AdditionalInformationProperty -> ShowS
$cshow :: AdditionalInformationProperty -> String
show :: AdditionalInformationProperty -> String
$cshowList :: [AdditionalInformationProperty] -> ShowS
showList :: [AdditionalInformationProperty] -> ShowS
Prelude.Show)
mkAdditionalInformationProperty :: AdditionalInformationProperty
mkAdditionalInformationProperty :: AdditionalInformationProperty
mkAdditionalInformationProperty
  = AdditionalInformationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (),
       caveatsAndRecommendations :: Maybe (Value Text)
caveatsAndRecommendations = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       customDetails :: Maybe (Map Text (Value Text))
customDetails = Maybe (Map Text (Value Text))
forall a. Maybe a
Prelude.Nothing,
       ethicalConsiderations :: Maybe (Value Text)
ethicalConsiderations = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties AdditionalInformationProperty where
  toResourceProperties :: AdditionalInformationProperty -> ResourceProperties
toResourceProperties AdditionalInformationProperty {Maybe (Map Text (Value Text))
Maybe (Value Text)
()
haddock_workaround_ :: AdditionalInformationProperty -> ()
caveatsAndRecommendations :: AdditionalInformationProperty -> Maybe (Value Text)
customDetails :: AdditionalInformationProperty -> Maybe (Map Text (Value Text))
ethicalConsiderations :: AdditionalInformationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
caveatsAndRecommendations :: Maybe (Value Text)
customDetails :: Maybe (Map Text (Value Text))
ethicalConsiderations :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::SageMaker::ModelCard.AdditionalInformation",
         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
"CaveatsAndRecommendations"
                              (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)
caveatsAndRecommendations,
                            Key -> Map Text (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
"CustomDetails" (Map Text (Value Text) -> (Key, Value))
-> Maybe (Map Text (Value Text)) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Map Text (Value Text))
customDetails,
                            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
"EthicalConsiderations"
                              (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)
ethicalConsiderations])}
instance JSON.ToJSON AdditionalInformationProperty where
  toJSON :: AdditionalInformationProperty -> Value
toJSON AdditionalInformationProperty {Maybe (Map Text (Value Text))
Maybe (Value Text)
()
haddock_workaround_ :: AdditionalInformationProperty -> ()
caveatsAndRecommendations :: AdditionalInformationProperty -> Maybe (Value Text)
customDetails :: AdditionalInformationProperty -> Maybe (Map Text (Value Text))
ethicalConsiderations :: AdditionalInformationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
caveatsAndRecommendations :: Maybe (Value Text)
customDetails :: Maybe (Map Text (Value Text))
ethicalConsiderations :: 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
"CaveatsAndRecommendations"
                 (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)
caveatsAndRecommendations,
               Key -> Map Text (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
"CustomDetails" (Map Text (Value Text) -> (Key, Value))
-> Maybe (Map Text (Value Text)) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Map Text (Value Text))
customDetails,
               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
"EthicalConsiderations"
                 (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)
ethicalConsiderations]))
instance Property "CaveatsAndRecommendations" AdditionalInformationProperty where
  type PropertyType "CaveatsAndRecommendations" AdditionalInformationProperty = Value Prelude.Text
  set :: PropertyType
  "CaveatsAndRecommendations" AdditionalInformationProperty
-> AdditionalInformationProperty -> AdditionalInformationProperty
set PropertyType
  "CaveatsAndRecommendations" AdditionalInformationProperty
newValue AdditionalInformationProperty {Maybe (Map Text (Value Text))
Maybe (Value Text)
()
haddock_workaround_ :: AdditionalInformationProperty -> ()
caveatsAndRecommendations :: AdditionalInformationProperty -> Maybe (Value Text)
customDetails :: AdditionalInformationProperty -> Maybe (Map Text (Value Text))
ethicalConsiderations :: AdditionalInformationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
caveatsAndRecommendations :: Maybe (Value Text)
customDetails :: Maybe (Map Text (Value Text))
ethicalConsiderations :: Maybe (Value Text)
..}
    = AdditionalInformationProperty
        {caveatsAndRecommendations :: Maybe (Value Text)
caveatsAndRecommendations = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "CaveatsAndRecommendations" AdditionalInformationProperty
Value Text
newValue, Maybe (Map Text (Value Text))
Maybe (Value Text)
()
haddock_workaround_ :: ()
customDetails :: Maybe (Map Text (Value Text))
ethicalConsiderations :: Maybe (Value Text)
haddock_workaround_ :: ()
customDetails :: Maybe (Map Text (Value Text))
ethicalConsiderations :: Maybe (Value Text)
..}
instance Property "CustomDetails" AdditionalInformationProperty where
  type PropertyType "CustomDetails" AdditionalInformationProperty = Prelude.Map Prelude.Text (Value Prelude.Text)
  set :: PropertyType "CustomDetails" AdditionalInformationProperty
-> AdditionalInformationProperty -> AdditionalInformationProperty
set PropertyType "CustomDetails" AdditionalInformationProperty
newValue AdditionalInformationProperty {Maybe (Map Text (Value Text))
Maybe (Value Text)
()
haddock_workaround_ :: AdditionalInformationProperty -> ()
caveatsAndRecommendations :: AdditionalInformationProperty -> Maybe (Value Text)
customDetails :: AdditionalInformationProperty -> Maybe (Map Text (Value Text))
ethicalConsiderations :: AdditionalInformationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
caveatsAndRecommendations :: Maybe (Value Text)
customDetails :: Maybe (Map Text (Value Text))
ethicalConsiderations :: Maybe (Value Text)
..}
    = AdditionalInformationProperty
        {customDetails :: Maybe (Map Text (Value Text))
customDetails = Map Text (Value Text) -> Maybe (Map Text (Value Text))
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure Map Text (Value Text)
PropertyType "CustomDetails" AdditionalInformationProperty
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
caveatsAndRecommendations :: Maybe (Value Text)
ethicalConsiderations :: Maybe (Value Text)
haddock_workaround_ :: ()
caveatsAndRecommendations :: Maybe (Value Text)
ethicalConsiderations :: Maybe (Value Text)
..}
instance Property "EthicalConsiderations" AdditionalInformationProperty where
  type PropertyType "EthicalConsiderations" AdditionalInformationProperty = Value Prelude.Text
  set :: PropertyType "EthicalConsiderations" AdditionalInformationProperty
-> AdditionalInformationProperty -> AdditionalInformationProperty
set PropertyType "EthicalConsiderations" AdditionalInformationProperty
newValue AdditionalInformationProperty {Maybe (Map Text (Value Text))
Maybe (Value Text)
()
haddock_workaround_ :: AdditionalInformationProperty -> ()
caveatsAndRecommendations :: AdditionalInformationProperty -> Maybe (Value Text)
customDetails :: AdditionalInformationProperty -> Maybe (Map Text (Value Text))
ethicalConsiderations :: AdditionalInformationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
caveatsAndRecommendations :: Maybe (Value Text)
customDetails :: Maybe (Map Text (Value Text))
ethicalConsiderations :: Maybe (Value Text)
..}
    = AdditionalInformationProperty
        {ethicalConsiderations :: Maybe (Value Text)
ethicalConsiderations = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "EthicalConsiderations" AdditionalInformationProperty
Value Text
newValue, Maybe (Map Text (Value Text))
Maybe (Value Text)
()
haddock_workaround_ :: ()
caveatsAndRecommendations :: Maybe (Value Text)
customDetails :: Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
caveatsAndRecommendations :: Maybe (Value Text)
customDetails :: Maybe (Map Text (Value Text))
..}