{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.CodeGuruReviewer.DescribeRepositoryAssociation
-- 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)
--
-- Returns a
-- <https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html RepositoryAssociation>
-- object that contains information about the requested repository
-- association.
module Amazonka.CodeGuruReviewer.DescribeRepositoryAssociation
  ( -- * Creating a Request
    DescribeRepositoryAssociation (..),
    newDescribeRepositoryAssociation,

    -- * Request Lenses
    describeRepositoryAssociation_associationArn,

    -- * Destructuring the Response
    DescribeRepositoryAssociationResponse (..),
    newDescribeRepositoryAssociationResponse,

    -- * Response Lenses
    describeRepositoryAssociationResponse_repositoryAssociation,
    describeRepositoryAssociationResponse_tags,
    describeRepositoryAssociationResponse_httpStatus,
  )
where

import Amazonka.CodeGuruReviewer.Types
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response

-- | /See:/ 'newDescribeRepositoryAssociation' smart constructor.
data DescribeRepositoryAssociation = DescribeRepositoryAssociation'
  { -- | The Amazon Resource Name (ARN) of the
    -- <https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html RepositoryAssociation>
    -- object. You can retrieve this ARN by calling
    -- <https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_ListRepositoryAssociations.html ListRepositoryAssociations>
    -- .
    DescribeRepositoryAssociation -> Text
associationArn :: Prelude.Text
  }
  deriving (DescribeRepositoryAssociation
-> DescribeRepositoryAssociation -> Bool
(DescribeRepositoryAssociation
 -> DescribeRepositoryAssociation -> Bool)
-> (DescribeRepositoryAssociation
    -> DescribeRepositoryAssociation -> Bool)
-> Eq DescribeRepositoryAssociation
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeRepositoryAssociation
-> DescribeRepositoryAssociation -> Bool
$c/= :: DescribeRepositoryAssociation
-> DescribeRepositoryAssociation -> Bool
== :: DescribeRepositoryAssociation
-> DescribeRepositoryAssociation -> Bool
$c== :: DescribeRepositoryAssociation
-> DescribeRepositoryAssociation -> Bool
Prelude.Eq, ReadPrec [DescribeRepositoryAssociation]
ReadPrec DescribeRepositoryAssociation
Int -> ReadS DescribeRepositoryAssociation
ReadS [DescribeRepositoryAssociation]
(Int -> ReadS DescribeRepositoryAssociation)
-> ReadS [DescribeRepositoryAssociation]
-> ReadPrec DescribeRepositoryAssociation
-> ReadPrec [DescribeRepositoryAssociation]
-> Read DescribeRepositoryAssociation
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeRepositoryAssociation]
$creadListPrec :: ReadPrec [DescribeRepositoryAssociation]
readPrec :: ReadPrec DescribeRepositoryAssociation
$creadPrec :: ReadPrec DescribeRepositoryAssociation
readList :: ReadS [DescribeRepositoryAssociation]
$creadList :: ReadS [DescribeRepositoryAssociation]
readsPrec :: Int -> ReadS DescribeRepositoryAssociation
$creadsPrec :: Int -> ReadS DescribeRepositoryAssociation
Prelude.Read, Int -> DescribeRepositoryAssociation -> ShowS
[DescribeRepositoryAssociation] -> ShowS
DescribeRepositoryAssociation -> String
(Int -> DescribeRepositoryAssociation -> ShowS)
-> (DescribeRepositoryAssociation -> String)
-> ([DescribeRepositoryAssociation] -> ShowS)
-> Show DescribeRepositoryAssociation
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeRepositoryAssociation] -> ShowS
$cshowList :: [DescribeRepositoryAssociation] -> ShowS
show :: DescribeRepositoryAssociation -> String
$cshow :: DescribeRepositoryAssociation -> String
showsPrec :: Int -> DescribeRepositoryAssociation -> ShowS
$cshowsPrec :: Int -> DescribeRepositoryAssociation -> ShowS
Prelude.Show, (forall x.
 DescribeRepositoryAssociation
 -> Rep DescribeRepositoryAssociation x)
-> (forall x.
    Rep DescribeRepositoryAssociation x
    -> DescribeRepositoryAssociation)
