{-# 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.Inspector2.Types.AwsEcrContainerAggregation
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.Inspector2.Types.AwsEcrContainerAggregation where

import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.Inspector2.Types.AwsEcrContainerSortBy
import Amazonka.Inspector2.Types.SortOrder
import Amazonka.Inspector2.Types.StringFilter
import qualified Amazonka.Prelude as Prelude

-- | An aggregation of information about Amazon ECR containers.
--
-- /See:/ 'newAwsEcrContainerAggregation' smart constructor.
data AwsEcrContainerAggregation = AwsEcrContainerAggregation'
  { -- | The architecture of the containers.
    AwsEcrContainerAggregation -> Maybe (NonEmpty StringFilter)
architectures :: Prelude.Maybe (Prelude.NonEmpty StringFilter),
    -- | The image SHA values.
    AwsEcrContainerAggregation -> Maybe (NonEmpty StringFilter)
imageShas :: Prelude.Maybe (Prelude.NonEmpty StringFilter),
    -- | The image tags.
    AwsEcrContainerAggregation -> Maybe (NonEmpty StringFilter)
imageTags :: Prelude.Maybe (Prelude.NonEmpty StringFilter),
    -- | The container repositories.
    AwsEcrContainerAggregation -> Maybe (NonEmpty StringFilter)
repositories :: Prelude.Maybe (Prelude.NonEmpty StringFilter),
    -- | The container resource IDs.
    AwsEcrContainerAggregation -> Maybe (NonEmpty StringFilter)
resourceIds :: Prelude.Maybe (Prelude.NonEmpty StringFilter),
    -- | The value to sort by.
    AwsEcrContainerAggregation -> Maybe AwsEcrContainerSortBy
sortBy :: Prelude.Maybe AwsEcrContainerSortBy,
    -- | The sort order (ascending or descending).
    AwsEcrContainerAggregation -> Maybe SortOrder
sortOrder :: Prelude.Maybe SortOrder
  }
  deriving (AwsEcrContainerAggregation -> AwsEcrContainerAggregation -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AwsEcrContainerAggregation -> AwsEcrContainerAggregation -> Bool
$c/= :: AwsEcrContainerAggregation -> AwsEcrContainerAggregation -> Bool
== :: AwsEcrContainerAggregation -> AwsEcrContainerAggregation -> Bool
$c== :: AwsEcrContainerAggregation -> AwsEcrContainerAggregation -> Bool
Prelude.Eq, ReadPrec [AwsEcrContainerAggregation]
ReadPrec AwsEcrContainerAggregation
Int -> ReadS AwsEcrContainerAggregation
ReadS [AwsEcrContainerAggregation]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [AwsEcrContainerAggregation]
$creadListPrec :: ReadPrec [AwsEcrContainerAggregation]
readPrec :: ReadPrec AwsEcrContainerAggregation
$creadPrec :: ReadPrec AwsEcrContainerAggregation
readList :: ReadS [AwsEcrContainerAggregation]
$creadList :: ReadS [AwsEcrContainerAggregation]
readsPrec :: Int -> ReadS AwsEcrContainerAggregation
$creadsPrec :: Int -> ReadS AwsEcrContainerAggregation
Prelude.Read, Int -> AwsEcrContainerAggregation -> ShowS
[AwsEcrContainerAggregation] -> ShowS
AwsEcrContainerAggregation -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AwsEcrContainerAggregation] -> ShowS
$cshowList :: [AwsEcrContainerAggregation] -> ShowS
show :: AwsEcrContainerAggregation -> String
$cshow :: AwsEcrContainerAggregation -> String
showsPrec :: Int -> AwsEcrContainerAggregation -> ShowS
$cshowsPrec :: Int -> AwsEcrContainerAggregation -> ShowS
Prelude.Show, forall x.
Rep AwsEcrContainerAggregation x -> AwsEcrContainerAggregation
forall x.
AwsEcrContainerAggregation -> Rep AwsEcrContainerAggregation x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep AwsEcrContainerAggregation x -> AwsEcrContainerAggregation
$cfrom :: forall x.
AwsEcrContainerAggregation -> Rep AwsEcrContainerAggregation x
Prelude.Generic)

