{-# 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.ImageBuilder.Types.InfrastructureConfigurationSummary
-- 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.ImageBuilder.Types.InfrastructureConfigurationSummary where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude

-- | The infrastructure used when building Amazon EC2 AMIs.
--
-- /See:/ 'newInfrastructureConfigurationSummary' smart constructor.
data InfrastructureConfigurationSummary = InfrastructureConfigurationSummary'
  { -- | The instance types of the infrastructure configuration.
    InfrastructureConfigurationSummary -> Maybe [Text]
instanceTypes :: Prelude.Maybe [Prelude.Text],
    -- | The Amazon Resource Name (ARN) of the infrastructure configuration.
    InfrastructureConfigurationSummary -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
    -- | The tags attached to the image created by Image Builder.
    InfrastructureConfigurationSummary -> Maybe (HashMap Text Text)
resourceTags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
    -- | The date on which the infrastructure configuration was last updated.
    InfrastructureConfigurationSummary -> Maybe Text
dateUpdated :: Prelude.Maybe Prelude.Text,
    -- | The date on which the infrastructure configuration was created.
    InfrastructureConfigurationSummary -> Maybe Text
dateCreated :: Prelude.Maybe Prelude.Text,
    -- | The name of the infrastructure configuration.
    InfrastructureConfigurationSummary -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
    -- | The instance profile of the infrastructure configuration.
    InfrastructureConfigurationSummary -> Maybe Text
instanceProfileName :: Prelude.Maybe Prelude.Text,
    -- | The description of the infrastructure configuration.
    InfrastructureConfigurationSummary -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
    -- | The tags of the infrastructure configuration.
    InfrastructureConfigurationSummary -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text)
  }
  deriving (InfrastructureConfigurationSummary
-> InfrastructureConfigurationSummary -> Bool
(InfrastructureConfigurationSummary
 -> InfrastructureConfigurationSummary -> Bool)
-> (InfrastructureConfigurationSummary
    -> InfrastructureConfigurationSummary -> Bool)
-> Eq InfrastructureConfigurationSummary
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: InfrastructureConfigurationSummary
-> InfrastructureConfigurationSummary -> Bool
$c/= :: InfrastructureConfigurationSummary
-> InfrastructureConfigurationSummary -> Bool
== :: InfrastructureConfigurationSummary
-> InfrastructureConfigurationSummary -> Bool
$c== :: InfrastructureConfigurationSummary
-> InfrastructureConfigurationSummary -> Bool
Prelude.Eq, ReadPrec [InfrastructureConfigurationSummary]
ReadPrec InfrastructureConfigurationSummary
Int -> ReadS InfrastructureConfigurationSummary
ReadS [InfrastructureConfigurationSummary]
(Int -> ReadS InfrastructureConfigurationSummary)
-> ReadS [InfrastructureConfigurationSummary]
-> ReadPrec InfrastructureConfigurationSummary
-> ReadPrec [InfrastructureConfigurationSummary]
-> Read InfrastructureConfigurationSummary
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [InfrastructureConfigurationSummary]
$creadListPrec :: ReadPrec [InfrastructureConfigurationSummary]
readPrec :: ReadPrec InfrastructureConfigurationSummary
$creadPrec :: ReadPrec InfrastructureConfigurationSummary
readList :: ReadS [InfrastructureConfigurationSummary]
$creadList :: ReadS [InfrastructureConfigurationSummary]
readsPrec :: Int -> ReadS InfrastructureConfigurationSummary
$creadsPrec :: Int -> ReadS InfrastructureConfigurationSummary
Prelude.Read, Int -> InfrastructureConfigurationSummary -> ShowS
[InfrastructureConfigurationSummary] -> ShowS
InfrastructureConfigurationSummary -> String
(Int -> InfrastructureConfigurationSummary -> ShowS)
-> (InfrastructureConfigurationSummary -> String)
-> ([InfrastructureConfigurationSummary] -> ShowS)
-> Show InfrastructureConfigurationSummary
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [InfrastructureConfigurationSummary] -> ShowS
$cshowList :: [InfrastructureConfigurationSummary] -> ShowS
show :: InfrastructureConfigurationSummary -> String
$cshow :: InfrastructureConfigurationSummary -> String
showsPrec :: Int -> InfrastructureConfigurationSummary -> ShowS
$cshowsPrec :: Int -> InfrastructureConfigurationSummary -> ShowS
Prelude.Show, (forall x.
 InfrastructureConfigurationSummary
 -> Rep InfrastructureConfigurationSummary x)
-> (forall x.
    Rep InfrastructureConfigurationSummary x
    -> InfrastructureConfigurationSummary)
-> Generic InfrastructureConfigurationSummary
forall x.
Rep InfrastructureConfigurationSummary x
-> InfrastructureConfigurationSummary
forall x.
InfrastructureConfigurationSummary
-> Rep InfrastructureConfigurationSummary x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep InfrastructureConfigurationSummary x
-> InfrastructureConfigurationSummary
$cfrom :: forall x.
InfrastructureConfigurationSummary
-> Rep InfrastructureConfigurationSummary x
Prelude.Generic)

