{-# 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.EKS.Types.Addon
-- 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.EKS.Types.Addon where

import qualified Amazonka.Core as Core
import Amazonka.EKS.Types.AddonHealth
import Amazonka.EKS.Types.AddonStatus
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude

-- | An Amazon EKS add-on.
--
-- /See:/ 'newAddon' smart constructor.
data Addon = Addon'
  { -- | The date and time that the add-on was last modified.
    Addon -> Maybe POSIX
modifiedAt :: Prelude.Maybe Core.POSIX,
    -- | The status of the add-on.
    Addon -> Maybe AddonStatus
status :: Prelude.Maybe AddonStatus,
    -- | The name of the add-on.
    Addon -> Maybe Text
addonName :: Prelude.Maybe Prelude.Text,
    -- | The version of the add-on.
    Addon -> Maybe Text
addonVersion :: Prelude.Maybe Prelude.Text,
    -- | The date and time that the add-on was created.
    Addon -> Maybe POSIX
createdAt :: Prelude.Maybe Core.POSIX,
    -- | The Amazon Resource Name (ARN) of the IAM role that is bound to the
    -- Kubernetes service account used by the add-on.
    Addon -> Maybe Text
serviceAccountRoleArn :: Prelude.Maybe Prelude.Text,
    -- | An object that represents the health of the add-on.
    Addon -> Maybe AddonHealth
health :: Prelude.Maybe AddonHealth,
    -- | The name of the cluster.
    Addon -> Maybe Text
clusterName :: Prelude.Maybe Prelude.Text,
    -- | The Amazon Resource Name (ARN) of the add-on.
    Addon -> Maybe Text
addonArn :: Prelude.Maybe Prelude.Text,
    -- | The metadata that you apply to the add-on to assist with categorization
    -- and organization. Each tag consists of a key and an optional value, both
    -- of which you define. Add-on tags do not propagate to any other resources
    -- associated with the cluster.
    Addon -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text)
  }
  deriving (Addon -> Addon -> Bool
(Addon -> Addon -> Bool) -> (Addon -> Addon -> Bool) -> Eq Addon
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: Addon -> Addon -> Bool
$c/= :: Addon -> Addon -> Bool
== :: Addon -> Addon -> Bool
$c== :: Addon -> Addon -> Bool
Prelude.Eq, ReadPrec [Addon]
ReadPrec Addon
Int -> ReadS Addon
ReadS [Addon]
(Int -> ReadS Addon)
-> ReadS [Addon]
-> ReadPrec Addon
-> ReadPrec [Addon]
-> Read Addon
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [Addon]
$creadListPrec :: ReadPrec [Addon]
readPrec :: ReadPrec Addon
$creadPrec :: ReadPrec Addon
readList :: ReadS [Addon]
$creadList :: ReadS [Addon]
readsPrec :: Int -> ReadS Addon
$creadsPrec :: Int -> ReadS Addon
Prelude.Read, Int -> Addon -> ShowS
[Addon] -> ShowS
Addon -> String
(Int -> Addon -> ShowS)
-> (Addon -> String) -> ([Addon] -> ShowS) -> Show Addon
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [Addon] -> ShowS
$cshowList :: [Addon] -> ShowS
show :: Addon -> String
$cshow :: Addon -> String
showsPrec :: Int -> Addon -> ShowS
$cshowsPrec :: Int -> Addon -> ShowS
Prelude.Show, (forall x. Addon -> Rep Addon x)
-> (forall x. Rep Addon x -> Addon) -> Generic Addon
forall x. Rep Addon x -> Addon
forall x. Addon -> Rep Addon x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep Addon x -> Addon
$cfrom :: forall x. Addon -> Rep Addon x
Prelude.Generic)

-- |
-- Create a value of 'Addon' 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:
--
-- 'modifiedAt', 'addon_modifiedAt' - The date and time that the add-on was last modified.
--
-- 'status', 'addon_status' - The status of the add-on.
--
-- 'addonName', 'addon_addonName' - The name of the add-on.
--
-- 'addonVersion', 'addon_addonVersion' - The version of the add-on.
--
-- 'createdAt', 'addon_createdAt' - The date and time that the add-on was created.
--
-- 'serviceAccountRoleArn', 'addon_serviceAccountRoleArn' - The Amazon Resource Name (ARN) of the IAM role that is bound to the
-- Kubernetes service account used by the add-on.
--
-- 'health', 'addon_health' - An object that represents the health of the add-on.
--
-- 'clusterName', 'addon_clusterName' - The name of the cluster.
--
-- 'addonArn', 'addon_addonArn' - The Amazon Resource Name (ARN) of the add-on.
--
-- 'tags', 'addon_tags' - The metadata that you apply to the add-on to assist with categorization
-- and organization. Each tag consists of a key and an optional value, both
-- of which you define. Add-on tags do not propagate to any other resources
-- associated with the cluster.
newAddon ::
  Addon