-- |
-- Create a value of 'AwsEcrContainerAggregation' 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:
--
-- 'architectures', 'awsEcrContainerAggregation_architectures' - The architecture of the containers.
--
-- 'imageShas', 'awsEcrContainerAggregation_imageShas' - The image SHA values.
--
-- 'imageTags', 'awsEcrContainerAggregation_imageTags' - The image tags.
--
-- 'repositories', 'awsEcrContainerAggregation_repositories' - The container repositories.
--
-- 'resourceIds', 'awsEcrContainerAggregation_resourceIds' - The container resource IDs.
--
-- 'sortBy', 'awsEcrContainerAggregation_sortBy' - The value to sort by.
--
-- 'sortOrder', 'awsEcrContainerAggregation_sortOrder' - The sort order (ascending or descending).
newAwsEcrContainerAggregation ::
  AwsEcrContainerAggregation
newAwsEcrContainerAggregation :: AwsEcrContainerAggregation
newAwsEcrContainerAggregation =
  AwsEcrContainerAggregation'
    { $sel:architectures:AwsEcrContainerAggregation' :: Maybe (NonEmpty StringFilter)
architectures =
        forall a. Maybe a
Prelude.Nothing,
      $sel:imageShas:AwsEcrContainerAggregation' :: Maybe (NonEmpty StringFilter)
imageShas = forall a. Maybe a
Prelude.Nothing,
      $sel:imageTags:AwsEcrContainerAggregation' :: Maybe (NonEmpty StringFilter)
imageTags = forall a. Maybe a
Prelude.Nothing,
      $sel:repositories:AwsEcrContainerAggregation' :: Maybe (NonEmpty StringFilter)
repositories = forall a. Maybe a
Prelude.Nothing,
      $sel:resourceIds:AwsEcrContainerAggregation' :: Maybe (NonEmpty StringFilter)
resourceIds = forall a. Maybe a
Prelude.Nothing,
      $sel:sortBy:AwsEcrContainerAggregation' :: Maybe AwsEcrContainerSortBy
sortBy = forall a. Maybe a
Prelude.Nothing,
      $sel:sortOrder:AwsEcrContainerAggregation' :: Maybe SortOrder
sortOrder = forall a. Maybe a
Prelude.Nothing
    }

