{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.Inspector2.Types.AwsEcrContainerAggregationResponse 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.SeverityCounts
import qualified Amazonka.Prelude as Prelude
data AwsEcrContainerAggregationResponse = AwsEcrContainerAggregationResponse'
{
AwsEcrContainerAggregationResponse -> Maybe Text
accountId :: Prelude.Maybe Prelude.Text,
AwsEcrContainerAggregationResponse -> Maybe Text
architecture :: Prelude.Maybe Prelude.Text,
AwsEcrContainerAggregationResponse -> Maybe Text
imageSha :: Prelude.Maybe Prelude.Text,
AwsEcrContainerAggregationResponse -> Maybe [Text]
imageTags :: Prelude.Maybe [Prelude.Text],
AwsEcrContainerAggregationResponse -> Maybe Text
repository :: Prelude.Maybe Prelude.Text,
AwsEcrContainerAggregationResponse -> Maybe SeverityCounts
severityCounts :: Prelude.Maybe SeverityCounts,
AwsEcrContainerAggregationResponse -> Text
resourceId :: Prelude.Text
}
deriving (AwsEcrContainerAggregationResponse
-> AwsEcrContainerAggregationResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AwsEcrContainerAggregationResponse
-> AwsEcrContainerAggregationResponse -> Bool
$c/= :: AwsEcrContainerAggregationResponse
-> AwsEcrContainerAggregationResponse -> Bool
== :: AwsEcrContainerAggregationResponse
-> AwsEcrContainerAggregationResponse -> Bool
$c== :: AwsEcrContainerAggregationResponse
-> AwsEcrContainerAggregationResponse -> Bool
Prelude.Eq, ReadPrec [AwsEcrContainerAggregationResponse]
ReadPrec AwsEcrContainerAggregationResponse
Int -> ReadS AwsEcrContainerAggregationResponse
ReadS [AwsEcrContainerAggregationResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [AwsEcrContainerAggregationResponse]
$creadListPrec :: ReadPrec [AwsEcrContainerAggregationResponse]
readPrec :: ReadPrec AwsEcrContainerAggregationResponse
$creadPrec :: ReadPrec AwsEcrContainerAggregationResponse
readList :: ReadS [AwsEcrContainerAggregationResponse]
$creadList :: ReadS [AwsEcrContainerAggregationResponse]
readsPrec :: Int -> ReadS AwsEcrContainerAggregationResponse
$creadsPrec :: Int -> ReadS AwsEcrContainerAggregationResponse
Prelude.Read, Int -> AwsEcrContainerAggregationResponse -> ShowS
[AwsEcrContainerAggregationResponse] -> ShowS
AwsEcrContainerAggregationResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AwsEcrContainerAggregationResponse] -> ShowS
$cshowList :: [AwsEcrContainerAggregationResponse] -> ShowS
show :: AwsEcrContainerAggregationResponse -> String
$cshow :: AwsEcrContainerAggregationResponse -> String
showsPrec :: Int -> AwsEcrContainerAggregationResponse -> ShowS
$cshowsPrec :: Int -> AwsEcrContainerAggregationResponse -> ShowS
Prelude.Show, forall x.
Rep AwsEcrContainerAggregationResponse x
-> AwsEcrContainerAggregationResponse
forall x.
AwsEcrContainerAggregationResponse
-> Rep AwsEcrContainerAggregationResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep AwsEcrContainerAggregationResponse x
-> AwsEcrContainerAggregationResponse
$cfrom :: forall x.
AwsEcrContainerAggregationResponse
-> Rep AwsEcrContainerAggregationResponse x
Prelude.Generic)
newAwsEcrContainerAggregationResponse ::
Prelude.Text ->
AwsEcrContainerAggregationResponse
newAwsEcrContainerAggregationResponse :: Text -> AwsEcrContainerAggregationResponse
newAwsEcrContainerAggregationResponse Text
pResourceId_ =
AwsEcrContainerAggregationResponse'
{ $sel:accountId:AwsEcrContainerAggregationResponse' :: Maybe Text
accountId =
forall a. Maybe a
Prelude.Nothing,
$sel:architecture:AwsEcrContainerAggregationResponse' :: Maybe Text
architecture = forall a. Maybe a
Prelude.Nothing,
$sel:imageSha:AwsEcrContainerAggregationResponse' :: Maybe Text
imageSha = forall a. Maybe a
Prelude.Nothing,
$sel:imageTags:AwsEcrContainerAggregationResponse' :: Maybe [Text]
imageTags = forall a. Maybe a
Prelude.Nothing,
$sel:repository:AwsEcrContainerAggregationResponse' :: Maybe Text
repository = forall a. Maybe a
Prelude.Nothing,
$sel:severityCounts:AwsEcrContainerAggregationResponse' :: Maybe SeverityCounts
severityCounts = forall a. Maybe a
Prelude.Nothing,
$sel:resourceId:AwsEcrContainerAggregationResponse' :: Text
resourceId = Text
pResourceId_
}
awsEcrContainerAggregationResponse_accountId :: Lens.Lens' AwsEcrContainerAggregationResponse (Prelude.Maybe Prelude.Text)
awsEcrContainerAggregationResponse_accountId :: Lens' AwsEcrContainerAggregationResponse (Maybe Text)
awsEcrContainerAggregationResponse_accountId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsEcrContainerAggregationResponse' {Maybe Text
accountId :: Maybe Text
$sel:accountId:AwsEcrContainerAggregationResponse' :: AwsEcrContainerAggregationResponse -> Maybe Text
accountId} -> Maybe Text
accountId) (\s :: AwsEcrContainerAggregationResponse
s@AwsEcrContainerAggregationResponse' {} Maybe Text
a -> AwsEcrContainerAggregationResponse
s {$sel:accountId:AwsEcrContainerAggregationResponse' :: Maybe Text
accountId = Maybe Text
a} :: AwsEcrContainerAggregationResponse)
awsEcrContainerAggregationResponse_architecture :: Lens.Lens' AwsEcrContainerAggregationResponse (Prelude.Maybe Prelude.Text)
awsEcrContainerAggregationResponse_architecture :: Lens' AwsEcrContainerAggregationResponse (Maybe Text)
awsEcrContainerAggregationResponse_architecture = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsEcrContainerAggregationResponse' {Maybe Text
architecture :: Maybe Text
$sel:architecture:AwsEcrContainerAggregationResponse' :: AwsEcrContainerAggregationResponse -> Maybe Text
architecture} -> Maybe Text
architecture) (\s :: AwsEcrContainerAggregationResponse
s@AwsEcrContainerAggregationResponse' {} Maybe Text
a -> AwsEcrContainerAggregationResponse
s {$sel:architecture:AwsEcrContainerAggregationResponse' :: Maybe Text
architecture = Maybe Text
a} :: AwsEcrContainerAggregationResponse)
awsEcrContainerAggregationResponse_imageSha :: Lens.Lens' AwsEcrContainerAggregationResponse (Prelude.Maybe Prelude.Text)
awsEcrContainerAggregationResponse_imageSha :: Lens' AwsEcrContainerAggregationResponse (Maybe Text)
awsEcrContainerAggregationResponse_imageSha = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsEcrContainerAggregationResponse' {Maybe Text
imageSha :: Maybe Text
$sel:imageSha:AwsEcrContainerAggregationResponse' :: AwsEcrContainerAggregationResponse -> Maybe Text
imageSha} -> Maybe Text
imageSha) (\s :: AwsEcrContainerAggregationResponse
s@AwsEcrContainerAggregationResponse' {} Maybe Text
a -> AwsEcrContainerAggregationResponse
s {$sel:imageSha:AwsEcrContainerAggregationResponse' :: Maybe Text
imageSha = Maybe Text
a} :: AwsEcrContainerAggregationResponse)
awsEcrContainerAggregationResponse_imageTags :: Lens.Lens' AwsEcrContainerAggregationResponse (Prelude.Maybe [Prelude.Text])
awsEcrContainerAggregationResponse_imageTags :: Lens' AwsEcrContainerAggregationResponse (Maybe [Text])
awsEcrContainerAggregationResponse_imageTags = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsEcrContainerAggregationResponse' {Maybe [Text]
imageTags :: Maybe [Text]
$sel:imageTags:AwsEcrContainerAggregationResponse' :: AwsEcrContainerAggregationResponse -> Maybe [Text]
imageTags} -> Maybe [Text]
imageTags) (\s :: AwsEcrContainerAggregationResponse
s@AwsEcrContainerAggregationResponse' {} Maybe [Text]
a -> AwsEcrContainerAggregationResponse
s {$sel:imageTags:AwsEcrContainerAggregationResponse' :: Maybe [Text]
imageTags = Maybe [Text]
a} :: AwsEcrContainerAggregationResponse) 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
awsEcrContainerAggregationResponse_repository :: Lens.Lens' AwsEcrContainerAggregationResponse (Prelude.Maybe Prelude.Text)
awsEcrContainerAggregationResponse_repository :: Lens' AwsEcrContainerAggregationResponse (Maybe Text)
awsEcrContainerAggregationResponse_repository = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsEcrContainerAggregationResponse' {Maybe Text
repository :: Maybe Text
$sel:repository:AwsEcrContainerAggregationResponse' :: AwsEcrContainerAggregationResponse -> Maybe Text
repository} -> Maybe Text
repository) (\s :: AwsEcrContainerAggregationResponse
s@AwsEcrContainerAggregationResponse' {} Maybe Text
a -> AwsEcrContainerAggregationResponse
s {$sel:repository:AwsEcrContainerAggregationResponse' :: Maybe Text
repository = Maybe Text
a} :: AwsEcrContainerAggregationResponse)
awsEcrContainerAggregationResponse_severityCounts :: Lens.Lens' AwsEcrContainerAggregationResponse (Prelude.Maybe SeverityCounts)
awsEcrContainerAggregationResponse_severityCounts :: Lens' AwsEcrContainerAggregationResponse (Maybe SeverityCounts)
awsEcrContainerAggregationResponse_severityCounts = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsEcrContainerAggregationResponse' {Maybe SeverityCounts
severityCounts :: Maybe SeverityCounts
$sel:severityCounts:AwsEcrContainerAggregationResponse' :: AwsEcrContainerAggregationResponse -> Maybe SeverityCounts
severityCounts} -> Maybe SeverityCounts
severityCounts) (\s :: AwsEcrContainerAggregationResponse
s@AwsEcrContainerAggregationResponse' {} Maybe SeverityCounts
a -> AwsEcrContainerAggregationResponse
s {$sel:severityCounts:AwsEcrContainerAggregationResponse' :: Maybe SeverityCounts
severityCounts = Maybe SeverityCounts
a} :: AwsEcrContainerAggregationResponse)
awsEcrContainerAggregationResponse_resourceId :: Lens.Lens' AwsEcrContainerAggregationResponse Prelude.Text
awsEcrContainerAggregationResponse_resourceId :: Lens' AwsEcrContainerAggregationResponse Text
awsEcrContainerAggregationResponse_resourceId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsEcrContainerAggregationResponse' {Text
resourceId :: Text
$sel:resourceId:AwsEcrContainerAggregationResponse' :: AwsEcrContainerAggregationResponse -> Text
resourceId} -> Text
resourceId) (\s :: AwsEcrContainerAggregationResponse
s@AwsEcrContainerAggregationResponse' {} Text
a -> AwsEcrContainerAggregationResponse
s {$sel:resourceId:AwsEcrContainerAggregationResponse' :: Text
resourceId = Text
a} :: AwsEcrContainerAggregationResponse)
instance
Data.FromJSON
AwsEcrContainerAggregationResponse
where
parseJSON :: Value -> Parser AwsEcrContainerAggregationResponse
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"AwsEcrContainerAggregationResponse"
( \Object
x ->
Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Maybe SeverityCounts
-> Text
-> AwsEcrContainerAggregationResponse
AwsEcrContainerAggregationResponse'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"accountId")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"architecture")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"imageSha")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"imageTags" forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"repository")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"severityCounts")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"resourceId")
)
instance
Prelude.Hashable
AwsEcrContainerAggregationResponse
where
hashWithSalt :: Int -> AwsEcrContainerAggregationResponse -> Int
hashWithSalt
Int
_salt
AwsEcrContainerAggregationResponse' {Maybe [Text]
Maybe Text
Maybe SeverityCounts
Text
resourceId :: Text
severityCounts :: Maybe SeverityCounts
repository :: Maybe Text
imageTags :: Maybe [Text]
imageSha :: Maybe Text
architecture :: Maybe Text
accountId :: Maybe Text
$sel:resourceId:AwsEcrContainerAggregationResponse' :: AwsEcrContainerAggregationResponse -> Text
$sel:severityCounts:AwsEcrContainerAggregationResponse' :: AwsEcrContainerAggregationResponse -> Maybe SeverityCounts
$sel:repository:AwsEcrContainerAggregationResponse' :: AwsEcrContainerAggregationResponse -> Maybe Text
$sel:imageTags:AwsEcrContainerAggregationResponse' :: AwsEcrContainerAggregationResponse -> Maybe [Text]
$sel:imageSha:AwsEcrContainerAggregationResponse' :: AwsEcrContainerAggregationResponse -> Maybe Text
$sel:architecture:AwsEcrContainerAggregationResponse' :: AwsEcrContainerAggregationResponse -> Maybe Text
$sel:accountId:AwsEcrContainerAggregationResponse' :: AwsEcrContainerAggregationResponse -> Maybe Text
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
accountId
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
architecture
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
imageSha
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Text]
imageTags
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
repository
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe SeverityCounts
severityCounts
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
resourceId
instance
Prelude.NFData
AwsEcrContainerAggregationResponse
where
rnf :: AwsEcrContainerAggregationResponse -> ()
rnf AwsEcrContainerAggregationResponse' {Maybe [Text]
Maybe Text
Maybe SeverityCounts
Text
resourceId :: Text
severityCounts :: Maybe SeverityCounts
repository :: Maybe Text
imageTags :: Maybe [Text]
imageSha :: Maybe Text
architecture :: Maybe Text
accountId :: Maybe Text
$sel:resourceId:AwsEcrContainerAggregationResponse' :: AwsEcrContainerAggregationResponse -> Text
$sel:severityCounts:AwsEcrContainerAggregationResponse' :: AwsEcrContainerAggregationResponse -> Maybe SeverityCounts
$sel:repository:AwsEcrContainerAggregationResponse' :: AwsEcrContainerAggregationResponse -> Maybe Text
$sel:imageTags:AwsEcrContainerAggregationResponse' :: AwsEcrContainerAggregationResponse -> Maybe [Text]
$sel:imageSha:AwsEcrContainerAggregationResponse' :: AwsEcrContainerAggregationResponse -> Maybe Text
$sel:architecture:AwsEcrContainerAggregationResponse' :: AwsEcrContainerAggregationResponse -> Maybe Text
$sel:accountId:AwsEcrContainerAggregationResponse' :: AwsEcrContainerAggregationResponse -> Maybe Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
accountId
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
architecture
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
imageSha
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Text]
imageTags
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
repository
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe SeverityCounts
severityCounts
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
resourceId