module Stratosphere.SageMaker.EndpointConfig.AsyncInferenceOutputConfigProperty (
        module Exports, AsyncInferenceOutputConfigProperty(..),
        mkAsyncInferenceOutputConfigProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.SageMaker.EndpointConfig.AsyncInferenceNotificationConfigProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data AsyncInferenceOutputConfigProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-endpointconfig-asyncinferenceoutputconfig.html>
    AsyncInferenceOutputConfigProperty {AsyncInferenceOutputConfigProperty -> ()
haddock_workaround_ :: (),
                                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-endpointconfig-asyncinferenceoutputconfig.html#cfn-sagemaker-endpointconfig-asyncinferenceoutputconfig-kmskeyid>
                                        AsyncInferenceOutputConfigProperty -> Maybe (Value Text)
kmsKeyId :: (Prelude.Maybe (Value Prelude.Text)),
                                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-endpointconfig-asyncinferenceoutputconfig.html#cfn-sagemaker-endpointconfig-asyncinferenceoutputconfig-notificationconfig>
                                        AsyncInferenceOutputConfigProperty
-> Maybe AsyncInferenceNotificationConfigProperty
notificationConfig :: (Prelude.Maybe AsyncInferenceNotificationConfigProperty),
                                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-endpointconfig-asyncinferenceoutputconfig.html#cfn-sagemaker-endpointconfig-asyncinferenceoutputconfig-s3failurepath>
                                        AsyncInferenceOutputConfigProperty -> Maybe (Value Text)
s3FailurePath :: (Prelude.Maybe (Value Prelude.Text)),
                                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-endpointconfig-asyncinferenceoutputconfig.html#cfn-sagemaker-endpointconfig-asyncinferenceoutputconfig-s3outputpath>
                                        AsyncInferenceOutputConfigProperty -> Maybe (Value Text)
s3OutputPath :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (AsyncInferenceOutputConfigProperty
-> AsyncInferenceOutputConfigProperty -> Bool
(AsyncInferenceOutputConfigProperty
 -> AsyncInferenceOutputConfigProperty -> Bool)
-> (AsyncInferenceOutputConfigProperty
    -> AsyncInferenceOutputConfigProperty -> Bool)
-> Eq AsyncInferenceOutputConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: AsyncInferenceOutputConfigProperty
-> AsyncInferenceOutputConfigProperty -> Bool
== :: AsyncInferenceOutputConfigProperty
-> AsyncInferenceOutputConfigProperty -> Bool
$c/= :: AsyncInferenceOutputConfigProperty
-> AsyncInferenceOutputConfigProperty -> Bool
/= :: AsyncInferenceOutputConfigProperty
-> AsyncInferenceOutputConfigProperty -> Bool
Prelude.Eq, Int -> AsyncInferenceOutputConfigProperty -> ShowS
[AsyncInferenceOutputConfigProperty] -> ShowS
AsyncInferenceOutputConfigProperty -> String
(Int -> AsyncInferenceOutputConfigProperty -> ShowS)
-> (AsyncInferenceOutputConfigProperty -> String)
-> ([AsyncInferenceOutputConfigProperty] -> ShowS)
-> Show AsyncInferenceOutputConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> AsyncInferenceOutputConfigProperty -> ShowS
showsPrec :: Int -> AsyncInferenceOutputConfigProperty -> ShowS
$cshow :: AsyncInferenceOutputConfigProperty -> String
show :: AsyncInferenceOutputConfigProperty -> String
$cshowList :: [AsyncInferenceOutputConfigProperty] -> ShowS
showList :: [AsyncInferenceOutputConfigProperty] -> ShowS
Prelude.Show)
mkAsyncInferenceOutputConfigProperty ::
  AsyncInferenceOutputConfigProperty
mkAsyncInferenceOutputConfigProperty :: AsyncInferenceOutputConfigProperty
mkAsyncInferenceOutputConfigProperty
  = AsyncInferenceOutputConfigProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), kmsKeyId :: Maybe (Value Text)
kmsKeyId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       notificationConfig :: Maybe AsyncInferenceNotificationConfigProperty
notificationConfig = Maybe AsyncInferenceNotificationConfigProperty
forall a. Maybe a
Prelude.Nothing,
       s3FailurePath :: Maybe (Value Text)
s3FailurePath = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, s3OutputPath :: Maybe (Value Text)
s3OutputPath = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties AsyncInferenceOutputConfigProperty where
  toResourceProperties :: AsyncInferenceOutputConfigProperty -> ResourceProperties
toResourceProperties AsyncInferenceOutputConfigProperty {Maybe (Value Text)
Maybe AsyncInferenceNotificationConfigProperty
()
haddock_workaround_ :: AsyncInferenceOutputConfigProperty -> ()
kmsKeyId :: AsyncInferenceOutputConfigProperty -> Maybe (Value Text)
notificationConfig :: AsyncInferenceOutputConfigProperty
-> Maybe AsyncInferenceNotificationConfigProperty
s3FailurePath :: AsyncInferenceOutputConfigProperty -> Maybe (Value Text)
s3OutputPath :: AsyncInferenceOutputConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
kmsKeyId :: Maybe (Value Text)
notificationConfig :: Maybe AsyncInferenceNotificationConfigProperty
s3FailurePath :: Maybe (Value Text)
s3OutputPath :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::SageMaker::EndpointConfig.AsyncInferenceOutputConfig",
         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
"KmsKeyId" (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)
kmsKeyId,
                            Key -> AsyncInferenceNotificationConfigProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"NotificationConfig" (AsyncInferenceNotificationConfigProperty -> (Key, Value))
-> Maybe AsyncInferenceNotificationConfigProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe AsyncInferenceNotificationConfigProperty
notificationConfig,
                            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
"S3FailurePath" (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)
s3FailurePath,
                            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
"S3OutputPath" (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)
s3OutputPath])}
instance JSON.ToJSON AsyncInferenceOutputConfigProperty where
  toJSON :: AsyncInferenceOutputConfigProperty -> Value