-> Generic DescribeRepositoryAssociation
forall x.
Rep DescribeRepositoryAssociation x
-> DescribeRepositoryAssociation
forall x.
DescribeRepositoryAssociation
-> Rep DescribeRepositoryAssociation x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeRepositoryAssociation x
-> DescribeRepositoryAssociation
$cfrom :: forall x.
DescribeRepositoryAssociation
-> Rep DescribeRepositoryAssociation x
Prelude.Generic)

-- |
-- Create a value of 'DescribeRepositoryAssociation' 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:
--
-- 'associationArn', 'describeRepositoryAssociation_associationArn' - The Amazon Resource Name (ARN) of the
-- <https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html RepositoryAssociation>
-- object. You can retrieve this ARN by calling
-- <https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_ListRepositoryAssociations.html ListRepositoryAssociations>
-- .
newDescribeRepositoryAssociation ::
  -- | 'associationArn'
  Prelude.Text ->
  DescribeRepositoryAssociation
newDescribeRepositoryAssociation :: Text -> DescribeRepositoryAssociation
newDescribeRepositoryAssociation Text
pAssociationArn_ =
  DescribeRepositoryAssociation' :: Text -> DescribeRepositoryAssociation
DescribeRepositoryAssociation'
    { $sel:associationArn:DescribeRepositoryAssociation' :: Text
associationArn =
        Text
pAssociationArn_
    }

-- | The Amazon Resource Name (ARN) of the
-- <https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html RepositoryAssociation>
-- object. You can retrieve this ARN by calling
-- <https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_ListRepositoryAssociations.html ListRepositoryAssociations>
-- .
describeRepositoryAssociation_associationArn :: Lens.Lens' DescribeRepositoryAssociation Prelude.Text
describeRepositoryAssociation_associationArn :: (Text -> f Text)
-> DescribeRepositoryAssociation -> f DescribeRepositoryAssociation
describeRepositoryAssociation_associationArn = (DescribeRepositoryAssociation -> Text)
-> (DescribeRepositoryAssociation
    -> Text -> DescribeRepositoryAssociation)
-> Lens
     DescribeRepositoryAssociation
     DescribeRepositoryAssociation
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeRepositoryAssociation' {Text
associationArn :: Text
$sel:associationArn:DescribeRepositoryAssociation' :: DescribeRepositoryAssociation -> Text
associationArn} -> Text
associationArn) (\s :: DescribeRepositoryAssociation
s@DescribeRepositoryAssociation' {} Text
a -> DescribeRepositoryAssociation
s {$sel:associationArn:DescribeRepositoryAssociation' :: Text
associationArn = Text
a} :: DescribeRepositoryAssociation)

instance
  Core.AWSRequest
    DescribeRepositoryAssociation
  where
  type
    AWSResponse DescribeRepositoryAssociation =
      DescribeRepositoryAssociationResponse
  request :: DescribeRepositoryAssociation
-> Request DescribeRepositoryAssociation
request = Service
-> DescribeRepositoryAssociation
-> Request DescribeRepositoryAssociation
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
  response :: Logger
-> Service
-> Proxy DescribeRepositoryAssociation
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DescribeRepositoryAssociation)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse DescribeRepositoryAssociation))
-> Logger
-> Service
-> Proxy DescribeRepositoryAssociation
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DescribeRepositoryAssociation)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
      ( \Int
s ResponseHeaders
h Object
x ->
          Maybe RepositoryAssociation
-> Maybe (HashMap Text Text)
-> Int
-> DescribeRepositoryAssociationResponse
DescribeRepositoryAssociationResponse'
            (Maybe RepositoryAssociation
 -> Maybe (HashMap Text Text)
 -> Int
 -> DescribeRepositoryAssociationResponse)
-> Either String (Maybe RepositoryAssociation)
-> Either
     String
     (Maybe (HashMap Text Text)
      -> Int -> DescribeRepositoryAssociationResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe RepositoryAssociation)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"RepositoryAssociation")
            Either
  String
  (Maybe (HashMap Text Text)
   -> Int -> DescribeRepositoryAssociationResponse)