-- |
-- Create a value of 'InfrastructureConfigurationSummary' 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:
--
-- 'instanceTypes', 'infrastructureConfigurationSummary_instanceTypes' - The instance types of the infrastructure configuration.
--
-- 'arn', 'infrastructureConfigurationSummary_arn' - The Amazon Resource Name (ARN) of the infrastructure configuration.
--
-- 'resourceTags', 'infrastructureConfigurationSummary_resourceTags' - The tags attached to the image created by Image Builder.
--
-- 'dateUpdated', 'infrastructureConfigurationSummary_dateUpdated' - The date on which the infrastructure configuration was last updated.
--
-- 'dateCreated', 'infrastructureConfigurationSummary_dateCreated' - The date on which the infrastructure configuration was created.
--
-- 'name', 'infrastructureConfigurationSummary_name' - The name of the infrastructure configuration.
--
-- 'instanceProfileName', 'infrastructureConfigurationSummary_instanceProfileName' - The instance profile of the infrastructure configuration.
--
-- 'description', 'infrastructureConfigurationSummary_description' - The description of the infrastructure configuration.
--
-- 'tags', 'infrastructureConfigurationSummary_tags' - The tags of the infrastructure configuration.
newInfrastructureConfigurationSummary ::
  InfrastructureConfigurationSummary
newInfrastructureConfigurationSummary :: InfrastructureConfigurationSummary
newInfrastructureConfigurationSummary =
  InfrastructureConfigurationSummary' :: Maybe [Text]
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> InfrastructureConfigurationSummary
InfrastructureConfigurationSummary'
    { $sel:instanceTypes:InfrastructureConfigurationSummary' :: Maybe [Text]
instanceTypes =
        Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
      $sel:arn:InfrastructureConfigurationSummary' :: Maybe Text
arn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:resourceTags:InfrastructureConfigurationSummary' :: Maybe (HashMap Text Text)
resourceTags = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
      $sel:dateUpdated:InfrastructureConfigurationSummary' :: Maybe Text
dateUpdated = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:dateCreated:InfrastructureConfigurationSummary' :: Maybe Text
dateCreated = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:name:InfrastructureConfigurationSummary' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:instanceProfileName:InfrastructureConfigurationSummary' :: Maybe Text
instanceProfileName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:description:InfrastructureConfigurationSummary' :: Maybe Text
description = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:tags:InfrastructureConfigurationSummary' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing
    }

-- | The instance types of the infrastructure configuration.
infrastructureConfigurationSummary_instanceTypes :: Lens.Lens' InfrastructureConfigurationSummary (Prelude.Maybe [Prelude.Text])
infrastructureConfigurationSummary_instanceTypes :: (Maybe [Text] -> f (Maybe [Text]))
-> InfrastructureConfigurationSummary
-> f InfrastructureConfigurationSummary
infrastructureConfigurationSummary_instanceTypes = (InfrastructureConfigurationSummary -> Maybe [Text])
-> (InfrastructureConfigurationSummary
    -> Maybe [Text] -> InfrastructureConfigurationSummary)
-> Lens
     InfrastructureConfigurationSummary
     InfrastructureConfigurationSummary
     (Maybe [Text])
     (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\InfrastructureConfigurationSummary' {Maybe [Text]
instanceTypes :: Maybe [Text]
$sel:instanceTypes:InfrastructureConfigurationSummary' :: InfrastructureConfigurationSummary -> Maybe [Text]
instanceTypes} -> Maybe [Text]
instanceTypes) (\s :: InfrastructureConfigurationSummary
s@InfrastructureConfigurationSummary' {} Maybe [Text]
a -> InfrastructureConfigurationSummary
s {$sel:instanceTypes:InfrastructureConfigurationSummary' :: Maybe [Text]
instanceTypes = Maybe [Text]
a} :: InfrastructureConfigurationSummary) ((Maybe [Text] -> f (Maybe [Text]))
 -> InfrastructureConfigurationSummary
 -> f InfrastructureConfigurationSummary)