toJSON AsyncInferenceOutputConfigProperty {Maybe (Value Text)
Maybe AsyncInferenceNotificationConfigProperty
()
haddock_workaround_ :: AsyncInferenceOutputConfigProperty -> ()
kmsKeyId :: AsyncInferenceOutputConfigProperty -> Maybe (Value Text)
notificationConfig :: AsyncInferenceOutputConfigProperty
-> Maybe AsyncInferenceNotificationConfigProperty
s3FailurePath :: AsyncInferenceOutputConfigProperty -> Maybe (Value Text)
s3OutputPath :: AsyncInferenceOutputConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
kmsKeyId :: Maybe (Value Text)
notificationConfig :: Maybe AsyncInferenceNotificationConfigProperty
s3FailurePath :: Maybe (Value Text)
s3OutputPath :: 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
"KmsKeyId" (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)
kmsKeyId,
               Key -> AsyncInferenceNotificationConfigProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"NotificationConfig" (AsyncInferenceNotificationConfigProperty -> (Key, Value))
-> Maybe AsyncInferenceNotificationConfigProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe AsyncInferenceNotificationConfigProperty
notificationConfig,
               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
"S3FailurePath" (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)
s3FailurePath,
               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
"S3OutputPath" (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)
s3OutputPath]))
instance Property "KmsKeyId" AsyncInferenceOutputConfigProperty where
  type PropertyType "KmsKeyId" AsyncInferenceOutputConfigProperty = Value Prelude.Text
  set :: PropertyType "KmsKeyId" AsyncInferenceOutputConfigProperty
