module Stratosphere.SageMaker.DeviceFleet.EdgeOutputConfigProperty (
        EdgeOutputConfigProperty(..), mkEdgeOutputConfigProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data EdgeOutputConfigProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-devicefleet-edgeoutputconfig.html>
    EdgeOutputConfigProperty {EdgeOutputConfigProperty -> ()
haddock_workaround_ :: (),
                              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-devicefleet-edgeoutputconfig.html#cfn-sagemaker-devicefleet-edgeoutputconfig-kmskeyid>
                              EdgeOutputConfigProperty -> Maybe (Value Text)
kmsKeyId :: (Prelude.Maybe (Value Prelude.Text)),
                              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-devicefleet-edgeoutputconfig.html#cfn-sagemaker-devicefleet-edgeoutputconfig-s3outputlocation>
                              EdgeOutputConfigProperty -> Value Text
s3OutputLocation :: (Value Prelude.Text)}
  deriving stock (EdgeOutputConfigProperty -> EdgeOutputConfigProperty -> Bool
(EdgeOutputConfigProperty -> EdgeOutputConfigProperty -> Bool)
-> (EdgeOutputConfigProperty -> EdgeOutputConfigProperty -> Bool)
-> Eq EdgeOutputConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: EdgeOutputConfigProperty -> EdgeOutputConfigProperty -> Bool
== :: EdgeOutputConfigProperty -> EdgeOutputConfigProperty -> Bool
$c/= :: EdgeOutputConfigProperty -> EdgeOutputConfigProperty -> Bool
/= :: EdgeOutputConfigProperty -> EdgeOutputConfigProperty -> Bool
Prelude.Eq, Int -> EdgeOutputConfigProperty -> ShowS
[EdgeOutputConfigProperty] -> ShowS
EdgeOutputConfigProperty -> String
(Int -> EdgeOutputConfigProperty -> ShowS)
-> (EdgeOutputConfigProperty -> String)
-> ([EdgeOutputConfigProperty] -> ShowS)
-> Show EdgeOutputConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> EdgeOutputConfigProperty -> ShowS
showsPrec :: Int -> EdgeOutputConfigProperty -> ShowS
$cshow :: EdgeOutputConfigProperty -> String
show :: EdgeOutputConfigProperty -> String
$cshowList :: [EdgeOutputConfigProperty] -> ShowS
showList :: [EdgeOutputConfigProperty] -> ShowS
Prelude.Show)
mkEdgeOutputConfigProperty ::
  Value Prelude.Text -> EdgeOutputConfigProperty
mkEdgeOutputConfigProperty :: Value Text -> EdgeOutputConfigProperty
mkEdgeOutputConfigProperty Value Text
s3OutputLocation
  = EdgeOutputConfigProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), s3OutputLocation :: Value Text
s3OutputLocation = Value Text
s3OutputLocation,
       kmsKeyId :: Maybe (Value Text)
kmsKeyId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties EdgeOutputConfigProperty where
  toResourceProperties :: EdgeOutputConfigProperty -> ResourceProperties
toResourceProperties EdgeOutputConfigProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: EdgeOutputConfigProperty -> ()
kmsKeyId :: EdgeOutputConfigProperty -> Maybe (Value Text)
s3OutputLocation :: EdgeOutputConfigProperty -> Value Text
haddock_workaround_ :: ()
kmsKeyId :: Maybe (Value Text)
s3OutputLocation :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::SageMaker::DeviceFleet.EdgeOutputConfig",
         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
"S3OutputLocation" 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
s3OutputLocation]
                           ([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]))}
instance JSON.ToJSON EdgeOutputConfigProperty where
  toJSON :: EdgeOutputConfigProperty -> Value
toJSON EdgeOutputConfigProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: EdgeOutputConfigProperty -> ()
kmsKeyId :: EdgeOutputConfigProperty -> Maybe (Value Text)
s3OutputLocation :: EdgeOutputConfigProperty -> Value Text
haddock_workaround_ :: ()
kmsKeyId :: Maybe (Value Text)
s3OutputLocation :: Value 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
"S3OutputLocation" 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
s3OutputLocation]
              ([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])))
instance Property "KmsKeyId" EdgeOutputConfigProperty where
  type PropertyType "KmsKeyId" EdgeOutputConfigProperty = Value Prelude.Text
  set :: PropertyType "KmsKeyId" EdgeOutputConfigProperty
-> EdgeOutputConfigProperty -> EdgeOutputConfigProperty
set PropertyType "KmsKeyId" EdgeOutputConfigProperty
newValue EdgeOutputConfigProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: EdgeOutputConfigProperty -> ()
kmsKeyId :: EdgeOutputConfigProperty -> Maybe (Value Text)
s3OutputLocation :: EdgeOutputConfigProperty -> Value Text
haddock_workaround_ :: ()
kmsKeyId :: Maybe (Value Text)
s3OutputLocation :: Value Text
..}
    = EdgeOutputConfigProperty {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" EdgeOutputConfigProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
s3OutputLocation :: Value Text
haddock_workaround_ :: ()
s3OutputLocation :: Value Text
..}
instance Property "S3OutputLocation" EdgeOutputConfigProperty where
  type PropertyType "S3OutputLocation" EdgeOutputConfigProperty = Value Prelude.Text
  set :: PropertyType "S3OutputLocation" EdgeOutputConfigProperty
-> EdgeOutputConfigProperty -> EdgeOutputConfigProperty
set PropertyType "S3OutputLocation" EdgeOutputConfigProperty
newValue EdgeOutputConfigProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: EdgeOutputConfigProperty -> ()
kmsKeyId :: EdgeOutputConfigProperty -> Maybe (Value Text)
s3OutputLocation :: EdgeOutputConfigProperty -> Value Text
haddock_workaround_ :: ()
kmsKeyId :: Maybe (Value Text)
s3OutputLocation :: Value Text
..}
    = EdgeOutputConfigProperty {s3OutputLocation :: Value Text
s3OutputLocation = PropertyType "S3OutputLocation" EdgeOutputConfigProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
kmsKeyId :: Maybe (Value Text)
haddock_workaround_ :: ()
kmsKeyId :: Maybe (Value Text)
..}