-> ((Maybe [Text] -> f (Maybe [Text]))
    -> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> InfrastructureConfigurationSummary
-> f InfrastructureConfigurationSummary
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [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 [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The Amazon Resource Name (ARN) of the infrastructure configuration.
infrastructureConfigurationSummary_arn :: Lens.Lens' InfrastructureConfigurationSummary (Prelude.Maybe Prelude.Text)
infrastructureConfigurationSummary_arn :: (Maybe Text -> f (Maybe Text))
-> InfrastructureConfigurationSummary
-> f InfrastructureConfigurationSummary
infrastructureConfigurationSummary_arn = (InfrastructureConfigurationSummary -> Maybe Text)
-> (InfrastructureConfigurationSummary
    -> Maybe Text -> InfrastructureConfigurationSummary)
-> Lens
     InfrastructureConfigurationSummary
     InfrastructureConfigurationSummary
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\InfrastructureConfigurationSummary' {Maybe Text
arn :: Maybe Text
$sel:arn:InfrastructureConfigurationSummary' :: InfrastructureConfigurationSummary -> Maybe Text
arn} -> Maybe Text
arn) (\s :: InfrastructureConfigurationSummary
s@InfrastructureConfigurationSummary' {} Maybe Text
a -> InfrastructureConfigurationSummary
s {$sel:arn:InfrastructureConfigurationSummary' :: Maybe Text
arn = Maybe Text
a} :: InfrastructureConfigurationSummary)

-- | The tags attached to the image created by Image Builder.
infrastructureConfigurationSummary_resourceTags :: Lens.Lens' InfrastructureConfigurationSummary (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
infrastructureConfigurationSummary_resourceTags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> InfrastructureConfigurationSummary
-> f InfrastructureConfigurationSummary
infrastructureConfigurationSummary_resourceTags = (InfrastructureConfigurationSummary -> Maybe (HashMap Text Text))
-> (InfrastructureConfigurationSummary
    -> Maybe (HashMap Text Text) -> InfrastructureConfigurationSummary)
-> Lens
     InfrastructureConfigurationSummary
     InfrastructureConfigurationSummary
     (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 (\InfrastructureConfigurationSummary' {Maybe (HashMap Text Text)
resourceTags :: Maybe (HashMap Text Text)
$sel:resourceTags:InfrastructureConfigurationSummary' :: InfrastructureConfigurationSummary -> Maybe (HashMap Text Text)
resourceTags} -> Maybe (HashMap Text Text)
resourceTags) (\s :: InfrastructureConfigurationSummary
s@InfrastructureConfigurationSummary' {} Maybe (HashMap Text Text)
a -> InfrastructureConfigurationSummary
s {$sel:resourceTags:InfrastructureConfigurationSummary' :: Maybe (HashMap Text Text)
resourceTags = Maybe (HashMap Text Text)
a} :: InfrastructureConfigurationSummary) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
 -> InfrastructureConfigurationSummary
 -> f InfrastructureConfigurationSummary)
-> ((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)))
-> InfrastructureConfigurationSummary
-> f InfrastructureConfigurationSummary
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

-- | The date on which the infrastructure configuration was last updated.
infrastructureConfigurationSummary_dateUpdated :: Lens.Lens' InfrastructureConfigurationSummary (Prelude.Maybe Prelude.Text)
infrastructureConfigurationSummary_dateUpdated :: (Maybe Text -> f (Maybe Text))
-> InfrastructureConfigurationSummary
-> f InfrastructureConfigurationSummary
infrastructureConfigurationSummary_dateUpdated = (InfrastructureConfigurationSummary -> Maybe Text)
-> (InfrastructureConfigurationSummary
    -> Maybe Text -> InfrastructureConfigurationSummary)
-> Lens
     InfrastructureConfigurationSummary
     InfrastructureConfigurationSummary
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\InfrastructureConfigurationSummary' {Maybe Text
dateUpdated :: Maybe Text
$sel:dateUpdated:InfrastructureConfigurationSummary' :: InfrastructureConfigurationSummary -> Maybe Text
dateUpdated} -> Maybe Text
dateUpdated) (\s :: InfrastructureConfigurationSummary
s@InfrastructureConfigurationSummary' {} Maybe Text
a -> InfrastructureConfigurationSummary
s {$sel:dateUpdated:InfrastructureConfigurationSummary' :: Maybe Text
dateUpdated = Maybe Text
a} :: InfrastructureConfigurationSummary)

