{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.Greengrass.Types.ResourceDataContainer
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.Greengrass.Types.ResourceDataContainer where

import qualified Amazonka.Core as Core
import Amazonka.Greengrass.Types.LocalDeviceResourceData
import Amazonka.Greengrass.Types.LocalVolumeResourceData
import Amazonka.Greengrass.Types.S3MachineLearningModelResourceData
import Amazonka.Greengrass.Types.SageMakerMachineLearningModelResourceData
import Amazonka.Greengrass.Types.SecretsManagerSecretResourceData
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude

-- | A container for resource data. The container takes only one of the
-- following supported resource data types:
-- \'\'LocalDeviceResourceData\'\', \'\'LocalVolumeResourceData\'\',
-- \'\'SageMakerMachineLearningModelResourceData\'\',
-- \'\'S3MachineLearningModelResourceData\'\',
-- \'\'SecretsManagerSecretResourceData\'\'.
--
-- /See:/ 'newResourceDataContainer' smart constructor.
data ResourceDataContainer = ResourceDataContainer'
  { -- | Attributes that define an Amazon S3 machine learning resource.
    ResourceDataContainer -> Maybe S3MachineLearningModelResourceData
s3MachineLearningModelResourceData :: Prelude.Maybe S3MachineLearningModelResourceData,
    -- | Attributes that define an Amazon SageMaker machine learning resource.
    ResourceDataContainer
-> Maybe SageMakerMachineLearningModelResourceData
sageMakerMachineLearningModelResourceData :: Prelude.Maybe SageMakerMachineLearningModelResourceData,
    -- | Attributes that define the local volume resource.
    ResourceDataContainer -> Maybe LocalVolumeResourceData
localVolumeResourceData :: Prelude.Maybe LocalVolumeResourceData,
    -- | Attributes that define the local device resource.
    ResourceDataContainer -> Maybe LocalDeviceResourceData
localDeviceResourceData :: Prelude.Maybe LocalDeviceResourceData,
    -- | Attributes that define a secret resource, which references a secret from
    -- AWS Secrets Manager.
    ResourceDataContainer -> Maybe SecretsManagerSecretResourceData
secretsManagerSecretResourceData :: Prelude.Maybe SecretsManagerSecretResourceData
  }
  deriving (ResourceDataContainer -> ResourceDataContainer -> Bool
(ResourceDataContainer -> ResourceDataContainer -> Bool)
-> (ResourceDataContainer -> ResourceDataContainer -> Bool)
-> Eq ResourceDataContainer
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ResourceDataContainer -> ResourceDataContainer -> Bool
$c/= :: ResourceDataContainer -> ResourceDataContainer -> Bool
== :: ResourceDataContainer -> ResourceDataContainer -> Bool
$c== :: ResourceDataContainer -> ResourceDataContainer -> Bool
Prelude.Eq, ReadPrec [ResourceDataContainer]
ReadPrec ResourceDataContainer
Int -> ReadS ResourceDataContainer
ReadS [ResourceDataContainer]
(Int -> ReadS ResourceDataContainer)
-> ReadS [ResourceDataContainer]
-> ReadPrec ResourceDataContainer
-> ReadPrec [ResourceDataContainer]
-> Read ResourceDataContainer
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ResourceDataContainer]
$creadListPrec :: ReadPrec [ResourceDataContainer]
readPrec :: ReadPrec ResourceDataContainer
$creadPrec :: ReadPrec ResourceDataContainer
readList :: ReadS [ResourceDataContainer]
$creadList :: ReadS [ResourceDataContainer]
readsPrec :: Int -> ReadS ResourceDataContainer
$creadsPrec :: Int -> ReadS ResourceDataContainer
Prelude.Read, Int -> ResourceDataContainer -> ShowS
[ResourceDataContainer] -> ShowS
ResourceDataContainer -> String
(Int -> ResourceDataContainer -> ShowS)
-> (ResourceDataContainer -> String)
-> ([ResourceDataContainer] -> ShowS)
-> Show ResourceDataContainer
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ResourceDataContainer] -> ShowS
$cshowList :: [ResourceDataContainer] -> ShowS
show :: ResourceDataContainer -> String
$cshow :: ResourceDataContainer -> String
showsPrec :: Int -> ResourceDataContainer -> ShowS
$cshowsPrec :: Int -> ResourceDataContainer -> ShowS
Prelude.Show, (forall x. ResourceDataContainer -> Rep ResourceDataContainer x)
-> (forall x. Rep ResourceDataContainer x -> ResourceDataContainer)
-> Generic ResourceDataContainer
forall x. Rep ResourceDataContainer x -> ResourceDataContainer
forall x. ResourceDataContainer -> Rep ResourceDataContainer x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ResourceDataContainer x -> ResourceDataContainer
$cfrom :: forall x. ResourceDataContainer -> Rep ResourceDataContainer x
Prelude.Generic)