newAddon :: Addon
newAddon =
  Addon' :: Maybe POSIX
-> Maybe AddonStatus
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe AddonHealth
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Addon
Addon'
    { $sel:modifiedAt:Addon' :: Maybe POSIX
modifiedAt = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:status:Addon' :: Maybe AddonStatus
status = Maybe AddonStatus
forall a. Maybe a
Prelude.Nothing,
      $sel:addonName:Addon' :: Maybe Text
addonName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:addonVersion:Addon' :: Maybe Text
addonVersion = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:createdAt:Addon' :: Maybe POSIX
createdAt = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:serviceAccountRoleArn:Addon' :: Maybe Text
serviceAccountRoleArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:health:Addon' :: Maybe AddonHealth
health = Maybe AddonHealth
forall a. Maybe a
Prelude.Nothing,
      $sel:clusterName:Addon' :: Maybe Text
clusterName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:addonArn:Addon' :: Maybe Text
addonArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:tags:Addon' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing
    }

-- | The date and time that the add-on was last modified.
addon_modifiedAt :: Lens.Lens' Addon (Prelude.Maybe Prelude.UTCTime)
addon_modifiedAt :: (Maybe UTCTime -> f (Maybe UTCTime)) -> Addon -> f Addon
addon_modifiedAt = (Addon -> Maybe POSIX)
-> (Addon -> Maybe POSIX -> Addon)
-> Lens Addon Addon (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Addon' {Maybe POSIX
modifiedAt :: Maybe POSIX
$sel:modifiedAt:Addon' :: Addon -> Maybe POSIX
modifiedAt} -> Maybe POSIX
modifiedAt) (\s :: Addon
s@Addon' {} Maybe POSIX
a -> Addon
s {$sel:modifiedAt:Addon' :: Maybe POSIX
modifiedAt = Maybe POSIX
a} :: Addon) ((Maybe POSIX -> f (Maybe POSIX)) -> Addon -> f Addon)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> Addon
-> f Addon
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time

-- | The status of the add-on.
addon_status :: Lens.Lens' Addon (Prelude.Maybe AddonStatus)
addon_status :: (Maybe AddonStatus -> f (Maybe AddonStatus)) -> Addon -> f Addon
addon_status = (Addon -> Maybe AddonStatus)
-> (Addon -> Maybe AddonStatus -> Addon)
-> Lens Addon Addon (Maybe AddonStatus) (Maybe AddonStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Addon' {Maybe AddonStatus
status :: Maybe AddonStatus
$sel:status:Addon' :: Addon -> Maybe AddonStatus
status} -> Maybe AddonStatus
status) (\s :: Addon
s@Addon' {} Maybe AddonStatus
a -> Addon
s {$sel:status:Addon' :: Maybe AddonStatus
status = Maybe AddonStatus
a} :: Addon)

-- | The name of the add-on.
addon_addonName :: Lens.Lens' Addon (Prelude.Maybe Prelude.Text)
addon_addonName :: (Maybe Text -> f (Maybe Text)) -> Addon -> f Addon
addon_addonName = (Addon -> Maybe Text)
-> (Addon -> Maybe Text -> Addon)
-> Lens Addon Addon (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Addon' {Maybe Text
addonName :: Maybe Text
$sel:addonName:Addon' :: Addon -> Maybe Text
addonName} -> Maybe Text
addonName) (\s :: Addon
s@Addon' {} Maybe Text
a -> Addon
s {$sel:addonName:Addon' :: Maybe Text
addonName = Maybe Text
a} :: Addon)

-- | The version of the add-on.
addon_addonVersion :: Lens.Lens' Addon (Prelude.Maybe Prelude.Text)
addon_addonVersion :: (Maybe Text -> f (Maybe Text)) -> Addon -> f Addon
addon_addonVersion = (Addon -> Maybe Text)
-> (Addon -> Maybe Text -> Addon)
-> Lens Addon Addon (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Addon' {Maybe Text
addonVersion :: Maybe Text
$sel:addonVersion:Addon' :: Addon -> Maybe Text
addonVersion} -> Maybe Text
addonVersion) (\s :: Addon
s@Addon' {} Maybe Text
a -> Addon
s {$sel:addonVersion:Addon' :: Maybe Text
addonVersion = Maybe Text
a} :: Addon)