-- | The date on which the infrastructure configuration was created.
infrastructureConfigurationSummary_dateCreated :: Lens.Lens' InfrastructureConfigurationSummary (Prelude.Maybe Prelude.Text)
infrastructureConfigurationSummary_dateCreated :: (Maybe Text -> f (Maybe Text))
-> InfrastructureConfigurationSummary
-> f InfrastructureConfigurationSummary
infrastructureConfigurationSummary_dateCreated = (InfrastructureConfigurationSummary -> Maybe Text)
-> (InfrastructureConfigurationSummary
    -> Maybe Text -> InfrastructureConfigurationSummary)
-> Lens
     InfrastructureConfigurationSummary
     InfrastructureConfigurationSummary
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\InfrastructureConfigurationSummary' {Maybe Text
dateCreated :: Maybe Text
$sel:dateCreated:InfrastructureConfigurationSummary' :: InfrastructureConfigurationSummary -> Maybe Text
dateCreated} -> Maybe Text
dateCreated) (\s :: InfrastructureConfigurationSummary
s@InfrastructureConfigurationSummary' {} Maybe Text
a -> InfrastructureConfigurationSummary
s {$sel:dateCreated:InfrastructureConfigurationSummary' :: Maybe Text
dateCreated = Maybe Text
a} :: InfrastructureConfigurationSummary)

-- | The name of the infrastructure configuration.
infrastructureConfigurationSummary_name :: Lens.Lens' InfrastructureConfigurationSummary (Prelude.Maybe Prelude.Text)
infrastructureConfigurationSummary_name :: (Maybe Text -> f (Maybe Text))
-> InfrastructureConfigurationSummary
-> f InfrastructureConfigurationSummary
infrastructureConfigurationSummary_name = (InfrastructureConfigurationSummary -> Maybe Text)
-> (InfrastructureConfigurationSummary
    -> Maybe Text -> InfrastructureConfigurationSummary)
-> Lens
     InfrastructureConfigurationSummary
     InfrastructureConfigurationSummary
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\InfrastructureConfigurationSummary' {Maybe Text
name :: Maybe Text
$sel:name:InfrastructureConfigurationSummary' :: InfrastructureConfigurationSummary -> Maybe Text
name} -> Maybe Text
name) (\s :: InfrastructureConfigurationSummary
s@InfrastructureConfigurationSummary' {} Maybe Text
a -> InfrastructureConfigurationSummary
s {$sel:name:InfrastructureConfigurationSummary' :: Maybe Text
name = Maybe Text
a} :: InfrastructureConfigurationSummary)

-- | The instance profile of the infrastructure configuration.
infrastructureConfigurationSummary_instanceProfileName :: Lens.Lens' InfrastructureConfigurationSummary (Prelude.Maybe Prelude.Text)
infrastructureConfigurationSummary_instanceProfileName :: (Maybe Text -> f (Maybe Text))
-> InfrastructureConfigurationSummary
-> f InfrastructureConfigurationSummary
infrastructureConfigurationSummary_instanceProfileName = (InfrastructureConfigurationSummary -> Maybe Text)
-> (InfrastructureConfigurationSummary
    -> Maybe Text -> InfrastructureConfigurationSummary)
-> Lens
     InfrastructureConfigurationSummary
     InfrastructureConfigurationSummary
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\InfrastructureConfigurationSummary' {Maybe Text
instanceProfileName :: Maybe Text
$sel:instanceProfileName:InfrastructureConfigurationSummary' :: InfrastructureConfigurationSummary -> Maybe Text
instanceProfileName} -> Maybe Text
instanceProfileName) (\s :: InfrastructureConfigurationSummary
s@InfrastructureConfigurationSummary' {} Maybe Text
a -> InfrastructureConfigurationSummary
s {$sel:instanceProfileName:InfrastructureConfigurationSummary' :: Maybe Text
instanceProfileName = Maybe Text
a} :: InfrastructureConfigurationSummary)

-- | The description of the infrastructure configuration.
infrastructureConfigurationSummary_description :: Lens.Lens' InfrastructureConfigurationSummary (Prelude.Maybe Prelude.Text)
infrastructureConfigurationSummary_description :: (Maybe Text -> f (Maybe Text))
-> InfrastructureConfigurationSummary
-> f InfrastructureConfigurationSummary
infrastructureConfigurationSummary_description = (InfrastructureConfigurationSummary -> Maybe Text)
-> (InfrastructureConfigurationSummary
    -> Maybe Text -> InfrastructureConfigurationSummary)