-- | The architecture of the containers.
awsEcrContainerAggregation_architectures :: Lens.Lens' AwsEcrContainerAggregation (Prelude.Maybe (Prelude.NonEmpty StringFilter))
awsEcrContainerAggregation_architectures :: Lens' AwsEcrContainerAggregation (Maybe (NonEmpty StringFilter))
awsEcrContainerAggregation_architectures = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsEcrContainerAggregation' {Maybe (NonEmpty StringFilter)
architectures :: Maybe (NonEmpty StringFilter)
$sel:architectures:AwsEcrContainerAggregation' :: AwsEcrContainerAggregation -> Maybe (NonEmpty StringFilter)
architectures} -> Maybe (NonEmpty StringFilter)
architectures) (\s :: AwsEcrContainerAggregation
s@AwsEcrContainerAggregation' {} Maybe (NonEmpty StringFilter)
a -> AwsEcrContainerAggregation
s {$sel:architectures:AwsEcrContainerAggregation' :: Maybe (NonEmpty StringFilter)
architectures = Maybe (NonEmpty StringFilter)
a} :: AwsEcrContainerAggregation) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The image SHA values.
awsEcrContainerAggregation_imageShas :: Lens.Lens' AwsEcrContainerAggregation (Prelude.Maybe (Prelude.NonEmpty StringFilter))
awsEcrContainerAggregation_imageShas :: Lens' AwsEcrContainerAggregation (Maybe (NonEmpty StringFilter))
awsEcrContainerAggregation_imageShas = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsEcrContainerAggregation' {Maybe (NonEmpty StringFilter)
imageShas :: Maybe (NonEmpty StringFilter)
$sel:imageShas:AwsEcrContainerAggregation' :: AwsEcrContainerAggregation -> Maybe (NonEmpty StringFilter)
imageShas} -> Maybe (NonEmpty StringFilter)
imageShas) (\s :: AwsEcrContainerAggregation
s@AwsEcrContainerAggregation' {} Maybe (NonEmpty StringFilter)
a -> AwsEcrContainerAggregation
s {$sel:imageShas:AwsEcrContainerAggregation' :: Maybe (NonEmpty StringFilter)
imageShas = Maybe (NonEmpty StringFilter)
a} :: AwsEcrContainerAggregation) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The image tags.
awsEcrContainerAggregation_imageTags :: Lens.Lens' AwsEcrContainerAggregation (Prelude.Maybe (Prelude.NonEmpty StringFilter))
awsEcrContainerAggregation_imageTags :: Lens' AwsEcrContainerAggregation (Maybe (NonEmpty StringFilter))
awsEcrContainerAggregation_imageTags = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsEcrContainerAggregation' {Maybe (NonEmpty StringFilter)
imageTags :: Maybe (NonEmpty StringFilter)
$sel:imageTags:AwsEcrContainerAggregation' :: AwsEcrContainerAggregation -> Maybe (NonEmpty StringFilter)
imageTags} -> Maybe (NonEmpty StringFilter)
imageTags) (\s :: AwsEcrContainerAggregation
s@AwsEcrContainerAggregation' {} Maybe (NonEmpty StringFilter)
a -> AwsEcrContainerAggregation
s {$sel:imageTags:AwsEcrContainerAggregation' :: Maybe (NonEmpty StringFilter)
imageTags = Maybe (NonEmpty StringFilter)
a} :: AwsEcrContainerAggregation) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The container repositories.
awsEcrContainerAggregation_repositories :: Lens.Lens' AwsEcrContainerAggregation (Prelude.Maybe (Prelude.NonEmpty StringFilter))
awsEcrContainerAggregation_repositories :: Lens' AwsEcrContainerAggregation (Maybe (NonEmpty StringFilter))
awsEcrContainerAggregation_repositories = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsEcrContainerAggregation' {Maybe (NonEmpty StringFilter)
repositories :: Maybe (NonEmpty StringFilter)
$sel:repositories:AwsEcrContainerAggregation' :: AwsEcrContainerAggregation -> Maybe (NonEmpty StringFilter)
repositories} -> Maybe (NonEmpty StringFilter)
repositories) (\s :: AwsEcrContainerAggregation
s@AwsEcrContainerAggregation' {} Maybe (NonEmpty StringFilter)
a -> AwsEcrContainerAggregation
s {$sel:repositories:AwsEcrContainerAggregation' :: Maybe (NonEmpty StringFilter)
repositories = Maybe (NonEmpty StringFilter)
a} :: AwsEcrContainerAggregation) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The container resource IDs.
awsEcrContainerAggregation_resourceIds :: Lens.Lens' AwsEcrContainerAggregation (Prelude.Maybe (Prelude.NonEmpty StringFilter))
awsEcrContainerAggregation_resourceIds :: Lens' AwsEcrContainerAggregation (Maybe (NonEmpty StringFilter))
awsEcrContainerAggregation_resourceIds = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsEcrContainerAggregation' {Maybe (NonEmpty StringFilter)
resourceIds :: Maybe (NonEmpty StringFilter)
$sel:resourceIds:AwsEcrContainerAggregation' :: AwsEcrContainerAggregation -> Maybe (NonEmpty StringFilter)
resourceIds} -> Maybe (NonEmpty StringFilter)
resourceIds) (\s :: AwsEcrContainerAggregation
s@AwsEcrContainerAggregation' {} Maybe (NonEmpty StringFilter)
a -> AwsEcrContainerAggregation
s {$sel:resourceIds:AwsEcrContainerAggregation' :: Maybe (NonEmpty StringFilter)
resourceIds = Maybe (NonEmpty StringFilter)
a} :: AwsEcrContainerAggregation) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The value to sort by.
awsEcrContainerAggregation_sortBy :: Lens.Lens' AwsEcrContainerAggregation (Prelude.Maybe AwsEcrContainerSortBy)
awsEcrContainerAggregation_sortBy :: Lens' AwsEcrContainerAggregation (Maybe AwsEcrContainerSortBy)
awsEcrContainerAggregation_sortBy = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsEcrContainerAggregation' {Maybe AwsEcrContainerSortBy
sortBy :: Maybe AwsEcrContainerSortBy
$sel:sortBy:AwsEcrContainerAggregation' :: AwsEcrContainerAggregation -> Maybe AwsEcrContainerSortBy
sortBy} -> Maybe AwsEcrContainerSortBy
sortBy) (\s :: AwsEcrContainerAggregation
s@AwsEcrContainerAggregation' {} Maybe AwsEcrContainerSortBy
a -> AwsEcrContainerAggregation
s {$sel:sortBy:AwsEcrContainerAggregation' :: Maybe AwsEcrContainerSortBy
sortBy = Maybe AwsEcrContainerSortBy
a} :: AwsEcrContainerAggregation)