-> Either String (Maybe (HashMap Text Text))
-> Either String (Int -> DescribeRepositoryAssociationResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe (HashMap Text Text)))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Tags" Either String (Maybe (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text)
-> Either String (Maybe (HashMap Text Text))
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe (HashMap Text Text)
forall a. Monoid a => a
Prelude.mempty)
            Either String (Int -> DescribeRepositoryAssociationResponse)
-> Either String Int
-> Either String DescribeRepositoryAssociationResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
      )

instance
  Prelude.Hashable
    DescribeRepositoryAssociation

instance Prelude.NFData DescribeRepositoryAssociation

instance Core.ToHeaders DescribeRepositoryAssociation where
  toHeaders :: DescribeRepositoryAssociation -> ResponseHeaders
toHeaders =
    ResponseHeaders -> DescribeRepositoryAssociation -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
      ( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"Content-Type"
              HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
                          Prelude.ByteString
                      )
          ]
      )

instance Core.ToPath DescribeRepositoryAssociation where
  toPath :: DescribeRepositoryAssociation -> ByteString
toPath DescribeRepositoryAssociation' {Text
associationArn :: Text
$sel:associationArn:DescribeRepositoryAssociation' :: DescribeRepositoryAssociation -> Text
..} =
    [ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ByteString
"/associations/", Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
associationArn]

instance Core.ToQuery DescribeRepositoryAssociation where
  toQuery :: DescribeRepositoryAssociation -> QueryString
toQuery = QueryString -> DescribeRepositoryAssociation -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty

-- | /See:/ 'newDescribeRepositoryAssociationResponse' smart constructor.
data DescribeRepositoryAssociationResponse = DescribeRepositoryAssociationResponse'
  { -- | Information about the repository association.
    DescribeRepositoryAssociationResponse
-> Maybe RepositoryAssociation
repositoryAssociation :: Prelude.Maybe RepositoryAssociation,
    -- | An array of key-value pairs used to tag an associated repository. A tag
    -- is a custom attribute label with two parts:
    --
    -- -   A /tag key/ (for example, @CostCenter@, @Environment@, @Project@, or
    --     @Secret@). Tag keys are case sensitive.
    --
    -- -   An optional field known as a /tag value/ (for example,
    --     @111122223333@, @Production@, or a team name). Omitting the tag
    --     value is the same as using an empty string. Like tag keys, tag
    --     values are case sensitive.
    DescribeRepositoryAssociationResponse -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
    -- | The response's http status code.
    DescribeRepositoryAssociationResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (DescribeRepositoryAssociationResponse
-> DescribeRepositoryAssociationResponse -> Bool
(DescribeRepositoryAssociationResponse
 -> DescribeRepositoryAssociationResponse -> Bool)
-> (DescribeRepositoryAssociationResponse
    -> DescribeRepositoryAssociationResponse -> Bool)
-> Eq DescribeRepositoryAssociationResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeRepositoryAssociationResponse
-> DescribeRepositoryAssociationResponse -> Bool
$c/= :: DescribeRepositoryAssociationResponse
-> DescribeRepositoryAssociationResponse -> Bool
== :: DescribeRepositoryAssociationResponse
-> DescribeRepositoryAssociationResponse -> Bool
$c== :: DescribeRepositoryAssociationResponse
-> DescribeRepositoryAssociationResponse -> Bool
Prelude.Eq, ReadPrec [DescribeRepositoryAssociationResponse]
ReadPrec DescribeRepositoryAssociationResponse
Int -> ReadS DescribeRepositoryAssociationResponse
ReadS [DescribeRepositoryAssociationResponse]
(Int -> ReadS DescribeRepositoryAssociationResponse)
-> ReadS [DescribeRepositoryAssociationResponse]
-> ReadPrec DescribeRepositoryAssociationResponse
-> ReadPrec [DescribeRepositoryAssociationResponse]
-> Read DescribeRepositoryAssociationResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeRepositoryAssociationResponse]
$creadListPrec :: ReadPrec [DescribeRepositoryAssociationResponse]
readPrec :: ReadPrec DescribeRepositoryAssociationResponse
$creadPrec :: ReadPrec DescribeRepositoryAssociationResponse
readList :: ReadS [DescribeRepositoryAssociationResponse]
$creadList :: ReadS [DescribeRepositoryAssociationResponse]
readsPrec :: Int -> ReadS DescribeRepositoryAssociationResponse
$creadsPrec :: Int -> ReadS DescribeRepositoryAssociationResponse
Prelude.Read, Int -> DescribeRepositoryAssociationResponse -> ShowS
[DescribeRepositoryAssociationResponse] -> ShowS
DescribeRepositoryAssociationResponse -> String
(Int -> DescribeRepositoryAssociationResponse -> ShowS)
-> (DescribeRepositoryAssociationResponse -> String)
-> ([DescribeRepositoryAssociationResponse] -> ShowS)
-> Show DescribeRepositoryAssociationResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeRepositoryAssociationResponse] -> ShowS
$cshowList :: [DescribeRepositoryAssociationResponse] -> ShowS
show :: DescribeRepositoryAssociationResponse -> String
$cshow :: DescribeRepositoryAssociationResponse -> String
showsPrec :: Int -> DescribeRepositoryAssociationResponse -> ShowS
$cshowsPrec :: Int -> DescribeRepositoryAssociationResponse -> ShowS
Prelude.Show, (forall x.
 DescribeRepositoryAssociationResponse
 -> Rep DescribeRepositoryAssociationResponse x)
