{-# 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.SecurityHub.Types.AwsEcsTaskDefinitionProxyConfigurationDetails
-- 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.SecurityHub.Types.AwsEcsTaskDefinitionProxyConfigurationDetails where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.SecurityHub.Types.AwsEcsTaskDefinitionProxyConfigurationProxyConfigurationPropertiesDetails

-- | The configuration details for the App Mesh proxy.
--
-- /See:/ 'newAwsEcsTaskDefinitionProxyConfigurationDetails' smart constructor.
data AwsEcsTaskDefinitionProxyConfigurationDetails = AwsEcsTaskDefinitionProxyConfigurationDetails'
  { -- | The set of network configuration parameters to provide to the Container
    -- Network Interface (CNI) plugin, specified as key-value pairs.
    AwsEcsTaskDefinitionProxyConfigurationDetails
-> Maybe
     [AwsEcsTaskDefinitionProxyConfigurationProxyConfigurationPropertiesDetails]
proxyConfigurationProperties :: Prelude.Maybe [AwsEcsTaskDefinitionProxyConfigurationProxyConfigurationPropertiesDetails],
    -- | The name of the container that will serve as the App Mesh proxy.
    AwsEcsTaskDefinitionProxyConfigurationDetails -> Maybe Text
containerName :: Prelude.Maybe Prelude.Text,
    -- | The proxy type.
    AwsEcsTaskDefinitionProxyConfigurationDetails -> Maybe Text
type' :: Prelude.Maybe Prelude.Text
  }
  deriving (AwsEcsTaskDefinitionProxyConfigurationDetails
-> AwsEcsTaskDefinitionProxyConfigurationDetails -> Bool
(AwsEcsTaskDefinitionProxyConfigurationDetails
 -> AwsEcsTaskDefinitionProxyConfigurationDetails -> Bool)
-> (AwsEcsTaskDefinitionProxyConfigurationDetails
    -> AwsEcsTaskDefinitionProxyConfigurationDetails -> Bool)
-> Eq AwsEcsTaskDefinitionProxyConfigurationDetails
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AwsEcsTaskDefinitionProxyConfigurationDetails
-> AwsEcsTaskDefinitionProxyConfigurationDetails -> Bool
$c/= :: AwsEcsTaskDefinitionProxyConfigurationDetails
-> AwsEcsTaskDefinitionProxyConfigurationDetails -> Bool
== :: AwsEcsTaskDefinitionProxyConfigurationDetails
-> AwsEcsTaskDefinitionProxyConfigurationDetails -> Bool
$c== :: AwsEcsTaskDefinitionProxyConfigurationDetails
-> AwsEcsTaskDefinitionProxyConfigurationDetails -> Bool
Prelude.Eq, ReadPrec [AwsEcsTaskDefinitionProxyConfigurationDetails]
ReadPrec AwsEcsTaskDefinitionProxyConfigurationDetails
Int -> ReadS AwsEcsTaskDefinitionProxyConfigurationDetails
ReadS [AwsEcsTaskDefinitionProxyConfigurationDetails]
(Int -> ReadS AwsEcsTaskDefinitionProxyConfigurationDetails)
-> ReadS [AwsEcsTaskDefinitionProxyConfigurationDetails]
-> ReadPrec AwsEcsTaskDefinitionProxyConfigurationDetails
-> ReadPrec [AwsEcsTaskDefinitionProxyConfigurationDetails]
-> Read AwsEcsTaskDefinitionProxyConfigurationDetails
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [AwsEcsTaskDefinitionProxyConfigurationDetails]
$creadListPrec :: ReadPrec [AwsEcsTaskDefinitionProxyConfigurationDetails]
readPrec :: ReadPrec AwsEcsTaskDefinitionProxyConfigurationDetails
$creadPrec :: ReadPrec AwsEcsTaskDefinitionProxyConfigurationDetails
readList :: ReadS [AwsEcsTaskDefinitionProxyConfigurationDetails]
$creadList :: ReadS [AwsEcsTaskDefinitionProxyConfigurationDetails]
readsPrec :: Int -> ReadS AwsEcsTaskDefinitionProxyConfigurationDetails
$creadsPrec :: Int -> ReadS AwsEcsTaskDefinitionProxyConfigurationDetails
Prelude.Read, Int -> AwsEcsTaskDefinitionProxyConfigurationDetails -> ShowS
[AwsEcsTaskDefinitionProxyConfigurationDetails] -> ShowS
AwsEcsTaskDefinitionProxyConfigurationDetails -> String
(Int -> AwsEcsTaskDefinitionProxyConfigurationDetails -> ShowS)
-> (AwsEcsTaskDefinitionProxyConfigurationDetails -> String)
-> ([AwsEcsTaskDefinitionProxyConfigurationDetails] -> ShowS)
-> Show AwsEcsTaskDefinitionProxyConfigurationDetails
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AwsEcsTaskDefinitionProxyConfigurationDetails] -> ShowS
$cshowList :: [AwsEcsTaskDefinitionProxyConfigurationDetails] -> ShowS
show :: AwsEcsTaskDefinitionProxyConfigurationDetails -> String
$cshow :: AwsEcsTaskDefinitionProxyConfigurationDetails -> String
showsPrec :: Int -> AwsEcsTaskDefinitionProxyConfigurationDetails -> ShowS
$cshowsPrec :: Int -> AwsEcsTaskDefinitionProxyConfigurationDetails -> ShowS
Prelude.Show, (forall x.
 AwsEcsTaskDefinitionProxyConfigurationDetails
 -> Rep AwsEcsTaskDefinitionProxyConfigurationDetails x)
-> (forall x.
    Rep AwsEcsTaskDefinitionProxyConfigurationDetails x
    -> AwsEcsTaskDefinitionProxyConfigurationDetails)
-> Generic AwsEcsTaskDefinitionProxyConfigurationDetails
forall x.
Rep AwsEcsTaskDefinitionProxyConfigurationDetails x
-> AwsEcsTaskDefinitionProxyConfigurationDetails
forall x.
AwsEcsTaskDefinitionProxyConfigurationDetails
-> Rep AwsEcsTaskDefinitionProxyConfigurationDetails x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep AwsEcsTaskDefinitionProxyConfigurationDetails x
-> AwsEcsTaskDefinitionProxyConfigurationDetails
$cfrom :: forall x.
AwsEcsTaskDefinitionProxyConfigurationDetails
-> Rep AwsEcsTaskDefinitionProxyConfigurationDetails x
Prelude.Generic)