-- | The sort order (ascending or descending).
awsEcrContainerAggregation_sortOrder :: Lens.Lens' AwsEcrContainerAggregation (Prelude.Maybe SortOrder)
awsEcrContainerAggregation_sortOrder :: Lens' AwsEcrContainerAggregation (Maybe SortOrder)
awsEcrContainerAggregation_sortOrder = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsEcrContainerAggregation' {Maybe SortOrder
sortOrder :: Maybe SortOrder
$sel:sortOrder:AwsEcrContainerAggregation' :: AwsEcrContainerAggregation -> Maybe SortOrder
sortOrder} -> Maybe SortOrder
sortOrder) (\s :: AwsEcrContainerAggregation
s@AwsEcrContainerAggregation' {} Maybe SortOrder
a -> AwsEcrContainerAggregation
s {$sel:sortOrder:AwsEcrContainerAggregation' :: Maybe SortOrder
sortOrder = Maybe SortOrder
a} :: AwsEcrContainerAggregation)

instance Prelude.Hashable AwsEcrContainerAggregation where
  hashWithSalt :: Int -> AwsEcrContainerAggregation -> Int
hashWithSalt Int
_salt AwsEcrContainerAggregation' {Maybe (NonEmpty StringFilter)
Maybe AwsEcrContainerSortBy
Maybe SortOrder
sortOrder :: Maybe SortOrder
sortBy :: Maybe AwsEcrContainerSortBy
resourceIds :: Maybe (NonEmpty StringFilter)
repositories :: Maybe (NonEmpty StringFilter)
imageTags :: Maybe (NonEmpty StringFilter)
imageShas :: Maybe (NonEmpty StringFilter)
architectures :: Maybe (NonEmpty StringFilter)
$sel:sortOrder:AwsEcrContainerAggregation' :: AwsEcrContainerAggregation -> Maybe SortOrder
$sel:sortBy:AwsEcrContainerAggregation' :: AwsEcrContainerAggregation -> Maybe AwsEcrContainerSortBy
$sel:resourceIds:AwsEcrContainerAggregation' :: AwsEcrContainerAggregation -> Maybe (NonEmpty StringFilter)
$sel:repositories:AwsEcrContainerAggregation' :: AwsEcrContainerAggregation -> Maybe (NonEmpty StringFilter)
$sel:imageTags:AwsEcrContainerAggregation' :: AwsEcrContainerAggregation -> Maybe (NonEmpty StringFilter)
$sel:imageShas:AwsEcrContainerAggregation' :: AwsEcrContainerAggregation -> Maybe (NonEmpty StringFilter)
$sel:architectures:AwsEcrContainerAggregation' :: AwsEcrContainerAggregation -> Maybe (NonEmpty StringFilter)
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (NonEmpty StringFilter)
architectures
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (NonEmpty StringFilter)
imageShas
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (NonEmpty StringFilter)
imageTags
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (NonEmpty StringFilter)
repositories
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (NonEmpty StringFilter)
resourceIds
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe AwsEcrContainerSortBy
sortBy
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe SortOrder
sortOrder

instance Prelude.NFData AwsEcrContainerAggregation where
  rnf :: AwsEcrContainerAggregation -> ()