-> (forall x.
    Rep DescribeRepositoryAssociationResponse x
    -> DescribeRepositoryAssociationResponse)
-> Generic DescribeRepositoryAssociationResponse
forall x.
Rep DescribeRepositoryAssociationResponse x
-> DescribeRepositoryAssociationResponse
forall x.
DescribeRepositoryAssociationResponse
-> Rep DescribeRepositoryAssociationResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeRepositoryAssociationResponse x
-> DescribeRepositoryAssociationResponse
$cfrom :: forall x.
DescribeRepositoryAssociationResponse
-> Rep DescribeRepositoryAssociationResponse x
Prelude.Generic)

-- |
-- Create a value of 'DescribeRepositoryAssociationResponse' 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:
--
-- 'repositoryAssociation', 'describeRepositoryAssociationResponse_repositoryAssociation' - Information about the repository association.
--
-- 'tags', 'describeRepositoryAssociationResponse_tags' - An array of key-value pairs used to tag an associated repository. A tag
-- is a custom attribute label with two parts:
--
-- -   A /tag key/ (for example, @CostCenter@, @Environment@, @Project@, or
--     @Secret@). Tag keys are case sensitive.
--
-- -   An optional field known as a /tag value/ (for example,
--     @111122223333@, @Production@, or a team name). Omitting the tag
--     value is the same as using an empty string. Like tag keys, tag
--     values are case sensitive.
--
-- 'httpStatus', 'describeRepositoryAssociationResponse_httpStatus' - The response's http status code.
newDescribeRepositoryAssociationResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  DescribeRepositoryAssociationResponse
newDescribeRepositoryAssociationResponse :: Int -> DescribeRepositoryAssociationResponse
newDescribeRepositoryAssociationResponse Int
pHttpStatus_ =
  DescribeRepositoryAssociationResponse' :: Maybe RepositoryAssociation