-- |
-- Create a value of 'ResourceDataContainer' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 's3MachineLearningModelResourceData', 'resourceDataContainer_s3MachineLearningModelResourceData' - Attributes that define an Amazon S3 machine learning resource.
--
-- 'sageMakerMachineLearningModelResourceData', 'resourceDataContainer_sageMakerMachineLearningModelResourceData' - Attributes that define an Amazon SageMaker machine learning resource.
--
-- 'localVolumeResourceData', 'resourceDataContainer_localVolumeResourceData' - Attributes that define the local volume resource.
--
-- 'localDeviceResourceData', 'resourceDataContainer_localDeviceResourceData' - Attributes that define the local device resource.
--
-- 'secretsManagerSecretResourceData', 'resourceDataContainer_secretsManagerSecretResourceData' - Attributes that define a secret resource, which references a secret from
-- AWS Secrets Manager.
newResourceDataContainer ::
  ResourceDataContainer
newResourceDataContainer :: ResourceDataContainer
newResourceDataContainer =
  ResourceDataContainer' :: Maybe S3MachineLearningModelResourceData
-> Maybe SageMakerMachineLearningModelResourceData
-> Maybe LocalVolumeResourceData
-> Maybe LocalDeviceResourceData
-> Maybe SecretsManagerSecretResourceData
-> ResourceDataContainer
ResourceDataContainer'
    { $sel:s3MachineLearningModelResourceData:ResourceDataContainer' :: Maybe S3MachineLearningModelResourceData
s3MachineLearningModelResourceData =
        Maybe S3MachineLearningModelResourceData
forall a. Maybe a
Prelude.Nothing,
      $sel:sageMakerMachineLearningModelResourceData:ResourceDataContainer' :: Maybe SageMakerMachineLearningModelResourceData
sageMakerMachineLearningModelResourceData =
        Maybe SageMakerMachineLearningModelResourceData
forall a. Maybe a
Prelude.Nothing,
      $sel:localVolumeResourceData:ResourceDataContainer' :: Maybe LocalVolumeResourceData
localVolumeResourceData = Maybe LocalVolumeResourceData
forall a. Maybe a
Prelude.Nothing,
      $sel:localDeviceResourceData:ResourceDataContainer' :: Maybe LocalDeviceResourceData
localDeviceResourceData = Maybe LocalDeviceResourceData
forall a. Maybe a
Prelude.Nothing,
      $sel:secretsManagerSecretResourceData:ResourceDataContainer' :: Maybe SecretsManagerSecretResourceData
secretsManagerSecretResourceData = Maybe SecretsManagerSecretResourceData
forall a. Maybe a
Prelude.Nothing
    }

-- | Attributes that define an Amazon S3 machine learning resource.
resourceDataContainer_s3MachineLearningModelResourceData :: Lens.Lens' ResourceDataContainer (Prelude.Maybe S3MachineLearningModelResourceData)
resourceDataContainer_s3MachineLearningModelResourceData :: (Maybe S3MachineLearningModelResourceData
 -> f (Maybe S3MachineLearningModelResourceData))
-> ResourceDataContainer -> f ResourceDataContainer
resourceDataContainer_s3MachineLearningModelResourceData = (ResourceDataContainer -> Maybe S3MachineLearningModelResourceData)
-> (ResourceDataContainer
    -> Maybe S3MachineLearningModelResourceData
    -> ResourceDataContainer)
-> Lens
     ResourceDataContainer
     ResourceDataContainer
     (Maybe S3MachineLearningModelResourceData)
     (Maybe S3MachineLearningModelResourceData)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ResourceDataContainer' {Maybe S3MachineLearningModelResourceData