-- |
-- Create a value of 'AwsEcsTaskDefinitionProxyConfigurationDetails' 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:
--
-- 'proxyConfigurationProperties', 'awsEcsTaskDefinitionProxyConfigurationDetails_proxyConfigurationProperties' - The set of network configuration parameters to provide to the Container
-- Network Interface (CNI) plugin, specified as key-value pairs.
--
-- 'containerName', 'awsEcsTaskDefinitionProxyConfigurationDetails_containerName' - The name of the container that will serve as the App Mesh proxy.
--
-- 'type'', 'awsEcsTaskDefinitionProxyConfigurationDetails_type' - The proxy type.
newAwsEcsTaskDefinitionProxyConfigurationDetails ::
  AwsEcsTaskDefinitionProxyConfigurationDetails
newAwsEcsTaskDefinitionProxyConfigurationDetails :: AwsEcsTaskDefinitionProxyConfigurationDetails
newAwsEcsTaskDefinitionProxyConfigurationDetails =
  AwsEcsTaskDefinitionProxyConfigurationDetails' :: Maybe
  [AwsEcsTaskDefinitionProxyConfigurationProxyConfigurationPropertiesDetails]
-> Maybe Text
-> Maybe Text
-> AwsEcsTaskDefinitionProxyConfigurationDetails
AwsEcsTaskDefinitionProxyConfigurationDetails'
    { $sel:proxyConfigurationProperties:AwsEcsTaskDefinitionProxyConfigurationDetails' :: Maybe
  [AwsEcsTaskDefinitionProxyConfigurationProxyConfigurationPropertiesDetails]
proxyConfigurationProperties =
        Maybe
  [AwsEcsTaskDefinitionProxyConfigurationProxyConfigurationPropertiesDetails]
forall a. Maybe a
Prelude.Nothing,
      $sel:containerName:AwsEcsTaskDefinitionProxyConfigurationDetails' :: Maybe Text
containerName =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:type':AwsEcsTaskDefinitionProxyConfigurationDetails' :: Maybe Text
type' = Maybe Text
forall a. Maybe a
Prelude.Nothing
    }

