{-# 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 #-}
module Amazonka.CodeCommit.BatchAssociateApprovalRuleTemplateWithRepositories
(
BatchAssociateApprovalRuleTemplateWithRepositories (..),
newBatchAssociateApprovalRuleTemplateWithRepositories,
batchAssociateApprovalRuleTemplateWithRepositories_approvalRuleTemplateName,
batchAssociateApprovalRuleTemplateWithRepositories_repositoryNames,
BatchAssociateApprovalRuleTemplateWithRepositoriesResponse (..),
newBatchAssociateApprovalRuleTemplateWithRepositoriesResponse,
batchAssociateApprovalRuleTemplateWithRepositoriesResponse_httpStatus,
batchAssociateApprovalRuleTemplateWithRepositoriesResponse_associatedRepositoryNames,
batchAssociateApprovalRuleTemplateWithRepositoriesResponse_errors,
)
where
import Amazonka.CodeCommit.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
data BatchAssociateApprovalRuleTemplateWithRepositories = BatchAssociateApprovalRuleTemplateWithRepositories'
{
BatchAssociateApprovalRuleTemplateWithRepositories -> Text
approvalRuleTemplateName :: Prelude.Text,
BatchAssociateApprovalRuleTemplateWithRepositories -> [Text]
repositoryNames :: [Prelude.Text]
}
deriving (BatchAssociateApprovalRuleTemplateWithRepositories
-> BatchAssociateApprovalRuleTemplateWithRepositories -> Bool
(BatchAssociateApprovalRuleTemplateWithRepositories
-> BatchAssociateApprovalRuleTemplateWithRepositories -> Bool)
-> (BatchAssociateApprovalRuleTemplateWithRepositories
-> BatchAssociateApprovalRuleTemplateWithRepositories -> Bool)
-> Eq BatchAssociateApprovalRuleTemplateWithRepositories
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: BatchAssociateApprovalRuleTemplateWithRepositories
-> BatchAssociateApprovalRuleTemplateWithRepositories -> Bool
$c/= :: BatchAssociateApprovalRuleTemplateWithRepositories
-> BatchAssociateApprovalRuleTemplateWithRepositories -> Bool
== :: BatchAssociateApprovalRuleTemplateWithRepositories
-> BatchAssociateApprovalRuleTemplateWithRepositories -> Bool
$c== :: BatchAssociateApprovalRuleTemplateWithRepositories
-> BatchAssociateApprovalRuleTemplateWithRepositories -> Bool
Prelude.Eq, ReadPrec [BatchAssociateApprovalRuleTemplateWithRepositories]
ReadPrec BatchAssociateApprovalRuleTemplateWithRepositories
Int -> ReadS BatchAssociateApprovalRuleTemplateWithRepositories
ReadS [BatchAssociateApprovalRuleTemplateWithRepositories]
(Int -> ReadS BatchAssociateApprovalRuleTemplateWithRepositories)
-> ReadS [BatchAssociateApprovalRuleTemplateWithRepositories]
-> ReadPrec BatchAssociateApprovalRuleTemplateWithRepositories
-> ReadPrec [BatchAssociateApprovalRuleTemplateWithRepositories]
-> Read BatchAssociateApprovalRuleTemplateWithRepositories
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [BatchAssociateApprovalRuleTemplateWithRepositories]
$creadListPrec :: ReadPrec [BatchAssociateApprovalRuleTemplateWithRepositories]
readPrec :: ReadPrec BatchAssociateApprovalRuleTemplateWithRepositories
$creadPrec :: ReadPrec BatchAssociateApprovalRuleTemplateWithRepositories
readList :: ReadS [BatchAssociateApprovalRuleTemplateWithRepositories]
$creadList :: ReadS [BatchAssociateApprovalRuleTemplateWithRepositories]
readsPrec :: Int -> ReadS BatchAssociateApprovalRuleTemplateWithRepositories
$creadsPrec :: Int -> ReadS BatchAssociateApprovalRuleTemplateWithRepositories
Prelude.Read, Int -> BatchAssociateApprovalRuleTemplateWithRepositories -> ShowS
[BatchAssociateApprovalRuleTemplateWithRepositories] -> ShowS
BatchAssociateApprovalRuleTemplateWithRepositories -> String
(Int
-> BatchAssociateApprovalRuleTemplateWithRepositories -> ShowS)
-> (BatchAssociateApprovalRuleTemplateWithRepositories -> String)
-> ([BatchAssociateApprovalRuleTemplateWithRepositories] -> ShowS)
-> Show BatchAssociateApprovalRuleTemplateWithRepositories
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [BatchAssociateApprovalRuleTemplateWithRepositories] -> ShowS
$cshowList :: [BatchAssociateApprovalRuleTemplateWithRepositories] -> ShowS
show :: BatchAssociateApprovalRuleTemplateWithRepositories -> String
$cshow :: BatchAssociateApprovalRuleTemplateWithRepositories -> String
showsPrec :: Int -> BatchAssociateApprovalRuleTemplateWithRepositories -> ShowS
$cshowsPrec :: Int -> BatchAssociateApprovalRuleTemplateWithRepositories -> ShowS
Prelude.Show, (forall x.
BatchAssociateApprovalRuleTemplateWithRepositories
-> Rep BatchAssociateApprovalRuleTemplateWithRepositories x)
-> (forall x.
Rep BatchAssociateApprovalRuleTemplateWithRepositories x
-> BatchAssociateApprovalRuleTemplateWithRepositories)
-> Generic BatchAssociateApprovalRuleTemplateWithRepositories
forall x.
Rep BatchAssociateApprovalRuleTemplateWithRepositories x
-> BatchAssociateApprovalRuleTemplateWithRepositories
forall x.
BatchAssociateApprovalRuleTemplateWithRepositories
-> Rep BatchAssociateApprovalRuleTemplateWithRepositories x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep BatchAssociateApprovalRuleTemplateWithRepositories x
-> BatchAssociateApprovalRuleTemplateWithRepositories
$cfrom :: forall x.
BatchAssociateApprovalRuleTemplateWithRepositories
-> Rep BatchAssociateApprovalRuleTemplateWithRepositories x
Prelude.Generic)
newBatchAssociateApprovalRuleTemplateWithRepositories ::
Prelude.Text ->
BatchAssociateApprovalRuleTemplateWithRepositories
newBatchAssociateApprovalRuleTemplateWithRepositories :: Text -> BatchAssociateApprovalRuleTemplateWithRepositories
newBatchAssociateApprovalRuleTemplateWithRepositories
Text
pApprovalRuleTemplateName_ =
BatchAssociateApprovalRuleTemplateWithRepositories' :: Text
-> [Text] -> BatchAssociateApprovalRuleTemplateWithRepositories
BatchAssociateApprovalRuleTemplateWithRepositories'
{ $sel:approvalRuleTemplateName:BatchAssociateApprovalRuleTemplateWithRepositories' :: Text
approvalRuleTemplateName =
Text
pApprovalRuleTemplateName_,
$sel:repositoryNames:BatchAssociateApprovalRuleTemplateWithRepositories' :: [Text]
repositoryNames =
[Text]
forall a. Monoid a => a
Prelude.mempty
}
batchAssociateApprovalRuleTemplateWithRepositories_approvalRuleTemplateName :: Lens.Lens' BatchAssociateApprovalRuleTemplateWithRepositories Prelude.Text
batchAssociateApprovalRuleTemplateWithRepositories_approvalRuleTemplateName :: (Text -> f Text)
-> BatchAssociateApprovalRuleTemplateWithRepositories
-> f BatchAssociateApprovalRuleTemplateWithRepositories
batchAssociateApprovalRuleTemplateWithRepositories_approvalRuleTemplateName = (BatchAssociateApprovalRuleTemplateWithRepositories -> Text)
-> (BatchAssociateApprovalRuleTemplateWithRepositories
-> Text -> BatchAssociateApprovalRuleTemplateWithRepositories)
-> Lens
BatchAssociateApprovalRuleTemplateWithRepositories
BatchAssociateApprovalRuleTemplateWithRepositories
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchAssociateApprovalRuleTemplateWithRepositories' {Text
approvalRuleTemplateName :: Text
$sel:approvalRuleTemplateName:BatchAssociateApprovalRuleTemplateWithRepositories' :: BatchAssociateApprovalRuleTemplateWithRepositories -> Text
approvalRuleTemplateName} -> Text
approvalRuleTemplateName) (\s :: BatchAssociateApprovalRuleTemplateWithRepositories
s@BatchAssociateApprovalRuleTemplateWithRepositories' {} Text
a -> BatchAssociateApprovalRuleTemplateWithRepositories
s {$sel:approvalRuleTemplateName:BatchAssociateApprovalRuleTemplateWithRepositories' :: Text
approvalRuleTemplateName = Text
a} :: BatchAssociateApprovalRuleTemplateWithRepositories)
batchAssociateApprovalRuleTemplateWithRepositories_repositoryNames :: Lens.Lens' BatchAssociateApprovalRuleTemplateWithRepositories [Prelude.Text]
batchAssociateApprovalRuleTemplateWithRepositories_repositoryNames :: ([Text] -> f [Text])
-> BatchAssociateApprovalRuleTemplateWithRepositories
-> f BatchAssociateApprovalRuleTemplateWithRepositories
batchAssociateApprovalRuleTemplateWithRepositories_repositoryNames = (BatchAssociateApprovalRuleTemplateWithRepositories -> [Text])
-> (BatchAssociateApprovalRuleTemplateWithRepositories
-> [Text] -> BatchAssociateApprovalRuleTemplateWithRepositories)
-> Lens
BatchAssociateApprovalRuleTemplateWithRepositories
BatchAssociateApprovalRuleTemplateWithRepositories
[Text]
[Text]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchAssociateApprovalRuleTemplateWithRepositories' {[Text]
repositoryNames :: [Text]
$sel:repositoryNames:BatchAssociateApprovalRuleTemplateWithRepositories' :: BatchAssociateApprovalRuleTemplateWithRepositories -> [Text]
repositoryNames} -> [Text]
repositoryNames) (\s :: BatchAssociateApprovalRuleTemplateWithRepositories
s@BatchAssociateApprovalRuleTemplateWithRepositories' {} [Text]
a -> BatchAssociateApprovalRuleTemplateWithRepositories
s {$sel:repositoryNames:BatchAssociateApprovalRuleTemplateWithRepositories' :: [Text]
repositoryNames = [Text]
a} :: BatchAssociateApprovalRuleTemplateWithRepositories) (([Text] -> f [Text])
-> BatchAssociateApprovalRuleTemplateWithRepositories
-> f BatchAssociateApprovalRuleTemplateWithRepositories)
-> (([Text] -> f [Text]) -> [Text] -> f [Text])
-> ([Text] -> f [Text])
-> BatchAssociateApprovalRuleTemplateWithRepositories
-> f BatchAssociateApprovalRuleTemplateWithRepositories
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([Text] -> f [Text]) -> [Text] -> f [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instance
Core.AWSRequest
BatchAssociateApprovalRuleTemplateWithRepositories
where
type
AWSResponse
BatchAssociateApprovalRuleTemplateWithRepositories =
BatchAssociateApprovalRuleTemplateWithRepositoriesResponse
request :: BatchAssociateApprovalRuleTemplateWithRepositories
-> Request BatchAssociateApprovalRuleTemplateWithRepositories
request = Service
-> BatchAssociateApprovalRuleTemplateWithRepositories
-> Request BatchAssociateApprovalRuleTemplateWithRepositories
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy BatchAssociateApprovalRuleTemplateWithRepositories
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse
(AWSResponse BatchAssociateApprovalRuleTemplateWithRepositories)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either
String
(AWSResponse BatchAssociateApprovalRuleTemplateWithRepositories))
-> Logger
-> Service
-> Proxy BatchAssociateApprovalRuleTemplateWithRepositories
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse
(AWSResponse BatchAssociateApprovalRuleTemplateWithRepositories)))
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 ->
Int
-> [Text]
-> [BatchAssociateApprovalRuleTemplateWithRepositoriesError]
-> BatchAssociateApprovalRuleTemplateWithRepositoriesResponse
BatchAssociateApprovalRuleTemplateWithRepositoriesResponse'
(Int
-> [Text]
-> [BatchAssociateApprovalRuleTemplateWithRepositoriesError]
-> BatchAssociateApprovalRuleTemplateWithRepositoriesResponse)
-> Either String Int
-> Either
String
([Text]
-> [BatchAssociateApprovalRuleTemplateWithRepositoriesError]
-> BatchAssociateApprovalRuleTemplateWithRepositoriesResponse)
forall (f :: * -> *) a b. Functor 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))
Either
String
([Text]
-> [BatchAssociateApprovalRuleTemplateWithRepositoriesError]
-> BatchAssociateApprovalRuleTemplateWithRepositoriesResponse)
-> Either String [Text]
-> Either
String
([BatchAssociateApprovalRuleTemplateWithRepositoriesError]
-> BatchAssociateApprovalRuleTemplateWithRepositoriesResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object -> Text -> Either String (Maybe [Text])
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"associatedRepositoryNames"
Either String (Maybe [Text]) -> [Text] -> Either String [Text]
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ [Text]
forall a. Monoid a => a
Prelude.mempty
)
Either
String
([BatchAssociateApprovalRuleTemplateWithRepositoriesError]
-> BatchAssociateApprovalRuleTemplateWithRepositoriesResponse)
-> Either
String [BatchAssociateApprovalRuleTemplateWithRepositoriesError]
-> Either
String BatchAssociateApprovalRuleTemplateWithRepositoriesResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object
-> Text
-> Either
String
(Maybe [BatchAssociateApprovalRuleTemplateWithRepositoriesError])
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"errors" Either
String
(Maybe [BatchAssociateApprovalRuleTemplateWithRepositoriesError])
-> [BatchAssociateApprovalRuleTemplateWithRepositoriesError]
-> Either
String [BatchAssociateApprovalRuleTemplateWithRepositoriesError]
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ [BatchAssociateApprovalRuleTemplateWithRepositoriesError]
forall a. Monoid a => a
Prelude.mempty)
)
instance
Prelude.Hashable
BatchAssociateApprovalRuleTemplateWithRepositories
instance
Prelude.NFData
BatchAssociateApprovalRuleTemplateWithRepositories
instance
Core.ToHeaders
BatchAssociateApprovalRuleTemplateWithRepositories
where
toHeaders :: BatchAssociateApprovalRuleTemplateWithRepositories
-> ResponseHeaders
toHeaders =
ResponseHeaders
-> BatchAssociateApprovalRuleTemplateWithRepositories
-> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"X-Amz-Target"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"CodeCommit_20150413.BatchAssociateApprovalRuleTemplateWithRepositories" ::
Prelude.ByteString
),
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.ToJSON
BatchAssociateApprovalRuleTemplateWithRepositories
where
toJSON :: BatchAssociateApprovalRuleTemplateWithRepositories -> Value
toJSON
BatchAssociateApprovalRuleTemplateWithRepositories' {[Text]
Text
repositoryNames :: [Text]
approvalRuleTemplateName :: Text
$sel:repositoryNames:BatchAssociateApprovalRuleTemplateWithRepositories' :: BatchAssociateApprovalRuleTemplateWithRepositories -> [Text]
$sel:approvalRuleTemplateName:BatchAssociateApprovalRuleTemplateWithRepositories' :: BatchAssociateApprovalRuleTemplateWithRepositories -> Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
( Text
"approvalRuleTemplateName"
Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
approvalRuleTemplateName
),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
(Text
"repositoryNames" Text -> [Text] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= [Text]
repositoryNames)
]
)
instance
Core.ToPath
BatchAssociateApprovalRuleTemplateWithRepositories
where
toPath :: BatchAssociateApprovalRuleTemplateWithRepositories -> ByteString
toPath = ByteString
-> BatchAssociateApprovalRuleTemplateWithRepositories -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance
Core.ToQuery
BatchAssociateApprovalRuleTemplateWithRepositories
where
toQuery :: BatchAssociateApprovalRuleTemplateWithRepositories -> QueryString
toQuery = QueryString
-> BatchAssociateApprovalRuleTemplateWithRepositories
-> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data BatchAssociateApprovalRuleTemplateWithRepositoriesResponse = BatchAssociateApprovalRuleTemplateWithRepositoriesResponse'
{
BatchAssociateApprovalRuleTemplateWithRepositoriesResponse -> Int
httpStatus :: Prelude.Int,
BatchAssociateApprovalRuleTemplateWithRepositoriesResponse
-> [Text]
associatedRepositoryNames :: [Prelude.Text],
BatchAssociateApprovalRuleTemplateWithRepositoriesResponse
-> [BatchAssociateApprovalRuleTemplateWithRepositoriesError]
errors :: [BatchAssociateApprovalRuleTemplateWithRepositoriesError]
}
deriving (BatchAssociateApprovalRuleTemplateWithRepositoriesResponse
-> BatchAssociateApprovalRuleTemplateWithRepositoriesResponse
-> Bool
(BatchAssociateApprovalRuleTemplateWithRepositoriesResponse
-> BatchAssociateApprovalRuleTemplateWithRepositoriesResponse
-> Bool)
-> (BatchAssociateApprovalRuleTemplateWithRepositoriesResponse
-> BatchAssociateApprovalRuleTemplateWithRepositoriesResponse
-> Bool)
-> Eq BatchAssociateApprovalRuleTemplateWithRepositoriesResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: BatchAssociateApprovalRuleTemplateWithRepositoriesResponse
-> BatchAssociateApprovalRuleTemplateWithRepositoriesResponse
-> Bool
$c/= :: BatchAssociateApprovalRuleTemplateWithRepositoriesResponse
-> BatchAssociateApprovalRuleTemplateWithRepositoriesResponse
-> Bool
== :: BatchAssociateApprovalRuleTemplateWithRepositoriesResponse
-> BatchAssociateApprovalRuleTemplateWithRepositoriesResponse
-> Bool
$c== :: BatchAssociateApprovalRuleTemplateWithRepositoriesResponse
-> BatchAssociateApprovalRuleTemplateWithRepositoriesResponse
-> Bool
Prelude.Eq, ReadPrec
[BatchAssociateApprovalRuleTemplateWithRepositoriesResponse]
ReadPrec BatchAssociateApprovalRuleTemplateWithRepositoriesResponse
Int
-> ReadS BatchAssociateApprovalRuleTemplateWithRepositoriesResponse
ReadS [BatchAssociateApprovalRuleTemplateWithRepositoriesResponse]
(Int
-> ReadS
BatchAssociateApprovalRuleTemplateWithRepositoriesResponse)
-> ReadS
[BatchAssociateApprovalRuleTemplateWithRepositoriesResponse]
-> ReadPrec
BatchAssociateApprovalRuleTemplateWithRepositoriesResponse
-> ReadPrec
[BatchAssociateApprovalRuleTemplateWithRepositoriesResponse]
-> Read BatchAssociateApprovalRuleTemplateWithRepositoriesResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec
[BatchAssociateApprovalRuleTemplateWithRepositoriesResponse]
$creadListPrec :: ReadPrec
[BatchAssociateApprovalRuleTemplateWithRepositoriesResponse]
readPrec :: ReadPrec BatchAssociateApprovalRuleTemplateWithRepositoriesResponse
$creadPrec :: ReadPrec BatchAssociateApprovalRuleTemplateWithRepositoriesResponse
readList :: ReadS [BatchAssociateApprovalRuleTemplateWithRepositoriesResponse]
$creadList :: ReadS [BatchAssociateApprovalRuleTemplateWithRepositoriesResponse]
readsPrec :: Int
-> ReadS BatchAssociateApprovalRuleTemplateWithRepositoriesResponse
$creadsPrec :: Int
-> ReadS BatchAssociateApprovalRuleTemplateWithRepositoriesResponse
Prelude.Read, Int
-> BatchAssociateApprovalRuleTemplateWithRepositoriesResponse
-> ShowS
[BatchAssociateApprovalRuleTemplateWithRepositoriesResponse]
-> ShowS
BatchAssociateApprovalRuleTemplateWithRepositoriesResponse
-> String
(Int
-> BatchAssociateApprovalRuleTemplateWithRepositoriesResponse
-> ShowS)
-> (BatchAssociateApprovalRuleTemplateWithRepositoriesResponse
-> String)
-> ([BatchAssociateApprovalRuleTemplateWithRepositoriesResponse]
-> ShowS)
-> Show BatchAssociateApprovalRuleTemplateWithRepositoriesResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [BatchAssociateApprovalRuleTemplateWithRepositoriesResponse]
-> ShowS
$cshowList :: [BatchAssociateApprovalRuleTemplateWithRepositoriesResponse]
-> ShowS
show :: BatchAssociateApprovalRuleTemplateWithRepositoriesResponse
-> String
$cshow :: BatchAssociateApprovalRuleTemplateWithRepositoriesResponse
-> String
showsPrec :: Int
-> BatchAssociateApprovalRuleTemplateWithRepositoriesResponse
-> ShowS
$cshowsPrec :: Int
-> BatchAssociateApprovalRuleTemplateWithRepositoriesResponse
-> ShowS
Prelude.Show, (forall x.
BatchAssociateApprovalRuleTemplateWithRepositoriesResponse
-> Rep
BatchAssociateApprovalRuleTemplateWithRepositoriesResponse x)
-> (forall x.
Rep BatchAssociateApprovalRuleTemplateWithRepositoriesResponse x
-> BatchAssociateApprovalRuleTemplateWithRepositoriesResponse)
-> Generic
BatchAssociateApprovalRuleTemplateWithRepositoriesResponse
forall x.
Rep BatchAssociateApprovalRuleTemplateWithRepositoriesResponse x
-> BatchAssociateApprovalRuleTemplateWithRepositoriesResponse
forall x.
BatchAssociateApprovalRuleTemplateWithRepositoriesResponse
-> Rep BatchAssociateApprovalRuleTemplateWithRepositoriesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep BatchAssociateApprovalRuleTemplateWithRepositoriesResponse x
-> BatchAssociateApprovalRuleTemplateWithRepositoriesResponse
$cfrom :: forall x.
BatchAssociateApprovalRuleTemplateWithRepositoriesResponse
-> Rep BatchAssociateApprovalRuleTemplateWithRepositoriesResponse x
Prelude.Generic)
newBatchAssociateApprovalRuleTemplateWithRepositoriesResponse ::
Prelude.Int ->
BatchAssociateApprovalRuleTemplateWithRepositoriesResponse
newBatchAssociateApprovalRuleTemplateWithRepositoriesResponse :: Int -> BatchAssociateApprovalRuleTemplateWithRepositoriesResponse
newBatchAssociateApprovalRuleTemplateWithRepositoriesResponse
Int
pHttpStatus_ =
BatchAssociateApprovalRuleTemplateWithRepositoriesResponse' :: Int
-> [Text]
-> [BatchAssociateApprovalRuleTemplateWithRepositoriesError]
-> BatchAssociateApprovalRuleTemplateWithRepositoriesResponse
BatchAssociateApprovalRuleTemplateWithRepositoriesResponse'
{ $sel:httpStatus:BatchAssociateApprovalRuleTemplateWithRepositoriesResponse' :: Int
httpStatus =
Int
pHttpStatus_,
$sel:associatedRepositoryNames:BatchAssociateApprovalRuleTemplateWithRepositoriesResponse' :: [Text]
associatedRepositoryNames =
[Text]
forall a. Monoid a => a
Prelude.mempty,
$sel:errors:BatchAssociateApprovalRuleTemplateWithRepositoriesResponse' :: [BatchAssociateApprovalRuleTemplateWithRepositoriesError]
errors =
[BatchAssociateApprovalRuleTemplateWithRepositoriesError]
forall a. Monoid a => a
Prelude.mempty
}
batchAssociateApprovalRuleTemplateWithRepositoriesResponse_httpStatus :: Lens.Lens' BatchAssociateApprovalRuleTemplateWithRepositoriesResponse Prelude.Int
batchAssociateApprovalRuleTemplateWithRepositoriesResponse_httpStatus :: (Int -> f Int)
-> BatchAssociateApprovalRuleTemplateWithRepositoriesResponse
-> f BatchAssociateApprovalRuleTemplateWithRepositoriesResponse
batchAssociateApprovalRuleTemplateWithRepositoriesResponse_httpStatus = (BatchAssociateApprovalRuleTemplateWithRepositoriesResponse -> Int)
-> (BatchAssociateApprovalRuleTemplateWithRepositoriesResponse
-> Int
-> BatchAssociateApprovalRuleTemplateWithRepositoriesResponse)
-> Lens
BatchAssociateApprovalRuleTemplateWithRepositoriesResponse
BatchAssociateApprovalRuleTemplateWithRepositoriesResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchAssociateApprovalRuleTemplateWithRepositoriesResponse' {Int
httpStatus :: Int
$sel:httpStatus:BatchAssociateApprovalRuleTemplateWithRepositoriesResponse' :: BatchAssociateApprovalRuleTemplateWithRepositoriesResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: BatchAssociateApprovalRuleTemplateWithRepositoriesResponse
s@BatchAssociateApprovalRuleTemplateWithRepositoriesResponse' {} Int
a -> BatchAssociateApprovalRuleTemplateWithRepositoriesResponse
s {$sel:httpStatus:BatchAssociateApprovalRuleTemplateWithRepositoriesResponse' :: Int
httpStatus = Int
a} :: BatchAssociateApprovalRuleTemplateWithRepositoriesResponse)
batchAssociateApprovalRuleTemplateWithRepositoriesResponse_associatedRepositoryNames :: Lens.Lens' BatchAssociateApprovalRuleTemplateWithRepositoriesResponse [Prelude.Text]
batchAssociateApprovalRuleTemplateWithRepositoriesResponse_associatedRepositoryNames :: ([Text] -> f [Text])
-> BatchAssociateApprovalRuleTemplateWithRepositoriesResponse
-> f BatchAssociateApprovalRuleTemplateWithRepositoriesResponse
batchAssociateApprovalRuleTemplateWithRepositoriesResponse_associatedRepositoryNames = (BatchAssociateApprovalRuleTemplateWithRepositoriesResponse
-> [Text])
-> (BatchAssociateApprovalRuleTemplateWithRepositoriesResponse
-> [Text]
-> BatchAssociateApprovalRuleTemplateWithRepositoriesResponse)
-> Lens
BatchAssociateApprovalRuleTemplateWithRepositoriesResponse
BatchAssociateApprovalRuleTemplateWithRepositoriesResponse
[Text]
[Text]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchAssociateApprovalRuleTemplateWithRepositoriesResponse' {[Text]
associatedRepositoryNames :: [Text]
$sel:associatedRepositoryNames:BatchAssociateApprovalRuleTemplateWithRepositoriesResponse' :: BatchAssociateApprovalRuleTemplateWithRepositoriesResponse
-> [Text]
associatedRepositoryNames} -> [Text]
associatedRepositoryNames) (\s :: BatchAssociateApprovalRuleTemplateWithRepositoriesResponse
s@BatchAssociateApprovalRuleTemplateWithRepositoriesResponse' {} [Text]
a -> BatchAssociateApprovalRuleTemplateWithRepositoriesResponse
s {$sel:associatedRepositoryNames:BatchAssociateApprovalRuleTemplateWithRepositoriesResponse' :: [Text]
associatedRepositoryNames = [Text]
a} :: BatchAssociateApprovalRuleTemplateWithRepositoriesResponse) (([Text] -> f [Text])
-> BatchAssociateApprovalRuleTemplateWithRepositoriesResponse
-> f BatchAssociateApprovalRuleTemplateWithRepositoriesResponse)
-> (([Text] -> f [Text]) -> [Text] -> f [Text])
-> ([Text] -> f [Text])
-> BatchAssociateApprovalRuleTemplateWithRepositoriesResponse
-> f BatchAssociateApprovalRuleTemplateWithRepositoriesResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([Text] -> f [Text]) -> [Text] -> f [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
batchAssociateApprovalRuleTemplateWithRepositoriesResponse_errors :: Lens.Lens' BatchAssociateApprovalRuleTemplateWithRepositoriesResponse [BatchAssociateApprovalRuleTemplateWithRepositoriesError]
batchAssociateApprovalRuleTemplateWithRepositoriesResponse_errors :: ([BatchAssociateApprovalRuleTemplateWithRepositoriesError]
-> f [BatchAssociateApprovalRuleTemplateWithRepositoriesError])
-> BatchAssociateApprovalRuleTemplateWithRepositoriesResponse
-> f BatchAssociateApprovalRuleTemplateWithRepositoriesResponse
batchAssociateApprovalRuleTemplateWithRepositoriesResponse_errors = (BatchAssociateApprovalRuleTemplateWithRepositoriesResponse
-> [BatchAssociateApprovalRuleTemplateWithRepositoriesError])
-> (BatchAssociateApprovalRuleTemplateWithRepositoriesResponse
-> [BatchAssociateApprovalRuleTemplateWithRepositoriesError]
-> BatchAssociateApprovalRuleTemplateWithRepositoriesResponse)
-> Lens
BatchAssociateApprovalRuleTemplateWithRepositoriesResponse
BatchAssociateApprovalRuleTemplateWithRepositoriesResponse
[BatchAssociateApprovalRuleTemplateWithRepositoriesError]
[BatchAssociateApprovalRuleTemplateWithRepositoriesError]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchAssociateApprovalRuleTemplateWithRepositoriesResponse' {[BatchAssociateApprovalRuleTemplateWithRepositoriesError]
errors :: [BatchAssociateApprovalRuleTemplateWithRepositoriesError]
$sel:errors:BatchAssociateApprovalRuleTemplateWithRepositoriesResponse' :: BatchAssociateApprovalRuleTemplateWithRepositoriesResponse
-> [BatchAssociateApprovalRuleTemplateWithRepositoriesError]
errors} -> [BatchAssociateApprovalRuleTemplateWithRepositoriesError]
errors) (\s :: BatchAssociateApprovalRuleTemplateWithRepositoriesResponse
s@BatchAssociateApprovalRuleTemplateWithRepositoriesResponse' {} [BatchAssociateApprovalRuleTemplateWithRepositoriesError]
a -> BatchAssociateApprovalRuleTemplateWithRepositoriesResponse
s {$sel:errors:BatchAssociateApprovalRuleTemplateWithRepositoriesResponse' :: [BatchAssociateApprovalRuleTemplateWithRepositoriesError]
errors = [BatchAssociateApprovalRuleTemplateWithRepositoriesError]
a} :: BatchAssociateApprovalRuleTemplateWithRepositoriesResponse) (([BatchAssociateApprovalRuleTemplateWithRepositoriesError]
-> f [BatchAssociateApprovalRuleTemplateWithRepositoriesError])
-> BatchAssociateApprovalRuleTemplateWithRepositoriesResponse
-> f BatchAssociateApprovalRuleTemplateWithRepositoriesResponse)
-> (([BatchAssociateApprovalRuleTemplateWithRepositoriesError]
-> f [BatchAssociateApprovalRuleTemplateWithRepositoriesError])
-> [BatchAssociateApprovalRuleTemplateWithRepositoriesError]
-> f [BatchAssociateApprovalRuleTemplateWithRepositoriesError])
-> ([BatchAssociateApprovalRuleTemplateWithRepositoriesError]
-> f [BatchAssociateApprovalRuleTemplateWithRepositoriesError])
-> BatchAssociateApprovalRuleTemplateWithRepositoriesResponse
-> f BatchAssociateApprovalRuleTemplateWithRepositoriesResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([BatchAssociateApprovalRuleTemplateWithRepositoriesError]
-> f [BatchAssociateApprovalRuleTemplateWithRepositoriesError])
-> [BatchAssociateApprovalRuleTemplateWithRepositoriesError]
-> f [BatchAssociateApprovalRuleTemplateWithRepositoriesError]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instance
Prelude.NFData
BatchAssociateApprovalRuleTemplateWithRepositoriesResponse