{-# 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.CodeGuruReviewer.Types.RepositoryAssociation where
import Amazonka.CodeGuruReviewer.Types.KMSKeyDetails
import Amazonka.CodeGuruReviewer.Types.ProviderType
import Amazonka.CodeGuruReviewer.Types.RepositoryAssociationState
import Amazonka.CodeGuruReviewer.Types.S3RepositoryDetails
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data RepositoryAssociation = RepositoryAssociation'
{
RepositoryAssociation -> Maybe Text
associationArn :: Prelude.Maybe Prelude.Text,
RepositoryAssociation -> Maybe Text
associationId :: Prelude.Maybe Prelude.Text,
RepositoryAssociation -> Maybe RepositoryAssociationState
state :: Prelude.Maybe RepositoryAssociationState,
RepositoryAssociation -> Maybe S3RepositoryDetails
s3RepositoryDetails :: Prelude.Maybe S3RepositoryDetails,
RepositoryAssociation -> Maybe ProviderType
providerType :: Prelude.Maybe ProviderType,
RepositoryAssociation -> Maybe Text
owner :: Prelude.Maybe Prelude.Text,
RepositoryAssociation -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
RepositoryAssociation -> Maybe KMSKeyDetails
kmsKeyDetails :: Prelude.Maybe KMSKeyDetails,
RepositoryAssociation -> Maybe Text
connectionArn :: Prelude.Maybe Prelude.Text,
RepositoryAssociation -> Maybe Text
stateReason :: Prelude.Maybe Prelude.Text,
RepositoryAssociation -> Maybe POSIX
createdTimeStamp :: Prelude.Maybe Core.POSIX,
RepositoryAssociation -> Maybe POSIX
lastUpdatedTimeStamp :: Prelude.Maybe Core.POSIX
}
deriving (RepositoryAssociation -> RepositoryAssociation -> Bool
(RepositoryAssociation -> RepositoryAssociation -> Bool)
-> (RepositoryAssociation -> RepositoryAssociation -> Bool)
-> Eq RepositoryAssociation
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: RepositoryAssociation -> RepositoryAssociation -> Bool
$c/= :: RepositoryAssociation -> RepositoryAssociation -> Bool
== :: RepositoryAssociation -> RepositoryAssociation -> Bool
$c== :: RepositoryAssociation -> RepositoryAssociation -> Bool
Prelude.Eq, ReadPrec [RepositoryAssociation]
ReadPrec RepositoryAssociation
Int -> ReadS RepositoryAssociation
ReadS [RepositoryAssociation]
(Int -> ReadS RepositoryAssociation)
-> ReadS [RepositoryAssociation]
-> ReadPrec RepositoryAssociation
-> ReadPrec [RepositoryAssociation]
-> Read RepositoryAssociation
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [RepositoryAssociation]
$creadListPrec :: ReadPrec [RepositoryAssociation]
readPrec :: ReadPrec RepositoryAssociation
$creadPrec :: ReadPrec RepositoryAssociation
readList :: ReadS [RepositoryAssociation]
$creadList :: ReadS [RepositoryAssociation]
readsPrec :: Int -> ReadS RepositoryAssociation
$creadsPrec :: Int -> ReadS RepositoryAssociation
Prelude.Read, Int -> RepositoryAssociation -> ShowS
[RepositoryAssociation] -> ShowS
RepositoryAssociation -> String
(Int -> RepositoryAssociation -> ShowS)
-> (RepositoryAssociation -> String)
-> ([RepositoryAssociation] -> ShowS)
-> Show RepositoryAssociation
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [RepositoryAssociation] -> ShowS
$cshowList :: [RepositoryAssociation] -> ShowS
show :: RepositoryAssociation -> String
$cshow :: RepositoryAssociation -> String
showsPrec :: Int -> RepositoryAssociation -> ShowS
$cshowsPrec :: Int -> RepositoryAssociation -> ShowS
Prelude.Show, (forall x. RepositoryAssociation -> Rep RepositoryAssociation x)
-> (forall x. Rep RepositoryAssociation x -> RepositoryAssociation)
-> Generic RepositoryAssociation
forall x. Rep RepositoryAssociation x -> RepositoryAssociation
forall x. RepositoryAssociation -> Rep RepositoryAssociation x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep RepositoryAssociation x -> RepositoryAssociation
$cfrom :: forall x. RepositoryAssociation -> Rep RepositoryAssociation x
Prelude.Generic)
newRepositoryAssociation ::
RepositoryAssociation
newRepositoryAssociation :: RepositoryAssociation
newRepositoryAssociation =
RepositoryAssociation' :: Maybe Text
-> Maybe Text
-> Maybe RepositoryAssociationState
-> Maybe S3RepositoryDetails
-> Maybe ProviderType
-> Maybe Text
-> Maybe Text
-> Maybe KMSKeyDetails
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> RepositoryAssociation
RepositoryAssociation'
{ $sel:associationArn:RepositoryAssociation' :: Maybe Text
associationArn =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:associationId:RepositoryAssociation' :: Maybe Text
associationId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:state:RepositoryAssociation' :: Maybe RepositoryAssociationState
state = Maybe RepositoryAssociationState
forall a. Maybe a
Prelude.Nothing,
$sel:s3RepositoryDetails:RepositoryAssociation' :: Maybe S3RepositoryDetails
s3RepositoryDetails = Maybe S3RepositoryDetails
forall a. Maybe a
Prelude.Nothing,
$sel:providerType:RepositoryAssociation' :: Maybe ProviderType
providerType = Maybe ProviderType
forall a. Maybe a
Prelude.Nothing,
$sel:owner:RepositoryAssociation' :: Maybe Text
owner = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:name:RepositoryAssociation' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:kmsKeyDetails:RepositoryAssociation' :: Maybe KMSKeyDetails
kmsKeyDetails = Maybe KMSKeyDetails
forall a. Maybe a
Prelude.Nothing,
$sel:connectionArn:RepositoryAssociation' :: Maybe Text
connectionArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:stateReason:RepositoryAssociation' :: Maybe Text
stateReason = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:createdTimeStamp:RepositoryAssociation' :: Maybe POSIX
createdTimeStamp = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:lastUpdatedTimeStamp:RepositoryAssociation' :: Maybe POSIX
lastUpdatedTimeStamp = Maybe POSIX
forall a. Maybe a
Prelude.Nothing
}
repositoryAssociation_associationArn :: Lens.Lens' RepositoryAssociation (Prelude.Maybe Prelude.Text)
repositoryAssociation_associationArn :: (Maybe Text -> f (Maybe Text))
-> RepositoryAssociation -> f RepositoryAssociation
repositoryAssociation_associationArn = (RepositoryAssociation -> Maybe Text)
-> (RepositoryAssociation -> Maybe Text -> RepositoryAssociation)
-> Lens
RepositoryAssociation
RepositoryAssociation
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RepositoryAssociation' {Maybe Text
associationArn :: Maybe Text
$sel:associationArn:RepositoryAssociation' :: RepositoryAssociation -> Maybe Text
associationArn} -> Maybe Text
associationArn) (\s :: RepositoryAssociation
s@RepositoryAssociation' {} Maybe Text
a -> RepositoryAssociation
s {$sel:associationArn:RepositoryAssociation' :: Maybe Text
associationArn = Maybe Text
a} :: RepositoryAssociation)
repositoryAssociation_associationId :: Lens.Lens' RepositoryAssociation (Prelude.Maybe Prelude.Text)
repositoryAssociation_associationId :: (Maybe Text -> f (Maybe Text))
-> RepositoryAssociation -> f RepositoryAssociation
repositoryAssociation_associationId = (RepositoryAssociation -> Maybe Text)
-> (RepositoryAssociation -> Maybe Text -> RepositoryAssociation)
-> Lens
RepositoryAssociation
RepositoryAssociation
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RepositoryAssociation' {Maybe Text
associationId :: Maybe Text
$sel:associationId:RepositoryAssociation' :: RepositoryAssociation -> Maybe Text
associationId} -> Maybe Text
associationId) (\s :: RepositoryAssociation
s@RepositoryAssociation' {} Maybe Text
a -> RepositoryAssociation
s {$sel:associationId:RepositoryAssociation' :: Maybe Text
associationId = Maybe Text
a} :: RepositoryAssociation)
repositoryAssociation_state :: Lens.Lens' RepositoryAssociation (Prelude.Maybe RepositoryAssociationState)
repositoryAssociation_state :: (Maybe RepositoryAssociationState
-> f (Maybe RepositoryAssociationState))
-> RepositoryAssociation -> f RepositoryAssociation
repositoryAssociation_state = (RepositoryAssociation -> Maybe RepositoryAssociationState)
-> (RepositoryAssociation
-> Maybe RepositoryAssociationState -> RepositoryAssociation)
-> Lens
RepositoryAssociation
RepositoryAssociation
(Maybe RepositoryAssociationState)
(Maybe RepositoryAssociationState)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RepositoryAssociation' {Maybe RepositoryAssociationState
state :: Maybe RepositoryAssociationState
$sel:state:RepositoryAssociation' :: RepositoryAssociation -> Maybe RepositoryAssociationState
state} -> Maybe RepositoryAssociationState
state) (\s :: RepositoryAssociation
s@RepositoryAssociation' {} Maybe RepositoryAssociationState
a -> RepositoryAssociation
s {$sel:state:RepositoryAssociation' :: Maybe RepositoryAssociationState
state = Maybe RepositoryAssociationState
a} :: RepositoryAssociation)
repositoryAssociation_s3RepositoryDetails :: Lens.Lens' RepositoryAssociation (Prelude.Maybe S3RepositoryDetails)
repositoryAssociation_s3RepositoryDetails :: (Maybe S3RepositoryDetails -> f (Maybe S3RepositoryDetails))
-> RepositoryAssociation -> f RepositoryAssociation
repositoryAssociation_s3RepositoryDetails = (RepositoryAssociation -> Maybe S3RepositoryDetails)
-> (RepositoryAssociation
-> Maybe S3RepositoryDetails -> RepositoryAssociation)
-> Lens
RepositoryAssociation
RepositoryAssociation
(Maybe S3RepositoryDetails)
(Maybe S3RepositoryDetails)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RepositoryAssociation' {Maybe S3RepositoryDetails
s3RepositoryDetails :: Maybe S3RepositoryDetails
$sel:s3RepositoryDetails:RepositoryAssociation' :: RepositoryAssociation -> Maybe S3RepositoryDetails
s3RepositoryDetails} -> Maybe S3RepositoryDetails
s3RepositoryDetails) (\s :: RepositoryAssociation
s@RepositoryAssociation' {} Maybe S3RepositoryDetails
a -> RepositoryAssociation
s {$sel:s3RepositoryDetails:RepositoryAssociation' :: Maybe S3RepositoryDetails
s3RepositoryDetails = Maybe S3RepositoryDetails
a} :: RepositoryAssociation)
repositoryAssociation_providerType :: Lens.Lens' RepositoryAssociation (Prelude.Maybe ProviderType)
repositoryAssociation_providerType :: (Maybe ProviderType -> f (Maybe ProviderType))
-> RepositoryAssociation -> f RepositoryAssociation
repositoryAssociation_providerType = (RepositoryAssociation -> Maybe ProviderType)
-> (RepositoryAssociation
-> Maybe ProviderType -> RepositoryAssociation)
-> Lens
RepositoryAssociation
RepositoryAssociation
(Maybe ProviderType)
(Maybe ProviderType)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RepositoryAssociation' {Maybe ProviderType
providerType :: Maybe ProviderType
$sel:providerType:RepositoryAssociation' :: RepositoryAssociation -> Maybe ProviderType
providerType} -> Maybe ProviderType
providerType) (\s :: RepositoryAssociation
s@RepositoryAssociation' {} Maybe ProviderType
a -> RepositoryAssociation
s {$sel:providerType:RepositoryAssociation' :: Maybe ProviderType
providerType = Maybe ProviderType
a} :: RepositoryAssociation)
repositoryAssociation_owner :: Lens.Lens' RepositoryAssociation (Prelude.Maybe Prelude.Text)
repositoryAssociation_owner :: (Maybe Text -> f (Maybe Text))
-> RepositoryAssociation -> f RepositoryAssociation
repositoryAssociation_owner = (RepositoryAssociation -> Maybe Text)
-> (RepositoryAssociation -> Maybe Text -> RepositoryAssociation)
-> Lens
RepositoryAssociation
RepositoryAssociation
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RepositoryAssociation' {Maybe Text
owner :: Maybe Text
$sel:owner:RepositoryAssociation' :: RepositoryAssociation -> Maybe Text
owner} -> Maybe Text
owner) (\s :: RepositoryAssociation
s@RepositoryAssociation' {} Maybe Text
a -> RepositoryAssociation
s {$sel:owner:RepositoryAssociation' :: Maybe Text
owner = Maybe Text
a} :: RepositoryAssociation)
repositoryAssociation_name :: Lens.Lens' RepositoryAssociation (Prelude.Maybe Prelude.Text)
repositoryAssociation_name :: (Maybe Text -> f (Maybe Text))
-> RepositoryAssociation -> f RepositoryAssociation
repositoryAssociation_name = (RepositoryAssociation -> Maybe Text)
-> (RepositoryAssociation -> Maybe Text -> RepositoryAssociation)
-> Lens
RepositoryAssociation
RepositoryAssociation
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RepositoryAssociation' {Maybe Text
name :: Maybe Text
$sel:name:RepositoryAssociation' :: RepositoryAssociation -> Maybe Text
name} -> Maybe Text
name) (\s :: RepositoryAssociation
s@RepositoryAssociation' {} Maybe Text
a -> RepositoryAssociation
s {$sel:name:RepositoryAssociation' :: Maybe Text
name = Maybe Text
a} :: RepositoryAssociation)
repositoryAssociation_kmsKeyDetails :: Lens.Lens' RepositoryAssociation (Prelude.Maybe KMSKeyDetails)
repositoryAssociation_kmsKeyDetails :: (Maybe KMSKeyDetails -> f (Maybe KMSKeyDetails))
-> RepositoryAssociation -> f RepositoryAssociation
repositoryAssociation_kmsKeyDetails = (RepositoryAssociation -> Maybe KMSKeyDetails)
-> (RepositoryAssociation
-> Maybe KMSKeyDetails -> RepositoryAssociation)
-> Lens
RepositoryAssociation
RepositoryAssociation
(Maybe KMSKeyDetails)
(Maybe KMSKeyDetails)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RepositoryAssociation' {Maybe KMSKeyDetails
kmsKeyDetails :: Maybe KMSKeyDetails
$sel:kmsKeyDetails:RepositoryAssociation' :: RepositoryAssociation -> Maybe KMSKeyDetails
kmsKeyDetails} -> Maybe KMSKeyDetails
kmsKeyDetails) (\s :: RepositoryAssociation
s@RepositoryAssociation' {} Maybe KMSKeyDetails
a -> RepositoryAssociation
s {$sel:kmsKeyDetails:RepositoryAssociation' :: Maybe KMSKeyDetails
kmsKeyDetails = Maybe KMSKeyDetails
a} :: RepositoryAssociation)
repositoryAssociation_connectionArn :: Lens.Lens' RepositoryAssociation (Prelude.Maybe Prelude.Text)
repositoryAssociation_connectionArn :: (Maybe Text -> f (Maybe Text))
-> RepositoryAssociation -> f RepositoryAssociation
repositoryAssociation_connectionArn = (RepositoryAssociation -> Maybe Text)
-> (RepositoryAssociation -> Maybe Text -> RepositoryAssociation)
-> Lens
RepositoryAssociation
RepositoryAssociation
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RepositoryAssociation' {Maybe Text
connectionArn :: Maybe Text
$sel:connectionArn:RepositoryAssociation' :: RepositoryAssociation -> Maybe Text
connectionArn} -> Maybe Text
connectionArn) (\s :: RepositoryAssociation
s@RepositoryAssociation' {} Maybe Text
a -> RepositoryAssociation
s {$sel:connectionArn:RepositoryAssociation' :: Maybe Text
connectionArn = Maybe Text
a} :: RepositoryAssociation)
repositoryAssociation_stateReason :: Lens.Lens' RepositoryAssociation (Prelude.Maybe Prelude.Text)
repositoryAssociation_stateReason :: (Maybe Text -> f (Maybe Text))
-> RepositoryAssociation -> f RepositoryAssociation
repositoryAssociation_stateReason = (RepositoryAssociation -> Maybe Text)
-> (RepositoryAssociation -> Maybe Text -> RepositoryAssociation)
-> Lens
RepositoryAssociation
RepositoryAssociation
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RepositoryAssociation' {Maybe Text
stateReason :: Maybe Text
$sel:stateReason:RepositoryAssociation' :: RepositoryAssociation -> Maybe Text
stateReason} -> Maybe Text
stateReason) (\s :: RepositoryAssociation
s@RepositoryAssociation' {} Maybe Text
a -> RepositoryAssociation
s {$sel:stateReason:RepositoryAssociation' :: Maybe Text
stateReason = Maybe Text
a} :: RepositoryAssociation)
repositoryAssociation_createdTimeStamp :: Lens.Lens' RepositoryAssociation (Prelude.Maybe Prelude.UTCTime)
repositoryAssociation_createdTimeStamp :: (Maybe UTCTime -> f (Maybe UTCTime))
-> RepositoryAssociation -> f RepositoryAssociation
repositoryAssociation_createdTimeStamp = (RepositoryAssociation -> Maybe POSIX)
-> (RepositoryAssociation -> Maybe POSIX -> RepositoryAssociation)
-> Lens
RepositoryAssociation
RepositoryAssociation
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RepositoryAssociation' {Maybe POSIX
createdTimeStamp :: Maybe POSIX
$sel:createdTimeStamp:RepositoryAssociation' :: RepositoryAssociation -> Maybe POSIX
createdTimeStamp} -> Maybe POSIX
createdTimeStamp) (\s :: RepositoryAssociation
s@RepositoryAssociation' {} Maybe POSIX
a -> RepositoryAssociation
s {$sel:createdTimeStamp:RepositoryAssociation' :: Maybe POSIX
createdTimeStamp = Maybe POSIX
a} :: RepositoryAssociation) ((Maybe POSIX -> f (Maybe POSIX))
-> RepositoryAssociation -> f RepositoryAssociation)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> RepositoryAssociation
-> f RepositoryAssociation
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
repositoryAssociation_lastUpdatedTimeStamp :: Lens.Lens' RepositoryAssociation (Prelude.Maybe Prelude.UTCTime)
repositoryAssociation_lastUpdatedTimeStamp :: (Maybe UTCTime -> f (Maybe UTCTime))
-> RepositoryAssociation -> f RepositoryAssociation
repositoryAssociation_lastUpdatedTimeStamp = (RepositoryAssociation -> Maybe POSIX)
-> (RepositoryAssociation -> Maybe POSIX -> RepositoryAssociation)
-> Lens
RepositoryAssociation
RepositoryAssociation
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RepositoryAssociation' {Maybe POSIX
lastUpdatedTimeStamp :: Maybe POSIX
$sel:lastUpdatedTimeStamp:RepositoryAssociation' :: RepositoryAssociation -> Maybe POSIX
lastUpdatedTimeStamp} -> Maybe POSIX
lastUpdatedTimeStamp) (\s :: RepositoryAssociation
s@RepositoryAssociation' {} Maybe POSIX
a -> RepositoryAssociation
s {$sel:lastUpdatedTimeStamp:RepositoryAssociation' :: Maybe POSIX
lastUpdatedTimeStamp = Maybe POSIX
a} :: RepositoryAssociation) ((Maybe POSIX -> f (Maybe POSIX))
-> RepositoryAssociation -> f RepositoryAssociation)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> RepositoryAssociation
-> f RepositoryAssociation
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
instance Core.FromJSON RepositoryAssociation where
parseJSON :: Value -> Parser RepositoryAssociation
parseJSON =
String
-> (Object -> Parser RepositoryAssociation)
-> Value
-> Parser RepositoryAssociation
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"RepositoryAssociation"
( \Object
x ->
Maybe Text
-> Maybe Text
-> Maybe RepositoryAssociationState
-> Maybe S3RepositoryDetails
-> Maybe ProviderType
-> Maybe Text
-> Maybe Text
-> Maybe KMSKeyDetails
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> RepositoryAssociation
RepositoryAssociation'
(Maybe Text
-> Maybe Text
-> Maybe RepositoryAssociationState
-> Maybe S3RepositoryDetails
-> Maybe ProviderType
-> Maybe Text
-> Maybe Text
-> Maybe KMSKeyDetails
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> RepositoryAssociation)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe RepositoryAssociationState
-> Maybe S3RepositoryDetails
-> Maybe ProviderType
-> Maybe Text
-> Maybe Text
-> Maybe KMSKeyDetails
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> RepositoryAssociation)
forall (f :: * -> *) a b. Functor 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
"AssociationArn")
Parser
(Maybe Text
-> Maybe RepositoryAssociationState
-> Maybe S3RepositoryDetails
-> Maybe ProviderType
-> Maybe Text
-> Maybe Text
-> Maybe KMSKeyDetails
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> RepositoryAssociation)
-> Parser (Maybe Text)
-> Parser
(Maybe RepositoryAssociationState
-> Maybe S3RepositoryDetails
-> Maybe ProviderType
-> Maybe Text
-> Maybe Text
-> Maybe KMSKeyDetails
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> RepositoryAssociation)
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
"AssociationId")
Parser
(Maybe RepositoryAssociationState
-> Maybe S3RepositoryDetails
-> Maybe ProviderType
-> Maybe Text
-> Maybe Text
-> Maybe KMSKeyDetails
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> RepositoryAssociation)
-> Parser (Maybe RepositoryAssociationState)
-> Parser
(Maybe S3RepositoryDetails
-> Maybe ProviderType
-> Maybe Text
-> Maybe Text
-> Maybe KMSKeyDetails
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> RepositoryAssociation)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe RepositoryAssociationState)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"State")
Parser
(Maybe S3RepositoryDetails
-> Maybe ProviderType
-> Maybe Text
-> Maybe Text
-> Maybe KMSKeyDetails
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> RepositoryAssociation)
-> Parser (Maybe S3RepositoryDetails)
-> Parser
(Maybe ProviderType
-> Maybe Text
-> Maybe Text
-> Maybe KMSKeyDetails
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> RepositoryAssociation)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe S3RepositoryDetails)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"S3RepositoryDetails")
Parser
(Maybe ProviderType
-> Maybe Text
-> Maybe Text
-> Maybe KMSKeyDetails
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> RepositoryAssociation)
-> Parser (Maybe ProviderType)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe KMSKeyDetails
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> RepositoryAssociation)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe ProviderType)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ProviderType")
Parser
(Maybe Text
-> Maybe Text
-> Maybe KMSKeyDetails
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> RepositoryAssociation)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe KMSKeyDetails
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> RepositoryAssociation)
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
"Owner")
Parser
(Maybe Text
-> Maybe KMSKeyDetails
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> RepositoryAssociation)
-> Parser (Maybe Text)
-> Parser
(Maybe KMSKeyDetails
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> RepositoryAssociation)
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 KMSKeyDetails
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> RepositoryAssociation)
-> Parser (Maybe KMSKeyDetails)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> RepositoryAssociation)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe KMSKeyDetails)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"KMSKeyDetails")
Parser
(Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> RepositoryAssociation)
-> Parser (Maybe Text)
-> Parser
(Maybe Text -> Maybe POSIX -> Maybe POSIX -> RepositoryAssociation)
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
"ConnectionArn")
Parser
(Maybe Text -> Maybe POSIX -> Maybe POSIX -> RepositoryAssociation)
-> Parser (Maybe Text)
-> Parser (Maybe POSIX -> Maybe POSIX -> RepositoryAssociation)
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
"StateReason")
Parser (Maybe POSIX -> Maybe POSIX -> RepositoryAssociation)
-> Parser (Maybe POSIX)
-> Parser (Maybe POSIX -> RepositoryAssociation)
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
"CreatedTimeStamp")
Parser (Maybe POSIX -> RepositoryAssociation)
-> Parser (Maybe POSIX) -> Parser RepositoryAssociation
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
"LastUpdatedTimeStamp")
)
instance Prelude.Hashable RepositoryAssociation
instance Prelude.NFData RepositoryAssociation