-- | The set of network configuration parameters to provide to the Container
-- Network Interface (CNI) plugin, specified as key-value pairs.
awsEcsTaskDefinitionProxyConfigurationDetails_proxyConfigurationProperties :: Lens.Lens' AwsEcsTaskDefinitionProxyConfigurationDetails (Prelude.Maybe [AwsEcsTaskDefinitionProxyConfigurationProxyConfigurationPropertiesDetails])
awsEcsTaskDefinitionProxyConfigurationDetails_proxyConfigurationProperties :: (Maybe
   [AwsEcsTaskDefinitionProxyConfigurationProxyConfigurationPropertiesDetails]
 -> f (Maybe
         [AwsEcsTaskDefinitionProxyConfigurationProxyConfigurationPropertiesDetails]))
-> AwsEcsTaskDefinitionProxyConfigurationDetails
-> f AwsEcsTaskDefinitionProxyConfigurationDetails
awsEcsTaskDefinitionProxyConfigurationDetails_proxyConfigurationProperties = (AwsEcsTaskDefinitionProxyConfigurationDetails
 -> Maybe
      [AwsEcsTaskDefinitionProxyConfigurationProxyConfigurationPropertiesDetails])
-> (AwsEcsTaskDefinitionProxyConfigurationDetails
    -> Maybe
         [AwsEcsTaskDefinitionProxyConfigurationProxyConfigurationPropertiesDetails]
    -> AwsEcsTaskDefinitionProxyConfigurationDetails)
-> Lens
     AwsEcsTaskDefinitionProxyConfigurationDetails
     AwsEcsTaskDefinitionProxyConfigurationDetails
     (Maybe
        [AwsEcsTaskDefinitionProxyConfigurationProxyConfigurationPropertiesDetails])
     (Maybe
        [AwsEcsTaskDefinitionProxyConfigurationProxyConfigurationPropertiesDetails])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsEcsTaskDefinitionProxyConfigurationDetails' {Maybe
  [AwsEcsTaskDefinitionProxyConfigurationProxyConfigurationPropertiesDetails]
proxyConfigurationProperties :: Maybe
  [AwsEcsTaskDefinitionProxyConfigurationProxyConfigurationPropertiesDetails]
$sel:proxyConfigurationProperties:AwsEcsTaskDefinitionProxyConfigurationDetails' :: AwsEcsTaskDefinitionProxyConfigurationDetails
-> Maybe
     [AwsEcsTaskDefinitionProxyConfigurationProxyConfigurationPropertiesDetails]
proxyConfigurationProperties} -> Maybe
  [AwsEcsTaskDefinitionProxyConfigurationProxyConfigurationPropertiesDetails]