rnf AwsEcrContainerAggregation' {Maybe (NonEmpty StringFilter)
Maybe AwsEcrContainerSortBy
Maybe SortOrder
sortOrder :: Maybe SortOrder
sortBy :: Maybe AwsEcrContainerSortBy
resourceIds :: Maybe (NonEmpty StringFilter)
repositories :: Maybe (NonEmpty StringFilter)
imageTags :: Maybe (NonEmpty StringFilter)
imageShas :: Maybe (NonEmpty StringFilter)
architectures :: Maybe (NonEmpty StringFilter)
$sel:sortOrder:AwsEcrContainerAggregation' :: AwsEcrContainerAggregation -> Maybe SortOrder
$sel:sortBy:AwsEcrContainerAggregation' :: AwsEcrContainerAggregation -> Maybe AwsEcrContainerSortBy
$sel:resourceIds:AwsEcrContainerAggregation' :: AwsEcrContainerAggregation -> Maybe (NonEmpty StringFilter)
$sel:repositories:AwsEcrContainerAggregation' :: AwsEcrContainerAggregation -> Maybe (NonEmpty StringFilter)
$sel:imageTags:AwsEcrContainerAggregation' :: AwsEcrContainerAggregation -> Maybe (NonEmpty StringFilter)
$sel:imageShas:AwsEcrContainerAggregation' :: AwsEcrContainerAggregation -> Maybe (NonEmpty StringFilter)
$sel:architectures:AwsEcrContainerAggregation' :: AwsEcrContainerAggregation -> Maybe (NonEmpty StringFilter)
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe (NonEmpty StringFilter)
architectures
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (NonEmpty StringFilter)
imageShas
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (NonEmpty StringFilter)
imageTags
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (NonEmpty StringFilter)
repositories
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (NonEmpty StringFilter)
resourceIds
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe AwsEcrContainerSortBy
sortBy
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe SortOrder
sortOrder

instance Data.ToJSON AwsEcrContainerAggregation where
  toJSON :: AwsEcrContainerAggregation -> Value
toJSON AwsEcrContainerAggregation' {Maybe (NonEmpty StringFilter)
Maybe AwsEcrContainerSortBy
Maybe SortOrder
sortOrder :: Maybe SortOrder
sortBy :: Maybe AwsEcrContainerSortBy
resourceIds :: Maybe (NonEmpty StringFilter)
repositories :: Maybe (NonEmpty StringFilter)
imageTags :: Maybe (NonEmpty StringFilter)
imageShas :: Maybe (NonEmpty StringFilter)
architectures :: Maybe (NonEmpty StringFilter)
$sel:sortOrder:AwsEcrContainerAggregation' :: AwsEcrContainerAggregation -> Maybe SortOrder
$sel:sortBy:AwsEcrContainerAggregation' :: AwsEcrContainerAggregation -> Maybe AwsEcrContainerSortBy
$sel:resourceIds:AwsEcrContainerAggregation' :: AwsEcrContainerAggregation -> Maybe (NonEmpty StringFilter)
$sel:repositories:AwsEcrContainerAggregation' :: AwsEcrContainerAggregation -> Maybe (NonEmpty StringFilter)
$sel:imageTags:AwsEcrContainerAggregation' :: AwsEcrContainerAggregation -> Maybe (NonEmpty StringFilter)
$sel:imageShas:AwsEcrContainerAggregation' :: AwsEcrContainerAggregation -> Maybe (NonEmpty StringFilter)
$sel:architectures:AwsEcrContainerAggregation' :: AwsEcrContainerAggregation -> Maybe (NonEmpty StringFilter)
..} =
    [Pair] -> Value
Data.object
      ( forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Key
"architectures" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (NonEmpty StringFilter)
architectures,
            (Key
"imageShas" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (NonEmpty StringFilter)
imageShas,
            (Key
"imageTags" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (NonEmpty StringFilter)
imageTags,
            (Key
"repositories" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (NonEmpty StringFilter)
repositories,
            (Key
"resourceIds" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (NonEmpty StringFilter)
resourceIds,
            (Key
"sortBy" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe AwsEcrContainerSortBy
sortBy,
            (Key
"sortOrder" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe SortOrder
sortOrder
          ]
      )