s3MachineLearningModelResourceData :: Maybe S3MachineLearningModelResourceData
$sel:s3MachineLearningModelResourceData:ResourceDataContainer' :: ResourceDataContainer -> Maybe S3MachineLearningModelResourceData
s3MachineLearningModelResourceData} -> Maybe S3MachineLearningModelResourceData
s3MachineLearningModelResourceData) (\s :: ResourceDataContainer
s@ResourceDataContainer' {} Maybe S3MachineLearningModelResourceData
a -> ResourceDataContainer
s {$sel:s3MachineLearningModelResourceData:ResourceDataContainer' :: Maybe S3MachineLearningModelResourceData
s3MachineLearningModelResourceData = Maybe S3MachineLearningModelResourceData
a} :: ResourceDataContainer)

-- | Attributes that define an Amazon SageMaker machine learning resource.
resourceDataContainer_sageMakerMachineLearningModelResourceData :: Lens.Lens' ResourceDataContainer (Prelude.Maybe SageMakerMachineLearningModelResourceData)
resourceDataContainer_sageMakerMachineLearningModelResourceData :: (Maybe SageMakerMachineLearningModelResourceData
 -> f (Maybe SageMakerMachineLearningModelResourceData))
-> ResourceDataContainer -> f ResourceDataContainer
resourceDataContainer_sageMakerMachineLearningModelResourceData = (ResourceDataContainer
 -> Maybe SageMakerMachineLearningModelResourceData)
-> (ResourceDataContainer
    -> Maybe SageMakerMachineLearningModelResourceData
    -> ResourceDataContainer)
-> Lens
     ResourceDataContainer
     ResourceDataContainer
     (Maybe SageMakerMachineLearningModelResourceData)
     (Maybe SageMakerMachineLearningModelResourceData)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ResourceDataContainer' {Maybe SageMakerMachineLearningModelResourceData
sageMakerMachineLearningModelResourceData :: Maybe SageMakerMachineLearningModelResourceData
$sel:sageMakerMachineLearningModelResourceData:ResourceDataContainer' :: ResourceDataContainer
-> Maybe SageMakerMachineLearningModelResourceData
sageMakerMachineLearningModelResourceData} -> Maybe SageMakerMachineLearningModelResourceData
sageMakerMachineLearningModelResourceData) (\s :: ResourceDataContainer
s@ResourceDataContainer' {} Maybe SageMakerMachineLearningModelResourceData
a -> ResourceDataContainer
s {$sel:sageMakerMachineLearningModelResourceData:ResourceDataContainer' :: Maybe SageMakerMachineLearningModelResourceData
sageMakerMachineLearningModelResourceData = Maybe SageMakerMachineLearningModelResourceData
a} :: ResourceDataContainer)

-- | Attributes that define the local volume resource.
resourceDataContainer_localVolumeResourceData :: Lens.Lens' ResourceDataContainer (Prelude.Maybe LocalVolumeResourceData)
resourceDataContainer_localVolumeResourceData :: (Maybe LocalVolumeResourceData
 -> f (Maybe LocalVolumeResourceData))
-> ResourceDataContainer -> f ResourceDataContainer
resourceDataContainer_localVolumeResourceData = (ResourceDataContainer -> Maybe LocalVolumeResourceData)
-> (ResourceDataContainer
    -> Maybe LocalVolumeResourceData -> ResourceDataContainer)
-> Lens
     ResourceDataContainer
     ResourceDataContainer
     (Maybe LocalVolumeResourceData)
     (Maybe LocalVolumeResourceData)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ResourceDataContainer' {Maybe LocalVolumeResourceData
localVolumeResourceData :: Maybe LocalVolumeResourceData
$sel:localVolumeResourceData:ResourceDataContainer' :: ResourceDataContainer -> Maybe LocalVolumeResourceData
localVolumeResourceData} -> Maybe LocalVolumeResourceData
localVolumeResourceData) (\s :: ResourceDataContainer
s@ResourceDataContainer' {} Maybe LocalVolumeResourceData
a -> ResourceDataContainer
s {$sel:localVolumeResourceData:ResourceDataContainer' :: Maybe LocalVolumeResourceData
localVolumeResourceData = Maybe LocalVolumeResourceData
a} :: ResourceDataContainer)

-- | Attributes that define the local device resource.
resourceDataContainer_localDeviceResourceData :: Lens.Lens' ResourceDataContainer (Prelude.Maybe LocalDeviceResourceData)
resourceDataContainer_localDeviceResourceData :: (Maybe LocalDeviceResourceData
 -> f (Maybe LocalDeviceResourceData))
-> ResourceDataContainer -> f ResourceDataContainer
resourceDataContainer_localDeviceResourceData = (ResourceDataContainer -> Maybe LocalDeviceResourceData)
-> (ResourceDataContainer
    -> Maybe LocalDeviceResourceData -> ResourceDataContainer)