-> Lens
     InfrastructureConfigurationSummary
     InfrastructureConfigurationSummary
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\InfrastructureConfigurationSummary' {Maybe Text
description :: Maybe Text
$sel:description:InfrastructureConfigurationSummary' :: InfrastructureConfigurationSummary -> Maybe Text
description} -> Maybe Text
description) (\s :: InfrastructureConfigurationSummary
s@InfrastructureConfigurationSummary' {} Maybe Text
a -> InfrastructureConfigurationSummary
s {$sel:description:InfrastructureConfigurationSummary' :: Maybe Text
description = Maybe Text
a} :: InfrastructureConfigurationSummary)

-- | The tags of the infrastructure configuration.
infrastructureConfigurationSummary_tags :: Lens.Lens' InfrastructureConfigurationSummary (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
infrastructureConfigurationSummary_tags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> InfrastructureConfigurationSummary
-> f InfrastructureConfigurationSummary
infrastructureConfigurationSummary_tags = (InfrastructureConfigurationSummary -> Maybe (HashMap Text Text))
-> (InfrastructureConfigurationSummary
    -> Maybe (HashMap Text Text) -> InfrastructureConfigurationSummary)
-> Lens
     InfrastructureConfigurationSummary
     InfrastructureConfigurationSummary
     (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 (\InfrastructureConfigurationSummary' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:InfrastructureConfigurationSummary' :: InfrastructureConfigurationSummary -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: InfrastructureConfigurationSummary
s@InfrastructureConfigurationSummary' {} Maybe (HashMap Text Text)
a -> InfrastructureConfigurationSummary
s {$sel:tags:InfrastructureConfigurationSummary' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: InfrastructureConfigurationSummary) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
 -> InfrastructureConfigurationSummary
 -> f InfrastructureConfigurationSummary)
-> ((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)))
-> InfrastructureConfigurationSummary
-> f InfrastructureConfigurationSummary
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
    InfrastructureConfigurationSummary
  where
  parseJSON :: Value -> Parser InfrastructureConfigurationSummary
parseJSON =
    String
-> (Object -> Parser InfrastructureConfigurationSummary)
-> Value
-> Parser InfrastructureConfigurationSummary
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"InfrastructureConfigurationSummary"
      ( \Object
x ->
          Maybe [Text]
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> InfrastructureConfigurationSummary
InfrastructureConfigurationSummary'
            (Maybe [Text]
 -> Maybe Text
 -> Maybe (HashMap Text Text)
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe (HashMap Text Text)
 -> InfrastructureConfigurationSummary)
-> Parser (Maybe [Text])
-> Parser
     (Maybe Text
      -> Maybe (HashMap Text Text)
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> InfrastructureConfigurationSummary)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe (Maybe [Text]))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"instanceTypes" Parser (Maybe (Maybe [Text]))
-> Maybe [Text] -> Parser (Maybe [Text])
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe [Text]
forall a. Monoid a => a
Prelude.mempty)
            Parser
  (Maybe Text
   -> Maybe (HashMap Text Text)
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> InfrastructureConfigurationSummary)
-> Parser (Maybe Text)
-> Parser
     (Maybe (HashMap Text Text)
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> InfrastructureConfigurationSummary)
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
"arn")
            Parser
  (Maybe (HashMap Text Text)
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> InfrastructureConfigurationSummary)
-> Parser (Maybe (HashMap Text Text))
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> InfrastructureConfigurationSummary)
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
"resourceTags" 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)
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> InfrastructureConfigurationSummary)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> InfrastructureConfigurationSummary)
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
"dateUpdated")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> InfrastructureConfigurationSummary)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> InfrastructureConfigurationSummary)
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
"dateCreated")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> InfrastructureConfigurationSummary)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> InfrastructureConfigurationSummary)
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
"name")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> InfrastructureConfigurationSummary)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe (HashMap Text Text) -> InfrastructureConfigurationSummary)
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
"instanceProfileName")
            Parser
  (Maybe Text
   -> Maybe (HashMap Text Text) -> InfrastructureConfigurationSummary)
-> Parser (Maybe Text)
-> Parser
     (Maybe (HashMap Text Text) -> InfrastructureConfigurationSummary)
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
"description")
            Parser
  (Maybe (HashMap Text Text) -> InfrastructureConfigurationSummary)
-> Parser (Maybe (HashMap Text Text))
-> Parser InfrastructureConfigurationSummary
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
    InfrastructureConfigurationSummary

instance
  Prelude.NFData
    InfrastructureConfigurationSummary