proxyConfigurationProperties) (\s :: AwsEcsTaskDefinitionProxyConfigurationDetails
s@AwsEcsTaskDefinitionProxyConfigurationDetails' {} Maybe
  [AwsEcsTaskDefinitionProxyConfigurationProxyConfigurationPropertiesDetails]
a -> AwsEcsTaskDefinitionProxyConfigurationDetails
s {$sel:proxyConfigurationProperties:AwsEcsTaskDefinitionProxyConfigurationDetails' :: Maybe
  [AwsEcsTaskDefinitionProxyConfigurationProxyConfigurationPropertiesDetails]
proxyConfigurationProperties = Maybe
  [AwsEcsTaskDefinitionProxyConfigurationProxyConfigurationPropertiesDetails]
a} :: AwsEcsTaskDefinitionProxyConfigurationDetails) ((Maybe
    [AwsEcsTaskDefinitionProxyConfigurationProxyConfigurationPropertiesDetails]
  -> f (Maybe
          [AwsEcsTaskDefinitionProxyConfigurationProxyConfigurationPropertiesDetails]))
 -> AwsEcsTaskDefinitionProxyConfigurationDetails
 -> f AwsEcsTaskDefinitionProxyConfigurationDetails)
-> ((Maybe
       [AwsEcsTaskDefinitionProxyConfigurationProxyConfigurationPropertiesDetails]
     -> f (Maybe
             [AwsEcsTaskDefinitionProxyConfigurationProxyConfigurationPropertiesDetails]))
    -> Maybe
         [AwsEcsTaskDefinitionProxyConfigurationProxyConfigurationPropertiesDetails]
    -> f (Maybe
            [AwsEcsTaskDefinitionProxyConfigurationProxyConfigurationPropertiesDetails]))
-> (Maybe
      [AwsEcsTaskDefinitionProxyConfigurationProxyConfigurationPropertiesDetails]
    -> f (Maybe
            [AwsEcsTaskDefinitionProxyConfigurationProxyConfigurationPropertiesDetails]))
-> AwsEcsTaskDefinitionProxyConfigurationDetails
-> f AwsEcsTaskDefinitionProxyConfigurationDetails
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [AwsEcsTaskDefinitionProxyConfigurationProxyConfigurationPropertiesDetails]
  [AwsEcsTaskDefinitionProxyConfigurationProxyConfigurationPropertiesDetails]
  [AwsEcsTaskDefinitionProxyConfigurationProxyConfigurationPropertiesDetails]
  [AwsEcsTaskDefinitionProxyConfigurationProxyConfigurationPropertiesDetails]
-> Iso
     (Maybe
        [AwsEcsTaskDefinitionProxyConfigurationProxyConfigurationPropertiesDetails])
     (Maybe
        [AwsEcsTaskDefinitionProxyConfigurationProxyConfigurationPropertiesDetails])
     (Maybe
        [AwsEcsTaskDefinitionProxyConfigurationProxyConfigurationPropertiesDetails])
     (Maybe
        [AwsEcsTaskDefinitionProxyConfigurationProxyConfigurationPropertiesDetails])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso
  [AwsEcsTaskDefinitionProxyConfigurationProxyConfigurationPropertiesDetails]
  [AwsEcsTaskDefinitionProxyConfigurationProxyConfigurationPropertiesDetails]
  [AwsEcsTaskDefinitionProxyConfigurationProxyConfigurationPropertiesDetails]
  [AwsEcsTaskDefinitionProxyConfigurationProxyConfigurationPropertiesDetails]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The name of the container that will serve as the App Mesh proxy.
awsEcsTaskDefinitionProxyConfigurationDetails_containerName :: Lens.Lens' AwsEcsTaskDefinitionProxyConfigurationDetails (Prelude.Maybe Prelude.Text)
awsEcsTaskDefinitionProxyConfigurationDetails_containerName :: (Maybe Text -> f (Maybe Text))
-> AwsEcsTaskDefinitionProxyConfigurationDetails
-> f AwsEcsTaskDefinitionProxyConfigurationDetails
awsEcsTaskDefinitionProxyConfigurationDetails_containerName = (AwsEcsTaskDefinitionProxyConfigurationDetails -> Maybe Text)
-> (AwsEcsTaskDefinitionProxyConfigurationDetails
    -> Maybe Text -> AwsEcsTaskDefinitionProxyConfigurationDetails)