-> AsyncInferenceOutputConfigProperty
-> AsyncInferenceOutputConfigProperty
set PropertyType "KmsKeyId" AsyncInferenceOutputConfigProperty
newValue AsyncInferenceOutputConfigProperty {Maybe (Value Text)
Maybe AsyncInferenceNotificationConfigProperty
()
haddock_workaround_ :: AsyncInferenceOutputConfigProperty -> ()
kmsKeyId :: AsyncInferenceOutputConfigProperty -> Maybe (Value Text)
notificationConfig :: AsyncInferenceOutputConfigProperty
-> Maybe AsyncInferenceNotificationConfigProperty
s3FailurePath :: AsyncInferenceOutputConfigProperty -> Maybe (Value Text)
s3OutputPath :: AsyncInferenceOutputConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
kmsKeyId :: Maybe (Value Text)
notificationConfig :: Maybe AsyncInferenceNotificationConfigProperty
s3FailurePath :: Maybe (Value Text)
s3OutputPath :: Maybe (Value Text)
..}
    = AsyncInferenceOutputConfigProperty
        {kmsKeyId :: Maybe (Value Text)
kmsKeyId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "KmsKeyId" AsyncInferenceOutputConfigProperty
Value Text
newValue, Maybe (Value Text)
Maybe AsyncInferenceNotificationConfigProperty
()
haddock_workaround_ :: ()
notificationConfig :: Maybe AsyncInferenceNotificationConfigProperty
s3FailurePath :: Maybe (Value Text)
s3OutputPath :: Maybe (Value Text)
haddock_workaround_ :: ()
notificationConfig :: Maybe AsyncInferenceNotificationConfigProperty
s3FailurePath :: Maybe (Value Text)
s3OutputPath :: Maybe (Value Text)
..}
instance Property "NotificationConfig" AsyncInferenceOutputConfigProperty where
  type PropertyType "NotificationConfig" AsyncInferenceOutputConfigProperty = AsyncInferenceNotificationConfigProperty
  set :: PropertyType
  "NotificationConfig" AsyncInferenceOutputConfigProperty
-> AsyncInferenceOutputConfigProperty
-> AsyncInferenceOutputConfigProperty
set PropertyType
  "NotificationConfig" AsyncInferenceOutputConfigProperty
newValue AsyncInferenceOutputConfigProperty {Maybe (Value Text)
Maybe AsyncInferenceNotificationConfigProperty
()
haddock_workaround_ :: AsyncInferenceOutputConfigProperty -> ()
kmsKeyId :: AsyncInferenceOutputConfigProperty -> Maybe (Value Text)
notificationConfig :: AsyncInferenceOutputConfigProperty
-> Maybe AsyncInferenceNotificationConfigProperty
s3FailurePath :: AsyncInferenceOutputConfigProperty -> Maybe (Value Text)
s3OutputPath :: AsyncInferenceOutputConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
kmsKeyId :: Maybe (Value Text)
notificationConfig :: Maybe AsyncInferenceNotificationConfigProperty
s3FailurePath :: Maybe (Value Text)
s3OutputPath :: Maybe (Value Text)
..}
    = AsyncInferenceOutputConfigProperty
        {notificationConfig :: Maybe AsyncInferenceNotificationConfigProperty
notificationConfig = AsyncInferenceNotificationConfigProperty
-> Maybe AsyncInferenceNotificationConfigProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "NotificationConfig" AsyncInferenceOutputConfigProperty
AsyncInferenceNotificationConfigProperty
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
kmsKeyId :: Maybe (Value Text)
s3FailurePath :: Maybe (Value Text)
s3OutputPath :: Maybe (Value Text)
haddock_workaround_ :: ()
kmsKeyId :: Maybe (Value Text)
s3FailurePath :: Maybe (Value Text)
s3OutputPath :: Maybe (Value Text)
..}
instance Property "S3FailurePath" AsyncInferenceOutputConfigProperty where
  type PropertyType "S3FailurePath" AsyncInferenceOutputConfigProperty = Value Prelude.Text
  set :: PropertyType "S3FailurePath" AsyncInferenceOutputConfigProperty