-- | The date and time that the add-on was created.
addon_createdAt :: Lens.Lens' Addon (Prelude.Maybe Prelude.UTCTime)
addon_createdAt :: (Maybe UTCTime -> f (Maybe UTCTime)) -> Addon -> f Addon
addon_createdAt = (Addon -> Maybe POSIX)
-> (Addon -> Maybe POSIX -> Addon)
-> Lens Addon Addon (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Addon' {Maybe POSIX
createdAt :: Maybe POSIX
$sel:createdAt:Addon' :: Addon -> Maybe POSIX
createdAt} -> Maybe POSIX
createdAt) (\s :: Addon
s@Addon' {} Maybe POSIX
a -> Addon
s {$sel:createdAt:Addon' :: Maybe POSIX
createdAt = Maybe POSIX
a} :: Addon) ((Maybe POSIX -> f (Maybe POSIX)) -> Addon -> f Addon)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> Addon
-> f Addon
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time

-- | The Amazon Resource Name (ARN) of the IAM role that is bound to the
-- Kubernetes service account used by the add-on.
addon_serviceAccountRoleArn :: Lens.Lens' Addon (Prelude.Maybe Prelude.Text)
addon_serviceAccountRoleArn :: (Maybe Text -> f (Maybe Text)) -> Addon -> f Addon
addon_serviceAccountRoleArn = (Addon -> Maybe Text)
-> (Addon -> Maybe Text -> Addon)
-> Lens Addon Addon (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Addon' {Maybe Text
serviceAccountRoleArn :: Maybe Text
$sel:serviceAccountRoleArn:Addon' :: Addon -> Maybe Text
serviceAccountRoleArn} -> Maybe Text
serviceAccountRoleArn) (\s :: Addon
s@Addon' {} Maybe Text
a -> Addon
s {$sel:serviceAccountRoleArn:Addon' :: Maybe Text
serviceAccountRoleArn = Maybe Text
a} :: Addon)

-- | An object that represents the health of the add-on.
addon_health :: Lens.Lens' Addon (Prelude.Maybe AddonHealth)
addon_health :: (Maybe AddonHealth -> f (Maybe AddonHealth)) -> Addon -> f Addon
addon_health = (Addon -> Maybe AddonHealth)
-> (Addon -> Maybe AddonHealth -> Addon)
-> Lens Addon Addon (Maybe AddonHealth) (Maybe AddonHealth)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Addon' {Maybe AddonHealth
health :: Maybe AddonHealth
$sel:health:Addon' :: Addon -> Maybe AddonHealth
health} -> Maybe AddonHealth
health) (\s :: Addon
s@Addon' {} Maybe AddonHealth
a -> Addon
s {$sel:health:Addon' :: Maybe AddonHealth
health = Maybe AddonHealth
a} :: Addon)

-- | The name of the cluster.
addon_clusterName :: Lens.Lens' Addon (Prelude.Maybe Prelude.Text)
addon_clusterName :: (Maybe Text -> f (Maybe Text)) -> Addon -> f Addon
addon_clusterName = (Addon -> Maybe Text)
-> (Addon -> Maybe Text -> Addon)
-> Lens Addon Addon (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Addon' {Maybe Text
clusterName :: Maybe Text
$sel:clusterName:Addon' :: Addon -> Maybe Text
clusterName} -> Maybe Text
clusterName) (\s :: Addon
s@Addon' {} Maybe Text
a -> Addon
s {$sel:clusterName:Addon' :: Maybe Text
clusterName = Maybe Text
a} :: Addon)

-- | The Amazon Resource Name (ARN) of the add-on.
addon_addonArn :: Lens.Lens' Addon (Prelude.Maybe Prelude.Text)
addon_addonArn :: (Maybe Text -> f (Maybe Text)) -> Addon -> f Addon
addon_addonArn = (Addon -> Maybe Text)
-> (Addon -> Maybe Text -> Addon)
-> Lens Addon Addon (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Addon' {Maybe Text
addonArn :: Maybe Text
$sel:addonArn:Addon' :: Addon -> Maybe Text
addonArn} -> Maybe Text
addonArn) (\s :: Addon
s@Addon' {} Maybe Text
a -> Addon
s {$sel:addonArn:Addon' :: Maybe Text
addonArn = Maybe Text
a} :: Addon)