-> Lens
     ResourceDataContainer
     ResourceDataContainer
     (Maybe LocalDeviceResourceData)
     (Maybe LocalDeviceResourceData)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ResourceDataContainer' {Maybe LocalDeviceResourceData
localDeviceResourceData :: Maybe LocalDeviceResourceData
$sel:localDeviceResourceData:ResourceDataContainer' :: ResourceDataContainer -> Maybe LocalDeviceResourceData
localDeviceResourceData} -> Maybe LocalDeviceResourceData
localDeviceResourceData) (\s :: ResourceDataContainer
s@ResourceDataContainer' {} Maybe LocalDeviceResourceData
a -> ResourceDataContainer
s {$sel:localDeviceResourceData:ResourceDataContainer' :: Maybe LocalDeviceResourceData
localDeviceResourceData = Maybe LocalDeviceResourceData
a} :: ResourceDataContainer)

-- | Attributes that define a secret resource, which references a secret from
-- AWS Secrets Manager.
resourceDataContainer_secretsManagerSecretResourceData :: Lens.Lens' ResourceDataContainer (Prelude.Maybe SecretsManagerSecretResourceData)
resourceDataContainer_secretsManagerSecretResourceData :: (Maybe SecretsManagerSecretResourceData
 -> f (Maybe SecretsManagerSecretResourceData))
-> ResourceDataContainer -> f ResourceDataContainer
resourceDataContainer_secretsManagerSecretResourceData = (ResourceDataContainer -> Maybe SecretsManagerSecretResourceData)
-> (ResourceDataContainer
    -> Maybe SecretsManagerSecretResourceData -> ResourceDataContainer)
-> Lens
     ResourceDataContainer
     ResourceDataContainer
     (Maybe SecretsManagerSecretResourceData)
     (Maybe SecretsManagerSecretResourceData)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ResourceDataContainer' {Maybe SecretsManagerSecretResourceData
secretsManagerSecretResourceData :: Maybe SecretsManagerSecretResourceData
$sel:secretsManagerSecretResourceData:ResourceDataContainer' :: ResourceDataContainer -> Maybe SecretsManagerSecretResourceData
secretsManagerSecretResourceData} -> Maybe SecretsManagerSecretResourceData
secretsManagerSecretResourceData) (\s :: ResourceDataContainer
s@ResourceDataContainer' {} Maybe SecretsManagerSecretResourceData
a -> ResourceDataContainer
s {$sel:secretsManagerSecretResourceData:ResourceDataContainer' :: Maybe SecretsManagerSecretResourceData
secretsManagerSecretResourceData = Maybe SecretsManagerSecretResourceData
a} :: ResourceDataContainer)

instance Core.FromJSON ResourceDataContainer where
  parseJSON :: Value -> Parser ResourceDataContainer
parseJSON =
    String
-> (Object -> Parser ResourceDataContainer)
-> Value
-> Parser ResourceDataContainer
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"ResourceDataContainer"
      ( \Object
x ->
          Maybe S3MachineLearningModelResourceData
-> Maybe SageMakerMachineLearningModelResourceData
-> Maybe LocalVolumeResourceData
-> Maybe LocalDeviceResourceData
-> Maybe SecretsManagerSecretResourceData
-> ResourceDataContainer
ResourceDataContainer'
            (Maybe S3MachineLearningModelResourceData
 -> Maybe SageMakerMachineLearningModelResourceData
 -> Maybe LocalVolumeResourceData
 -> Maybe LocalDeviceResourceData
 -> Maybe SecretsManagerSecretResourceData
 -> ResourceDataContainer)
-> Parser (Maybe S3MachineLearningModelResourceData)
-> Parser
     (Maybe SageMakerMachineLearningModelResourceData
      -> Maybe LocalVolumeResourceData
      -> Maybe LocalDeviceResourceData
      -> Maybe SecretsManagerSecretResourceData
      -> ResourceDataContainer)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe S3MachineLearningModelResourceData)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"S3MachineLearningModelResourceData")
            Parser
  (Maybe SageMakerMachineLearningModelResourceData
   -> Maybe LocalVolumeResourceData
   -> Maybe LocalDeviceResourceData
   -> Maybe SecretsManagerSecretResourceData
   -> ResourceDataContainer)
-> Parser (Maybe SageMakerMachineLearningModelResourceData)
-> Parser
     (Maybe LocalVolumeResourceData
      -> Maybe LocalDeviceResourceData
      -> Maybe SecretsManagerSecretResourceData
      -> ResourceDataContainer)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
                            Object
