{-# 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 #-}
module Amazonka.SecurityHub.Types.AwsEcsTaskDefinitionVolumesHostDetails where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data AwsEcsTaskDefinitionVolumesHostDetails = AwsEcsTaskDefinitionVolumesHostDetails'
{
AwsEcsTaskDefinitionVolumesHostDetails -> Maybe Text
sourcePath :: Prelude.Maybe Prelude.Text
}
deriving (AwsEcsTaskDefinitionVolumesHostDetails
-> AwsEcsTaskDefinitionVolumesHostDetails -> Bool
(AwsEcsTaskDefinitionVolumesHostDetails
-> AwsEcsTaskDefinitionVolumesHostDetails -> Bool)
-> (AwsEcsTaskDefinitionVolumesHostDetails
-> AwsEcsTaskDefinitionVolumesHostDetails -> Bool)
-> Eq AwsEcsTaskDefinitionVolumesHostDetails
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AwsEcsTaskDefinitionVolumesHostDetails
-> AwsEcsTaskDefinitionVolumesHostDetails -> Bool
$c/= :: AwsEcsTaskDefinitionVolumesHostDetails
-> AwsEcsTaskDefinitionVolumesHostDetails -> Bool
== :: AwsEcsTaskDefinitionVolumesHostDetails
-> AwsEcsTaskDefinitionVolumesHostDetails -> Bool
$c== :: AwsEcsTaskDefinitionVolumesHostDetails
-> AwsEcsTaskDefinitionVolumesHostDetails -> Bool
Prelude.Eq, ReadPrec [AwsEcsTaskDefinitionVolumesHostDetails]
ReadPrec AwsEcsTaskDefinitionVolumesHostDetails
Int -> ReadS AwsEcsTaskDefinitionVolumesHostDetails
ReadS [AwsEcsTaskDefinitionVolumesHostDetails]
(Int -> ReadS AwsEcsTaskDefinitionVolumesHostDetails)
-> ReadS [AwsEcsTaskDefinitionVolumesHostDetails]
-> ReadPrec AwsEcsTaskDefinitionVolumesHostDetails
-> ReadPrec [AwsEcsTaskDefinitionVolumesHostDetails]
-> Read AwsEcsTaskDefinitionVolumesHostDetails
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [AwsEcsTaskDefinitionVolumesHostDetails]
$creadListPrec :: ReadPrec [AwsEcsTaskDefinitionVolumesHostDetails]
readPrec :: ReadPrec AwsEcsTaskDefinitionVolumesHostDetails
$creadPrec :: ReadPrec AwsEcsTaskDefinitionVolumesHostDetails
readList :: ReadS [AwsEcsTaskDefinitionVolumesHostDetails]
$creadList :: ReadS [AwsEcsTaskDefinitionVolumesHostDetails]
readsPrec :: Int -> ReadS AwsEcsTaskDefinitionVolumesHostDetails
$creadsPrec :: Int -> ReadS AwsEcsTaskDefinitionVolumesHostDetails
Prelude.Read, Int -> AwsEcsTaskDefinitionVolumesHostDetails -> ShowS
[AwsEcsTaskDefinitionVolumesHostDetails] -> ShowS
AwsEcsTaskDefinitionVolumesHostDetails -> String
(Int -> AwsEcsTaskDefinitionVolumesHostDetails -> ShowS)
-> (AwsEcsTaskDefinitionVolumesHostDetails -> String)
-> ([AwsEcsTaskDefinitionVolumesHostDetails] -> ShowS)
-> Show AwsEcsTaskDefinitionVolumesHostDetails
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AwsEcsTaskDefinitionVolumesHostDetails] -> ShowS
$cshowList :: [AwsEcsTaskDefinitionVolumesHostDetails] -> ShowS
show :: AwsEcsTaskDefinitionVolumesHostDetails -> String
$cshow :: AwsEcsTaskDefinitionVolumesHostDetails -> String
showsPrec :: Int -> AwsEcsTaskDefinitionVolumesHostDetails -> ShowS
$cshowsPrec :: Int -> AwsEcsTaskDefinitionVolumesHostDetails -> ShowS
Prelude.Show, (forall x.
AwsEcsTaskDefinitionVolumesHostDetails
-> Rep AwsEcsTaskDefinitionVolumesHostDetails x)
-> (forall x.
Rep AwsEcsTaskDefinitionVolumesHostDetails x
-> AwsEcsTaskDefinitionVolumesHostDetails)
-> Generic AwsEcsTaskDefinitionVolumesHostDetails
forall x.
Rep AwsEcsTaskDefinitionVolumesHostDetails x
-> AwsEcsTaskDefinitionVolumesHostDetails
forall x.
AwsEcsTaskDefinitionVolumesHostDetails
-> Rep AwsEcsTaskDefinitionVolumesHostDetails x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep AwsEcsTaskDefinitionVolumesHostDetails x
-> AwsEcsTaskDefinitionVolumesHostDetails
$cfrom :: forall x.
AwsEcsTaskDefinitionVolumesHostDetails
-> Rep AwsEcsTaskDefinitionVolumesHostDetails x
Prelude.Generic)
newAwsEcsTaskDefinitionVolumesHostDetails ::
AwsEcsTaskDefinitionVolumesHostDetails
newAwsEcsTaskDefinitionVolumesHostDetails :: AwsEcsTaskDefinitionVolumesHostDetails
newAwsEcsTaskDefinitionVolumesHostDetails =
AwsEcsTaskDefinitionVolumesHostDetails' :: Maybe Text -> AwsEcsTaskDefinitionVolumesHostDetails
AwsEcsTaskDefinitionVolumesHostDetails'
{ $sel:sourcePath:AwsEcsTaskDefinitionVolumesHostDetails' :: Maybe Text
sourcePath =
Maybe Text
forall a. Maybe a
Prelude.Nothing
}
awsEcsTaskDefinitionVolumesHostDetails_sourcePath :: Lens.Lens' AwsEcsTaskDefinitionVolumesHostDetails (Prelude.Maybe Prelude.Text)
awsEcsTaskDefinitionVolumesHostDetails_sourcePath :: (Maybe Text -> f (Maybe Text))
-> AwsEcsTaskDefinitionVolumesHostDetails
-> f AwsEcsTaskDefinitionVolumesHostDetails
awsEcsTaskDefinitionVolumesHostDetails_sourcePath = (AwsEcsTaskDefinitionVolumesHostDetails -> Maybe Text)
-> (AwsEcsTaskDefinitionVolumesHostDetails
-> Maybe Text -> AwsEcsTaskDefinitionVolumesHostDetails)
-> Lens
AwsEcsTaskDefinitionVolumesHostDetails
AwsEcsTaskDefinitionVolumesHostDetails
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsEcsTaskDefinitionVolumesHostDetails' {Maybe Text
sourcePath :: Maybe Text
$sel:sourcePath:AwsEcsTaskDefinitionVolumesHostDetails' :: AwsEcsTaskDefinitionVolumesHostDetails -> Maybe Text
sourcePath} -> Maybe Text
sourcePath) (\s :: AwsEcsTaskDefinitionVolumesHostDetails
s@AwsEcsTaskDefinitionVolumesHostDetails' {} Maybe Text
a -> AwsEcsTaskDefinitionVolumesHostDetails
s {$sel:sourcePath:AwsEcsTaskDefinitionVolumesHostDetails' :: Maybe Text
sourcePath = Maybe Text
a} :: AwsEcsTaskDefinitionVolumesHostDetails)
instance
Core.FromJSON
AwsEcsTaskDefinitionVolumesHostDetails
where
parseJSON :: Value -> Parser AwsEcsTaskDefinitionVolumesHostDetails
parseJSON =
String
-> (Object -> Parser AwsEcsTaskDefinitionVolumesHostDetails)
-> Value
-> Parser AwsEcsTaskDefinitionVolumesHostDetails
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"AwsEcsTaskDefinitionVolumesHostDetails"
( \Object
x ->
Maybe Text -> AwsEcsTaskDefinitionVolumesHostDetails
AwsEcsTaskDefinitionVolumesHostDetails'
(Maybe Text -> AwsEcsTaskDefinitionVolumesHostDetails)
-> Parser (Maybe Text)
-> Parser AwsEcsTaskDefinitionVolumesHostDetails
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"SourcePath")
)
instance
Prelude.Hashable
AwsEcsTaskDefinitionVolumesHostDetails
instance
Prelude.NFData
AwsEcsTaskDefinitionVolumesHostDetails
instance
Core.ToJSON
AwsEcsTaskDefinitionVolumesHostDetails
where
toJSON :: AwsEcsTaskDefinitionVolumesHostDetails -> Value
toJSON AwsEcsTaskDefinitionVolumesHostDetails' {Maybe Text
sourcePath :: Maybe Text
$sel:sourcePath:AwsEcsTaskDefinitionVolumesHostDetails' :: AwsEcsTaskDefinitionVolumesHostDetails -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[(Text
"SourcePath" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
sourcePath]
)