packages feed

amazonka-codebuild 1.5.0 → 1.6.0

raw patch · 31 files changed

+1224/−345 lines, 31 filesdep ~amazonka-coredep ~amazonka-testPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: amazonka-core, amazonka-test

API changes (from Hackage documentation)

+ Network.AWS.CodeBuild: CTNoCache :: CacheType
+ Network.AWS.CodeBuild: CTS3 :: CacheType
+ Network.AWS.CodeBuild: STGithubEnterprise :: SourceType
+ Network.AWS.CodeBuild: bCache :: Lens' Build (Maybe ProjectCache)
+ Network.AWS.CodeBuild: bNetworkInterface :: Lens' Build (Maybe NetworkInterface)
+ Network.AWS.CodeBuild: bVpcConfig :: Lens' Build (Maybe VPCConfig)
+ Network.AWS.CodeBuild: data CacheType
+ Network.AWS.CodeBuild: data NetworkInterface
+ Network.AWS.CodeBuild: data ProjectBadge
+ Network.AWS.CodeBuild: data ProjectCache
+ Network.AWS.CodeBuild: data VPCConfig
+ Network.AWS.CodeBuild: eiVersions :: Lens' EnvironmentImage [Text]
+ Network.AWS.CodeBuild: networkInterface :: NetworkInterface
+ Network.AWS.CodeBuild: niNetworkInterfaceId :: Lens' NetworkInterface (Maybe Text)
+ Network.AWS.CodeBuild: niSubnetId :: Lens' NetworkInterface (Maybe Text)
+ Network.AWS.CodeBuild: pBadge :: Lens' Project (Maybe ProjectBadge)
+ Network.AWS.CodeBuild: pCache :: Lens' Project (Maybe ProjectCache)
+ Network.AWS.CodeBuild: pVpcConfig :: Lens' Project (Maybe VPCConfig)
+ Network.AWS.CodeBuild: pbBadgeEnabled :: Lens' ProjectBadge (Maybe Bool)
+ Network.AWS.CodeBuild: pbBadgeRequestURL :: Lens' ProjectBadge (Maybe Text)
+ Network.AWS.CodeBuild: pcLocation :: Lens' ProjectCache (Maybe Text)
+ Network.AWS.CodeBuild: pcType :: Lens' ProjectCache CacheType
+ Network.AWS.CodeBuild: peCertificate :: Lens' ProjectEnvironment (Maybe Text)
+ Network.AWS.CodeBuild: projectBadge :: ProjectBadge
+ Network.AWS.CodeBuild: projectCache :: CacheType -> ProjectCache
+ Network.AWS.CodeBuild: psGitCloneDepth :: Lens' ProjectSource (Maybe Natural)
+ Network.AWS.CodeBuild: psInsecureSSL :: Lens' ProjectSource (Maybe Bool)
+ Network.AWS.CodeBuild: vcSecurityGroupIds :: Lens' VPCConfig [Text]
+ Network.AWS.CodeBuild: vcSubnets :: Lens' VPCConfig [Text]
+ Network.AWS.CodeBuild: vcVpcId :: Lens' VPCConfig (Maybe Text)
+ Network.AWS.CodeBuild: vpcConfig :: VPCConfig
+ Network.AWS.CodeBuild: wBranchFilter :: Lens' Webhook (Maybe Text)
+ Network.AWS.CodeBuild: wLastModifiedSecret :: Lens' Webhook (Maybe UTCTime)
+ Network.AWS.CodeBuild: wPayloadURL :: Lens' Webhook (Maybe Text)
+ Network.AWS.CodeBuild: wSecret :: Lens' Webhook (Maybe Text)
+ Network.AWS.CodeBuild.CreateProject: cpBadgeEnabled :: Lens' CreateProject (Maybe Bool)
+ Network.AWS.CodeBuild.CreateProject: cpCache :: Lens' CreateProject (Maybe ProjectCache)
+ Network.AWS.CodeBuild.CreateProject: cpVpcConfig :: Lens' CreateProject (Maybe VPCConfig)
+ Network.AWS.CodeBuild.CreateWebhook: cwBranchFilter :: Lens' CreateWebhook (Maybe Text)
+ Network.AWS.CodeBuild.InvalidateProjectCache: data InvalidateProjectCache
+ Network.AWS.CodeBuild.InvalidateProjectCache: data InvalidateProjectCacheResponse
+ Network.AWS.CodeBuild.InvalidateProjectCache: instance Control.DeepSeq.NFData Network.AWS.CodeBuild.InvalidateProjectCache.InvalidateProjectCache
+ Network.AWS.CodeBuild.InvalidateProjectCache: instance Control.DeepSeq.NFData Network.AWS.CodeBuild.InvalidateProjectCache.InvalidateProjectCacheResponse
+ Network.AWS.CodeBuild.InvalidateProjectCache: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.CodeBuild.InvalidateProjectCache.InvalidateProjectCache
+ Network.AWS.CodeBuild.InvalidateProjectCache: instance Data.Data.Data Network.AWS.CodeBuild.InvalidateProjectCache.InvalidateProjectCache
+ Network.AWS.CodeBuild.InvalidateProjectCache: instance Data.Data.Data Network.AWS.CodeBuild.InvalidateProjectCache.InvalidateProjectCacheResponse
+ Network.AWS.CodeBuild.InvalidateProjectCache: instance Data.Hashable.Class.Hashable Network.AWS.CodeBuild.InvalidateProjectCache.InvalidateProjectCache
+ Network.AWS.CodeBuild.InvalidateProjectCache: instance GHC.Classes.Eq Network.AWS.CodeBuild.InvalidateProjectCache.InvalidateProjectCache
+ Network.AWS.CodeBuild.InvalidateProjectCache: instance GHC.Classes.Eq Network.AWS.CodeBuild.InvalidateProjectCache.InvalidateProjectCacheResponse
+ Network.AWS.CodeBuild.InvalidateProjectCache: instance GHC.Generics.Generic Network.AWS.CodeBuild.InvalidateProjectCache.InvalidateProjectCache
+ Network.AWS.CodeBuild.InvalidateProjectCache: instance GHC.Generics.Generic Network.AWS.CodeBuild.InvalidateProjectCache.InvalidateProjectCacheResponse
+ Network.AWS.CodeBuild.InvalidateProjectCache: instance GHC.Read.Read Network.AWS.CodeBuild.InvalidateProjectCache.InvalidateProjectCache
+ Network.AWS.CodeBuild.InvalidateProjectCache: instance GHC.Read.Read Network.AWS.CodeBuild.InvalidateProjectCache.InvalidateProjectCacheResponse
+ Network.AWS.CodeBuild.InvalidateProjectCache: instance GHC.Show.Show Network.AWS.CodeBuild.InvalidateProjectCache.InvalidateProjectCache
+ Network.AWS.CodeBuild.InvalidateProjectCache: instance GHC.Show.Show Network.AWS.CodeBuild.InvalidateProjectCache.InvalidateProjectCacheResponse
+ Network.AWS.CodeBuild.InvalidateProjectCache: instance Network.AWS.Data.Headers.ToHeaders Network.AWS.CodeBuild.InvalidateProjectCache.InvalidateProjectCache
+ Network.AWS.CodeBuild.InvalidateProjectCache: instance Network.AWS.Data.Path.ToPath Network.AWS.CodeBuild.InvalidateProjectCache.InvalidateProjectCache
+ Network.AWS.CodeBuild.InvalidateProjectCache: instance Network.AWS.Data.Query.ToQuery Network.AWS.CodeBuild.InvalidateProjectCache.InvalidateProjectCache
+ Network.AWS.CodeBuild.InvalidateProjectCache: instance Network.AWS.Types.AWSRequest Network.AWS.CodeBuild.InvalidateProjectCache.InvalidateProjectCache
+ Network.AWS.CodeBuild.InvalidateProjectCache: invalidateProjectCache :: Text -> InvalidateProjectCache
+ Network.AWS.CodeBuild.InvalidateProjectCache: invalidateProjectCacheResponse :: Int -> InvalidateProjectCacheResponse
+ Network.AWS.CodeBuild.InvalidateProjectCache: ipcProjectName :: Lens' InvalidateProjectCache Text
+ Network.AWS.CodeBuild.InvalidateProjectCache: ipcrsResponseStatus :: Lens' InvalidateProjectCacheResponse Int
+ Network.AWS.CodeBuild.StartBuild: sbGitCloneDepthOverride :: Lens' StartBuild (Maybe Natural)
+ Network.AWS.CodeBuild.Types: CTNoCache :: CacheType
+ Network.AWS.CodeBuild.Types: CTS3 :: CacheType
+ Network.AWS.CodeBuild.Types: STGithubEnterprise :: SourceType
+ Network.AWS.CodeBuild.Types: bCache :: Lens' Build (Maybe ProjectCache)
+ Network.AWS.CodeBuild.Types: bNetworkInterface :: Lens' Build (Maybe NetworkInterface)
+ Network.AWS.CodeBuild.Types: bVpcConfig :: Lens' Build (Maybe VPCConfig)
+ Network.AWS.CodeBuild.Types: data CacheType
+ Network.AWS.CodeBuild.Types: data NetworkInterface
+ Network.AWS.CodeBuild.Types: data ProjectBadge
+ Network.AWS.CodeBuild.Types: data ProjectCache
+ Network.AWS.CodeBuild.Types: data VPCConfig
+ Network.AWS.CodeBuild.Types: eiVersions :: Lens' EnvironmentImage [Text]
+ Network.AWS.CodeBuild.Types: networkInterface :: NetworkInterface
+ Network.AWS.CodeBuild.Types: niNetworkInterfaceId :: Lens' NetworkInterface (Maybe Text)
+ Network.AWS.CodeBuild.Types: niSubnetId :: Lens' NetworkInterface (Maybe Text)
+ Network.AWS.CodeBuild.Types: pBadge :: Lens' Project (Maybe ProjectBadge)
+ Network.AWS.CodeBuild.Types: pCache :: Lens' Project (Maybe ProjectCache)
+ Network.AWS.CodeBuild.Types: pVpcConfig :: Lens' Project (Maybe VPCConfig)
+ Network.AWS.CodeBuild.Types: pbBadgeEnabled :: Lens' ProjectBadge (Maybe Bool)
+ Network.AWS.CodeBuild.Types: pbBadgeRequestURL :: Lens' ProjectBadge (Maybe Text)
+ Network.AWS.CodeBuild.Types: pcLocation :: Lens' ProjectCache (Maybe Text)
+ Network.AWS.CodeBuild.Types: pcType :: Lens' ProjectCache CacheType
+ Network.AWS.CodeBuild.Types: peCertificate :: Lens' ProjectEnvironment (Maybe Text)
+ Network.AWS.CodeBuild.Types: projectBadge :: ProjectBadge
+ Network.AWS.CodeBuild.Types: projectCache :: CacheType -> ProjectCache
+ Network.AWS.CodeBuild.Types: psGitCloneDepth :: Lens' ProjectSource (Maybe Natural)
+ Network.AWS.CodeBuild.Types: psInsecureSSL :: Lens' ProjectSource (Maybe Bool)
+ Network.AWS.CodeBuild.Types: vcSecurityGroupIds :: Lens' VPCConfig [Text]
+ Network.AWS.CodeBuild.Types: vcSubnets :: Lens' VPCConfig [Text]
+ Network.AWS.CodeBuild.Types: vcVpcId :: Lens' VPCConfig (Maybe Text)
+ Network.AWS.CodeBuild.Types: vpcConfig :: VPCConfig
+ Network.AWS.CodeBuild.Types: wBranchFilter :: Lens' Webhook (Maybe Text)
+ Network.AWS.CodeBuild.Types: wLastModifiedSecret :: Lens' Webhook (Maybe UTCTime)
+ Network.AWS.CodeBuild.Types: wPayloadURL :: Lens' Webhook (Maybe Text)
+ Network.AWS.CodeBuild.Types: wSecret :: Lens' Webhook (Maybe Text)
+ Network.AWS.CodeBuild.UpdateProject: upBadgeEnabled :: Lens' UpdateProject (Maybe Bool)
+ Network.AWS.CodeBuild.UpdateProject: upCache :: Lens' UpdateProject (Maybe ProjectCache)
+ Network.AWS.CodeBuild.UpdateProject: upVpcConfig :: Lens' UpdateProject (Maybe VPCConfig)
+ Network.AWS.CodeBuild.UpdateWebhook: data UpdateWebhook
+ Network.AWS.CodeBuild.UpdateWebhook: data UpdateWebhookResponse
+ Network.AWS.CodeBuild.UpdateWebhook: instance Control.DeepSeq.NFData Network.AWS.CodeBuild.UpdateWebhook.UpdateWebhook
+ Network.AWS.CodeBuild.UpdateWebhook: instance Control.DeepSeq.NFData Network.AWS.CodeBuild.UpdateWebhook.UpdateWebhookResponse
+ Network.AWS.CodeBuild.UpdateWebhook: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.CodeBuild.UpdateWebhook.UpdateWebhook
+ Network.AWS.CodeBuild.UpdateWebhook: instance Data.Data.Data Network.AWS.CodeBuild.UpdateWebhook.UpdateWebhook
+ Network.AWS.CodeBuild.UpdateWebhook: instance Data.Data.Data Network.AWS.CodeBuild.UpdateWebhook.UpdateWebhookResponse
+ Network.AWS.CodeBuild.UpdateWebhook: instance Data.Hashable.Class.Hashable Network.AWS.CodeBuild.UpdateWebhook.UpdateWebhook
+ Network.AWS.CodeBuild.UpdateWebhook: instance GHC.Classes.Eq Network.AWS.CodeBuild.UpdateWebhook.UpdateWebhook
+ Network.AWS.CodeBuild.UpdateWebhook: instance GHC.Classes.Eq Network.AWS.CodeBuild.UpdateWebhook.UpdateWebhookResponse
+ Network.AWS.CodeBuild.UpdateWebhook: instance GHC.Generics.Generic Network.AWS.CodeBuild.UpdateWebhook.UpdateWebhook
+ Network.AWS.CodeBuild.UpdateWebhook: instance GHC.Generics.Generic Network.AWS.CodeBuild.UpdateWebhook.UpdateWebhookResponse
+ Network.AWS.CodeBuild.UpdateWebhook: instance GHC.Read.Read Network.AWS.CodeBuild.UpdateWebhook.UpdateWebhook
+ Network.AWS.CodeBuild.UpdateWebhook: instance GHC.Read.Read Network.AWS.CodeBuild.UpdateWebhook.UpdateWebhookResponse
+ Network.AWS.CodeBuild.UpdateWebhook: instance GHC.Show.Show Network.AWS.CodeBuild.UpdateWebhook.UpdateWebhook
+ Network.AWS.CodeBuild.UpdateWebhook: instance GHC.Show.Show Network.AWS.CodeBuild.UpdateWebhook.UpdateWebhookResponse
+ Network.AWS.CodeBuild.UpdateWebhook: instance Network.AWS.Data.Headers.ToHeaders Network.AWS.CodeBuild.UpdateWebhook.UpdateWebhook
+ Network.AWS.CodeBuild.UpdateWebhook: instance Network.AWS.Data.Path.ToPath Network.AWS.CodeBuild.UpdateWebhook.UpdateWebhook
+ Network.AWS.CodeBuild.UpdateWebhook: instance Network.AWS.Data.Query.ToQuery Network.AWS.CodeBuild.UpdateWebhook.UpdateWebhook
+ Network.AWS.CodeBuild.UpdateWebhook: instance Network.AWS.Types.AWSRequest Network.AWS.CodeBuild.UpdateWebhook.UpdateWebhook
+ Network.AWS.CodeBuild.UpdateWebhook: updateWebhook :: Text -> UpdateWebhook
+ Network.AWS.CodeBuild.UpdateWebhook: updateWebhookResponse :: Int -> UpdateWebhookResponse
+ Network.AWS.CodeBuild.UpdateWebhook: uwBranchFilter :: Lens' UpdateWebhook (Maybe Text)
+ Network.AWS.CodeBuild.UpdateWebhook: uwProjectName :: Lens' UpdateWebhook Text
+ Network.AWS.CodeBuild.UpdateWebhook: uwRotateSecret :: Lens' UpdateWebhook (Maybe Bool)
+ Network.AWS.CodeBuild.UpdateWebhook: uwrsResponseStatus :: Lens' UpdateWebhookResponse Int
+ Network.AWS.CodeBuild.UpdateWebhook: uwrsWebhook :: Lens' UpdateWebhookResponse (Maybe Webhook)

Files