-> Lens
     AwsEcsTaskDefinitionProxyConfigurationDetails
     AwsEcsTaskDefinitionProxyConfigurationDetails
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsEcsTaskDefinitionProxyConfigurationDetails' {Maybe Text
containerName :: Maybe Text
$sel:containerName:AwsEcsTaskDefinitionProxyConfigurationDetails' :: AwsEcsTaskDefinitionProxyConfigurationDetails -> Maybe Text
containerName} -> Maybe Text
containerName) (\s :: AwsEcsTaskDefinitionProxyConfigurationDetails
s@AwsEcsTaskDefinitionProxyConfigurationDetails' {} Maybe Text
a -> AwsEcsTaskDefinitionProxyConfigurationDetails
s {$sel:containerName:AwsEcsTaskDefinitionProxyConfigurationDetails' :: Maybe Text
containerName = Maybe Text
a} :: AwsEcsTaskDefinitionProxyConfigurationDetails)

-- | The proxy type.
awsEcsTaskDefinitionProxyConfigurationDetails_type :: Lens.Lens' AwsEcsTaskDefinitionProxyConfigurationDetails (Prelude.Maybe Prelude.Text)
awsEcsTaskDefinitionProxyConfigurationDetails_type :: (Maybe Text -> f (Maybe Text))
-> AwsEcsTaskDefinitionProxyConfigurationDetails
-> f AwsEcsTaskDefinitionProxyConfigurationDetails
awsEcsTaskDefinitionProxyConfigurationDetails_type = (AwsEcsTaskDefinitionProxyConfigurationDetails -> Maybe Text)
-> (AwsEcsTaskDefinitionProxyConfigurationDetails
    -> Maybe Text -> AwsEcsTaskDefinitionProxyConfigurationDetails)
-> Lens
     AwsEcsTaskDefinitionProxyConfigurationDetails
     AwsEcsTaskDefinitionProxyConfigurationDetails
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsEcsTaskDefinitionProxyConfigurationDetails' {Maybe Text
type' :: Maybe Text
$sel:type':AwsEcsTaskDefinitionProxyConfigurationDetails' :: AwsEcsTaskDefinitionProxyConfigurationDetails -> Maybe Text
type'} -> Maybe Text
type') (\s :: AwsEcsTaskDefinitionProxyConfigurationDetails
s@AwsEcsTaskDefinitionProxyConfigurationDetails' {} Maybe Text
a -> AwsEcsTaskDefinitionProxyConfigurationDetails
s {$sel:type':AwsEcsTaskDefinitionProxyConfigurationDetails' :: Maybe Text
type' = Maybe Text
a} :: AwsEcsTaskDefinitionProxyConfigurationDetails)

instance
  Core.FromJSON
    AwsEcsTaskDefinitionProxyConfigurationDetails
  where
  parseJSON :: Value -> Parser AwsEcsTaskDefinitionProxyConfigurationDetails
parseJSON =
    String