-- | The metadata that you apply to the add-on to assist with categorization
-- and organization. Each tag consists of a key and an optional value, both
-- of which you define. Add-on tags do not propagate to any other resources
-- associated with the cluster.
addon_tags :: Lens.Lens' Addon (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
addon_tags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> Addon -> f Addon
addon_tags = (Addon -> Maybe (HashMap Text Text))
-> (Addon -> Maybe (HashMap Text Text) -> Addon)
-> Lens
     Addon Addon (Maybe (HashMap Text Text)) (Maybe (HashMap Text Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Addon' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:Addon' :: Addon -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: Addon
s@Addon' {} Maybe (HashMap Text Text)
a -> Addon
s {$sel:tags:Addon' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: Addon) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
 -> Addon -> f Addon)
-> ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
    -> Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> Addon
-> f Addon
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
-> Iso
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
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
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

instance Core.FromJSON Addon where
  parseJSON :: Value -> Parser Addon
parseJSON =
    String -> (Object -> Parser Addon) -> Value -> Parser Addon
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"Addon"
      ( \Object
x ->
          Maybe POSIX
-> Maybe AddonStatus
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe AddonHealth
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Addon
Addon'
            (Maybe POSIX
 -> Maybe AddonStatus
 -> Maybe Text
 -> Maybe Text
 -> Maybe POSIX
 -> Maybe Text
 -> Maybe AddonHealth
 -> Maybe Text
 -> Maybe Text
 -> Maybe (HashMap Text Text)
 -> Addon)
-> Parser (Maybe POSIX)
-> Parser
     (Maybe AddonStatus
      -> Maybe Text
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe AddonHealth
      -> Maybe Text
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Addon)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"modifiedAt")
            Parser
  (Maybe AddonStatus
   -> Maybe Text
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe AddonHealth
   -> Maybe Text
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Addon)
-> Parser (Maybe AddonStatus)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe AddonHealth
      -> Maybe Text
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Addon)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe AddonStatus)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"status")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe AddonHealth
   -> Maybe Text
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Addon)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe AddonHealth
      -> Maybe Text
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Addon)
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
"addonName")
            Parser
  (Maybe Text
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe AddonHealth
   -> Maybe Text
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Addon)
-> Parser (Maybe Text)
-> Parser
     (Maybe POSIX
      -> Maybe Text
      -> Maybe AddonHealth
      -> Maybe Text
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Addon)
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
"addonVersion")
            Parser
  (Maybe POSIX
   -> Maybe Text
   -> Maybe AddonHealth
   -> Maybe Text
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Addon)
-> Parser (Maybe POSIX)
-> Parser
     (Maybe Text
      -> Maybe AddonHealth
      -> Maybe Text
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Addon)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"createdAt")
            Parser
  (Maybe Text
   -> Maybe AddonHealth
   -> Maybe Text
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Addon)
-> Parser (Maybe Text)
-> Parser
     (Maybe AddonHealth
      -> Maybe Text -> Maybe Text -> Maybe (HashMap Text Text) -> Addon)
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
"serviceAccountRoleArn")
            Parser
  (Maybe AddonHealth
   -> Maybe Text -> Maybe Text -> Maybe (HashMap Text Text) -> Addon)
-> Parser (Maybe AddonHealth)
-> Parser
     (Maybe Text -> Maybe Text -> Maybe (HashMap Text Text) -> Addon)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe AddonHealth)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"health")
            Parser
  (Maybe Text -> Maybe Text -> Maybe (HashMap Text Text) -> Addon)
-> Parser (Maybe Text)
-> Parser (Maybe Text -> Maybe (HashMap Text Text) -> Addon)
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
"clusterName")
            Parser (Maybe Text -> Maybe (HashMap Text Text) -> Addon)
-> Parser (Maybe Text)
-> Parser (Maybe (HashMap Text Text) -> Addon)
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
"addonArn")
            Parser (Maybe (HashMap Text Text) -> Addon)
-> Parser (Maybe (HashMap Text Text)) -> Parser Addon
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe (Maybe (HashMap Text Text)))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"tags" Parser (Maybe (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text) -> Parser (Maybe (HashMap Text Text))
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe (HashMap Text Text)
forall a. Monoid a => a
Prelude.mempty)
      )

instance Prelude.Hashable Addon

instance Prelude.NFData Addon