-> Text -> Parser (Maybe SageMakerMachineLearningModelResourceData)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"SageMakerMachineLearningModelResourceData"
                        )
            Parser
  (Maybe LocalVolumeResourceData
   -> Maybe LocalDeviceResourceData
   -> Maybe SecretsManagerSecretResourceData
   -> ResourceDataContainer)
-> Parser (Maybe LocalVolumeResourceData)
-> Parser
     (Maybe LocalDeviceResourceData
      -> Maybe SecretsManagerSecretResourceData -> ResourceDataContainer)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe LocalVolumeResourceData)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"LocalVolumeResourceData")
            Parser
  (Maybe LocalDeviceResourceData
   -> Maybe SecretsManagerSecretResourceData -> ResourceDataContainer)
-> Parser (Maybe LocalDeviceResourceData)
-> Parser
     (Maybe SecretsManagerSecretResourceData -> ResourceDataContainer)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe LocalDeviceResourceData)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"LocalDeviceResourceData")
            Parser
  (Maybe SecretsManagerSecretResourceData -> ResourceDataContainer)
-> Parser (Maybe SecretsManagerSecretResourceData)
-> Parser ResourceDataContainer
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe SecretsManagerSecretResourceData)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"SecretsManagerSecretResourceData")
      )

instance Prelude.Hashable ResourceDataContainer

instance Prelude.NFData ResourceDataContainer

instance Core.ToJSON ResourceDataContainer where
  toJSON :: ResourceDataContainer -> Value
toJSON ResourceDataContainer' {Maybe LocalDeviceResourceData
Maybe LocalVolumeResourceData
Maybe S3MachineLearningModelResourceData
Maybe SageMakerMachineLearningModelResourceData
Maybe SecretsManagerSecretResourceData
secretsManagerSecretResourceData :: Maybe SecretsManagerSecretResourceData
localDeviceResourceData :: Maybe LocalDeviceResourceData
localVolumeResourceData :: Maybe LocalVolumeResourceData
sageMakerMachineLearningModelResourceData :: Maybe SageMakerMachineLearningModelResourceData
s3MachineLearningModelResourceData :: Maybe S3MachineLearningModelResourceData
$sel:secretsManagerSecretResourceData:ResourceDataContainer' :: ResourceDataContainer -> Maybe SecretsManagerSecretResourceData
$sel:localDeviceResourceData:ResourceDataContainer' :: ResourceDataContainer -> Maybe LocalDeviceResourceData
$sel:localVolumeResourceData:ResourceDataContainer' :: ResourceDataContainer -> Maybe LocalVolumeResourceData
$sel:sageMakerMachineLearningModelResourceData:ResourceDataContainer' :: ResourceDataContainer
-> Maybe SageMakerMachineLearningModelResourceData
$sel:s3MachineLearningModelResourceData:ResourceDataContainer' :: ResourceDataContainer -> Maybe S3MachineLearningModelResourceData
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Text
"S3MachineLearningModelResourceData" Text -> S3MachineLearningModelResourceData -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (S3MachineLearningModelResourceData -> Pair)
-> Maybe S3MachineLearningModelResourceData -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe S3MachineLearningModelResourceData
s3MachineLearningModelResourceData,
            (Text
"SageMakerMachineLearningModelResourceData" Text -> SageMakerMachineLearningModelResourceData -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (SageMakerMachineLearningModelResourceData -> Pair)
-> Maybe SageMakerMachineLearningModelResourceData -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe SageMakerMachineLearningModelResourceData
sageMakerMachineLearningModelResourceData,
            (Text
"LocalVolumeResourceData" Text -> LocalVolumeResourceData -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (LocalVolumeResourceData -> Pair)
-> Maybe LocalVolumeResourceData -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe LocalVolumeResourceData
localVolumeResourceData,
            (Text
"LocalDeviceResourceData" Text -> LocalDeviceResourceData -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (LocalDeviceResourceData -> Pair)
-> Maybe LocalDeviceResourceData -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe LocalDeviceResourceData
localDeviceResourceData,
            (Text
"SecretsManagerSecretResourceData" Text -> SecretsManagerSecretResourceData -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (SecretsManagerSecretResourceData -> Pair)
-> Maybe SecretsManagerSecretResourceData -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe SecretsManagerSecretResourceData
secretsManagerSecretResourceData
          ]
      )