-> Maybe (HashMap Text Text)
-> Int
-> DescribeRepositoryAssociationResponse
DescribeRepositoryAssociationResponse'
    { $sel:repositoryAssociation:DescribeRepositoryAssociationResponse' :: Maybe RepositoryAssociation
repositoryAssociation =
        Maybe RepositoryAssociation
forall a. Maybe a
Prelude.Nothing,
      $sel:tags:DescribeRepositoryAssociationResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:DescribeRepositoryAssociationResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | Information about the repository association.
describeRepositoryAssociationResponse_repositoryAssociation :: Lens.Lens' DescribeRepositoryAssociationResponse (Prelude.Maybe RepositoryAssociation)
describeRepositoryAssociationResponse_repositoryAssociation :: (Maybe RepositoryAssociation -> f (Maybe RepositoryAssociation))
-> DescribeRepositoryAssociationResponse
-> f DescribeRepositoryAssociationResponse
describeRepositoryAssociationResponse_repositoryAssociation = (DescribeRepositoryAssociationResponse
 -> Maybe RepositoryAssociation)
-> (DescribeRepositoryAssociationResponse
    -> Maybe RepositoryAssociation
    -> DescribeRepositoryAssociationResponse)
-> Lens
     DescribeRepositoryAssociationResponse
     DescribeRepositoryAssociationResponse
     (Maybe RepositoryAssociation)
     (Maybe RepositoryAssociation)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeRepositoryAssociationResponse' {Maybe RepositoryAssociation
repositoryAssociation :: Maybe RepositoryAssociation
$sel:repositoryAssociation:DescribeRepositoryAssociationResponse' :: DescribeRepositoryAssociationResponse
-> Maybe RepositoryAssociation
repositoryAssociation} -> Maybe RepositoryAssociation
repositoryAssociation) (\s :: DescribeRepositoryAssociationResponse
s@DescribeRepositoryAssociationResponse' {} Maybe RepositoryAssociation
a -> DescribeRepositoryAssociationResponse
s {$sel:repositoryAssociation:DescribeRepositoryAssociationResponse' :: Maybe RepositoryAssociation
repositoryAssociation = Maybe RepositoryAssociation
a} :: DescribeRepositoryAssociationResponse)

-- | An array of key-value pairs used to tag an associated repository. A tag
-- is a custom attribute label with two parts:
--
-- -   A /tag key/ (for example, @CostCenter@, @Environment@, @Project@, or
--     @Secret@). Tag keys are case sensitive.
--
-- -   An optional field known as a /tag value/ (for example,
--     @111122223333@, @Production@, or a team name). Omitting the tag
--     value is the same as using an empty string. Like tag keys, tag
--     values are case sensitive.
describeRepositoryAssociationResponse_tags :: Lens.Lens' DescribeRepositoryAssociationResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
describeRepositoryAssociationResponse_tags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> DescribeRepositoryAssociationResponse
-> f DescribeRepositoryAssociationResponse
describeRepositoryAssociationResponse_tags = (DescribeRepositoryAssociationResponse
 -> Maybe (HashMap Text Text))
-> (DescribeRepositoryAssociationResponse
    -> Maybe (HashMap Text Text)
    -> DescribeRepositoryAssociationResponse)
-> Lens
     DescribeRepositoryAssociationResponse
     DescribeRepositoryAssociationResponse
     (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 (\DescribeRepositoryAssociationResponse' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:DescribeRepositoryAssociationResponse' :: DescribeRepositoryAssociationResponse -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: DescribeRepositoryAssociationResponse
s@DescribeRepositoryAssociationResponse' {} Maybe (HashMap Text Text)
a -> DescribeRepositoryAssociationResponse
s {$sel:tags:DescribeRepositoryAssociationResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: DescribeRepositoryAssociationResponse) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
 -> DescribeRepositoryAssociationResponse
 -> f DescribeRepositoryAssociationResponse)
-> ((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)))
-> DescribeRepositoryAssociationResponse
-> f DescribeRepositoryAssociationResponse
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 response's http status code.
describeRepositoryAssociationResponse_httpStatus :: Lens.Lens' DescribeRepositoryAssociationResponse Prelude.Int
describeRepositoryAssociationResponse_httpStatus :: (Int -> f Int)
-> DescribeRepositoryAssociationResponse
-> f DescribeRepositoryAssociationResponse
describeRepositoryAssociationResponse_httpStatus = (DescribeRepositoryAssociationResponse -> Int)
-> (DescribeRepositoryAssociationResponse
    -> Int -> DescribeRepositoryAssociationResponse)
-> Lens
     DescribeRepositoryAssociationResponse
     DescribeRepositoryAssociationResponse
     Int
     Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeRepositoryAssociationResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeRepositoryAssociationResponse' :: DescribeRepositoryAssociationResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeRepositoryAssociationResponse
s@DescribeRepositoryAssociationResponse' {} Int
a -> DescribeRepositoryAssociationResponse
s {$sel:httpStatus:DescribeRepositoryAssociationResponse' :: Int
httpStatus = Int
a} :: DescribeRepositoryAssociationResponse)

instance
  Prelude.NFData
    DescribeRepositoryAssociationResponse