README.md view
@@ -8,7 +8,7 @@  ## Version -`1.5.0`+`1.6.0`   ## Description
amazonka-codebuild.cabal view
@@ -1,5 +1,5 @@ name:                  amazonka-codebuild-version:               1.5.0+version:               1.6.0 synopsis:              Amazon CodeBuild SDK. homepage:              https://github.com/brendanhay/amazonka bug-reports:           https://github.com/brendanhay/amazonka/issues@@ -7,7 +7,7 @@ license-file:          LICENSE author:                Brendan Hay maintainer:            Brendan Hay <brendan.g.hay+amazonka@gmail.com>-copyright:             Copyright (c) 2013-2017 Brendan Hay+copyright:             Copyright (c) 2013-2018 Brendan Hay category:              Network, AWS, Cloud, Distributed Computing build-type:            Simple cabal-version:         >= 1.10@@ -52,6 +52,7 @@         , Network.AWS.CodeBuild.CreateWebhook         , Network.AWS.CodeBuild.DeleteProject         , Network.AWS.CodeBuild.DeleteWebhook+        , Network.AWS.CodeBuild.InvalidateProjectCache         , Network.AWS.CodeBuild.ListBuilds         , Network.AWS.CodeBuild.ListBuildsForProject         , Network.AWS.CodeBuild.ListCuratedEnvironmentImages@@ -60,6 +61,7 @@         , Network.AWS.CodeBuild.StopBuild         , Network.AWS.CodeBuild.Types         , Network.AWS.CodeBuild.UpdateProject+        , Network.AWS.CodeBuild.UpdateWebhook         , Network.AWS.CodeBuild.Waiters      other-modules:@@ -67,7 +69,7 @@         , Network.AWS.CodeBuild.Types.Sum      build-depends:-          amazonka-core == 1.5.0.*+          amazonka-core == 1.6.0.*         , base          >= 4.7     && < 5  test-suite amazonka-codebuild-test@@ -87,8 +89,8 @@         , Test.AWS.CodeBuild.Internal      build-depends:-          amazonka-core == 1.5.0.*-        , amazonka-test == 1.5.0.*+          amazonka-core == 1.6.0.*+        , amazonka-test == 1.6.0.*         , amazonka-codebuild         , base         , bytestring
+ fixture/InvalidateProjectCache.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/codebuild/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  codebuild.us-east-1.amazonaws.com+  Content-Type:          application/x-www-form-urlencoded; charset=utf-8+  X-Amz-Content-SHA256:  abcdef+  X-Amz-Date:            20091028T223200Z+body:+  ''
+ fixture/InvalidateProjectCacheResponse.proto view
+ fixture/UpdateWebhook.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/codebuild/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  codebuild.us-east-1.amazonaws.com+  Content-Type:          application/x-www-form-urlencoded; charset=utf-8+  X-Amz-Content-SHA256:  abcdef+  X-Amz-Date:            20091028T223200Z+body:+  ''
+ fixture/UpdateWebhookResponse.proto view
gen/Network/AWS/CodeBuild.hs view
@@ -5,7 +5,7 @@  -- | -- Module      : Network.AWS.CodeBuild--- Copyright   : (c) 2013-2017 Brendan Hay+-- Copyright   : (c) 2013-2018 Brendan Hay -- License     : Mozilla Public License, v. 2.0. -- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated@@ -25,6 +25,8 @@ -- --     * @CreateWebhook@ : For an existing AWS CodeBuild build project that has its source code stored in a GitHub repository, enables AWS CodeBuild to begin automatically rebuilding the source code every time a code change is pushed to the repository. --+--     * @UpdateWebhook@ : Changes the settings of an existing webhook.+-- --     * @DeleteProject@ : Deletes a build project. -- --     * @DeleteWebhook@ : For an existing AWS CodeBuild build project that has its source code stored in a GitHub repository, stops AWS CodeBuild from automatically rebuilding the source code every time a code change is pushed to the repository.@@ -103,9 +105,15 @@     -- ** BatchGetBuilds     , module Network.AWS.CodeBuild.BatchGetBuilds +    -- ** UpdateWebhook+    , module Network.AWS.CodeBuild.UpdateWebhook+     -- ** DeleteWebhook     , module Network.AWS.CodeBuild.DeleteWebhook +    -- ** InvalidateProjectCache+    , module Network.AWS.CodeBuild.InvalidateProjectCache+     -- ** BatchDeleteBuilds     , module Network.AWS.CodeBuild.BatchDeleteBuilds @@ -132,6 +140,9 @@     -- ** BuildPhaseType     , BuildPhaseType (..) +    -- ** CacheType+    , CacheType (..)+     -- ** ComputeType     , ComputeType (..) @@ -172,9 +183,12 @@     , bArtifacts     , bEnvironment     , bInitiator+    , bNetworkInterface     , bCurrentPhase+    , bCache     , bSourceVersion     , bLogs+    , bVpcConfig     , bEndTime     , bProjectName     , bBuildStatus@@ -208,6 +222,7 @@     -- ** EnvironmentImage     , EnvironmentImage     , environmentImage+    , eiVersions     , eiName     , eiDescription @@ -237,6 +252,12 @@     , llGroupName     , llStreamName +    -- ** NetworkInterface+    , NetworkInterface+    , networkInterface+    , niSubnetId+    , niNetworkInterfaceId+     -- ** PhaseContext     , PhaseContext     , phaseContext@@ -250,8 +271,11 @@     , pArtifacts     , pEnvironment     , pCreated+    , pCache     , pName+    , pVpcConfig     , pSource+    , pBadge     , pEncryptionKey     , pLastModified     , pWebhook@@ -270,10 +294,23 @@     , paNamespaceType     , paType +    -- ** ProjectBadge+    , ProjectBadge+    , projectBadge+    , pbBadgeEnabled+    , pbBadgeRequestURL++    -- ** ProjectCache+    , ProjectCache+    , projectCache+    , pcLocation+    , pcType+     -- ** ProjectEnvironment     , ProjectEnvironment     , projectEnvironment     , pePrivilegedMode+    , peCertificate     , peEnvironmentVariables     , peType     , peImage@@ -282,9 +319,11 @@     -- ** ProjectSource     , ProjectSource     , projectSource+    , psInsecureSSL     , psLocation     , psAuth     , psBuildspec+    , psGitCloneDepth     , psType      -- ** SourceAuth@@ -299,10 +338,21 @@     , tagValue     , tagKey +    -- ** VPCConfig+    , VPCConfig+    , vpcConfig+    , vcSecurityGroupIds+    , vcVpcId+    , vcSubnets+     -- ** Webhook     , Webhook     , webhook+    , wBranchFilter+    , wLastModifiedSecret     , wUrl+    , wSecret+    , wPayloadURL     ) where  import Network.AWS.CodeBuild.BatchDeleteBuilds@@ -312,6 +362,7 @@ import Network.AWS.CodeBuild.CreateWebhook import Network.AWS.CodeBuild.DeleteProject import Network.AWS.CodeBuild.DeleteWebhook+import Network.AWS.CodeBuild.InvalidateProjectCache import Network.AWS.CodeBuild.ListBuilds import Network.AWS.CodeBuild.ListBuildsForProject import Network.AWS.CodeBuild.ListCuratedEnvironmentImages@@ -320,6 +371,7 @@ import Network.AWS.CodeBuild.StopBuild import Network.AWS.CodeBuild.Types import Network.AWS.CodeBuild.UpdateProject+import Network.AWS.CodeBuild.UpdateWebhook import Network.AWS.CodeBuild.Waiters  {- $errors
gen/Network/AWS/CodeBuild/BatchDeleteBuilds.hs view
@@ -12,7 +12,7 @@  -- | -- Module      : Network.AWS.CodeBuild.BatchDeleteBuilds--- Copyright   : (c) 2013-2017 Brendan Hay+-- Copyright   : (c) 2013-2018 Brendan Hay -- License     : Mozilla Public License, v. 2.0. -- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated@@ -64,7 +64,7 @@  -- | The IDs of the builds to delete. bdbIds :: Lens' BatchDeleteBuilds (NonEmpty Text)-bdbIds = lens _bdbIds (\ s a -> s{_bdbIds = a}) . _List1;+bdbIds = lens _bdbIds (\ s a -> s{_bdbIds = a}) . _List1  instance AWSRequest BatchDeleteBuilds where         type Rs BatchDeleteBuilds = BatchDeleteBuildsResponse@@ -123,22 +123,22 @@     -> BatchDeleteBuildsResponse batchDeleteBuildsResponse pResponseStatus_ =   BatchDeleteBuildsResponse'-  { _bdbrsBuildsNotDeleted = Nothing-  , _bdbrsBuildsDeleted = Nothing-  , _bdbrsResponseStatus = pResponseStatus_-  }+    { _bdbrsBuildsNotDeleted = Nothing+    , _bdbrsBuildsDeleted = Nothing+    , _bdbrsResponseStatus = pResponseStatus_+    }   -- | Information about any builds that could not be successfully deleted. bdbrsBuildsNotDeleted :: Lens' BatchDeleteBuildsResponse [BuildNotDeleted]-bdbrsBuildsNotDeleted = lens _bdbrsBuildsNotDeleted (\ s a -> s{_bdbrsBuildsNotDeleted = a}) . _Default . _Coerce;+bdbrsBuildsNotDeleted = lens _bdbrsBuildsNotDeleted (\ s a -> s{_bdbrsBuildsNotDeleted = a}) . _Default . _Coerce  -- | The IDs of the builds that were successfully deleted. bdbrsBuildsDeleted :: Lens' BatchDeleteBuildsResponse (Maybe (NonEmpty Text))-bdbrsBuildsDeleted = lens _bdbrsBuildsDeleted (\ s a -> s{_bdbrsBuildsDeleted = a}) . mapping _List1;+bdbrsBuildsDeleted = lens _bdbrsBuildsDeleted (\ s a -> s{_bdbrsBuildsDeleted = a}) . mapping _List1  -- | -- | The response status code. bdbrsResponseStatus :: Lens' BatchDeleteBuildsResponse Int-bdbrsResponseStatus = lens _bdbrsResponseStatus (\ s a -> s{_bdbrsResponseStatus = a});+bdbrsResponseStatus = lens _bdbrsResponseStatus (\ s a -> s{_bdbrsResponseStatus = a})  instance NFData BatchDeleteBuildsResponse where
gen/Network/AWS/CodeBuild/BatchGetBuilds.hs view
@@ -12,7 +12,7 @@  -- | -- Module      : Network.AWS.CodeBuild.BatchGetBuilds--- Copyright   : (c) 2013-2017 Brendan Hay+-- Copyright   : (c) 2013-2018 Brendan Hay -- License     : Mozilla Public License, v. 2.0. -- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated@@ -64,7 +64,7 @@  -- | The IDs of the builds. bgbIds :: Lens' BatchGetBuilds (NonEmpty Text)-bgbIds = lens _bgbIds (\ s a -> s{_bgbIds = a}) . _List1;+bgbIds = lens _bgbIds (\ s a -> s{_bgbIds = a}) . _List1  instance AWSRequest BatchGetBuilds where         type Rs BatchGetBuilds = BatchGetBuildsResponse@@ -122,22 +122,22 @@     -> BatchGetBuildsResponse batchGetBuildsResponse pResponseStatus_ =   BatchGetBuildsResponse'-  { _bgbrsBuilds = Nothing-  , _bgbrsBuildsNotFound = Nothing-  , _bgbrsResponseStatus = pResponseStatus_-  }+    { _bgbrsBuilds = Nothing+    , _bgbrsBuildsNotFound = Nothing+    , _bgbrsResponseStatus = pResponseStatus_+    }   -- | Information about the requested builds. bgbrsBuilds :: Lens' BatchGetBuildsResponse [Build]-bgbrsBuilds = lens _bgbrsBuilds (\ s a -> s{_bgbrsBuilds = a}) . _Default . _Coerce;+bgbrsBuilds = lens _bgbrsBuilds (\ s a -> s{_bgbrsBuilds = a}) . _Default . _Coerce  -- | The IDs of builds for which information could not be found. bgbrsBuildsNotFound :: Lens' BatchGetBuildsResponse (Maybe (NonEmpty Text))-bgbrsBuildsNotFound = lens _bgbrsBuildsNotFound (\ s a -> s{_bgbrsBuildsNotFound = a}) . mapping _List1;+bgbrsBuildsNotFound = lens _bgbrsBuildsNotFound (\ s a -> s{_bgbrsBuildsNotFound = a}) . mapping _List1  -- | -- | The response status code. bgbrsResponseStatus :: Lens' BatchGetBuildsResponse Int-bgbrsResponseStatus = lens _bgbrsResponseStatus (\ s a -> s{_bgbrsResponseStatus = a});+bgbrsResponseStatus = lens _bgbrsResponseStatus (\ s a -> s{_bgbrsResponseStatus = a})  instance NFData BatchGetBuildsResponse where
gen/Network/AWS/CodeBuild/BatchGetProjects.hs view
@@ -12,7 +12,7 @@  -- | -- Module      : Network.AWS.CodeBuild.BatchGetProjects--- Copyright   : (c) 2013-2017 Brendan Hay+-- Copyright   : (c) 2013-2018 Brendan Hay -- License     : Mozilla Public License, v. 2.0. -- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated@@ -64,7 +64,7 @@  -- | The names of the build projects. bgpNames :: Lens' BatchGetProjects (NonEmpty Text)-bgpNames = lens _bgpNames (\ s a -> s{_bgpNames = a}) . _List1;+bgpNames = lens _bgpNames (\ s a -> s{_bgpNames = a}) . _List1  instance AWSRequest BatchGetProjects where         type Rs BatchGetProjects = BatchGetProjectsResponse@@ -123,22 +123,22 @@     -> BatchGetProjectsResponse batchGetProjectsResponse pResponseStatus_ =   BatchGetProjectsResponse'-  { _bgprsProjectsNotFound = Nothing-  , _bgprsProjects = Nothing-  , _bgprsResponseStatus = pResponseStatus_-  }+    { _bgprsProjectsNotFound = Nothing+    , _bgprsProjects = Nothing+    , _bgprsResponseStatus = pResponseStatus_+    }   -- | The names of build projects for which information could not be found. bgprsProjectsNotFound :: Lens' BatchGetProjectsResponse (Maybe (NonEmpty Text))-bgprsProjectsNotFound = lens _bgprsProjectsNotFound (\ s a -> s{_bgprsProjectsNotFound = a}) . mapping _List1;+bgprsProjectsNotFound = lens _bgprsProjectsNotFound (\ s a -> s{_bgprsProjectsNotFound = a}) . mapping _List1  -- | Information about the requested build projects. bgprsProjects :: Lens' BatchGetProjectsResponse [Project]-bgprsProjects = lens _bgprsProjects (\ s a -> s{_bgprsProjects = a}) . _Default . _Coerce;+bgprsProjects = lens _bgprsProjects (\ s a -> s{_bgprsProjects = a}) . _Default . _Coerce  -- | -- | The response status code. bgprsResponseStatus :: Lens' BatchGetProjectsResponse Int-bgprsResponseStatus = lens _bgprsResponseStatus (\ s a -> s{_bgprsResponseStatus = a});+bgprsResponseStatus = lens _bgprsResponseStatus (\ s a -> s{_bgprsResponseStatus = a})  instance NFData BatchGetProjectsResponse where
gen/Network/AWS/CodeBuild/CreateProject.hs view
@@ -12,7 +12,7 @@  -- | -- Module      : Network.AWS.CodeBuild.CreateProject--- Copyright   : (c) 2013-2017 Brendan Hay+-- Copyright   : (c) 2013-2018 Brendan Hay -- License     : Mozilla Public License, v. 2.0. -- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated@@ -27,6 +27,9 @@       createProject     , CreateProject     -- * Request Lenses+    , cpBadgeEnabled+    , cpCache+    , cpVpcConfig     , cpEncryptionKey     , cpDescription     , cpServiceRole@@ -54,7 +57,10 @@  -- | /See:/ 'createProject' smart constructor. data CreateProject = CreateProject'-  { _cpEncryptionKey    :: !(Maybe Text)+  { _cpBadgeEnabled     :: !(Maybe Bool)+  , _cpCache            :: !(Maybe ProjectCache)+  , _cpVpcConfig        :: !(Maybe VPCConfig)+  , _cpEncryptionKey    :: !(Maybe Text)   , _cpDescription      :: !(Maybe Text)   , _cpServiceRole      :: !(Maybe Text)   , _cpTags             :: !(Maybe [Tag])@@ -70,6 +76,12 @@ -- -- Use one of the following lenses to modify other fields as desired: --+-- * 'cpBadgeEnabled' - Set this to true to generate a publicly-accessible URL for your project's build badge.+--+-- * 'cpCache' - Stores recently used information so that it can be quickly accessed at a later time.+--+-- * 'cpVpcConfig' - VpcConfig enables AWS CodeBuild to access resources in an Amazon VPC.+-- -- * 'cpEncryptionKey' - The AWS Key Management Service (AWS KMS) customer master key (CMK) to be used for encrypting the build output artifacts. You can specify either the CMK's Amazon Resource Name (ARN) or, if available, the CMK's alias (using the format @alias//alias-name/ @ ). -- -- * 'cpDescription' - A description that makes the build project easy to identify.@@ -95,53 +107,68 @@     -> CreateProject createProject pName_ pSource_ pArtifacts_ pEnvironment_ =   CreateProject'-  { _cpEncryptionKey = Nothing-  , _cpDescription = Nothing-  , _cpServiceRole = Nothing-  , _cpTags = Nothing-  , _cpTimeoutInMinutes = Nothing-  , _cpName = pName_-  , _cpSource = pSource_-  , _cpArtifacts = pArtifacts_-  , _cpEnvironment = pEnvironment_-  }+    { _cpBadgeEnabled = Nothing+    , _cpCache = Nothing+    , _cpVpcConfig = Nothing+    , _cpEncryptionKey = Nothing+    , _cpDescription = Nothing+    , _cpServiceRole = Nothing+    , _cpTags = Nothing+    , _cpTimeoutInMinutes = Nothing+    , _cpName = pName_+    , _cpSource = pSource_+    , _cpArtifacts = pArtifacts_+    , _cpEnvironment = pEnvironment_+    }  +-- | Set this to true to generate a publicly-accessible URL for your project's build badge.+cpBadgeEnabled :: Lens' CreateProject (Maybe Bool)+cpBadgeEnabled = lens _cpBadgeEnabled (\ s a -> s{_cpBadgeEnabled = a})++-- | Stores recently used information so that it can be quickly accessed at a later time.+cpCache :: Lens' CreateProject (Maybe ProjectCache)+cpCache = lens _cpCache (\ s a -> s{_cpCache = a})++-- | VpcConfig enables AWS CodeBuild to access resources in an Amazon VPC.+cpVpcConfig :: Lens' CreateProject (Maybe VPCConfig)+cpVpcConfig = lens _cpVpcConfig (\ s a -> s{_cpVpcConfig = a})+ -- | The AWS Key Management Service (AWS KMS) customer master key (CMK) to be used for encrypting the build output artifacts. You can specify either the CMK's Amazon Resource Name (ARN) or, if available, the CMK's alias (using the format @alias//alias-name/ @ ). cpEncryptionKey :: Lens' CreateProject (Maybe Text)-cpEncryptionKey = lens _cpEncryptionKey (\ s a -> s{_cpEncryptionKey = a});+cpEncryptionKey = lens _cpEncryptionKey (\ s a -> s{_cpEncryptionKey = a})  -- | A description that makes the build project easy to identify. cpDescription :: Lens' CreateProject (Maybe Text)-cpDescription = lens _cpDescription (\ s a -> s{_cpDescription = a});+cpDescription = lens _cpDescription (\ s a -> s{_cpDescription = a})  -- | The ARN of the AWS Identity and Access Management (IAM) role that enables AWS CodeBuild to interact with dependent AWS services on behalf of the AWS account. cpServiceRole :: Lens' CreateProject (Maybe Text)-cpServiceRole = lens _cpServiceRole (\ s a -> s{_cpServiceRole = a});+cpServiceRole = lens _cpServiceRole (\ s a -> s{_cpServiceRole = a})  -- | A set of tags for this build project. These tags are available for use by AWS services that support AWS CodeBuild build project tags. cpTags :: Lens' CreateProject [Tag]-cpTags = lens _cpTags (\ s a -> s{_cpTags = a}) . _Default . _Coerce;+cpTags = lens _cpTags (\ s a -> s{_cpTags = a}) . _Default . _Coerce  -- | How long, in minutes, from 5 to 480 (8 hours), for AWS CodeBuild to wait until timing out any build that has not been marked as completed. The default is 60 minutes. cpTimeoutInMinutes :: Lens' CreateProject (Maybe Natural)-cpTimeoutInMinutes = lens _cpTimeoutInMinutes (\ s a -> s{_cpTimeoutInMinutes = a}) . mapping _Nat;+cpTimeoutInMinutes = lens _cpTimeoutInMinutes (\ s a -> s{_cpTimeoutInMinutes = a}) . mapping _Nat  -- | The name of the build project. cpName :: Lens' CreateProject Text-cpName = lens _cpName (\ s a -> s{_cpName = a});+cpName = lens _cpName (\ s a -> s{_cpName = a})  -- | Information about the build input source code for the build project. cpSource :: Lens' CreateProject ProjectSource-cpSource = lens _cpSource (\ s a -> s{_cpSource = a});+cpSource = lens _cpSource (\ s a -> s{_cpSource = a})  -- | Information about the build output artifacts for the build project. cpArtifacts :: Lens' CreateProject ProjectArtifacts-cpArtifacts = lens _cpArtifacts (\ s a -> s{_cpArtifacts = a});+cpArtifacts = lens _cpArtifacts (\ s a -> s{_cpArtifacts = a})  -- | Information about the build environment for the build project. cpEnvironment :: Lens' CreateProject ProjectEnvironment-cpEnvironment = lens _cpEnvironment (\ s a -> s{_cpEnvironment = a});+cpEnvironment = lens _cpEnvironment (\ s a -> s{_cpEnvironment = a})  instance AWSRequest CreateProject where         type Rs CreateProject = CreateProjectResponse@@ -169,7 +196,10 @@         toJSON CreateProject'{..}           = object               (catMaybes-                 [("encryptionKey" .=) <$> _cpEncryptionKey,+                 [("badgeEnabled" .=) <$> _cpBadgeEnabled,+                  ("cache" .=) <$> _cpCache,+                  ("vpcConfig" .=) <$> _cpVpcConfig,+                  ("encryptionKey" .=) <$> _cpEncryptionKey,                   ("description" .=) <$> _cpDescription,                   ("serviceRole" .=) <$> _cpServiceRole,                   ("tags" .=) <$> _cpTags,@@ -204,15 +234,15 @@     -> CreateProjectResponse createProjectResponse pResponseStatus_ =   CreateProjectResponse'-  {_cprsProject = Nothing, _cprsResponseStatus = pResponseStatus_}+    {_cprsProject = Nothing, _cprsResponseStatus = pResponseStatus_}   -- | Information about the build project that was created. cprsProject :: Lens' CreateProjectResponse (Maybe Project)-cprsProject = lens _cprsProject (\ s a -> s{_cprsProject = a});+cprsProject = lens _cprsProject (\ s a -> s{_cprsProject = a})  -- | -- | The response status code. cprsResponseStatus :: Lens' CreateProjectResponse Int-cprsResponseStatus = lens _cprsResponseStatus (\ s a -> s{_cprsResponseStatus = a});+cprsResponseStatus = lens _cprsResponseStatus (\ s a -> s{_cprsResponseStatus = a})  instance NFData CreateProjectResponse where
gen/Network/AWS/CodeBuild/CreateWebhook.hs view
@@ -12,7 +12,7 @@  -- | -- Module      : Network.AWS.CodeBuild.CreateWebhook--- Copyright   : (c) 2013-2017 Brendan Hay+-- Copyright   : (c) 2013-2018 Brendan Hay -- License     : Mozilla Public License, v. 2.0. -- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated@@ -21,7 +21,7 @@ -- For an existing AWS CodeBuild build project that has its source code stored in a GitHub repository, enables AWS CodeBuild to begin automatically rebuilding the source code every time a code change is pushed to the repository. -- ----- /Important:/ If you enable webhooks for an AWS CodeBuild project, and the project is used as a build step in AWS CodePipeline, then two identical builds will be created for each commit. One build is triggered through webhooks, and one through AWS CodePipeline. Because billing is on a per-build basis, you will be billed for both builds. Therefore, if you are using AWS CodePipeline, we recommend that you disable webhooks in CodeBuild. In the AWS CodeBuild console, clear the Webhook box. For more information, see step 9 in <http://docs.aws.amazon.com/codebuild/latest/userguide/change-project.html#change-project-console Change a Build Project’s Settings> .+-- /Important:/ If you enable webhooks for an AWS CodeBuild project, and the project is used as a build step in AWS CodePipeline, then two identical builds will be created for each commit. One build is triggered through webhooks, and one through AWS CodePipeline. Because billing is on a per-build basis, you will be billed for both builds. Therefore, if you are using AWS CodePipeline, we recommend that you disable webhooks in CodeBuild. In the AWS CodeBuild console, clear the Webhook box. For more information, see step 9 in <http://docs.aws.amazon.com/codebuild/latest/userguide/change-project.html#change-project-console Change a Build Project's Settings> . -- module Network.AWS.CodeBuild.CreateWebhook     (@@ -29,6 +29,7 @@       createWebhook     , CreateWebhook     -- * Request Lenses+    , cwBranchFilter     , cwProjectName      -- * Destructuring the Response@@ -47,8 +48,9 @@ import Network.AWS.Response  -- | /See:/ 'createWebhook' smart constructor.-newtype CreateWebhook = CreateWebhook'-  { _cwProjectName :: Text+data CreateWebhook = CreateWebhook'+  { _cwBranchFilter :: !(Maybe Text)+  , _cwProjectName  :: !Text   } deriving (Eq, Read, Show, Data, Typeable, Generic)  @@ -56,16 +58,23 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'cwProjectName' - The name of the build project.+-- * 'cwBranchFilter' - A regular expression used to determine which branches in a repository are built when a webhook is triggered. If the name of a branch matches the regular expression, then it is built. If it doesn't match, then it is not. If branchFilter is empty, then all branches are built.+--+-- * 'cwProjectName' - The name of the AWS CodeBuild project. createWebhook     :: Text -- ^ 'cwProjectName'     -> CreateWebhook-createWebhook pProjectName_ = CreateWebhook' {_cwProjectName = pProjectName_}+createWebhook pProjectName_ =+  CreateWebhook' {_cwBranchFilter = Nothing, _cwProjectName = pProjectName_}  --- | The name of the build project.+-- | A regular expression used to determine which branches in a repository are built when a webhook is triggered. If the name of a branch matches the regular expression, then it is built. If it doesn't match, then it is not. If branchFilter is empty, then all branches are built.+cwBranchFilter :: Lens' CreateWebhook (Maybe Text)+cwBranchFilter = lens _cwBranchFilter (\ s a -> s{_cwBranchFilter = a})++-- | The name of the AWS CodeBuild project. cwProjectName :: Lens' CreateWebhook Text-cwProjectName = lens _cwProjectName (\ s a -> s{_cwProjectName = a});+cwProjectName = lens _cwProjectName (\ s a -> s{_cwProjectName = a})  instance AWSRequest CreateWebhook where         type Rs CreateWebhook = CreateWebhookResponse@@ -92,7 +101,9 @@ instance ToJSON CreateWebhook where         toJSON CreateWebhook'{..}           = object-              (catMaybes [Just ("projectName" .= _cwProjectName)])+              (catMaybes+                 [("branchFilter" .=) <$> _cwBranchFilter,+                  Just ("projectName" .= _cwProjectName)])  instance ToPath CreateWebhook where         toPath = const "/"@@ -119,15 +130,15 @@     -> CreateWebhookResponse createWebhookResponse pResponseStatus_ =   CreateWebhookResponse'-  {_cwrsWebhook = Nothing, _cwrsResponseStatus = pResponseStatus_}+    {_cwrsWebhook = Nothing, _cwrsResponseStatus = pResponseStatus_}   -- | Information about a webhook in GitHub that connects repository events to a build project in AWS CodeBuild. cwrsWebhook :: Lens' CreateWebhookResponse (Maybe Webhook)-cwrsWebhook = lens _cwrsWebhook (\ s a -> s{_cwrsWebhook = a});+cwrsWebhook = lens _cwrsWebhook (\ s a -> s{_cwrsWebhook = a})  -- | -- | The response status code. cwrsResponseStatus :: Lens' CreateWebhookResponse Int-cwrsResponseStatus = lens _cwrsResponseStatus (\ s a -> s{_cwrsResponseStatus = a});+cwrsResponseStatus = lens _cwrsResponseStatus (\ s a -> s{_cwrsResponseStatus = a})  instance NFData CreateWebhookResponse where
gen/Network/AWS/CodeBuild/DeleteProject.hs view
@@ -12,7 +12,7 @@  -- | -- Module      : Network.AWS.CodeBuild.DeleteProject--- Copyright   : (c) 2013-2017 Brendan Hay+-- Copyright   : (c) 2013-2018 Brendan Hay -- License     : Mozilla Public License, v. 2.0. -- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated@@ -62,7 +62,7 @@  -- | The name of the build project. dpName :: Lens' DeleteProject Text-dpName = lens _dpName (\ s a -> s{_dpName = a});+dpName = lens _dpName (\ s a -> s{_dpName = a})  instance AWSRequest DeleteProject where         type Rs DeleteProject = DeleteProjectResponse@@ -115,6 +115,6 @@  -- | -- | The response status code. dprsResponseStatus :: Lens' DeleteProjectResponse Int-dprsResponseStatus = lens _dprsResponseStatus (\ s a -> s{_dprsResponseStatus = a});+dprsResponseStatus = lens _dprsResponseStatus (\ s a -> s{_dprsResponseStatus = a})  instance NFData DeleteProjectResponse where
gen/Network/AWS/CodeBuild/DeleteWebhook.hs view
@@ -12,7 +12,7 @@  -- | -- Module      : Network.AWS.CodeBuild.DeleteWebhook--- Copyright   : (c) 2013-2017 Brendan Hay+-- Copyright   : (c) 2013-2018 Brendan Hay -- License     : Mozilla Public License, v. 2.0. -- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated@@ -53,16 +53,16 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'dwProjectName' - The name of the build project.+-- * 'dwProjectName' - The name of the AWS CodeBuild project. deleteWebhook     :: Text -- ^ 'dwProjectName'     -> DeleteWebhook deleteWebhook pProjectName_ = DeleteWebhook' {_dwProjectName = pProjectName_}  --- | The name of the build project.+-- | The name of the AWS CodeBuild project. dwProjectName :: Lens' DeleteWebhook Text-dwProjectName = lens _dwProjectName (\ s a -> s{_dwProjectName = a});+dwProjectName = lens _dwProjectName (\ s a -> s{_dwProjectName = a})  instance AWSRequest DeleteWebhook where         type Rs DeleteWebhook = DeleteWebhookResponse@@ -116,6 +116,6 @@  -- | -- | The response status code. dwrsResponseStatus :: Lens' DeleteWebhookResponse Int-dwrsResponseStatus = lens _dwrsResponseStatus (\ s a -> s{_dwrsResponseStatus = a});+dwrsResponseStatus = lens _dwrsResponseStatus (\ s a -> s{_dwrsResponseStatus = a})  instance NFData DeleteWebhookResponse where
+ gen/Network/AWS/CodeBuild/InvalidateProjectCache.hs view
@@ -0,0 +1,125 @@+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric      #-}+{-# LANGUAGE OverloadedStrings  #-}+{-# LANGUAGE RecordWildCards    #-}+{-# LANGUAGE TypeFamilies       #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds   #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Network.AWS.CodeBuild.InvalidateProjectCache+-- Copyright   : (c) 2013-2018 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)+--+-- Resets the cache for a project.+--+--+module Network.AWS.CodeBuild.InvalidateProjectCache+    (+    -- * Creating a Request+      invalidateProjectCache+    , InvalidateProjectCache+    -- * Request Lenses+    , ipcProjectName++    -- * Destructuring the Response+    , invalidateProjectCacheResponse+    , InvalidateProjectCacheResponse+    -- * Response Lenses+    , ipcrsResponseStatus+    ) where++import Network.AWS.CodeBuild.Types+import Network.AWS.CodeBuild.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | /See:/ 'invalidateProjectCache' smart constructor.+newtype InvalidateProjectCache = InvalidateProjectCache'+  { _ipcProjectName :: Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'InvalidateProjectCache' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'ipcProjectName' - The name of the AWS CodeBuild build project that the cache will be reset for.+invalidateProjectCache+    :: Text -- ^ 'ipcProjectName'+    -> InvalidateProjectCache+invalidateProjectCache pProjectName_ =+  InvalidateProjectCache' {_ipcProjectName = pProjectName_}+++-- | The name of the AWS CodeBuild build project that the cache will be reset for.+ipcProjectName :: Lens' InvalidateProjectCache Text+ipcProjectName = lens _ipcProjectName (\ s a -> s{_ipcProjectName = a})++instance AWSRequest InvalidateProjectCache where+        type Rs InvalidateProjectCache =+             InvalidateProjectCacheResponse+        request = postJSON codeBuild+        response+          = receiveEmpty+              (\ s h x ->+                 InvalidateProjectCacheResponse' <$>+                   (pure (fromEnum s)))++instance Hashable InvalidateProjectCache where++instance NFData InvalidateProjectCache where++instance ToHeaders InvalidateProjectCache where+        toHeaders+          = const+              (mconcat+                 ["X-Amz-Target" =#+                    ("CodeBuild_20161006.InvalidateProjectCache" ::+                       ByteString),+                  "Content-Type" =#+                    ("application/x-amz-json-1.1" :: ByteString)])++instance ToJSON InvalidateProjectCache where+        toJSON InvalidateProjectCache'{..}+          = object+              (catMaybes [Just ("projectName" .= _ipcProjectName)])++instance ToPath InvalidateProjectCache where+        toPath = const "/"++instance ToQuery InvalidateProjectCache where+        toQuery = const mempty++-- | /See:/ 'invalidateProjectCacheResponse' smart constructor.+newtype InvalidateProjectCacheResponse = InvalidateProjectCacheResponse'+  { _ipcrsResponseStatus :: Int+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'InvalidateProjectCacheResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'ipcrsResponseStatus' - -- | The response status code.+invalidateProjectCacheResponse+    :: Int -- ^ 'ipcrsResponseStatus'+    -> InvalidateProjectCacheResponse+invalidateProjectCacheResponse pResponseStatus_ =+  InvalidateProjectCacheResponse' {_ipcrsResponseStatus = pResponseStatus_}+++-- | -- | The response status code.+ipcrsResponseStatus :: Lens' InvalidateProjectCacheResponse Int+ipcrsResponseStatus = lens _ipcrsResponseStatus (\ s a -> s{_ipcrsResponseStatus = a})++instance NFData InvalidateProjectCacheResponse where
gen/Network/AWS/CodeBuild/ListBuilds.hs view
@@ -12,7 +12,7 @@  -- | -- Module      : Network.AWS.CodeBuild.ListBuilds--- Copyright   : (c) 2013-2017 Brendan Hay+-- Copyright   : (c) 2013-2018 Brendan Hay -- License     : Mozilla Public License, v. 2.0. -- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated@@ -70,11 +70,11 @@  -- | The order to list build IDs. Valid values include:     * @ASCENDING@ : List the build IDs in ascending order by build ID.     * @DESCENDING@ : List the build IDs in descending order by build ID. lbSortOrder :: Lens' ListBuilds (Maybe SortOrderType)-lbSortOrder = lens _lbSortOrder (\ s a -> s{_lbSortOrder = a});+lbSortOrder = lens _lbSortOrder (\ s a -> s{_lbSortOrder = a})  -- | During a previous call, if there are more than 100 items in the list, only the first 100 items are returned, along with a unique string called a /next token/ . To get the next batch of items in the list, call this operation again, adding the next token to the call. To get all of the items in the list, keep calling this operation with each subsequent next token that is returned, until no more next tokens are returned. lbNextToken :: Lens' ListBuilds (Maybe Text)-lbNextToken = lens _lbNextToken (\ s a -> s{_lbNextToken = a});+lbNextToken = lens _lbNextToken (\ s a -> s{_lbNextToken = a})  instance AWSPager ListBuilds where         page rq rs@@ -141,22 +141,22 @@     -> ListBuildsResponse listBuildsResponse pResponseStatus_ =   ListBuildsResponse'-  { _lbrsIds = Nothing-  , _lbrsNextToken = Nothing-  , _lbrsResponseStatus = pResponseStatus_-  }+    { _lbrsIds = Nothing+    , _lbrsNextToken = Nothing+    , _lbrsResponseStatus = pResponseStatus_+    }   -- | A list of build IDs, with each build ID representing a single build. lbrsIds :: Lens' ListBuildsResponse (Maybe (NonEmpty Text))-lbrsIds = lens _lbrsIds (\ s a -> s{_lbrsIds = a}) . mapping _List1;+lbrsIds = lens _lbrsIds (\ s a -> s{_lbrsIds = a}) . mapping _List1  -- | If there are more than 100 items in the list, only the first 100 items are returned, along with a unique string called a /next token/ . To get the next batch of items in the list, call this operation again, adding the next token to the call. lbrsNextToken :: Lens' ListBuildsResponse (Maybe Text)-lbrsNextToken = lens _lbrsNextToken (\ s a -> s{_lbrsNextToken = a});+lbrsNextToken = lens _lbrsNextToken (\ s a -> s{_lbrsNextToken = a})  -- | -- | The response status code. lbrsResponseStatus :: Lens' ListBuildsResponse Int-lbrsResponseStatus = lens _lbrsResponseStatus (\ s a -> s{_lbrsResponseStatus = a});+lbrsResponseStatus = lens _lbrsResponseStatus (\ s a -> s{_lbrsResponseStatus = a})  instance NFData ListBuildsResponse where
gen/Network/AWS/CodeBuild/ListBuildsForProject.hs view
@@ -12,7 +12,7 @@  -- | -- Module      : Network.AWS.CodeBuild.ListBuildsForProject--- Copyright   : (c) 2013-2017 Brendan Hay+-- Copyright   : (c) 2013-2018 Brendan Hay -- License     : Mozilla Public License, v. 2.0. -- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated@@ -66,29 +66,29 @@ -- -- * 'lbfpNextToken' - During a previous call, if there are more than 100 items in the list, only the first 100 items are returned, along with a unique string called a /next token/ . To get the next batch of items in the list, call this operation again, adding the next token to the call. To get all of the items in the list, keep calling this operation with each subsequent next token that is returned, until no more next tokens are returned. ----- * 'lbfpProjectName' - The name of the build project.+-- * 'lbfpProjectName' - The name of the AWS CodeBuild project. listBuildsForProject     :: Text -- ^ 'lbfpProjectName'     -> ListBuildsForProject listBuildsForProject pProjectName_ =   ListBuildsForProject'-  { _lbfpSortOrder = Nothing-  , _lbfpNextToken = Nothing-  , _lbfpProjectName = pProjectName_-  }+    { _lbfpSortOrder = Nothing+    , _lbfpNextToken = Nothing+    , _lbfpProjectName = pProjectName_+    }   -- | The order to list build IDs. Valid values include:     * @ASCENDING@ : List the build IDs in ascending order by build ID.     * @DESCENDING@ : List the build IDs in descending order by build ID. lbfpSortOrder :: Lens' ListBuildsForProject (Maybe SortOrderType)-lbfpSortOrder = lens _lbfpSortOrder (\ s a -> s{_lbfpSortOrder = a});+lbfpSortOrder = lens _lbfpSortOrder (\ s a -> s{_lbfpSortOrder = a})  -- | During a previous call, if there are more than 100 items in the list, only the first 100 items are returned, along with a unique string called a /next token/ . To get the next batch of items in the list, call this operation again, adding the next token to the call. To get all of the items in the list, keep calling this operation with each subsequent next token that is returned, until no more next tokens are returned. lbfpNextToken :: Lens' ListBuildsForProject (Maybe Text)-lbfpNextToken = lens _lbfpNextToken (\ s a -> s{_lbfpNextToken = a});+lbfpNextToken = lens _lbfpNextToken (\ s a -> s{_lbfpNextToken = a}) --- | The name of the build project.+-- | The name of the AWS CodeBuild project. lbfpProjectName :: Lens' ListBuildsForProject Text-lbfpProjectName = lens _lbfpProjectName (\ s a -> s{_lbfpProjectName = a});+lbfpProjectName = lens _lbfpProjectName (\ s a -> s{_lbfpProjectName = a})  instance AWSPager ListBuildsForProject where         page rq rs@@ -158,22 +158,22 @@     -> ListBuildsForProjectResponse listBuildsForProjectResponse pResponseStatus_ =   ListBuildsForProjectResponse'-  { _lbfprsIds = Nothing-  , _lbfprsNextToken = Nothing-  , _lbfprsResponseStatus = pResponseStatus_-  }+    { _lbfprsIds = Nothing+    , _lbfprsNextToken = Nothing+    , _lbfprsResponseStatus = pResponseStatus_+    }   -- | A list of build IDs for the specified build project, with each build ID representing a single build. lbfprsIds :: Lens' ListBuildsForProjectResponse (Maybe (NonEmpty Text))-lbfprsIds = lens _lbfprsIds (\ s a -> s{_lbfprsIds = a}) . mapping _List1;+lbfprsIds = lens _lbfprsIds (\ s a -> s{_lbfprsIds = a}) . mapping _List1  -- | If there are more than 100 items in the list, only the first 100 items are returned, along with a unique string called a /next token/ . To get the next batch of items in the list, call this operation again, adding the next token to the call. lbfprsNextToken :: Lens' ListBuildsForProjectResponse (Maybe Text)-lbfprsNextToken = lens _lbfprsNextToken (\ s a -> s{_lbfprsNextToken = a});+lbfprsNextToken = lens _lbfprsNextToken (\ s a -> s{_lbfprsNextToken = a})  -- | -- | The response status code. lbfprsResponseStatus :: Lens' ListBuildsForProjectResponse Int-lbfprsResponseStatus = lens _lbfprsResponseStatus (\ s a -> s{_lbfprsResponseStatus = a});+lbfprsResponseStatus = lens _lbfprsResponseStatus (\ s a -> s{_lbfprsResponseStatus = a})  instance NFData ListBuildsForProjectResponse where
gen/Network/AWS/CodeBuild/ListCuratedEnvironmentImages.hs view
@@ -12,7 +12,7 @@  -- | -- Module      : Network.AWS.CodeBuild.ListCuratedEnvironmentImages--- Copyright   : (c) 2013-2017 Brendan Hay+-- Copyright   : (c) 2013-2018 Brendan Hay -- License     : Mozilla Public License, v. 2.0. -- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated@@ -109,16 +109,16 @@     -> ListCuratedEnvironmentImagesResponse listCuratedEnvironmentImagesResponse pResponseStatus_ =   ListCuratedEnvironmentImagesResponse'-  {_lceirsPlatforms = Nothing, _lceirsResponseStatus = pResponseStatus_}+    {_lceirsPlatforms = Nothing, _lceirsResponseStatus = pResponseStatus_}   -- | Information about supported platforms for Docker images that are managed by AWS CodeBuild. lceirsPlatforms :: Lens' ListCuratedEnvironmentImagesResponse [EnvironmentPlatform]-lceirsPlatforms = lens _lceirsPlatforms (\ s a -> s{_lceirsPlatforms = a}) . _Default . _Coerce;+lceirsPlatforms = lens _lceirsPlatforms (\ s a -> s{_lceirsPlatforms = a}) . _Default . _Coerce  -- | -- | The response status code. lceirsResponseStatus :: Lens' ListCuratedEnvironmentImagesResponse Int-lceirsResponseStatus = lens _lceirsResponseStatus (\ s a -> s{_lceirsResponseStatus = a});+lceirsResponseStatus = lens _lceirsResponseStatus (\ s a -> s{_lceirsResponseStatus = a})  instance NFData ListCuratedEnvironmentImagesResponse          where
gen/Network/AWS/CodeBuild/ListProjects.hs view
@@ -12,7 +12,7 @@  -- | -- Module      : Network.AWS.CodeBuild.ListProjects--- Copyright   : (c) 2013-2017 Brendan Hay+-- Copyright   : (c) 2013-2018 Brendan Hay -- License     : Mozilla Public License, v. 2.0. -- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated@@ -71,20 +71,20 @@     :: ListProjects listProjects =   ListProjects'-  {_lpSortOrder = Nothing, _lpNextToken = Nothing, _lpSortBy = Nothing}+    {_lpSortOrder = Nothing, _lpNextToken = Nothing, _lpSortBy = Nothing}   -- | The order in which to list build projects. Valid values include:     * @ASCENDING@ : List the build project names in ascending order.     * @DESCENDING@ : List the build project names in descending order. Use @sortBy@ to specify the criterion to be used to list build project names. lpSortOrder :: Lens' ListProjects (Maybe SortOrderType)-lpSortOrder = lens _lpSortOrder (\ s a -> s{_lpSortOrder = a});+lpSortOrder = lens _lpSortOrder (\ s a -> s{_lpSortOrder = a})  -- | During a previous call, if there are more than 100 items in the list, only the first 100 items are returned, along with a unique string called a /next token/ . To get the next batch of items in the list, call this operation again, adding the next token to the call. To get all of the items in the list, keep calling this operation with each subsequent next token that is returned, until no more next tokens are returned. lpNextToken :: Lens' ListProjects (Maybe Text)-lpNextToken = lens _lpNextToken (\ s a -> s{_lpNextToken = a});+lpNextToken = lens _lpNextToken (\ s a -> s{_lpNextToken = a})  -- | The criterion to be used to list build project names. Valid values include:     * @CREATED_TIME@ : List the build project names based on when each build project was created.     * @LAST_MODIFIED_TIME@ : List the build project names based on when information about each build project was last changed.     * @NAME@ : List the build project names based on each build project's name. Use @sortOrder@ to specify in what order to list the build project names based on the preceding criteria. lpSortBy :: Lens' ListProjects (Maybe ProjectSortByType)-lpSortBy = lens _lpSortBy (\ s a -> s{_lpSortBy = a});+lpSortBy = lens _lpSortBy (\ s a -> s{_lpSortBy = a})  instance AWSPager ListProjects where         page rq rs@@ -152,22 +152,22 @@     -> ListProjectsResponse listProjectsResponse pResponseStatus_ =   ListProjectsResponse'-  { _lprsNextToken = Nothing-  , _lprsProjects = Nothing-  , _lprsResponseStatus = pResponseStatus_-  }+    { _lprsNextToken = Nothing+    , _lprsProjects = Nothing+    , _lprsResponseStatus = pResponseStatus_+    }   -- | If there are more than 100 items in the list, only the first 100 items are returned, along with a unique string called a /next token/ . To get the next batch of items in the list, call this operation again, adding the next token to the call. lprsNextToken :: Lens' ListProjectsResponse (Maybe Text)-lprsNextToken = lens _lprsNextToken (\ s a -> s{_lprsNextToken = a});+lprsNextToken = lens _lprsNextToken (\ s a -> s{_lprsNextToken = a})  -- | The list of build project names, with each build project name representing a single build project. lprsProjects :: Lens' ListProjectsResponse (Maybe (NonEmpty Text))-lprsProjects = lens _lprsProjects (\ s a -> s{_lprsProjects = a}) . mapping _List1;+lprsProjects = lens _lprsProjects (\ s a -> s{_lprsProjects = a}) . mapping _List1  -- | -- | The response status code. lprsResponseStatus :: Lens' ListProjectsResponse Int-lprsResponseStatus = lens _lprsResponseStatus (\ s a -> s{_lprsResponseStatus = a});+lprsResponseStatus = lens _lprsResponseStatus (\ s a -> s{_lprsResponseStatus = a})  instance NFData ListProjectsResponse where
gen/Network/AWS/CodeBuild/StartBuild.hs view
@@ -12,7 +12,7 @@  -- | -- Module      : Network.AWS.CodeBuild.StartBuild--- Copyright   : (c) 2013-2017 Brendan Hay+-- Copyright   : (c) 2013-2018 Brendan Hay -- License     : Mozilla Public License, v. 2.0. -- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated@@ -29,6 +29,7 @@     -- * Request Lenses     , sbEnvironmentVariablesOverride     , sbTimeoutInMinutesOverride+    , sbGitCloneDepthOverride     , sbSourceVersion     , sbBuildspecOverride     , sbArtifactsOverride@@ -53,6 +54,7 @@ data StartBuild = StartBuild'   { _sbEnvironmentVariablesOverride :: !(Maybe [EnvironmentVariable])   , _sbTimeoutInMinutesOverride     :: !(Maybe Nat)+  , _sbGitCloneDepthOverride        :: !(Maybe Nat)   , _sbSourceVersion                :: !(Maybe Text)   , _sbBuildspecOverride            :: !(Maybe Text)   , _sbArtifactsOverride            :: !(Maybe ProjectArtifacts)@@ -68,50 +70,57 @@ -- -- * 'sbTimeoutInMinutesOverride' - The number of build timeout minutes, from 5 to 480 (8 hours), that overrides, for this build only, the latest setting already defined in the build project. --+-- * 'sbGitCloneDepthOverride' - The user-defined depth of history, with a minimum value of 0, that overrides, for this build only, any previous depth of history defined in the build project.+-- -- * 'sbSourceVersion' - A version of the build input to be built, for this build only. If not specified, the latest version will be used. If specified, must be one of:     * For AWS CodeCommit: the commit ID to use.     * For GitHub: the commit ID, pull request ID, branch name, or tag name that corresponds to the version of the source code you want to build. If a pull request ID is specified, it must use the format @pr/pull-request-ID@ (for example @pr/25@ ). If a branch name is specified, the branch's HEAD commit ID will be used. If not specified, the default branch's HEAD commit ID will be used.     * For Bitbucket: the commit ID, branch name, or tag name that corresponds to the version of the source code you want to build. If a branch name is specified, the branch's HEAD commit ID will be used. If not specified, the default branch's HEAD commit ID will be used.     * For Amazon Simple Storage Service (Amazon S3): the version ID of the object representing the build input ZIP file to use. -- -- * 'sbBuildspecOverride' - A build spec declaration that overrides, for this build only, the latest one already defined in the build project. -- -- * 'sbArtifactsOverride' - Build output artifact settings that override, for this build only, the latest ones already defined in the build project. ----- * 'sbProjectName' - The name of the build project to start running a build.+-- * 'sbProjectName' - The name of the AWS CodeBuild build project to start running a build. startBuild     :: Text -- ^ 'sbProjectName'     -> StartBuild startBuild pProjectName_ =   StartBuild'-  { _sbEnvironmentVariablesOverride = Nothing-  , _sbTimeoutInMinutesOverride = Nothing-  , _sbSourceVersion = Nothing-  , _sbBuildspecOverride = Nothing-  , _sbArtifactsOverride = Nothing-  , _sbProjectName = pProjectName_-  }+    { _sbEnvironmentVariablesOverride = Nothing+    , _sbTimeoutInMinutesOverride = Nothing+    , _sbGitCloneDepthOverride = Nothing+    , _sbSourceVersion = Nothing+    , _sbBuildspecOverride = Nothing+    , _sbArtifactsOverride = Nothing+    , _sbProjectName = pProjectName_+    }   -- | A set of environment variables that overrides, for this build only, the latest ones already defined in the build project. sbEnvironmentVariablesOverride :: Lens' StartBuild [EnvironmentVariable]-sbEnvironmentVariablesOverride = lens _sbEnvironmentVariablesOverride (\ s a -> s{_sbEnvironmentVariablesOverride = a}) . _Default . _Coerce;+sbEnvironmentVariablesOverride = lens _sbEnvironmentVariablesOverride (\ s a -> s{_sbEnvironmentVariablesOverride = a}) . _Default . _Coerce  -- | The number of build timeout minutes, from 5 to 480 (8 hours), that overrides, for this build only, the latest setting already defined in the build project. sbTimeoutInMinutesOverride :: Lens' StartBuild (Maybe Natural)-sbTimeoutInMinutesOverride = lens _sbTimeoutInMinutesOverride (\ s a -> s{_sbTimeoutInMinutesOverride = a}) . mapping _Nat;+sbTimeoutInMinutesOverride = lens _sbTimeoutInMinutesOverride (\ s a -> s{_sbTimeoutInMinutesOverride = a}) . mapping _Nat +-- | The user-defined depth of history, with a minimum value of 0, that overrides, for this build only, any previous depth of history defined in the build project.+sbGitCloneDepthOverride :: Lens' StartBuild (Maybe Natural)+sbGitCloneDepthOverride = lens _sbGitCloneDepthOverride (\ s a -> s{_sbGitCloneDepthOverride = a}) . mapping _Nat+ -- | A version of the build input to be built, for this build only. If not specified, the latest version will be used. If specified, must be one of:     * For AWS CodeCommit: the commit ID to use.     * For GitHub: the commit ID, pull request ID, branch name, or tag name that corresponds to the version of the source code you want to build. If a pull request ID is specified, it must use the format @pr/pull-request-ID@ (for example @pr/25@ ). If a branch name is specified, the branch's HEAD commit ID will be used. If not specified, the default branch's HEAD commit ID will be used.     * For Bitbucket: the commit ID, branch name, or tag name that corresponds to the version of the source code you want to build. If a branch name is specified, the branch's HEAD commit ID will be used. If not specified, the default branch's HEAD commit ID will be used.     * For Amazon Simple Storage Service (Amazon S3): the version ID of the object representing the build input ZIP file to use. sbSourceVersion :: Lens' StartBuild (Maybe Text)-sbSourceVersion = lens _sbSourceVersion (\ s a -> s{_sbSourceVersion = a});+sbSourceVersion = lens _sbSourceVersion (\ s a -> s{_sbSourceVersion = a})  -- | A build spec declaration that overrides, for this build only, the latest one already defined in the build project. sbBuildspecOverride :: Lens' StartBuild (Maybe Text)-sbBuildspecOverride = lens _sbBuildspecOverride (\ s a -> s{_sbBuildspecOverride = a});+sbBuildspecOverride = lens _sbBuildspecOverride (\ s a -> s{_sbBuildspecOverride = a})  -- | Build output artifact settings that override, for this build only, the latest ones already defined in the build project. sbArtifactsOverride :: Lens' StartBuild (Maybe ProjectArtifacts)-sbArtifactsOverride = lens _sbArtifactsOverride (\ s a -> s{_sbArtifactsOverride = a});+sbArtifactsOverride = lens _sbArtifactsOverride (\ s a -> s{_sbArtifactsOverride = a}) --- | The name of the build project to start running a build.+-- | The name of the AWS CodeBuild build project to start running a build. sbProjectName :: Lens' StartBuild Text-sbProjectName = lens _sbProjectName (\ s a -> s{_sbProjectName = a});+sbProjectName = lens _sbProjectName (\ s a -> s{_sbProjectName = a})  instance AWSRequest StartBuild where         type Rs StartBuild = StartBuildResponse@@ -143,6 +152,8 @@                     _sbEnvironmentVariablesOverride,                   ("timeoutInMinutesOverride" .=) <$>                     _sbTimeoutInMinutesOverride,+                  ("gitCloneDepthOverride" .=) <$>+                    _sbGitCloneDepthOverride,                   ("sourceVersion" .=) <$> _sbSourceVersion,                   ("buildspecOverride" .=) <$> _sbBuildspecOverride,                   ("artifactsOverride" .=) <$> _sbArtifactsOverride,@@ -173,15 +184,15 @@     -> StartBuildResponse startBuildResponse pResponseStatus_ =   StartBuildResponse'-  {_srsBuild = Nothing, _srsResponseStatus = pResponseStatus_}+    {_srsBuild = Nothing, _srsResponseStatus = pResponseStatus_}   -- | Information about the build to be run. srsBuild :: Lens' StartBuildResponse (Maybe Build)-srsBuild = lens _srsBuild (\ s a -> s{_srsBuild = a});+srsBuild = lens _srsBuild (\ s a -> s{_srsBuild = a})  -- | -- | The response status code. srsResponseStatus :: Lens' StartBuildResponse Int-srsResponseStatus = lens _srsResponseStatus (\ s a -> s{_srsResponseStatus = a});+srsResponseStatus = lens _srsResponseStatus (\ s a -> s{_srsResponseStatus = a})  instance NFData StartBuildResponse where
gen/Network/AWS/CodeBuild/StopBuild.hs view
@@ -12,7 +12,7 @@  -- | -- Module      : Network.AWS.CodeBuild.StopBuild--- Copyright   : (c) 2013-2017 Brendan Hay+-- Copyright   : (c) 2013-2018 Brendan Hay -- License     : Mozilla Public License, v. 2.0. -- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated@@ -63,7 +63,7 @@  -- | The ID of the build. sbId :: Lens' StopBuild Text-sbId = lens _sbId (\ s a -> s{_sbId = a});+sbId = lens _sbId (\ s a -> s{_sbId = a})  instance AWSRequest StopBuild where         type Rs StopBuild = StopBuildResponse@@ -116,15 +116,15 @@     -> StopBuildResponse stopBuildResponse pResponseStatus_ =   StopBuildResponse'-  {_sbrsBuild = Nothing, _sbrsResponseStatus = pResponseStatus_}+    {_sbrsBuild = Nothing, _sbrsResponseStatus = pResponseStatus_}   -- | Information about the build. sbrsBuild :: Lens' StopBuildResponse (Maybe Build)-sbrsBuild = lens _sbrsBuild (\ s a -> s{_sbrsBuild = a});+sbrsBuild = lens _sbrsBuild (\ s a -> s{_sbrsBuild = a})  -- | -- | The response status code. sbrsResponseStatus :: Lens' StopBuildResponse Int-sbrsResponseStatus = lens _sbrsResponseStatus (\ s a -> s{_sbrsResponseStatus = a});+sbrsResponseStatus = lens _sbrsResponseStatus (\ s a -> s{_sbrsResponseStatus = a})  instance NFData StopBuildResponse where
gen/Network/AWS/CodeBuild/Types.hs view
@@ -4,7 +4,7 @@  -- | -- Module      : Network.AWS.CodeBuild.Types--- Copyright   : (c) 2013-2017 Brendan Hay+-- Copyright   : (c) 2013-2018 Brendan Hay -- License     : Mozilla Public License, v. 2.0. -- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated@@ -34,6 +34,9 @@     -- * BuildPhaseType     , BuildPhaseType (..) +    -- * CacheType+    , CacheType (..)+     -- * ComputeType     , ComputeType (..) @@ -74,9 +77,12 @@     , bArtifacts     , bEnvironment     , bInitiator+    , bNetworkInterface     , bCurrentPhase+    , bCache     , bSourceVersion     , bLogs+    , bVpcConfig     , bEndTime     , bProjectName     , bBuildStatus@@ -110,6 +116,7 @@     -- * EnvironmentImage     , EnvironmentImage     , environmentImage+    , eiVersions     , eiName     , eiDescription @@ -139,6 +146,12 @@     , llGroupName     , llStreamName +    -- * NetworkInterface+    , NetworkInterface+    , networkInterface+    , niSubnetId+    , niNetworkInterfaceId+     -- * PhaseContext     , PhaseContext     , phaseContext@@ -152,8 +165,11 @@     , pArtifacts     , pEnvironment     , pCreated+    , pCache     , pName+    , pVpcConfig     , pSource+    , pBadge     , pEncryptionKey     , pLastModified     , pWebhook@@ -172,10 +188,23 @@     , paNamespaceType     , paType +    -- * ProjectBadge+    , ProjectBadge+    , projectBadge+    , pbBadgeEnabled+    , pbBadgeRequestURL++    -- * ProjectCache+    , ProjectCache+    , projectCache+    , pcLocation+    , pcType+     -- * ProjectEnvironment     , ProjectEnvironment     , projectEnvironment     , pePrivilegedMode+    , peCertificate     , peEnvironmentVariables     , peType     , peImage@@ -184,9 +213,11 @@     -- * ProjectSource     , ProjectSource     , projectSource+    , psInsecureSSL     , psLocation     , psAuth     , psBuildspec+    , psGitCloneDepth     , psType      -- * SourceAuth@@ -201,10 +232,21 @@     , tagValue     , tagKey +    -- * VPCConfig+    , VPCConfig+    , vpcConfig+    , vcSecurityGroupIds+    , vcVpcId+    , vcSubnets+     -- * Webhook     , Webhook     , webhook+    , wBranchFilter+    , wLastModifiedSecret     , wUrl+    , wSecret+    , wPayloadURL     ) where  import Network.AWS.CodeBuild.Types.Product@@ -217,24 +259,24 @@ codeBuild :: Service codeBuild =   Service-  { _svcAbbrev = "CodeBuild"-  , _svcSigner = v4-  , _svcPrefix = "codebuild"-  , _svcVersion = "2016-10-06"-  , _svcEndpoint = defaultEndpoint codeBuild-  , _svcTimeout = Just 70-  , _svcCheck = statusSuccess-  , _svcError = parseJSONError "CodeBuild"-  , _svcRetry = retry-  }+    { _svcAbbrev = "CodeBuild"+    , _svcSigner = v4+    , _svcPrefix = "codebuild"+    , _svcVersion = "2016-10-06"+    , _svcEndpoint = defaultEndpoint codeBuild+    , _svcTimeout = Just 70+    , _svcCheck = statusSuccess+    , _svcError = parseJSONError "CodeBuild"+    , _svcRetry = retry+    }   where     retry =       Exponential-      { _retryBase = 5.0e-2-      , _retryGrowth = 2-      , _retryAttempts = 5-      , _retryCheck = check-      }+        { _retryBase = 5.0e-2+        , _retryGrowth = 2+        , _retryAttempts = 5+        , _retryCheck = check+        }     check e       | has (hasCode "ThrottledException" . hasStatus 400) e =         Just "throttled_exception"@@ -243,6 +285,8 @@         Just "throttling_exception"       | has (hasCode "Throttling" . hasStatus 400) e = Just "throttling"       | has (hasStatus 504) e = Just "gateway_timeout"+      | has (hasCode "RequestThrottledException" . hasStatus 400) e =+        Just "request_throttled_exception"       | has (hasStatus 502) e = Just "bad_gateway"       | has (hasStatus 503) e = Just "service_unavailable"       | has (hasStatus 500) e = Just "general_server_error"
gen/Network/AWS/CodeBuild/Types/Product.hs view
@@ -9,7 +9,7 @@  -- | -- Module      : Network.AWS.CodeBuild.Types.Product--- Copyright   : (c) 2013-2017 Brendan Hay+-- Copyright   : (c) 2013-2018 Brendan Hay -- License     : Mozilla Public License, v. 2.0. -- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated@@ -34,9 +34,12 @@   , _bArtifacts        :: !(Maybe BuildArtifacts)   , _bEnvironment      :: !(Maybe ProjectEnvironment)   , _bInitiator        :: !(Maybe Text)+  , _bNetworkInterface :: !(Maybe NetworkInterface)   , _bCurrentPhase     :: !(Maybe Text)+  , _bCache            :: !(Maybe ProjectCache)   , _bSourceVersion    :: !(Maybe Text)   , _bLogs             :: !(Maybe LogsLocation)+  , _bVpcConfig        :: !(Maybe VPCConfig)   , _bEndTime          :: !(Maybe POSIX)   , _bProjectName      :: !(Maybe Text)   , _bBuildStatus      :: !(Maybe StatusType)@@ -64,15 +67,21 @@ -- -- * 'bInitiator' - The entity that started the build. Valid values include:     * If AWS CodePipeline started the build, the pipeline's name (for example, @codepipeline/my-demo-pipeline@ ).     * If an AWS Identity and Access Management (IAM) user started the build, the user's name (for example @MyUserName@ ).     * If the Jenkins plugin for AWS CodeBuild started the build, the string @CodeBuild-Jenkins-Plugin@ . --+-- * 'bNetworkInterface' - Describes a network interface.+-- -- * 'bCurrentPhase' - The current build phase. --+-- * 'bCache' - Information about the cache for the build.+-- -- * 'bSourceVersion' - Any version identifier for the version of the source code to be built. -- -- * 'bLogs' - Information about the build's logs in Amazon CloudWatch Logs. --+-- * 'bVpcConfig' - If your AWS CodeBuild project accesses resources in an Amazon VPC, you provide this parameter that identifies the VPC ID and the list of security group IDs and subnet IDs. The security groups and subnets must belong to the same VPC. You must provide at least one security group and one subnet ID.+-- -- * 'bEndTime' - When the build process ended, expressed in Unix time format. ----- * 'bProjectName' - The name of the build project.+-- * 'bProjectName' - The name of the AWS CodeBuild project. -- -- * 'bBuildStatus' - The current status of the build. Valid values include:     * @FAILED@ : The build failed.     * @FAULT@ : The build faulted.     * @IN_PROGRESS@ : The build is still in progress.     * @STOPPED@ : The build stopped.     * @SUCCEEDED@ : The build succeeded.     * @TIMED_OUT@ : The build timed out. --@@ -85,88 +94,103 @@     :: Build build =   Build'-  { _bPhases = Nothing-  , _bBuildComplete = Nothing-  , _bArn = Nothing-  , _bStartTime = Nothing-  , _bArtifacts = Nothing-  , _bEnvironment = Nothing-  , _bInitiator = Nothing-  , _bCurrentPhase = Nothing-  , _bSourceVersion = Nothing-  , _bLogs = Nothing-  , _bEndTime = Nothing-  , _bProjectName = Nothing-  , _bBuildStatus = Nothing-  , _bSource = Nothing-  , _bId = Nothing-  , _bTimeoutInMinutes = Nothing-  }+    { _bPhases = Nothing+    , _bBuildComplete = Nothing+    , _bArn = Nothing+    , _bStartTime = Nothing+    , _bArtifacts = Nothing+    , _bEnvironment = Nothing+    , _bInitiator = Nothing+    , _bNetworkInterface = Nothing+    , _bCurrentPhase = Nothing+    , _bCache = Nothing+    , _bSourceVersion = Nothing+    , _bLogs = Nothing+    , _bVpcConfig = Nothing+    , _bEndTime = Nothing+    , _bProjectName = Nothing+    , _bBuildStatus = Nothing+    , _bSource = Nothing+    , _bId = Nothing+    , _bTimeoutInMinutes = Nothing+    }   -- | Information about all previous build phases that are completed and information about any current build phase that is not yet complete. bPhases :: Lens' Build [BuildPhase]-bPhases = lens _bPhases (\ s a -> s{_bPhases = a}) . _Default . _Coerce;+bPhases = lens _bPhases (\ s a -> s{_bPhases = a}) . _Default . _Coerce  -- | Whether the build has finished. True if completed; otherwise, false. bBuildComplete :: Lens' Build (Maybe Bool)-bBuildComplete = lens _bBuildComplete (\ s a -> s{_bBuildComplete = a});+bBuildComplete = lens _bBuildComplete (\ s a -> s{_bBuildComplete = a})  -- | The Amazon Resource Name (ARN) of the build. bArn :: Lens' Build (Maybe Text)-bArn = lens _bArn (\ s a -> s{_bArn = a});+bArn = lens _bArn (\ s a -> s{_bArn = a})  -- | When the build process started, expressed in Unix time format. bStartTime :: Lens' Build (Maybe UTCTime)-bStartTime = lens _bStartTime (\ s a -> s{_bStartTime = a}) . mapping _Time;+bStartTime = lens _bStartTime (\ s a -> s{_bStartTime = a}) . mapping _Time  -- | Information about the output artifacts for the build. bArtifacts :: Lens' Build (Maybe BuildArtifacts)-bArtifacts = lens _bArtifacts (\ s a -> s{_bArtifacts = a});+bArtifacts = lens _bArtifacts (\ s a -> s{_bArtifacts = a})  -- | Information about the build environment for this build. bEnvironment :: Lens' Build (Maybe ProjectEnvironment)-bEnvironment = lens _bEnvironment (\ s a -> s{_bEnvironment = a});+bEnvironment = lens _bEnvironment (\ s a -> s{_bEnvironment = a})  -- | The entity that started the build. Valid values include:     * If AWS CodePipeline started the build, the pipeline's name (for example, @codepipeline/my-demo-pipeline@ ).     * If an AWS Identity and Access Management (IAM) user started the build, the user's name (for example @MyUserName@ ).     * If the Jenkins plugin for AWS CodeBuild started the build, the string @CodeBuild-Jenkins-Plugin@ . bInitiator :: Lens' Build (Maybe Text)-bInitiator = lens _bInitiator (\ s a -> s{_bInitiator = a});+bInitiator = lens _bInitiator (\ s a -> s{_bInitiator = a}) +-- | Describes a network interface.+bNetworkInterface :: Lens' Build (Maybe NetworkInterface)+bNetworkInterface = lens _bNetworkInterface (\ s a -> s{_bNetworkInterface = a})+ -- | The current build phase. bCurrentPhase :: Lens' Build (Maybe Text)-bCurrentPhase = lens _bCurrentPhase (\ s a -> s{_bCurrentPhase = a});+bCurrentPhase = lens _bCurrentPhase (\ s a -> s{_bCurrentPhase = a}) +-- | Information about the cache for the build.+bCache :: Lens' Build (Maybe ProjectCache)+bCache = lens _bCache (\ s a -> s{_bCache = a})+ -- | Any version identifier for the version of the source code to be built. bSourceVersion :: Lens' Build (Maybe Text)-bSourceVersion = lens _bSourceVersion (\ s a -> s{_bSourceVersion = a});+bSourceVersion = lens _bSourceVersion (\ s a -> s{_bSourceVersion = a})  -- | Information about the build's logs in Amazon CloudWatch Logs. bLogs :: Lens' Build (Maybe LogsLocation)-bLogs = lens _bLogs (\ s a -> s{_bLogs = a});+bLogs = lens _bLogs (\ s a -> s{_bLogs = a}) +-- | If your AWS CodeBuild project accesses resources in an Amazon VPC, you provide this parameter that identifies the VPC ID and the list of security group IDs and subnet IDs. The security groups and subnets must belong to the same VPC. You must provide at least one security group and one subnet ID.+bVpcConfig :: Lens' Build (Maybe VPCConfig)+bVpcConfig = lens _bVpcConfig (\ s a -> s{_bVpcConfig = a})+ -- | When the build process ended, expressed in Unix time format. bEndTime :: Lens' Build (Maybe UTCTime)-bEndTime = lens _bEndTime (\ s a -> s{_bEndTime = a}) . mapping _Time;+bEndTime = lens _bEndTime (\ s a -> s{_bEndTime = a}) . mapping _Time --- | The name of the build project.+-- | The name of the AWS CodeBuild project. bProjectName :: Lens' Build (Maybe Text)-bProjectName = lens _bProjectName (\ s a -> s{_bProjectName = a});+bProjectName = lens _bProjectName (\ s a -> s{_bProjectName = a})  -- | The current status of the build. Valid values include:     * @FAILED@ : The build failed.     * @FAULT@ : The build faulted.     * @IN_PROGRESS@ : The build is still in progress.     * @STOPPED@ : The build stopped.     * @SUCCEEDED@ : The build succeeded.     * @TIMED_OUT@ : The build timed out. bBuildStatus :: Lens' Build (Maybe StatusType)-bBuildStatus = lens _bBuildStatus (\ s a -> s{_bBuildStatus = a});+bBuildStatus = lens _bBuildStatus (\ s a -> s{_bBuildStatus = a})  -- | Information about the source code to be built. bSource :: Lens' Build (Maybe ProjectSource)-bSource = lens _bSource (\ s a -> s{_bSource = a});+bSource = lens _bSource (\ s a -> s{_bSource = a})  -- | The unique ID for the build. bId :: Lens' Build (Maybe Text)-bId = lens _bId (\ s a -> s{_bId = a});+bId = lens _bId (\ s a -> s{_bId = a})  -- | How long, in minutes, for AWS CodeBuild to wait before timing out this build if it does not get marked as completed. bTimeoutInMinutes :: Lens' Build (Maybe Int)-bTimeoutInMinutes = lens _bTimeoutInMinutes (\ s a -> s{_bTimeoutInMinutes = a});+bTimeoutInMinutes = lens _bTimeoutInMinutes (\ s a -> s{_bTimeoutInMinutes = a})  instance FromJSON Build where         parseJSON@@ -180,9 +204,12 @@                      <*> (x .:? "artifacts")                      <*> (x .:? "environment")                      <*> (x .:? "initiator")+                     <*> (x .:? "networkInterface")                      <*> (x .:? "currentPhase")+                     <*> (x .:? "cache")                      <*> (x .:? "sourceVersion")                      <*> (x .:? "logs")+                     <*> (x .:? "vpcConfig")                      <*> (x .:? "endTime")                      <*> (x .:? "projectName")                      <*> (x .:? "buildStatus")@@ -219,20 +246,20 @@     :: BuildArtifacts buildArtifacts =   BuildArtifacts'-  {_baLocation = Nothing, _baMd5sum = Nothing, _baSha256sum = Nothing}+    {_baLocation = Nothing, _baMd5sum = Nothing, _baSha256sum = Nothing}   -- | Information about the location of the build artifacts. baLocation :: Lens' BuildArtifacts (Maybe Text)-baLocation = lens _baLocation (\ s a -> s{_baLocation = a});+baLocation = lens _baLocation (\ s a -> s{_baLocation = a})  -- | The MD5 hash of the build artifact. You can use this hash along with a checksum tool to confirm both file integrity and authenticity. baMd5sum :: Lens' BuildArtifacts (Maybe Text)-baMd5sum = lens _baMd5sum (\ s a -> s{_baMd5sum = a});+baMd5sum = lens _baMd5sum (\ s a -> s{_baMd5sum = a})  -- | The SHA-256 hash of the build artifact. You can use this hash along with a checksum tool to confirm both file integrity and authenticity. baSha256sum :: Lens' BuildArtifacts (Maybe Text)-baSha256sum = lens _baSha256sum (\ s a -> s{_baSha256sum = a});+baSha256sum = lens _baSha256sum (\ s a -> s{_baSha256sum = a})  instance FromJSON BuildArtifacts where         parseJSON@@ -271,11 +298,11 @@  -- | The ID of the build that could not be successfully deleted. bndId :: Lens' BuildNotDeleted (Maybe Text)-bndId = lens _bndId (\ s a -> s{_bndId = a});+bndId = lens _bndId (\ s a -> s{_bndId = a})  -- | Additional information about the build that could not be successfully deleted. bndStatusCode :: Lens' BuildNotDeleted (Maybe Text)-bndStatusCode = lens _bndStatusCode (\ s a -> s{_bndStatusCode = a});+bndStatusCode = lens _bndStatusCode (\ s a -> s{_bndStatusCode = a})  instance FromJSON BuildNotDeleted where         parseJSON@@ -322,38 +349,38 @@     :: BuildPhase buildPhase =   BuildPhase'-  { _bpContexts = Nothing-  , _bpStartTime = Nothing-  , _bpPhaseStatus = Nothing-  , _bpPhaseType = Nothing-  , _bpEndTime = Nothing-  , _bpDurationInSeconds = Nothing-  }+    { _bpContexts = Nothing+    , _bpStartTime = Nothing+    , _bpPhaseStatus = Nothing+    , _bpPhaseType = Nothing+    , _bpEndTime = Nothing+    , _bpDurationInSeconds = Nothing+    }   -- | Additional information about a build phase, especially to help troubleshoot a failed build. bpContexts :: Lens' BuildPhase [PhaseContext]-bpContexts = lens _bpContexts (\ s a -> s{_bpContexts = a}) . _Default . _Coerce;+bpContexts = lens _bpContexts (\ s a -> s{_bpContexts = a}) . _Default . _Coerce  -- | When the build phase started, expressed in Unix time format. bpStartTime :: Lens' BuildPhase (Maybe UTCTime)-bpStartTime = lens _bpStartTime (\ s a -> s{_bpStartTime = a}) . mapping _Time;+bpStartTime = lens _bpStartTime (\ s a -> s{_bpStartTime = a}) . mapping _Time  -- | The current status of the build phase. Valid values include:     * @FAILED@ : The build phase failed.     * @FAULT@ : The build phase faulted.     * @IN_PROGRESS@ : The build phase is still in progress.     * @STOPPED@ : The build phase stopped.     * @SUCCEEDED@ : The build phase succeeded.     * @TIMED_OUT@ : The build phase timed out. bpPhaseStatus :: Lens' BuildPhase (Maybe StatusType)-bpPhaseStatus = lens _bpPhaseStatus (\ s a -> s{_bpPhaseStatus = a});+bpPhaseStatus = lens _bpPhaseStatus (\ s a -> s{_bpPhaseStatus = a})  -- | The name of the build phase. Valid values include:     * @BUILD@ : Core build activities typically occur in this build phase.     * @COMPLETED@ : The build has been completed.     * @DOWNLOAD_SOURCE@ : Source code is being downloaded in this build phase.     * @FINALIZING@ : The build process is completing in this build phase.     * @INSTALL@ : Installation activities typically occur in this build phase.     * @POST_BUILD@ : Post-build activities typically occur in this build phase.     * @PRE_BUILD@ : Pre-build activities typically occur in this build phase.     * @PROVISIONING@ : The build environment is being set up.     * @SUBMITTED@ : The build has been submitted.     * @UPLOAD_ARTIFACTS@ : Build output artifacts are being uploaded to the output location. bpPhaseType :: Lens' BuildPhase (Maybe BuildPhaseType)-bpPhaseType = lens _bpPhaseType (\ s a -> s{_bpPhaseType = a});+bpPhaseType = lens _bpPhaseType (\ s a -> s{_bpPhaseType = a})  -- | When the build phase ended, expressed in Unix time format. bpEndTime :: Lens' BuildPhase (Maybe UTCTime)-bpEndTime = lens _bpEndTime (\ s a -> s{_bpEndTime = a}) . mapping _Time;+bpEndTime = lens _bpEndTime (\ s a -> s{_bpEndTime = a}) . mapping _Time  -- | How long, in seconds, between the starting and ending times of the build's phase. bpDurationInSeconds :: Lens' BuildPhase (Maybe Integer)-bpDurationInSeconds = lens _bpDurationInSeconds (\ s a -> s{_bpDurationInSeconds = a});+bpDurationInSeconds = lens _bpDurationInSeconds (\ s a -> s{_bpDurationInSeconds = a})  instance FromJSON BuildPhase where         parseJSON@@ -376,7 +403,8 @@ -- -- /See:/ 'environmentImage' smart constructor. data EnvironmentImage = EnvironmentImage'-  { _eiName        :: !(Maybe Text)+  { _eiVersions    :: !(Maybe [Text])+  , _eiName        :: !(Maybe Text)   , _eiDescription :: !(Maybe Text)   } deriving (Eq, Read, Show, Data, Typeable, Generic) @@ -385,29 +413,37 @@ -- -- Use one of the following lenses to modify other fields as desired: --+-- * 'eiVersions' - A list of environment image versions.+-- -- * 'eiName' - The name of the Docker image. -- -- * 'eiDescription' - The description of the Docker image. environmentImage     :: EnvironmentImage environmentImage =-  EnvironmentImage' {_eiName = Nothing, _eiDescription = Nothing}+  EnvironmentImage'+    {_eiVersions = Nothing, _eiName = Nothing, _eiDescription = Nothing}  +-- | A list of environment image versions.+eiVersions :: Lens' EnvironmentImage [Text]+eiVersions = lens _eiVersions (\ s a -> s{_eiVersions = a}) . _Default . _Coerce+ -- | The name of the Docker image. eiName :: Lens' EnvironmentImage (Maybe Text)-eiName = lens _eiName (\ s a -> s{_eiName = a});+eiName = lens _eiName (\ s a -> s{_eiName = a})  -- | The description of the Docker image. eiDescription :: Lens' EnvironmentImage (Maybe Text)-eiDescription = lens _eiDescription (\ s a -> s{_eiDescription = a});+eiDescription = lens _eiDescription (\ s a -> s{_eiDescription = a})  instance FromJSON EnvironmentImage where         parseJSON           = withObject "EnvironmentImage"               (\ x ->                  EnvironmentImage' <$>-                   (x .:? "name") <*> (x .:? "description"))+                   (x .:? "versions" .!= mempty) <*> (x .:? "name") <*>+                     (x .:? "description"))  instance Hashable EnvironmentImage where @@ -439,11 +475,11 @@  -- | The list of Docker images that are related by the specified programming language. elImages :: Lens' EnvironmentLanguage [EnvironmentImage]-elImages = lens _elImages (\ s a -> s{_elImages = a}) . _Default . _Coerce;+elImages = lens _elImages (\ s a -> s{_elImages = a}) . _Default . _Coerce  -- | The programming language for the Docker images. elLanguage :: Lens' EnvironmentLanguage (Maybe LanguageType)-elLanguage = lens _elLanguage (\ s a -> s{_elLanguage = a});+elLanguage = lens _elLanguage (\ s a -> s{_elLanguage = a})  instance FromJSON EnvironmentLanguage where         parseJSON@@ -482,11 +518,11 @@  -- | The platform's name. epPlatform :: Lens' EnvironmentPlatform (Maybe PlatformType)-epPlatform = lens _epPlatform (\ s a -> s{_epPlatform = a});+epPlatform = lens _epPlatform (\ s a -> s{_epPlatform = a})  -- | The list of programming languages that are available for the specified platform. epLanguages :: Lens' EnvironmentPlatform [EnvironmentLanguage]-epLanguages = lens _epLanguages (\ s a -> s{_epLanguages = a}) . _Default . _Coerce;+epLanguages = lens _epLanguages (\ s a -> s{_epLanguages = a}) . _Default . _Coerce  instance FromJSON EnvironmentPlatform where         parseJSON@@ -531,15 +567,15 @@  -- | The type of environment variable. Valid values include:     * @PARAMETER_STORE@ : An environment variable stored in Amazon EC2 Systems Manager Parameter Store.     * @PLAINTEXT@ : An environment variable in plaintext format. evType :: Lens' EnvironmentVariable (Maybe EnvironmentVariableType)-evType = lens _evType (\ s a -> s{_evType = a});+evType = lens _evType (\ s a -> s{_evType = a})  -- | The name or key of the environment variable. evName :: Lens' EnvironmentVariable Text-evName = lens _evName (\ s a -> s{_evName = a});+evName = lens _evName (\ s a -> s{_evName = a})  -- | The value of the environment variable. /Important:/ We strongly discourage using environment variables to store sensitive values, especially AWS secret key IDs and secret access keys. Environment variables can be displayed in plain text using tools such as the AWS CodeBuild console and the AWS Command Line Interface (AWS CLI). evValue :: Lens' EnvironmentVariable Text-evValue = lens _evValue (\ s a -> s{_evValue = a});+evValue = lens _evValue (\ s a -> s{_evValue = a})  instance FromJSON EnvironmentVariable where         parseJSON@@ -584,20 +620,20 @@     :: LogsLocation logsLocation =   LogsLocation'-  {_llDeepLink = Nothing, _llGroupName = Nothing, _llStreamName = Nothing}+    {_llDeepLink = Nothing, _llGroupName = Nothing, _llStreamName = Nothing}   -- | The URL to an individual build log in Amazon CloudWatch Logs. llDeepLink :: Lens' LogsLocation (Maybe Text)-llDeepLink = lens _llDeepLink (\ s a -> s{_llDeepLink = a});+llDeepLink = lens _llDeepLink (\ s a -> s{_llDeepLink = a})  -- | The name of the Amazon CloudWatch Logs group for the build logs. llGroupName :: Lens' LogsLocation (Maybe Text)-llGroupName = lens _llGroupName (\ s a -> s{_llGroupName = a});+llGroupName = lens _llGroupName (\ s a -> s{_llGroupName = a})  -- | The name of the Amazon CloudWatch Logs stream for the build logs. llStreamName :: Lens' LogsLocation (Maybe Text)-llStreamName = lens _llStreamName (\ s a -> s{_llStreamName = a});+llStreamName = lens _llStreamName (\ s a -> s{_llStreamName = a})  instance FromJSON LogsLocation where         parseJSON@@ -611,6 +647,49 @@  instance NFData LogsLocation where +-- | Describes a network interface.+--+--+--+-- /See:/ 'networkInterface' smart constructor.+data NetworkInterface = NetworkInterface'+  { _niSubnetId           :: !(Maybe Text)+  , _niNetworkInterfaceId :: !(Maybe Text)+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'NetworkInterface' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'niSubnetId' - The ID of the subnet.+--+-- * 'niNetworkInterfaceId' - The ID of the network interface.+networkInterface+    :: NetworkInterface+networkInterface =+  NetworkInterface' {_niSubnetId = Nothing, _niNetworkInterfaceId = Nothing}+++-- | The ID of the subnet.+niSubnetId :: Lens' NetworkInterface (Maybe Text)+niSubnetId = lens _niSubnetId (\ s a -> s{_niSubnetId = a})++-- | The ID of the network interface.+niNetworkInterfaceId :: Lens' NetworkInterface (Maybe Text)+niNetworkInterfaceId = lens _niNetworkInterfaceId (\ s a -> s{_niNetworkInterfaceId = a})++instance FromJSON NetworkInterface where+        parseJSON+          = withObject "NetworkInterface"+              (\ x ->+                 NetworkInterface' <$>+                   (x .:? "subnetId") <*> (x .:? "networkInterfaceId"))++instance Hashable NetworkInterface where++instance NFData NetworkInterface where+ -- | Additional information about a build phase that has an error. You can use this information to help troubleshoot a failed build. -- --@@ -636,11 +715,11 @@  -- | An explanation of the build phase's context. This explanation might include a command ID and an exit code. pcMessage :: Lens' PhaseContext (Maybe Text)-pcMessage = lens _pcMessage (\ s a -> s{_pcMessage = a});+pcMessage = lens _pcMessage (\ s a -> s{_pcMessage = a})  -- | The status code for the context of the build phase. pcStatusCode :: Lens' PhaseContext (Maybe Text)-pcStatusCode = lens _pcStatusCode (\ s a -> s{_pcStatusCode = a});+pcStatusCode = lens _pcStatusCode (\ s a -> s{_pcStatusCode = a})  instance FromJSON PhaseContext where         parseJSON@@ -663,8 +742,11 @@   , _pArtifacts        :: !(Maybe ProjectArtifacts)   , _pEnvironment      :: !(Maybe ProjectEnvironment)   , _pCreated          :: !(Maybe POSIX)+  , _pCache            :: !(Maybe ProjectCache)   , _pName             :: !(Maybe Text)+  , _pVpcConfig        :: !(Maybe VPCConfig)   , _pSource           :: !(Maybe ProjectSource)+  , _pBadge            :: !(Maybe ProjectBadge)   , _pEncryptionKey    :: !(Maybe Text)   , _pLastModified     :: !(Maybe POSIX)   , _pWebhook          :: !(Maybe Webhook)@@ -687,10 +769,16 @@ -- -- * 'pCreated' - When the build project was created, expressed in Unix time format. --+-- * 'pCache' - Information about the cache for the build project.+-- -- * 'pName' - The name of the build project. --+-- * 'pVpcConfig' - Information about the VPC configuration that AWS CodeBuild will access.+-- -- * 'pSource' - Information about the build input source code for this build project. --+-- * 'pBadge' - Information about the build badge for the build project.+-- -- * 'pEncryptionKey' - The AWS Key Management Service (AWS KMS) customer master key (CMK) to be used for encrypting the build output artifacts. This is expressed either as the CMK's Amazon Resource Name (ARN) or, if specified, the CMK's alias (using the format @alias//alias-name/ @ ). -- -- * 'pLastModified' - When the build project's settings were last modified, expressed in Unix time format.@@ -708,73 +796,88 @@     :: Project project =   Project'-  { _pArn = Nothing-  , _pArtifacts = Nothing-  , _pEnvironment = Nothing-  , _pCreated = Nothing-  , _pName = Nothing-  , _pSource = Nothing-  , _pEncryptionKey = Nothing-  , _pLastModified = Nothing-  , _pWebhook = Nothing-  , _pDescription = Nothing-  , _pServiceRole = Nothing-  , _pTags = Nothing-  , _pTimeoutInMinutes = Nothing-  }+    { _pArn = Nothing+    , _pArtifacts = Nothing+    , _pEnvironment = Nothing+    , _pCreated = Nothing+    , _pCache = Nothing+    , _pName = Nothing+    , _pVpcConfig = Nothing+    , _pSource = Nothing+    , _pBadge = Nothing+    , _pEncryptionKey = Nothing+    , _pLastModified = Nothing+    , _pWebhook = Nothing+    , _pDescription = Nothing+    , _pServiceRole = Nothing+    , _pTags = Nothing+    , _pTimeoutInMinutes = Nothing+    }   -- | The Amazon Resource Name (ARN) of the build project. pArn :: Lens' Project (Maybe Text)-pArn = lens _pArn (\ s a -> s{_pArn = a});+pArn = lens _pArn (\ s a -> s{_pArn = a})  -- | Information about the build output artifacts for the build project. pArtifacts :: Lens' Project (Maybe ProjectArtifacts)-pArtifacts = lens _pArtifacts (\ s a -> s{_pArtifacts = a});+pArtifacts = lens _pArtifacts (\ s a -> s{_pArtifacts = a})  -- | Information about the build environment for this build project. pEnvironment :: Lens' Project (Maybe ProjectEnvironment)-pEnvironment = lens _pEnvironment (\ s a -> s{_pEnvironment = a});+pEnvironment = lens _pEnvironment (\ s a -> s{_pEnvironment = a})  -- | When the build project was created, expressed in Unix time format. pCreated :: Lens' Project (Maybe UTCTime)-pCreated = lens _pCreated (\ s a -> s{_pCreated = a}) . mapping _Time;+pCreated = lens _pCreated (\ s a -> s{_pCreated = a}) . mapping _Time +-- | Information about the cache for the build project.+pCache :: Lens' Project (Maybe ProjectCache)+pCache = lens _pCache (\ s a -> s{_pCache = a})+ -- | The name of the build project. pName :: Lens' Project (Maybe Text)-pName = lens _pName (\ s a -> s{_pName = a});+pName = lens _pName (\ s a -> s{_pName = a}) +-- | Information about the VPC configuration that AWS CodeBuild will access.+pVpcConfig :: Lens' Project (Maybe VPCConfig)+pVpcConfig = lens _pVpcConfig (\ s a -> s{_pVpcConfig = a})+ -- | Information about the build input source code for this build project. pSource :: Lens' Project (Maybe ProjectSource)-pSource = lens _pSource (\ s a -> s{_pSource = a});+pSource = lens _pSource (\ s a -> s{_pSource = a}) +-- | Information about the build badge for the build project.+pBadge :: Lens' Project (Maybe ProjectBadge)+pBadge = lens _pBadge (\ s a -> s{_pBadge = a})+ -- | The AWS Key Management Service (AWS KMS) customer master key (CMK) to be used for encrypting the build output artifacts. This is expressed either as the CMK's Amazon Resource Name (ARN) or, if specified, the CMK's alias (using the format @alias//alias-name/ @ ). pEncryptionKey :: Lens' Project (Maybe Text)-pEncryptionKey = lens _pEncryptionKey (\ s a -> s{_pEncryptionKey = a});+pEncryptionKey = lens _pEncryptionKey (\ s a -> s{_pEncryptionKey = a})  -- | When the build project's settings were last modified, expressed in Unix time format. pLastModified :: Lens' Project (Maybe UTCTime)-pLastModified = lens _pLastModified (\ s a -> s{_pLastModified = a}) . mapping _Time;+pLastModified = lens _pLastModified (\ s a -> s{_pLastModified = a}) . mapping _Time  -- | Information about a webhook in GitHub that connects repository events to a build project in AWS CodeBuild. pWebhook :: Lens' Project (Maybe Webhook)-pWebhook = lens _pWebhook (\ s a -> s{_pWebhook = a});+pWebhook = lens _pWebhook (\ s a -> s{_pWebhook = a})  -- | A description that makes the build project easy to identify. pDescription :: Lens' Project (Maybe Text)-pDescription = lens _pDescription (\ s a -> s{_pDescription = a});+pDescription = lens _pDescription (\ s a -> s{_pDescription = a})  -- | The ARN of the AWS Identity and Access Management (IAM) role that enables AWS CodeBuild to interact with dependent AWS services on behalf of the AWS account. pServiceRole :: Lens' Project (Maybe Text)-pServiceRole = lens _pServiceRole (\ s a -> s{_pServiceRole = a});+pServiceRole = lens _pServiceRole (\ s a -> s{_pServiceRole = a})  -- | The tags for this build project. These tags are available for use by AWS services that support AWS CodeBuild build project tags. pTags :: Lens' Project [Tag]-pTags = lens _pTags (\ s a -> s{_pTags = a}) . _Default . _Coerce;+pTags = lens _pTags (\ s a -> s{_pTags = a}) . _Default . _Coerce  -- | How long, in minutes, from 5 to 480 (8 hours), for AWS CodeBuild to wait before timing out any related build that did not get marked as completed. The default is 60 minutes. pTimeoutInMinutes :: Lens' Project (Maybe Natural)-pTimeoutInMinutes = lens _pTimeoutInMinutes (\ s a -> s{_pTimeoutInMinutes = a}) . mapping _Nat;+pTimeoutInMinutes = lens _pTimeoutInMinutes (\ s a -> s{_pTimeoutInMinutes = a}) . mapping _Nat  instance FromJSON Project where         parseJSON@@ -784,8 +887,11 @@                    (x .:? "arn") <*> (x .:? "artifacts") <*>                      (x .:? "environment")                      <*> (x .:? "created")+                     <*> (x .:? "cache")                      <*> (x .:? "name")+                     <*> (x .:? "vpcConfig")                      <*> (x .:? "source")+                     <*> (x .:? "badge")                      <*> (x .:? "encryptionKey")                      <*> (x .:? "lastModified")                      <*> (x .:? "webhook")@@ -833,38 +939,38 @@     -> ProjectArtifacts projectArtifacts pType_ =   ProjectArtifacts'-  { _paPackaging = Nothing-  , _paPath = Nothing-  , _paLocation = Nothing-  , _paName = Nothing-  , _paNamespaceType = Nothing-  , _paType = pType_-  }+    { _paPackaging = Nothing+    , _paPath = Nothing+    , _paLocation = Nothing+    , _paName = Nothing+    , _paNamespaceType = Nothing+    , _paType = pType_+    }   -- | The type of build output artifact to create, as follows:     * If @type@ is set to @CODEPIPELINE@ , then AWS CodePipeline will ignore this value if specified. This is because AWS CodePipeline manages its build output artifacts instead of AWS CodeBuild.     * If @type@ is set to @NO_ARTIFACTS@ , then this value will be ignored if specified, because no build output will be produced.     * If @type@ is set to @S3@ , valid values include:     * @NONE@ : AWS CodeBuild will create in the output bucket a folder containing the build output. This is the default if @packaging@ is not specified.     * @ZIP@ : AWS CodeBuild will create in the output bucket a ZIP file containing the build output. paPackaging :: Lens' ProjectArtifacts (Maybe ArtifactPackaging)-paPackaging = lens _paPackaging (\ s a -> s{_paPackaging = a});+paPackaging = lens _paPackaging (\ s a -> s{_paPackaging = a})  -- | Along with @namespaceType@ and @name@ , the pattern that AWS CodeBuild will use to name and store the output artifact, as follows:     * If @type@ is set to @CODEPIPELINE@ , then AWS CodePipeline will ignore this value if specified. This is because AWS CodePipeline manages its build output names instead of AWS CodeBuild.     * If @type@ is set to @NO_ARTIFACTS@ , then this value will be ignored if specified, because no build output will be produced.     * If @type@ is set to @S3@ , this is the path to the output artifact. If @path@ is not specified, then @path@ will not be used. For example, if @path@ is set to @MyArtifacts@ , @namespaceType@ is set to @NONE@ , and @name@ is set to @MyArtifact.zip@ , then the output artifact would be stored in the output bucket at @MyArtifacts/MyArtifact.zip@ . paPath :: Lens' ProjectArtifacts (Maybe Text)-paPath = lens _paPath (\ s a -> s{_paPath = a});+paPath = lens _paPath (\ s a -> s{_paPath = a})  -- | Information about the build output artifact location, as follows:     * If @type@ is set to @CODEPIPELINE@ , then AWS CodePipeline will ignore this value if specified. This is because AWS CodePipeline manages its build output locations instead of AWS CodeBuild.     * If @type@ is set to @NO_ARTIFACTS@ , then this value will be ignored if specified, because no build output will be produced.     * If @type@ is set to @S3@ , this is the name of the output bucket. paLocation :: Lens' ProjectArtifacts (Maybe Text)-paLocation = lens _paLocation (\ s a -> s{_paLocation = a});+paLocation = lens _paLocation (\ s a -> s{_paLocation = a})  -- | Along with @path@ and @namespaceType@ , the pattern that AWS CodeBuild will use to name and store the output artifact, as follows:     * If @type@ is set to @CODEPIPELINE@ , then AWS CodePipeline will ignore this value if specified. This is because AWS CodePipeline manages its build output names instead of AWS CodeBuild.     * If @type@ is set to @NO_ARTIFACTS@ , then this value will be ignored if specified, because no build output will be produced.     * If @type@ is set to @S3@ , this is the name of the output artifact object. For example, if @path@ is set to @MyArtifacts@ , @namespaceType@ is set to @BUILD_ID@ , and @name@ is set to @MyArtifact.zip@ , then the output artifact would be stored in @MyArtifacts//build-ID/ /MyArtifact.zip@ . paName :: Lens' ProjectArtifacts (Maybe Text)-paName = lens _paName (\ s a -> s{_paName = a});+paName = lens _paName (\ s a -> s{_paName = a})  -- | Along with @path@ and @name@ , the pattern that AWS CodeBuild will use to determine the name and location to store the output artifact, as follows:     * If @type@ is set to @CODEPIPELINE@ , then AWS CodePipeline will ignore this value if specified. This is because AWS CodePipeline manages its build output names instead of AWS CodeBuild.     * If @type@ is set to @NO_ARTIFACTS@ , then this value will be ignored if specified, because no build output will be produced.     * If @type@ is set to @S3@ , then valid values include:     * @BUILD_ID@ : Include the build ID in the location of the build output artifact.     * @NONE@ : Do not include the build ID. This is the default if @namespaceType@ is not specified. For example, if @path@ is set to @MyArtifacts@ , @namespaceType@ is set to @BUILD_ID@ , and @name@ is set to @MyArtifact.zip@ , then the output artifact would be stored in @MyArtifacts//build-ID/ /MyArtifact.zip@ . paNamespaceType :: Lens' ProjectArtifacts (Maybe ArtifactNamespace)-paNamespaceType = lens _paNamespaceType (\ s a -> s{_paNamespaceType = a});+paNamespaceType = lens _paNamespaceType (\ s a -> s{_paNamespaceType = a})  -- | The type of build output artifact. Valid values include:     * @CODEPIPELINE@ : The build project will have build output generated through AWS CodePipeline.     * @NO_ARTIFACTS@ : The build project will not produce any build output.     * @S3@ : The build project will store build output in Amazon Simple Storage Service (Amazon S3). paType :: Lens' ProjectArtifacts ArtifactsType-paType = lens _paType (\ s a -> s{_paType = a});+paType = lens _paType (\ s a -> s{_paType = a})  instance FromJSON ProjectArtifacts where         parseJSON@@ -892,6 +998,99 @@                   ("namespaceType" .=) <$> _paNamespaceType,                   Just ("type" .= _paType)]) +-- | Information about the build badge for the build project.+--+--+--+-- /See:/ 'projectBadge' smart constructor.+data ProjectBadge = ProjectBadge'+  { _pbBadgeEnabled    :: !(Maybe Bool)+  , _pbBadgeRequestURL :: !(Maybe Text)+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'ProjectBadge' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'pbBadgeEnabled' - Set this to true to generate a publicly-accessible URL for your project's build badge.+--+-- * 'pbBadgeRequestURL' - The publicly-accessible URL through which you can access the build badge for your project.+projectBadge+    :: ProjectBadge+projectBadge =+  ProjectBadge' {_pbBadgeEnabled = Nothing, _pbBadgeRequestURL = Nothing}+++-- | Set this to true to generate a publicly-accessible URL for your project's build badge.+pbBadgeEnabled :: Lens' ProjectBadge (Maybe Bool)+pbBadgeEnabled = lens _pbBadgeEnabled (\ s a -> s{_pbBadgeEnabled = a})++-- | The publicly-accessible URL through which you can access the build badge for your project.+pbBadgeRequestURL :: Lens' ProjectBadge (Maybe Text)+pbBadgeRequestURL = lens _pbBadgeRequestURL (\ s a -> s{_pbBadgeRequestURL = a})++instance FromJSON ProjectBadge where+        parseJSON+          = withObject "ProjectBadge"+              (\ x ->+                 ProjectBadge' <$>+                   (x .:? "badgeEnabled") <*> (x .:? "badgeRequestUrl"))++instance Hashable ProjectBadge where++instance NFData ProjectBadge where++-- | Information about the cache for the build project.+--+--+--+-- /See:/ 'projectCache' smart constructor.+data ProjectCache = ProjectCache'+  { _pcLocation :: !(Maybe Text)+  , _pcType     :: !CacheType+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'ProjectCache' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'pcLocation' - Information about the cache location, as follows:      * @NO_CACHE@ : This value will be ignored.     * @S3@ : This is the S3 bucket name/prefix.+--+-- * 'pcType' - The type of cache used by the build project. Valid values include:     * @NO_CACHE@ : The build project will not use any cache.     * @S3@ : The build project will read and write from/to S3.+projectCache+    :: CacheType -- ^ 'pcType'+    -> ProjectCache+projectCache pType_ = ProjectCache' {_pcLocation = Nothing, _pcType = pType_}+++-- | Information about the cache location, as follows:      * @NO_CACHE@ : This value will be ignored.     * @S3@ : This is the S3 bucket name/prefix.+pcLocation :: Lens' ProjectCache (Maybe Text)+pcLocation = lens _pcLocation (\ s a -> s{_pcLocation = a})++-- | The type of cache used by the build project. Valid values include:     * @NO_CACHE@ : The build project will not use any cache.     * @S3@ : The build project will read and write from/to S3.+pcType :: Lens' ProjectCache CacheType+pcType = lens _pcType (\ s a -> s{_pcType = a})++instance FromJSON ProjectCache where+        parseJSON+          = withObject "ProjectCache"+              (\ x ->+                 ProjectCache' <$>+                   (x .:? "location") <*> (x .: "type"))++instance Hashable ProjectCache where++instance NFData ProjectCache where++instance ToJSON ProjectCache where+        toJSON ProjectCache'{..}+          = object+              (catMaybes+                 [("location" .=) <$> _pcLocation,+                  Just ("type" .= _pcType)])+ -- | Information about the build environment of the build project. -- --@@ -899,6 +1098,7 @@ -- /See:/ 'projectEnvironment' smart constructor. data ProjectEnvironment = ProjectEnvironment'   { _pePrivilegedMode       :: !(Maybe Bool)+  , _peCertificate          :: !(Maybe Text)   , _peEnvironmentVariables :: !(Maybe [EnvironmentVariable])   , _peType                 :: !EnvironmentType   , _peImage                :: !Text@@ -910,8 +1110,10 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'pePrivilegedMode' - If set to true, enables running the Docker daemon inside a Docker container; otherwise, false or not specified (the default). This value must be set to true only if this build project will be used to build Docker images, and the specified build environment image is not one provided by AWS CodeBuild with Docker support. Otherwise, all associated builds that attempt to interact with the Docker daemon will fail. Note that you must also start the Docker daemon so that your builds can interact with it as needed. One way to do this is to initialize the Docker daemon in the install phase of your build spec by running the following build commands. (Do not run the following build commands if the specified build environment image is provided by AWS CodeBuild with Docker support.) @- nohup /usr/local/bin/dockerd --host=unix:///var/run/docker.sock --host=tcp://0.0.0.0:2375 --storage-driver=overlay& - timeout -t 15 sh -c "until docker info; do echo .; sleep 1; done"@+-- * 'pePrivilegedMode' - Enables running the Docker daemon inside a Docker container. Set to true only if the build project is be used to build Docker images, and the specified build environment image is not provided by AWS CodeBuild with Docker support. Otherwise, all associated builds that attempt to interact with the Docker daemon will fail. Note that you must also start the Docker daemon so that builds can interact with it. One way to do this is to initialize the Docker daemon during the install phase of your build spec by running the following build commands. (Do not run the following build commands if the specified build environment image is provided by AWS CodeBuild with Docker support.) @- nohup /usr/local/bin/dockerd --host=unix:///var/run/docker.sock --host=tcp://0.0.0.0:2375 --storage-driver=overlay& - timeout -t 15 sh -c "until docker info; do echo .; sleep 1; done"@ --+-- * 'peCertificate' - The certificate to use with this build project.+-- -- * 'peEnvironmentVariables' - A set of environment variables to make available to builds for this build project. -- -- * 'peType' - The type of build environment to use for related builds.@@ -926,41 +1128,46 @@     -> ProjectEnvironment projectEnvironment pType_ pImage_ pComputeType_ =   ProjectEnvironment'-  { _pePrivilegedMode = Nothing-  , _peEnvironmentVariables = Nothing-  , _peType = pType_-  , _peImage = pImage_-  , _peComputeType = pComputeType_-  }+    { _pePrivilegedMode = Nothing+    , _peCertificate = Nothing+    , _peEnvironmentVariables = Nothing+    , _peType = pType_+    , _peImage = pImage_+    , _peComputeType = pComputeType_+    }  --- | If set to true, enables running the Docker daemon inside a Docker container; otherwise, false or not specified (the default). This value must be set to true only if this build project will be used to build Docker images, and the specified build environment image is not one provided by AWS CodeBuild with Docker support. Otherwise, all associated builds that attempt to interact with the Docker daemon will fail. Note that you must also start the Docker daemon so that your builds can interact with it as needed. One way to do this is to initialize the Docker daemon in the install phase of your build spec by running the following build commands. (Do not run the following build commands if the specified build environment image is provided by AWS CodeBuild with Docker support.) @- nohup /usr/local/bin/dockerd --host=unix:///var/run/docker.sock --host=tcp://0.0.0.0:2375 --storage-driver=overlay& - timeout -t 15 sh -c "until docker info; do echo .; sleep 1; done"@+-- | Enables running the Docker daemon inside a Docker container. Set to true only if the build project is be used to build Docker images, and the specified build environment image is not provided by AWS CodeBuild with Docker support. Otherwise, all associated builds that attempt to interact with the Docker daemon will fail. Note that you must also start the Docker daemon so that builds can interact with it. One way to do this is to initialize the Docker daemon during the install phase of your build spec by running the following build commands. (Do not run the following build commands if the specified build environment image is provided by AWS CodeBuild with Docker support.) @- nohup /usr/local/bin/dockerd --host=unix:///var/run/docker.sock --host=tcp://0.0.0.0:2375 --storage-driver=overlay& - timeout -t 15 sh -c "until docker info; do echo .; sleep 1; done"@ pePrivilegedMode :: Lens' ProjectEnvironment (Maybe Bool)-pePrivilegedMode = lens _pePrivilegedMode (\ s a -> s{_pePrivilegedMode = a});+pePrivilegedMode = lens _pePrivilegedMode (\ s a -> s{_pePrivilegedMode = a}) +-- | The certificate to use with this build project.+peCertificate :: Lens' ProjectEnvironment (Maybe Text)+peCertificate = lens _peCertificate (\ s a -> s{_peCertificate = a})+ -- | A set of environment variables to make available to builds for this build project. peEnvironmentVariables :: Lens' ProjectEnvironment [EnvironmentVariable]-peEnvironmentVariables = lens _peEnvironmentVariables (\ s a -> s{_peEnvironmentVariables = a}) . _Default . _Coerce;+peEnvironmentVariables = lens _peEnvironmentVariables (\ s a -> s{_peEnvironmentVariables = a}) . _Default . _Coerce  -- | The type of build environment to use for related builds. peType :: Lens' ProjectEnvironment EnvironmentType-peType = lens _peType (\ s a -> s{_peType = a});+peType = lens _peType (\ s a -> s{_peType = a})  -- | The ID of the Docker image to use for this build project. peImage :: Lens' ProjectEnvironment Text-peImage = lens _peImage (\ s a -> s{_peImage = a});+peImage = lens _peImage (\ s a -> s{_peImage = a})  -- | Information about the compute resources the build project will use. Available values include:     * @BUILD_GENERAL1_SMALL@ : Use up to 3 GB memory and 2 vCPUs for builds.     * @BUILD_GENERAL1_MEDIUM@ : Use up to 7 GB memory and 4 vCPUs for builds.     * @BUILD_GENERAL1_LARGE@ : Use up to 15 GB memory and 8 vCPUs for builds. peComputeType :: Lens' ProjectEnvironment ComputeType-peComputeType = lens _peComputeType (\ s a -> s{_peComputeType = a});+peComputeType = lens _peComputeType (\ s a -> s{_peComputeType = a})  instance FromJSON ProjectEnvironment where         parseJSON           = withObject "ProjectEnvironment"               (\ x ->                  ProjectEnvironment' <$>-                   (x .:? "privilegedMode") <*>-                     (x .:? "environmentVariables" .!= mempty)+                   (x .:? "privilegedMode") <*> (x .:? "certificate")+                     <*> (x .:? "environmentVariables" .!= mempty)                      <*> (x .: "type")                      <*> (x .: "image")                      <*> (x .: "computeType"))@@ -974,6 +1181,7 @@           = object               (catMaybes                  [("privilegedMode" .=) <$> _pePrivilegedMode,+                  ("certificate" .=) <$> _peCertificate,                   ("environmentVariables" .=) <$>                     _peEnvironmentVariables,                   Just ("type" .= _peType), Just ("image" .= _peImage),@@ -985,10 +1193,12 @@ -- -- /See:/ 'projectSource' smart constructor. data ProjectSource = ProjectSource'-  { _psLocation  :: !(Maybe Text)-  , _psAuth      :: !(Maybe SourceAuth)-  , _psBuildspec :: !(Maybe Text)-  , _psType      :: !SourceType+  { _psInsecureSSL   :: !(Maybe Bool)+  , _psLocation      :: !(Maybe Text)+  , _psAuth          :: !(Maybe SourceAuth)+  , _psBuildspec     :: !(Maybe Text)+  , _psGitCloneDepth :: !(Maybe Nat)+  , _psType          :: !SourceType   } deriving (Eq, Read, Show, Data, Typeable, Generic)  @@ -996,48 +1206,64 @@ -- -- Use one of the following lenses to modify other fields as desired: --+-- * 'psInsecureSSL' - Enable this flag to ignore SSL warnings while connecting to the project source code.+-- -- * 'psLocation' - Information about the location of the source code to be built. Valid values include:     * For source code settings that are specified in the source action of a pipeline in AWS CodePipeline, @location@ should not be specified. If it is specified, AWS CodePipeline will ignore it. This is because AWS CodePipeline uses the settings in a pipeline's source action instead of this value.     * For source code in an AWS CodeCommit repository, the HTTPS clone URL to the repository that contains the source code and the build spec (for example, @https://git-codecommit./region-ID/ .amazonaws.com/v1/repos//repo-name/ @ ).     * For source code in an Amazon Simple Storage Service (Amazon S3) input bucket, the path to the ZIP file that contains the source code (for example, @/bucket-name/ //path/ //to/ //object-name/ .zip@ )     * For source code in a GitHub repository, the HTTPS clone URL to the repository that contains the source and the build spec. Also, you must connect your AWS account to your GitHub account. To do this, use the AWS CodeBuild console to begin creating a build project. When you use the console to connect (or reconnect) with GitHub, on the GitHub __Authorize application__ page that displays, for __Organization access__ , choose __Request access__ next to each repository you want to allow AWS CodeBuild to have access to. Then choose __Authorize application__ . (After you have connected to your GitHub account, you do not need to finish creating the build project, and you may then leave the AWS CodeBuild console.) To instruct AWS CodeBuild to then use this connection, in the @source@ object, set the @auth@ object's @type@ value to @OAUTH@ .     * For source code in a Bitbucket repository, the HTTPS clone URL to the repository that contains the source and the build spec. Also, you must connect your AWS account to your Bitbucket account. To do this, use the AWS CodeBuild console to begin creating a build project. When you use the console to connect (or reconnect) with Bitbucket, on the Bitbucket __Confirm access to your account__ page that displays, choose __Grant access__ . (After you have connected to your Bitbucket account, you do not need to finish creating the build project, and you may then leave the AWS CodeBuild console.) To instruct AWS CodeBuild to then use this connection, in the @source@ object, set the @auth@ object's @type@ value to @OAUTH@ . -- -- * 'psAuth' - Information about the authorization settings for AWS CodeBuild to access the source code to be built. This information is for the AWS CodeBuild console's use only. Your code should not get or set this information directly (unless the build project's source @type@ value is @BITBUCKET@ or @GITHUB@ ). -- -- * 'psBuildspec' - The build spec declaration to use for the builds in this build project. If this value is not specified, a build spec must be included along with the source code to be built. --+-- * 'psGitCloneDepth' - Information about the git clone depth for the build project.+-- -- * 'psType' - The type of repository that contains the source code to be built. Valid values include:     * @BITBUCKET@ : The source code is in a Bitbucket repository.     * @CODECOMMIT@ : The source code is in an AWS CodeCommit repository.     * @CODEPIPELINE@ : The source code settings are specified in the source action of a pipeline in AWS CodePipeline.     * @GITHUB@ : The source code is in a GitHub repository.     * @S3@ : The source code is in an Amazon Simple Storage Service (Amazon S3) input bucket. projectSource     :: SourceType -- ^ 'psType'     -> ProjectSource projectSource pType_ =   ProjectSource'-  { _psLocation = Nothing-  , _psAuth = Nothing-  , _psBuildspec = Nothing-  , _psType = pType_-  }+    { _psInsecureSSL = Nothing+    , _psLocation = Nothing+    , _psAuth = Nothing+    , _psBuildspec = Nothing+    , _psGitCloneDepth = Nothing+    , _psType = pType_+    }  +-- | Enable this flag to ignore SSL warnings while connecting to the project source code.+psInsecureSSL :: Lens' ProjectSource (Maybe Bool)+psInsecureSSL = lens _psInsecureSSL (\ s a -> s{_psInsecureSSL = a})+ -- | Information about the location of the source code to be built. Valid values include:     * For source code settings that are specified in the source action of a pipeline in AWS CodePipeline, @location@ should not be specified. If it is specified, AWS CodePipeline will ignore it. This is because AWS CodePipeline uses the settings in a pipeline's source action instead of this value.     * For source code in an AWS CodeCommit repository, the HTTPS clone URL to the repository that contains the source code and the build spec (for example, @https://git-codecommit./region-ID/ .amazonaws.com/v1/repos//repo-name/ @ ).     * For source code in an Amazon Simple Storage Service (Amazon S3) input bucket, the path to the ZIP file that contains the source code (for example, @/bucket-name/ //path/ //to/ //object-name/ .zip@ )     * For source code in a GitHub repository, the HTTPS clone URL to the repository that contains the source and the build spec. Also, you must connect your AWS account to your GitHub account. To do this, use the AWS CodeBuild console to begin creating a build project. When you use the console to connect (or reconnect) with GitHub, on the GitHub __Authorize application__ page that displays, for __Organization access__ , choose __Request access__ next to each repository you want to allow AWS CodeBuild to have access to. Then choose __Authorize application__ . (After you have connected to your GitHub account, you do not need to finish creating the build project, and you may then leave the AWS CodeBuild console.) To instruct AWS CodeBuild to then use this connection, in the @source@ object, set the @auth@ object's @type@ value to @OAUTH@ .     * For source code in a Bitbucket repository, the HTTPS clone URL to the repository that contains the source and the build spec. Also, you must connect your AWS account to your Bitbucket account. To do this, use the AWS CodeBuild console to begin creating a build project. When you use the console to connect (or reconnect) with Bitbucket, on the Bitbucket __Confirm access to your account__ page that displays, choose __Grant access__ . (After you have connected to your Bitbucket account, you do not need to finish creating the build project, and you may then leave the AWS CodeBuild console.) To instruct AWS CodeBuild to then use this connection, in the @source@ object, set the @auth@ object's @type@ value to @OAUTH@ . psLocation :: Lens' ProjectSource (Maybe Text)-psLocation = lens _psLocation (\ s a -> s{_psLocation = a});+psLocation = lens _psLocation (\ s a -> s{_psLocation = a})  -- | Information about the authorization settings for AWS CodeBuild to access the source code to be built. This information is for the AWS CodeBuild console's use only. Your code should not get or set this information directly (unless the build project's source @type@ value is @BITBUCKET@ or @GITHUB@ ). psAuth :: Lens' ProjectSource (Maybe SourceAuth)-psAuth = lens _psAuth (\ s a -> s{_psAuth = a});+psAuth = lens _psAuth (\ s a -> s{_psAuth = a})  -- | The build spec declaration to use for the builds in this build project. If this value is not specified, a build spec must be included along with the source code to be built. psBuildspec :: Lens' ProjectSource (Maybe Text)-psBuildspec = lens _psBuildspec (\ s a -> s{_psBuildspec = a});+psBuildspec = lens _psBuildspec (\ s a -> s{_psBuildspec = a}) +-- | Information about the git clone depth for the build project.+psGitCloneDepth :: Lens' ProjectSource (Maybe Natural)+psGitCloneDepth = lens _psGitCloneDepth (\ s a -> s{_psGitCloneDepth = a}) . mapping _Nat+ -- | The type of repository that contains the source code to be built. Valid values include:     * @BITBUCKET@ : The source code is in a Bitbucket repository.     * @CODECOMMIT@ : The source code is in an AWS CodeCommit repository.     * @CODEPIPELINE@ : The source code settings are specified in the source action of a pipeline in AWS CodePipeline.     * @GITHUB@ : The source code is in a GitHub repository.     * @S3@ : The source code is in an Amazon Simple Storage Service (Amazon S3) input bucket. psType :: Lens' ProjectSource SourceType-psType = lens _psType (\ s a -> s{_psType = a});+psType = lens _psType (\ s a -> s{_psType = a})  instance FromJSON ProjectSource where         parseJSON           = withObject "ProjectSource"               (\ x ->                  ProjectSource' <$>-                   (x .:? "location") <*> (x .:? "auth") <*>-                     (x .:? "buildspec")+                   (x .:? "insecureSsl") <*> (x .:? "location") <*>+                     (x .:? "auth")+                     <*> (x .:? "buildspec")+                     <*> (x .:? "gitCloneDepth")                      <*> (x .: "type"))  instance Hashable ProjectSource where@@ -1048,9 +1274,11 @@         toJSON ProjectSource'{..}           = object               (catMaybes-                 [("location" .=) <$> _psLocation,+                 [("insecureSsl" .=) <$> _psInsecureSSL,+                  ("location" .=) <$> _psLocation,                   ("auth" .=) <$> _psAuth,                   ("buildspec" .=) <$> _psBuildspec,+                  ("gitCloneDepth" .=) <$> _psGitCloneDepth,                   Just ("type" .= _psType)])  -- | Information about the authorization settings for AWS CodeBuild to access the source code to be built.@@ -1081,11 +1309,11 @@  -- | The resource value that applies to the specified authorization type. saResource :: Lens' SourceAuth (Maybe Text)-saResource = lens _saResource (\ s a -> s{_saResource = a});+saResource = lens _saResource (\ s a -> s{_saResource = a})  -- | The authorization type to use. The only valid value is @OAUTH@ , which represents the OAuth authorization type. saType :: Lens' SourceAuth SourceAuthType-saType = lens _saType (\ s a -> s{_saType = a});+saType = lens _saType (\ s a -> s{_saType = a})  instance FromJSON SourceAuth where         parseJSON@@ -1131,11 +1359,11 @@  -- | The tag's value. tagValue :: Lens' Tag (Maybe Text)-tagValue = lens _tagValue (\ s a -> s{_tagValue = a});+tagValue = lens _tagValue (\ s a -> s{_tagValue = a})  -- | The tag's key. tagKey :: Lens' Tag (Maybe Text)-tagKey = lens _tagKey (\ s a -> s{_tagKey = a});+tagKey = lens _tagKey (\ s a -> s{_tagKey = a})  instance FromJSON Tag where         parseJSON@@ -1152,13 +1380,78 @@               (catMaybes                  [("value" .=) <$> _tagValue, ("key" .=) <$> _tagKey]) +-- | Information about the VPC configuration that AWS CodeBuild will access.+--+--+--+-- /See:/ 'vpcConfig' smart constructor.+data VPCConfig = VPCConfig'+  { _vcSecurityGroupIds :: !(Maybe [Text])+  , _vcVpcId            :: !(Maybe Text)+  , _vcSubnets          :: !(Maybe [Text])+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'VPCConfig' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'vcSecurityGroupIds' - A list of one or more security groups IDs in your Amazon VPC.+--+-- * 'vcVpcId' - The ID of the Amazon VPC.+--+-- * 'vcSubnets' - A list of one or more subnet IDs in your Amazon VPC.+vpcConfig+    :: VPCConfig+vpcConfig =+  VPCConfig'+    {_vcSecurityGroupIds = Nothing, _vcVpcId = Nothing, _vcSubnets = Nothing}+++-- | A list of one or more security groups IDs in your Amazon VPC.+vcSecurityGroupIds :: Lens' VPCConfig [Text]+vcSecurityGroupIds = lens _vcSecurityGroupIds (\ s a -> s{_vcSecurityGroupIds = a}) . _Default . _Coerce++-- | The ID of the Amazon VPC.+vcVpcId :: Lens' VPCConfig (Maybe Text)+vcVpcId = lens _vcVpcId (\ s a -> s{_vcVpcId = a})++-- | A list of one or more subnet IDs in your Amazon VPC.+vcSubnets :: Lens' VPCConfig [Text]+vcSubnets = lens _vcSubnets (\ s a -> s{_vcSubnets = a}) . _Default . _Coerce++instance FromJSON VPCConfig where+        parseJSON+          = withObject "VPCConfig"+              (\ x ->+                 VPCConfig' <$>+                   (x .:? "securityGroupIds" .!= mempty) <*>+                     (x .:? "vpcId")+                     <*> (x .:? "subnets" .!= mempty))++instance Hashable VPCConfig where++instance NFData VPCConfig where++instance ToJSON VPCConfig where+        toJSON VPCConfig'{..}+          = object+              (catMaybes+                 [("securityGroupIds" .=) <$> _vcSecurityGroupIds,+                  ("vpcId" .=) <$> _vcVpcId,+                  ("subnets" .=) <$> _vcSubnets])+ -- | Information about a webhook in GitHub that connects repository events to a build project in AWS CodeBuild. -- -- -- -- /See:/ 'webhook' smart constructor.-newtype Webhook = Webhook'-  { _wUrl :: Maybe Text+data Webhook = Webhook'+  { _wBranchFilter       :: !(Maybe Text)+  , _wLastModifiedSecret :: !(Maybe POSIX)+  , _wUrl                :: !(Maybe Text)+  , _wSecret             :: !(Maybe Text)+  , _wPayloadURL         :: !(Maybe Text)   } deriving (Eq, Read, Show, Data, Typeable, Generic)  @@ -1166,20 +1459,57 @@ -- -- Use one of the following lenses to modify other fields as desired: --+-- * 'wBranchFilter' - A regular expression used to determine which branches in a repository are built when a webhook is triggered. If the name of a branch matches the regular expression, then it is built. If it doesn't match, then it is not. If branchFilter is empty, then all branches are built.+--+-- * 'wLastModifiedSecret' - A timestamp indicating the last time a repository's secret token was modified.+-- -- * 'wUrl' - The URL to the webhook.+--+-- * 'wSecret' - The secret token of the associated repository.+--+-- * 'wPayloadURL' - The CodeBuild endpoint where webhook events are sent. webhook     :: Webhook-webhook = Webhook' {_wUrl = Nothing}+webhook =+  Webhook'+    { _wBranchFilter = Nothing+    , _wLastModifiedSecret = Nothing+    , _wUrl = Nothing+    , _wSecret = Nothing+    , _wPayloadURL = Nothing+    }  +-- | A regular expression used to determine which branches in a repository are built when a webhook is triggered. If the name of a branch matches the regular expression, then it is built. If it doesn't match, then it is not. If branchFilter is empty, then all branches are built.+wBranchFilter :: Lens' Webhook (Maybe Text)+wBranchFilter = lens _wBranchFilter (\ s a -> s{_wBranchFilter = a})++-- | A timestamp indicating the last time a repository's secret token was modified.+wLastModifiedSecret :: Lens' Webhook (Maybe UTCTime)+wLastModifiedSecret = lens _wLastModifiedSecret (\ s a -> s{_wLastModifiedSecret = a}) . mapping _Time+ -- | The URL to the webhook. wUrl :: Lens' Webhook (Maybe Text)-wUrl = lens _wUrl (\ s a -> s{_wUrl = a});+wUrl = lens _wUrl (\ s a -> s{_wUrl = a}) +-- | The secret token of the associated repository.+wSecret :: Lens' Webhook (Maybe Text)+wSecret = lens _wSecret (\ s a -> s{_wSecret = a})++-- | The CodeBuild endpoint where webhook events are sent.+wPayloadURL :: Lens' Webhook (Maybe Text)+wPayloadURL = lens _wPayloadURL (\ s a -> s{_wPayloadURL = a})+ instance FromJSON Webhook where         parseJSON           = withObject "Webhook"-              (\ x -> Webhook' <$> (x .:? "url"))+              (\ x ->+                 Webhook' <$>+                   (x .:? "branchFilter") <*>+                     (x .:? "lastModifiedSecret")+                     <*> (x .:? "url")+                     <*> (x .:? "secret")+                     <*> (x .:? "payloadUrl"))  instance Hashable Webhook where 
gen/Network/AWS/CodeBuild/Types/Sum.hs view
@@ -9,7 +9,7 @@  -- | -- Module      : Network.AWS.CodeBuild.Types.Sum--- Copyright   : (c) 2013-2017 Brendan Hay+-- Copyright   : (c) 2013-2018 Brendan Hay -- License     : Mozilla Public License, v. 2.0. -- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated@@ -163,6 +163,36 @@ instance FromJSON BuildPhaseType where     parseJSON = parseJSONText "BuildPhaseType" +data CacheType+  = CTNoCache+  | CTS3+  deriving (Eq, Ord, Read, Show, Enum, Bounded, Data, Typeable, Generic)+++instance FromText CacheType where+    parser = takeLowerText >>= \case+        "no_cache" -> pure CTNoCache+        "s3" -> pure CTS3+        e -> fromTextError $ "Failure parsing CacheType from value: '" <> e+           <> "'. Accepted values: no_cache, s3"++instance ToText CacheType where+    toText = \case+        CTNoCache -> "NO_CACHE"+        CTS3 -> "S3"++instance Hashable     CacheType+instance NFData       CacheType+instance ToByteString CacheType+instance ToQuery      CacheType+instance ToHeader     CacheType++instance ToJSON CacheType where+    toJSON = toJSONText++instance FromJSON CacheType where+    parseJSON = parseJSONText "CacheType"+ data ComputeType   = BuildGENERAL1Large   | BuildGENERAL1Medium@@ -420,6 +450,7 @@   | STCodecommit   | STCodepipeline   | STGithub+  | STGithubEnterprise   | STS3   deriving (Eq, Ord, Read, Show, Enum, Bounded, Data, Typeable, Generic) @@ -430,9 +461,10 @@         "codecommit" -> pure STCodecommit         "codepipeline" -> pure STCodepipeline         "github" -> pure STGithub+        "github_enterprise" -> pure STGithubEnterprise         "s3" -> pure STS3         e -> fromTextError $ "Failure parsing SourceType from value: '" <> e-           <> "'. Accepted values: bitbucket, codecommit, codepipeline, github, s3"+           <> "'. Accepted values: bitbucket, codecommit, codepipeline, github, github_enterprise, s3"  instance ToText SourceType where     toText = \case@@ -440,6 +472,7 @@         STCodecommit -> "CODECOMMIT"         STCodepipeline -> "CODEPIPELINE"         STGithub -> "GITHUB"+        STGithubEnterprise -> "GITHUB_ENTERPRISE"         STS3 -> "S3"  instance Hashable     SourceType
gen/Network/AWS/CodeBuild/UpdateProject.hs view
@@ -12,7 +12,7 @@  -- | -- Module      : Network.AWS.CodeBuild.UpdateProject--- Copyright   : (c) 2013-2017 Brendan Hay+-- Copyright   : (c) 2013-2018 Brendan Hay -- License     : Mozilla Public License, v. 2.0. -- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated@@ -29,6 +29,9 @@     -- * Request Lenses     , upArtifacts     , upEnvironment+    , upBadgeEnabled+    , upCache+    , upVpcConfig     , upSource     , upEncryptionKey     , upDescription@@ -56,6 +59,9 @@ data UpdateProject = UpdateProject'   { _upArtifacts        :: !(Maybe ProjectArtifacts)   , _upEnvironment      :: !(Maybe ProjectEnvironment)+  , _upBadgeEnabled     :: !(Maybe Bool)+  , _upCache            :: !(Maybe ProjectCache)+  , _upVpcConfig        :: !(Maybe VPCConfig)   , _upSource           :: !(Maybe ProjectSource)   , _upEncryptionKey    :: !(Maybe Text)   , _upDescription      :: !(Maybe Text)@@ -74,6 +80,12 @@ -- -- * 'upEnvironment' - Information to be changed about the build environment for the build project. --+-- * 'upBadgeEnabled' - Set this to true to generate a publicly-accessible URL for your project's build badge.+--+-- * 'upCache' - Stores recently used information so that it can be quickly accessed at a later time.+--+-- * 'upVpcConfig' - VpcConfig enables AWS CodeBuild to access resources in an Amazon VPC.+-- -- * 'upSource' - Information to be changed about the build input source code for the build project. -- -- * 'upEncryptionKey' - The replacement AWS Key Management Service (AWS KMS) customer master key (CMK) to be used for encrypting the build output artifacts. You can specify either the CMK's Amazon Resource Name (ARN) or, if available, the CMK's alias (using the format @alias//alias-name/ @ ).@@ -92,53 +104,68 @@     -> UpdateProject updateProject pName_ =   UpdateProject'-  { _upArtifacts = Nothing-  , _upEnvironment = Nothing-  , _upSource = Nothing-  , _upEncryptionKey = Nothing-  , _upDescription = Nothing-  , _upServiceRole = Nothing-  , _upTags = Nothing-  , _upTimeoutInMinutes = Nothing-  , _upName = pName_-  }+    { _upArtifacts = Nothing+    , _upEnvironment = Nothing+    , _upBadgeEnabled = Nothing+    , _upCache = Nothing+    , _upVpcConfig = Nothing+    , _upSource = Nothing+    , _upEncryptionKey = Nothing+    , _upDescription = Nothing+    , _upServiceRole = Nothing+    , _upTags = Nothing+    , _upTimeoutInMinutes = Nothing+    , _upName = pName_+    }   -- | Information to be changed about the build output artifacts for the build project. upArtifacts :: Lens' UpdateProject (Maybe ProjectArtifacts)-upArtifacts = lens _upArtifacts (\ s a -> s{_upArtifacts = a});+upArtifacts = lens _upArtifacts (\ s a -> s{_upArtifacts = a})  -- | Information to be changed about the build environment for the build project. upEnvironment :: Lens' UpdateProject (Maybe ProjectEnvironment)-upEnvironment = lens _upEnvironment (\ s a -> s{_upEnvironment = a});+upEnvironment = lens _upEnvironment (\ s a -> s{_upEnvironment = a}) +-- | Set this to true to generate a publicly-accessible URL for your project's build badge.+upBadgeEnabled :: Lens' UpdateProject (Maybe Bool)+upBadgeEnabled = lens _upBadgeEnabled (\ s a -> s{_upBadgeEnabled = a})++-- | Stores recently used information so that it can be quickly accessed at a later time.+upCache :: Lens' UpdateProject (Maybe ProjectCache)+upCache = lens _upCache (\ s a -> s{_upCache = a})++-- | VpcConfig enables AWS CodeBuild to access resources in an Amazon VPC.+upVpcConfig :: Lens' UpdateProject (Maybe VPCConfig)+upVpcConfig = lens _upVpcConfig (\ s a -> s{_upVpcConfig = a})+ -- | Information to be changed about the build input source code for the build project. upSource :: Lens' UpdateProject (Maybe ProjectSource)-upSource = lens _upSource (\ s a -> s{_upSource = a});+upSource = lens _upSource (\ s a -> s{_upSource = a})  -- | The replacement AWS Key Management Service (AWS KMS) customer master key (CMK) to be used for encrypting the build output artifacts. You can specify either the CMK's Amazon Resource Name (ARN) or, if available, the CMK's alias (using the format @alias//alias-name/ @ ). upEncryptionKey :: Lens' UpdateProject (Maybe Text)-upEncryptionKey = lens _upEncryptionKey (\ s a -> s{_upEncryptionKey = a});+upEncryptionKey = lens _upEncryptionKey (\ s a -> s{_upEncryptionKey = a})  -- | A new or replacement description of the build project. upDescription :: Lens' UpdateProject (Maybe Text)-upDescription = lens _upDescription (\ s a -> s{_upDescription = a});+upDescription = lens _upDescription (\ s a -> s{_upDescription = a})  -- | The replacement ARN of the AWS Identity and Access Management (IAM) role that enables AWS CodeBuild to interact with dependent AWS services on behalf of the AWS account. upServiceRole :: Lens' UpdateProject (Maybe Text)-upServiceRole = lens _upServiceRole (\ s a -> s{_upServiceRole = a});+upServiceRole = lens _upServiceRole (\ s a -> s{_upServiceRole = a})  -- | The replacement set of tags for this build project. These tags are available for use by AWS services that support AWS CodeBuild build project tags. upTags :: Lens' UpdateProject [Tag]-upTags = lens _upTags (\ s a -> s{_upTags = a}) . _Default . _Coerce;+upTags = lens _upTags (\ s a -> s{_upTags = a}) . _Default . _Coerce  -- | The replacement value in minutes, from 5 to 480 (8 hours), for AWS CodeBuild to wait before timing out any related build that did not get marked as completed. upTimeoutInMinutes :: Lens' UpdateProject (Maybe Natural)-upTimeoutInMinutes = lens _upTimeoutInMinutes (\ s a -> s{_upTimeoutInMinutes = a}) . mapping _Nat;+upTimeoutInMinutes = lens _upTimeoutInMinutes (\ s a -> s{_upTimeoutInMinutes = a}) . mapping _Nat  -- | The name of the build project. upName :: Lens' UpdateProject Text-upName = lens _upName (\ s a -> s{_upName = a});+upName = lens _upName (\ s a -> s{_upName = a})  instance AWSRequest UpdateProject where         type Rs UpdateProject = UpdateProjectResponse@@ -168,6 +195,9 @@               (catMaybes                  [("artifacts" .=) <$> _upArtifacts,                   ("environment" .=) <$> _upEnvironment,+                  ("badgeEnabled" .=) <$> _upBadgeEnabled,+                  ("cache" .=) <$> _upCache,+                  ("vpcConfig" .=) <$> _upVpcConfig,                   ("source" .=) <$> _upSource,                   ("encryptionKey" .=) <$> _upEncryptionKey,                   ("description" .=) <$> _upDescription,@@ -201,15 +231,15 @@     -> UpdateProjectResponse updateProjectResponse pResponseStatus_ =   UpdateProjectResponse'-  {_uprsProject = Nothing, _uprsResponseStatus = pResponseStatus_}+    {_uprsProject = Nothing, _uprsResponseStatus = pResponseStatus_}   -- | Information about the build project that was changed. uprsProject :: Lens' UpdateProjectResponse (Maybe Project)-uprsProject = lens _uprsProject (\ s a -> s{_uprsProject = a});+uprsProject = lens _uprsProject (\ s a -> s{_uprsProject = a})  -- | -- | The response status code. uprsResponseStatus :: Lens' UpdateProjectResponse Int-uprsResponseStatus = lens _uprsResponseStatus (\ s a -> s{_uprsResponseStatus = a});+uprsResponseStatus = lens _uprsResponseStatus (\ s a -> s{_uprsResponseStatus = a})  instance NFData UpdateProjectResponse where
+ gen/Network/AWS/CodeBuild/UpdateWebhook.hs view
@@ -0,0 +1,155 @@+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric      #-}+{-# LANGUAGE OverloadedStrings  #-}+{-# LANGUAGE RecordWildCards    #-}+{-# LANGUAGE TypeFamilies       #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds   #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Network.AWS.CodeBuild.UpdateWebhook+-- Copyright   : (c) 2013-2018 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)+--+-- Updates the webhook associated with an AWS CodeBuild build project.+--+--+module Network.AWS.CodeBuild.UpdateWebhook+    (+    -- * Creating a Request+      updateWebhook+    , UpdateWebhook+    -- * Request Lenses+    , uwBranchFilter+    , uwRotateSecret+    , uwProjectName++    -- * Destructuring the Response+    , updateWebhookResponse+    , UpdateWebhookResponse+    -- * Response Lenses+    , uwrsWebhook+    , uwrsResponseStatus+    ) where++import Network.AWS.CodeBuild.Types+import Network.AWS.CodeBuild.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | /See:/ 'updateWebhook' smart constructor.+data UpdateWebhook = UpdateWebhook'+  { _uwBranchFilter :: !(Maybe Text)+  , _uwRotateSecret :: !(Maybe Bool)+  , _uwProjectName  :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'UpdateWebhook' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'uwBranchFilter' - A regular expression used to determine which branches in a repository are built when a webhook is triggered. If the name of a branch matches the regular expression, then it is built. If it doesn't match, then it is not. If branchFilter is empty, then all branches are built.+--+-- * 'uwRotateSecret' - A boolean value that specifies whether the associated repository's secret token should be updated.+--+-- * 'uwProjectName' - The name of the AWS CodeBuild project.+updateWebhook+    :: Text -- ^ 'uwProjectName'+    -> UpdateWebhook+updateWebhook pProjectName_ =+  UpdateWebhook'+    { _uwBranchFilter = Nothing+    , _uwRotateSecret = Nothing+    , _uwProjectName = pProjectName_+    }+++-- | A regular expression used to determine which branches in a repository are built when a webhook is triggered. If the name of a branch matches the regular expression, then it is built. If it doesn't match, then it is not. If branchFilter is empty, then all branches are built.+uwBranchFilter :: Lens' UpdateWebhook (Maybe Text)+uwBranchFilter = lens _uwBranchFilter (\ s a -> s{_uwBranchFilter = a})++-- | A boolean value that specifies whether the associated repository's secret token should be updated.+uwRotateSecret :: Lens' UpdateWebhook (Maybe Bool)+uwRotateSecret = lens _uwRotateSecret (\ s a -> s{_uwRotateSecret = a})++-- | The name of the AWS CodeBuild project.+uwProjectName :: Lens' UpdateWebhook Text+uwProjectName = lens _uwProjectName (\ s a -> s{_uwProjectName = a})++instance AWSRequest UpdateWebhook where+        type Rs UpdateWebhook = UpdateWebhookResponse+        request = postJSON codeBuild+        response+          = receiveJSON+              (\ s h x ->+                 UpdateWebhookResponse' <$>+                   (x .?> "webhook") <*> (pure (fromEnum s)))++instance Hashable UpdateWebhook where++instance NFData UpdateWebhook where++instance ToHeaders UpdateWebhook where+        toHeaders+          = const+              (mconcat+                 ["X-Amz-Target" =#+                    ("CodeBuild_20161006.UpdateWebhook" :: ByteString),+                  "Content-Type" =#+                    ("application/x-amz-json-1.1" :: ByteString)])++instance ToJSON UpdateWebhook where+        toJSON UpdateWebhook'{..}+          = object+              (catMaybes+                 [("branchFilter" .=) <$> _uwBranchFilter,+                  ("rotateSecret" .=) <$> _uwRotateSecret,+                  Just ("projectName" .= _uwProjectName)])++instance ToPath UpdateWebhook where+        toPath = const "/"++instance ToQuery UpdateWebhook where+        toQuery = const mempty++-- | /See:/ 'updateWebhookResponse' smart constructor.+data UpdateWebhookResponse = UpdateWebhookResponse'+  { _uwrsWebhook        :: !(Maybe Webhook)+  , _uwrsResponseStatus :: !Int+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'UpdateWebhookResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'uwrsWebhook' - Information about a repository's webhook that is associated with a project in AWS CodeBuild.+--+-- * 'uwrsResponseStatus' - -- | The response status code.+updateWebhookResponse+    :: Int -- ^ 'uwrsResponseStatus'+    -> UpdateWebhookResponse+updateWebhookResponse pResponseStatus_ =+  UpdateWebhookResponse'+    {_uwrsWebhook = Nothing, _uwrsResponseStatus = pResponseStatus_}+++-- | Information about a repository's webhook that is associated with a project in AWS CodeBuild.+uwrsWebhook :: Lens' UpdateWebhookResponse (Maybe Webhook)+uwrsWebhook = lens _uwrsWebhook (\ s a -> s{_uwrsWebhook = a})++-- | -- | The response status code.+uwrsResponseStatus :: Lens' UpdateWebhookResponse Int+uwrsResponseStatus = lens _uwrsResponseStatus (\ s a -> s{_uwrsResponseStatus = a})++instance NFData UpdateWebhookResponse where
gen/Network/AWS/CodeBuild/Waiters.hs view
@@ -7,7 +7,7 @@  -- | -- Module      : Network.AWS.CodeBuild.Waiters--- Copyright   : (c) 2013-2017 Brendan Hay+-- Copyright   : (c) 2013-2018 Brendan Hay -- License     : Mozilla Public License, v. 2.0. -- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated
test/Main.hs view
@@ -2,7 +2,7 @@  -- | -- Module      : Main--- Copyright   : (c) 2013-2017 Brendan Hay+-- Copyright   : (c) 2013-2018 Brendan Hay -- License     : Mozilla Public License, v. 2.0. -- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated
test/Test/AWS/CodeBuild.hs view
@@ -1,6 +1,6 @@ -- | -- Module      : Test.AWS.CodeBuild--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2018 Brendan Hay -- License     : Mozilla Public License, v. 2.0. -- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com> -- Stability   : auto-generated
test/Test/AWS/CodeBuild/Internal.hs view
@@ -1,6 +1,6 @@ -- | -- Module      : Test.AWS.CodeBuild.Internal--- Copyright   : (c) 2013-2016 Brendan Hay+-- Copyright   : (c) 2013-2018 Brendan Hay -- License     : Mozilla Public License, v. 2.0. -- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com> -- Stability   : auto-generated
test/Test/AWS/Gen/CodeBuild.hs view
@@ -5,7 +5,7 @@  -- | -- Module      : Test.AWS.Gen.CodeBuild--- Copyright   : (c) 2013-2017 Brendan Hay+-- Copyright   : (c) 2013-2018 Brendan Hay -- License     : Mozilla Public License, v. 2.0. -- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com> -- Stability   : auto-generated@@ -55,9 +55,15 @@ --         , requestBatchGetBuilds $ --             batchGetBuilds --+--         , requestUpdateWebhook $+--             updateWebhook+-- --         , requestDeleteWebhook $ --             deleteWebhook --+--         , requestInvalidateProjectCache $+--             invalidateProjectCache+-- --         , requestBatchDeleteBuilds $ --             batchDeleteBuilds --@@ -100,9 +106,15 @@ --         , responseBatchGetBuilds $ --             batchGetBuildsResponse --+--         , responseUpdateWebhook $+--             updateWebhookResponse+-- --         , responseDeleteWebhook $ --             deleteWebhookResponse --+--         , responseInvalidateProjectCache $+--             invalidateProjectCacheResponse+-- --         , responseBatchDeleteBuilds $ --             batchDeleteBuildsResponse --@@ -165,11 +177,21 @@     "BatchGetBuilds"     "fixture/BatchGetBuilds.yaml" +requestUpdateWebhook :: UpdateWebhook -> TestTree+requestUpdateWebhook = req+    "UpdateWebhook"+    "fixture/UpdateWebhook.yaml"+ requestDeleteWebhook :: DeleteWebhook -> TestTree requestDeleteWebhook = req     "DeleteWebhook"     "fixture/DeleteWebhook.yaml" +requestInvalidateProjectCache :: InvalidateProjectCache -> TestTree+requestInvalidateProjectCache = req+    "InvalidateProjectCache"+    "fixture/InvalidateProjectCache.yaml"+ requestBatchDeleteBuilds :: BatchDeleteBuilds -> TestTree requestBatchDeleteBuilds = req     "BatchDeleteBuilds"@@ -255,12 +277,26 @@     codeBuild     (Proxy :: Proxy BatchGetBuilds) +responseUpdateWebhook :: UpdateWebhookResponse -> TestTree+responseUpdateWebhook = res+    "UpdateWebhookResponse"+    "fixture/UpdateWebhookResponse.proto"+    codeBuild+    (Proxy :: Proxy UpdateWebhook)+ responseDeleteWebhook :: DeleteWebhookResponse -> TestTree responseDeleteWebhook = res     "DeleteWebhookResponse"     "fixture/DeleteWebhookResponse.proto"     codeBuild     (Proxy :: Proxy DeleteWebhook)++responseInvalidateProjectCache :: InvalidateProjectCacheResponse -> TestTree+responseInvalidateProjectCache = res+    "InvalidateProjectCacheResponse"+    "fixture/InvalidateProjectCacheResponse.proto"+    codeBuild+    (Proxy :: Proxy InvalidateProjectCache)  responseBatchDeleteBuilds :: BatchDeleteBuildsResponse -> TestTree responseBatchDeleteBuilds = res