-> (Object -> Parser AwsEcsTaskDefinitionProxyConfigurationDetails)
-> Value
-> Parser AwsEcsTaskDefinitionProxyConfigurationDetails
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"AwsEcsTaskDefinitionProxyConfigurationDetails"
      ( \Object
x ->
          Maybe
  [AwsEcsTaskDefinitionProxyConfigurationProxyConfigurationPropertiesDetails]
-> Maybe Text
-> Maybe Text
-> AwsEcsTaskDefinitionProxyConfigurationDetails
AwsEcsTaskDefinitionProxyConfigurationDetails'
            (Maybe
   [AwsEcsTaskDefinitionProxyConfigurationProxyConfigurationPropertiesDetails]
 -> Maybe Text
 -> Maybe Text
 -> AwsEcsTaskDefinitionProxyConfigurationDetails)
-> Parser
     (Maybe
        [AwsEcsTaskDefinitionProxyConfigurationProxyConfigurationPropertiesDetails])
-> Parser
     (Maybe Text
      -> Maybe Text -> AwsEcsTaskDefinitionProxyConfigurationDetails)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( Object
x Object
-> Text
-> Parser
     (Maybe
        (Maybe
           [AwsEcsTaskDefinitionProxyConfigurationProxyConfigurationPropertiesDetails]))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ProxyConfigurationProperties"
                            Parser
  (Maybe
     (Maybe
        [AwsEcsTaskDefinitionProxyConfigurationProxyConfigurationPropertiesDetails]))
-> Maybe
     [AwsEcsTaskDefinitionProxyConfigurationProxyConfigurationPropertiesDetails]
-> Parser
     (Maybe
        [AwsEcsTaskDefinitionProxyConfigurationProxyConfigurationPropertiesDetails])
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe
  [AwsEcsTaskDefinitionProxyConfigurationProxyConfigurationPropertiesDetails]
forall a. Monoid a => a
Prelude.mempty
                        )
              Parser
  (Maybe Text
   -> Maybe Text -> AwsEcsTaskDefinitionProxyConfigurationDetails)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text -> AwsEcsTaskDefinitionProxyConfigurationDetails)
forall (f :: * -> *) a b. Applicative f => 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
"ContainerName")
              Parser
  (Maybe Text -> AwsEcsTaskDefinitionProxyConfigurationDetails)
-> Parser (Maybe Text)
-> Parser AwsEcsTaskDefinitionProxyConfigurationDetails
forall (f :: * -> *) a b. Applicative f => 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
"Type")
      )

instance
  Prelude.Hashable
    AwsEcsTaskDefinitionProxyConfigurationDetails

instance
  Prelude.NFData
    AwsEcsTaskDefinitionProxyConfigurationDetails

instance
  Core.ToJSON
    AwsEcsTaskDefinitionProxyConfigurationDetails
  where
  toJSON :: AwsEcsTaskDefinitionProxyConfigurationDetails -> Value
toJSON
    AwsEcsTaskDefinitionProxyConfigurationDetails' {Maybe
  [AwsEcsTaskDefinitionProxyConfigurationProxyConfigurationPropertiesDetails]
Maybe Text
type' :: Maybe Text
containerName :: Maybe Text
proxyConfigurationProperties :: Maybe
  [AwsEcsTaskDefinitionProxyConfigurationProxyConfigurationPropertiesDetails]
$sel:type':AwsEcsTaskDefinitionProxyConfigurationDetails' :: AwsEcsTaskDefinitionProxyConfigurationDetails -> Maybe Text
$sel:containerName:AwsEcsTaskDefinitionProxyConfigurationDetails' :: AwsEcsTaskDefinitionProxyConfigurationDetails -> Maybe Text
$sel:proxyConfigurationProperties:AwsEcsTaskDefinitionProxyConfigurationDetails' :: AwsEcsTaskDefinitionProxyConfigurationDetails
-> Maybe
     [AwsEcsTaskDefinitionProxyConfigurationProxyConfigurationPropertiesDetails]
..} =
      [Pair] -> Value
Core.object
        ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
            [ (Text
"ProxyConfigurationProperties" Text
-> [AwsEcsTaskDefinitionProxyConfigurationProxyConfigurationPropertiesDetails]
-> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
                ([AwsEcsTaskDefinitionProxyConfigurationProxyConfigurationPropertiesDetails]
 -> Pair)
-> Maybe
     [AwsEcsTaskDefinitionProxyConfigurationProxyConfigurationPropertiesDetails]
-> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe
  [AwsEcsTaskDefinitionProxyConfigurationProxyConfigurationPropertiesDetails]
proxyConfigurationProperties,
              (Text
"ContainerName" 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
containerName,
              (Text
"Type" 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
type'
            ]
        )