-> AsyncInferenceOutputConfigProperty
-> AsyncInferenceOutputConfigProperty
set PropertyType "S3FailurePath" AsyncInferenceOutputConfigProperty
newValue AsyncInferenceOutputConfigProperty {Maybe (Value Text)
Maybe AsyncInferenceNotificationConfigProperty
()
haddock_workaround_ :: AsyncInferenceOutputConfigProperty -> ()
kmsKeyId :: AsyncInferenceOutputConfigProperty -> Maybe (Value Text)
notificationConfig :: AsyncInferenceOutputConfigProperty
-> Maybe AsyncInferenceNotificationConfigProperty
s3FailurePath :: AsyncInferenceOutputConfigProperty -> Maybe (Value Text)
s3OutputPath :: AsyncInferenceOutputConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
kmsKeyId :: Maybe (Value Text)
notificationConfig :: Maybe AsyncInferenceNotificationConfigProperty
s3FailurePath :: Maybe (Value Text)
s3OutputPath :: Maybe (Value Text)
..}
    = AsyncInferenceOutputConfigProperty
        {s3FailurePath :: Maybe (Value Text)
s3FailurePath = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "S3FailurePath" AsyncInferenceOutputConfigProperty
Value Text
newValue, Maybe (Value Text)
Maybe AsyncInferenceNotificationConfigProperty
()
haddock_workaround_ :: ()
kmsKeyId :: Maybe (Value Text)
notificationConfig :: Maybe AsyncInferenceNotificationConfigProperty
s3OutputPath :: Maybe (Value Text)
haddock_workaround_ :: ()
kmsKeyId :: Maybe (Value Text)
notificationConfig :: Maybe AsyncInferenceNotificationConfigProperty
s3OutputPath :: Maybe (Value Text)
..}
instance Property "S3OutputPath" AsyncInferenceOutputConfigProperty where
  type PropertyType "S3OutputPath" AsyncInferenceOutputConfigProperty = Value Prelude.Text
  set :: PropertyType "S3OutputPath" AsyncInferenceOutputConfigProperty
-> AsyncInferenceOutputConfigProperty
-> AsyncInferenceOutputConfigProperty
set PropertyType "S3OutputPath" AsyncInferenceOutputConfigProperty
newValue AsyncInferenceOutputConfigProperty {Maybe (Value Text)
Maybe AsyncInferenceNotificationConfigProperty
()
haddock_workaround_ :: AsyncInferenceOutputConfigProperty -> ()
kmsKeyId :: AsyncInferenceOutputConfigProperty -> Maybe (Value Text)
notificationConfig :: AsyncInferenceOutputConfigProperty
-> Maybe AsyncInferenceNotificationConfigProperty
s3FailurePath :: AsyncInferenceOutputConfigProperty -> Maybe (Value Text)
s3OutputPath :: AsyncInferenceOutputConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
kmsKeyId :: Maybe (Value Text)
notificationConfig :: Maybe AsyncInferenceNotificationConfigProperty
s3FailurePath :: Maybe (Value Text)
s3OutputPath :: Maybe (Value Text)
..}
    = AsyncInferenceOutputConfigProperty
        {s3OutputPath :: Maybe (Value Text)
s3OutputPath = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "S3OutputPath" AsyncInferenceOutputConfigProperty
Value Text
newValue, Maybe (Value Text)
Maybe AsyncInferenceNotificationConfigProperty
()
haddock_workaround_ :: ()
kmsKeyId :: Maybe (Value Text)
notificationConfig :: Maybe AsyncInferenceNotificationConfigProperty
s3FailurePath :: Maybe (Value Text)
haddock_workaround_ :: ()
kmsKeyId :: Maybe (Value Text)
notificationConfig :: Maybe AsyncInferenceNotificationConfigProperty
s3FailurePath :: Maybe (Value Text)
..}