packages feed

amazonka-codestar-connections (empty) → 2.0

raw patch · 54 files changed

+4673/−0 lines, 54 filesdep +amazonka-codestar-connectionsdep +amazonka-coredep +amazonka-test

Dependencies added: amazonka-codestar-connections, amazonka-core, amazonka-test, base, bytestring, case-insensitive, tasty, tasty-hunit, text, time, unordered-containers

Files

+ LICENSE view
@@ -0,0 +1,367 @@+Mozilla Public License Version 2.0+==================================++1. Definitions+--------------++1.1. "Contributor"+    means each individual or legal entity that creates, contributes to+    the creation of, or owns Covered Software.++1.2. "Contributor Version"+    means the combination of the Contributions of others (if any) used+    by a Contributor and that particular Contributor's Contribution.++1.3. "Contribution"+    means Covered Software of a particular Contributor.++1.4. "Covered Software"+    means Source Code Form to which the initial Contributor has attached+    the notice in Exhibit A, the Executable Form of such Source Code+    Form, and Modifications of such Source Code Form, in each case+    including portions thereof.++1.5. "Incompatible With Secondary Licenses"+    means++    (a) that the initial Contributor has attached the notice described+        in Exhibit B to the Covered Software; or++    (b) that the Covered Software was made available under the terms of+        version 1.1 or earlier of the License, but not also under the+        terms of a Secondary License.++1.6. "Executable Form"+    means any form of the work other than Source Code Form.++1.7. "Larger Work"+    means a work that combines Covered Software with other material, in+    a separate file or files, that is not Covered Software.++1.8. "License"+    means this document.++1.9. "Licensable"+    means having the right to grant, to the maximum extent possible,+    whether at the time of the initial grant or subsequently, any and+    all of the rights conveyed by this License.++1.10. "Modifications"+    means any of the following:++    (a) any file in Source Code Form that results from an addition to,+        deletion from, or modification of the contents of Covered+        Software; or++    (b) any new file in Source Code Form that contains any Covered+        Software.++1.11. "Patent Claims" of a Contributor+    means any patent claim(s), including without limitation, method,+    process, and apparatus claims, in any patent Licensable by such+    Contributor that would be infringed, but for the grant of the+    License, by the making, using, selling, offering for sale, having+    made, import, or transfer of either its Contributions or its+    Contributor Version.++1.12. "Secondary License"+    means either the GNU General Public License, Version 2.0, the GNU+    Lesser General Public License, Version 2.1, the GNU Affero General+    Public License, Version 3.0, or any later versions of those+    licenses.++1.13. "Source Code Form"+    means the form of the work preferred for making modifications.++1.14. "You" (or "Your")+    means an individual or a legal entity exercising rights under this+    License. For legal entities, "You" includes any entity that+    controls, is controlled by, or is under common control with You. For+    purposes of this definition, "control" means (a) the power, direct+    or indirect, to cause the direction or management of such entity,+    whether by contract or otherwise, or (b) ownership of more than+    fifty percent (50%) of the outstanding shares or beneficial+    ownership of such entity.++2. License Grants and Conditions+--------------------------------++2.1. Grants++Each Contributor hereby grants You a world-wide, royalty-free,+non-exclusive license:++(a) under intellectual property rights (other than patent or trademark)+    Licensable by such Contributor to use, reproduce, make available,+    modify, display, perform, distribute, and otherwise exploit its+    Contributions, either on an unmodified basis, with Modifications, or+    as part of a Larger Work; and++(b) under Patent Claims of such Contributor to make, use, sell, offer+    for sale, have made, import, and otherwise transfer either its+    Contributions or its Contributor Version.++2.2. Effective Date++The licenses granted in Section 2.1 with respect to any Contribution+become effective for each Contribution on the date the Contributor first+distributes such Contribution.++2.3. Limitations on Grant Scope++The licenses granted in this Section 2 are the only rights granted under+this License. No additional rights or licenses will be implied from the+distribution or licensing of Covered Software under this License.+Notwithstanding Section 2.1(b) above, no patent license is granted by a+Contributor:++(a) for any code that a Contributor has removed from Covered Software;+    or++(b) for infringements caused by: (i) Your and any other third party's+    modifications of Covered Software, or (ii) the combination of its+    Contributions with other software (except as part of its Contributor+    Version); or++(c) under Patent Claims infringed by Covered Software in the absence of+    its Contributions.++This License does not grant any rights in the trademarks, service marks,+or logos of any Contributor (except as may be necessary to comply with+the notice requirements in Section 3.4).++2.4. Subsequent Licenses++No Contributor makes additional grants as a result of Your choice to+distribute the Covered Software under a subsequent version of this+License (see Section 10.2) or under the terms of a Secondary License (if+permitted under the terms of Section 3.3).++2.5. Representation++Each Contributor represents that the Contributor believes its+Contributions are its original creation(s) or it has sufficient rights+to grant the rights to its Contributions conveyed by this License.++2.6. Fair Use++This License is not intended to limit any rights You have under+applicable copyright doctrines of fair use, fair dealing, or other+equivalents.++2.7. Conditions++Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted+in Section 2.1.++3. Responsibilities+-------------------++3.1. Distribution of Source Form++All distribution of Covered Software in Source Code Form, including any+Modifications that You create or to which You contribute, must be under+the terms of this License. You must inform recipients that the Source+Code Form of the Covered Software is governed by the terms of this+License, and how they can obtain a copy of this License. You may not+attempt to alter or restrict the recipients' rights in the Source Code+Form.++3.2. Distribution of Executable Form++If You distribute Covered Software in Executable Form then:++(a) such Covered Software must also be made available in Source Code+    Form, as described in Section 3.1, and You must inform recipients of+    the Executable Form how they can obtain a copy of such Source Code+    Form by reasonable means in a timely manner, at a charge no more+    than the cost of distribution to the recipient; and++(b) You may distribute such Executable Form under the terms of this+    License, or sublicense it under different terms, provided that the+    license for the Executable Form does not attempt to limit or alter+    the recipients' rights in the Source Code Form under this License.++3.3. Distribution of a Larger Work++You may create and distribute a Larger Work under terms of Your choice,+provided that You also comply with the requirements of this License for+the Covered Software. If the Larger Work is a combination of Covered+Software with a work governed by one or more Secondary Licenses, and the+Covered Software is not Incompatible With Secondary Licenses, this+License permits You to additionally distribute such Covered Software+under the terms of such Secondary License(s), so that the recipient of+the Larger Work may, at their option, further distribute the Covered+Software under the terms of either this License or such Secondary+License(s).++3.4. Notices++You may not remove or alter the substance of any license notices+(including copyright notices, patent notices, disclaimers of warranty,+or limitations of liability) contained within the Source Code Form of+the Covered Software, except that You may alter any license notices to+the extent required to remedy known factual inaccuracies.++3.5. Application of Additional Terms++You may choose to offer, and to charge a fee for, warranty, support,+indemnity or liability obligations to one or more recipients of Covered+Software. However, You may do so only on Your own behalf, and not on+behalf of any Contributor. You must make it absolutely clear that any+such warranty, support, indemnity, or liability obligation is offered by+You alone, and You hereby agree to indemnify every Contributor for any+liability incurred by such Contributor as a result of warranty, support,+indemnity or liability terms You offer. You may include additional+disclaimers of warranty and limitations of liability specific to any+jurisdiction.++4. Inability to Comply Due to Statute or Regulation+---------------------------------------------------++If it is impossible for You to comply with any of the terms of this+License with respect to some or all of the Covered Software due to+statute, judicial order, or regulation then You must: (a) comply with+the terms of this License to the maximum extent possible; and (b)+describe the limitations and the code they affect. Such description must+be placed in a text file included with all distributions of the Covered+Software under this License. Except to the extent prohibited by statute+or regulation, such description must be sufficiently detailed for a+recipient of ordinary skill to be able to understand it.++5. Termination+--------------++5.1. The rights granted under this License will terminate automatically+if You fail to comply with any of its terms. However, if You become+compliant, then the rights granted under this License from a particular+Contributor are reinstated (a) provisionally, unless and until such+Contributor explicitly and finally terminates Your grants, and (b) on an+ongoing basis, if such Contributor fails to notify You of the+non-compliance by some reasonable means prior to 60 days after You have+come back into compliance. Moreover, Your grants from a particular+Contributor are reinstated on an ongoing basis if such Contributor+notifies You of the non-compliance by some reasonable means, this is the+first time You have received notice of non-compliance with this License+from such Contributor, and You become compliant prior to 30 days after+Your receipt of the notice.++5.2. If You initiate litigation against any entity by asserting a patent+infringement claim (excluding declaratory judgment actions,+counter-claims, and cross-claims) alleging that a Contributor Version+directly or indirectly infringes any patent, then the rights granted to+You by any and all Contributors for the Covered Software under Section+2.1 of this License shall terminate.++5.3. In the event of termination under Sections 5.1 or 5.2 above, all+end user license agreements (excluding distributors and resellers) which+have been validly granted by You or Your distributors under this License+prior to termination shall survive termination.++************************************************************************+*                                                                      *+*  6. Disclaimer of Warranty                                           *+*  -------------------------                                           *+*                                                                      *+*  Covered Software is provided under this License on an "as is"       *+*  basis, without warranty of any kind, either expressed, implied, or  *+*  statutory, including, without limitation, warranties that the       *+*  Covered Software is free of defects, merchantable, fit for a        *+*  particular purpose or non-infringing. The entire risk as to the     *+*  quality and performance of the Covered Software is with You.        *+*  Should any Covered Software prove defective in any respect, You     *+*  (not any Contributor) assume the cost of any necessary servicing,   *+*  repair, or correction. This disclaimer of warranty constitutes an   *+*  essential part of this License. No use of any Covered Software is   *+*  authorized under this License except under this disclaimer.         *+*                                                                      *+************************************************************************++************************************************************************+*                                                                      *+*  7. Limitation of Liability                                          *+*  --------------------------                                          *+*                                                                      *+*  Under no circumstances and under no legal theory, whether tort      *+*  (including negligence), contract, or otherwise, shall any           *+*  Contributor, or anyone who distributes Covered Software as          *+*  permitted above, be liable to You for any direct, indirect,         *+*  special, incidental, or consequential damages of any character      *+*  including, without limitation, damages for lost profits, loss of    *+*  goodwill, work stoppage, computer failure or malfunction, or any    *+*  and all other commercial damages or losses, even if such party      *+*  shall have been informed of the possibility of such damages. This   *+*  limitation of liability shall not apply to liability for death or   *+*  personal injury resulting from such party's negligence to the       *+*  extent applicable law prohibits such limitation. Some               *+*  jurisdictions do not allow the exclusion or limitation of           *+*  incidental or consequential damages, so this exclusion and          *+*  limitation may not apply to You.                                    *+*                                                                      *+************************************************************************++8. Litigation+-------------++Any litigation relating to this License may be brought only in the+courts of a jurisdiction where the defendant maintains its principal+place of business and such litigation shall be governed by laws of that+jurisdiction, without reference to its conflict-of-law provisions.+Nothing in this Section shall prevent a party's ability to bring+cross-claims or counter-claims.++9. Miscellaneous+----------------++This License represents the complete agreement concerning the subject+matter hereof. If any provision of this License is held to be+unenforceable, such provision shall be reformed only to the extent+necessary to make it enforceable. Any law or regulation which provides+that the language of a contract shall be construed against the drafter+shall not be used to construe this License against a Contributor.++10. Versions of the License+---------------------------++10.1. New Versions++Mozilla Foundation is the license steward. Except as provided in Section+10.3, no one other than the license steward has the right to modify or+publish new versions of this License. Each version will be given a+distinguishing version number.++10.2. Effect of New Versions++You may distribute the Covered Software under the terms of the version+of the License under which You originally received the Covered Software,+or under the terms of any subsequent version published by the license+steward.++10.3. Modified Versions++If you create software not governed by this License, and you want to+create a new license for such software, you may create and use a+modified version of this License if you rename the license and remove+any references to the name of the license steward (except to note that+such modified license differs from this License).++10.4. Distributing Source Code Form that is Incompatible With Secondary+Licenses++If You choose to distribute Source Code Form that is Incompatible With+Secondary Licenses under the terms of this version of the License, the+notice described in Exhibit B of this License must be attached.++Exhibit A - Source Code Form License Notice+-------------------------------------------++  This Source Code Form is subject to the terms of the Mozilla Public+  License, v. 2.0. If a copy of the MPL was not distributed with this+  file, You can obtain one at http://mozilla.org/MPL/2.0/.++If it is not possible or desirable to put the notice in a particular+file, then You may include the notice in a location (such as a LICENSE+file in a relevant directory) where a recipient would be likely to look+for such a notice.++You may add additional accurate notices of copyright ownership.
+ README.md view
@@ -0,0 +1,44 @@+# Amazon CodeStar connections SDK++* [Version](#version)+* [Description](#description)+* [Contribute](#contribute)+* [Licence](#licence)+++## Version+ +`2.0` - Derived from API version @2019-12-01@ of the AWS service descriptions, licensed under Apache 2.0.++## Description++Documentation is available via [Hackage](http://hackage.haskell.org/package/amazonka-codestar-connections)+and the [AWS API Reference](https://aws.amazon.com/documentation/).++The types from this library are intended to be used with [amazonka](http://hackage.haskell.org/package/amazonka),+which provides mechanisms for specifying AuthN/AuthZ information, sending requests,+and receiving responses.++Lenses are used for constructing and manipulating types,+due to the depth of nesting of AWS types and transparency regarding+de/serialisation into more palatable Haskell values.+The provided lenses should be compatible with any of the major lens libraries+[lens](http://hackage.haskell.org/package/lens) or [lens-family-core](http://hackage.haskell.org/package/lens-family-core).++See [Amazonka.CodeStarConnections](http://hackage.haskell.org/package/amazonka-codestar-connections/docs/Amazonka-CodeStarConnections.html)+or [the AWS documentation](https://aws.amazon.com/documentation/) to get started.+++## Contribute++For any problems, comments, or feedback please create an issue [here on GitHub](https://github.com/brendanhay/amazonka/issues).++> _Note:_ this library is an auto-generated Haskell package. Please see `amazonka-gen` for more information.+++## Licence++`amazonka-codestar-connections` is released under the [Mozilla Public License Version 2.0](http://www.mozilla.org/MPL/).++Parts of the code are derived from AWS service descriptions, licensed under Apache 2.0.+Source files subject to this contain an additional licensing clause in their header.
+ amazonka-codestar-connections.cabal view
@@ -0,0 +1,101 @@+cabal-version:      2.2+name:               amazonka-codestar-connections+version:            2.0+synopsis:           Amazon CodeStar connections SDK.+homepage:           https://github.com/brendanhay/amazonka+bug-reports:        https://github.com/brendanhay/amazonka/issues+license:            MPL-2.0+license-file:       LICENSE+author:             Brendan Hay+maintainer:+  Brendan Hay <brendan.g.hay+amazonka@gmail.com>, Jack Kelly <jack@jackkelly.name>++copyright:          Copyright (c) 2013-2023 Brendan Hay+category:           AWS+build-type:         Simple+extra-source-files:+  fixture/*.proto+  fixture/*.yaml+  README.md+  src/.gitkeep++description:+  Derived from API version @2019-12-01@ of the AWS service descriptions, licensed under Apache 2.0.+  .+  The types from this library are intended to be used with <http://hackage.haskell.org/package/amazonka amazonka>,+  which provides mechanisms for specifying AuthN/AuthZ information, sending requests, and receiving responses.+  .+  It is recommended to use generic lenses or optics from packages such as <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify optional fields and deconstruct responses.+  .+  Generated lenses can be found in "Amazonka.CodeStarConnections.Lens" and are+  suitable for use with a lens package such as <http://hackage.haskell.org/package/lens lens> or <http://hackage.haskell.org/package/lens-family-core lens-family-core>.+  .+  See "Amazonka.CodeStarConnections" and the <https://aws.amazon.com/documentation/ AWS documentation> to get started.++source-repository head+  type:     git+  location: git://github.com/brendanhay/amazonka.git+  subdir:   amazonka-codestar-connections++library+  default-language: Haskell2010+  hs-source-dirs:   src gen+  ghc-options:+    -Wall -fwarn-incomplete-uni-patterns+    -fwarn-incomplete-record-updates -funbox-strict-fields++  exposed-modules:+    Amazonka.CodeStarConnections+    Amazonka.CodeStarConnections.CreateConnection+    Amazonka.CodeStarConnections.CreateHost+    Amazonka.CodeStarConnections.DeleteConnection+    Amazonka.CodeStarConnections.DeleteHost+    Amazonka.CodeStarConnections.GetConnection+    Amazonka.CodeStarConnections.GetHost+    Amazonka.CodeStarConnections.Lens+    Amazonka.CodeStarConnections.ListConnections+    Amazonka.CodeStarConnections.ListHosts+    Amazonka.CodeStarConnections.ListTagsForResource+    Amazonka.CodeStarConnections.TagResource+    Amazonka.CodeStarConnections.Types+    Amazonka.CodeStarConnections.Types.Connection+    Amazonka.CodeStarConnections.Types.ConnectionStatus+    Amazonka.CodeStarConnections.Types.Host+    Amazonka.CodeStarConnections.Types.ProviderType+    Amazonka.CodeStarConnections.Types.Tag+    Amazonka.CodeStarConnections.Types.VpcConfiguration+    Amazonka.CodeStarConnections.UntagResource+    Amazonka.CodeStarConnections.UpdateHost+    Amazonka.CodeStarConnections.Waiters++  build-depends:+    , amazonka-core  >=2.0  && <2.1+    , base           >=4.12 && <5++test-suite amazonka-codestar-connections-test+  type:             exitcode-stdio-1.0+  default-language: Haskell2010+  hs-source-dirs:   test+  main-is:          Main.hs+  ghc-options:      -Wall -threaded++  -- This section is encoded by the template and any modules added by+  -- hand outside these namespaces will not correctly be added to the+  -- distribution package.+  other-modules:+    Test.Amazonka.CodeStarConnections+    Test.Amazonka.CodeStarConnections.Internal+    Test.Amazonka.Gen.CodeStarConnections++  build-depends:+    , amazonka-codestar-connections+    , amazonka-core                  >=2.0 && <2.1+    , amazonka-test                  >=2.0 && <2.1+    , base+    , bytestring+    , case-insensitive+    , tasty+    , tasty-hunit+    , text+    , time+    , unordered-containers
+ fixture/CreateConnection.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/codestar-connections/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  codestar-connections.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/CreateConnectionResponse.proto view
+ fixture/CreateHost.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/codestar-connections/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  codestar-connections.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/CreateHostResponse.proto view
+ fixture/DeleteConnection.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/codestar-connections/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  codestar-connections.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/DeleteConnectionResponse.proto view
+ fixture/DeleteHost.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/codestar-connections/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  codestar-connections.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/DeleteHostResponse.proto view
+ fixture/GetConnection.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/codestar-connections/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  codestar-connections.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/GetConnectionResponse.proto view
+ fixture/GetHost.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/codestar-connections/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  codestar-connections.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/GetHostResponse.proto view
+ fixture/ListConnections.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/codestar-connections/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  codestar-connections.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/ListConnectionsResponse.proto view
+ fixture/ListHosts.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/codestar-connections/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  codestar-connections.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/ListHostsResponse.proto view
+ fixture/ListTagsForResource.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/codestar-connections/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  codestar-connections.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/ListTagsForResourceResponse.proto view
+ fixture/TagResource.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/codestar-connections/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  codestar-connections.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/TagResourceResponse.proto view
+ fixture/UntagResource.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/codestar-connections/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  codestar-connections.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/UntagResourceResponse.proto view
+ fixture/UpdateHost.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/codestar-connections/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  codestar-connections.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/UpdateHostResponse.proto view
+ gen/Amazonka/CodeStarConnections.hs view
@@ -0,0 +1,244 @@+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- |+-- Module      : Amazonka.CodeStarConnections+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Derived from API version @2019-12-01@ of the AWS service descriptions, licensed under Apache 2.0.+--+-- AWS CodeStar Connections+--+-- This AWS CodeStar Connections API Reference provides descriptions and+-- usage examples of the operations and data types for the AWS CodeStar+-- Connections API. You can use the connections API to work with+-- connections and installations.+--+-- /Connections/ are configurations that you use to connect AWS resources+-- to external code repositories. Each connection is a resource that can be+-- given to services such as CodePipeline to connect to a third-party+-- repository such as Bitbucket. For example, you can add the connection in+-- CodePipeline so that it triggers your pipeline when a code change is+-- made to your third-party code repository. Each connection is named and+-- associated with a unique ARN that is used to reference the connection.+--+-- When you create a connection, the console initiates a third-party+-- connection handshake. /Installations/ are the apps that are used to+-- conduct this handshake. For example, the installation for the Bitbucket+-- provider type is the Bitbucket app. When you create a connection, you+-- can choose an existing installation or create one.+--+-- When you want to create a connection to an installed provider type such+-- as GitHub Enterprise Server, you create a /host/ for your connections.+--+-- You can work with connections by calling:+--+-- -   CreateConnection, which creates a uniquely named connection that can+--     be referenced by services such as CodePipeline.+--+-- -   DeleteConnection, which deletes the specified connection.+--+-- -   GetConnection, which returns information about the connection,+--     including the connection status.+--+-- -   ListConnections, which lists the connections associated with your+--     account.+--+-- You can work with hosts by calling:+--+-- -   CreateHost, which creates a host that represents the infrastructure+--     where your provider is installed.+--+-- -   DeleteHost, which deletes the specified host.+--+-- -   GetHost, which returns information about the host, including the+--     setup status.+--+-- -   ListHosts, which lists the hosts associated with your account.+--+-- You can work with tags in AWS CodeStar Connections by calling the+-- following:+--+-- -   ListTagsForResource, which gets information about AWS tags for a+--     specified Amazon Resource Name (ARN) in AWS CodeStar Connections.+--+-- -   TagResource, which adds or updates tags for a resource in AWS+--     CodeStar Connections.+--+-- -   UntagResource, which removes tags for a resource in AWS CodeStar+--     Connections.+--+-- For information about how to use AWS CodeStar Connections, see the+-- <https://docs.aws.amazon.com/dtconsole/latest/userguide/welcome-connections.html Developer Tools User Guide>.+module Amazonka.CodeStarConnections+  ( -- * Service Configuration+    defaultService,++    -- * Errors+    -- $errors++    -- ** ConflictException+    _ConflictException,++    -- ** LimitExceededException+    _LimitExceededException,++    -- ** ResourceNotFoundException+    _ResourceNotFoundException,++    -- ** ResourceUnavailableException+    _ResourceUnavailableException,++    -- ** UnsupportedOperationException+    _UnsupportedOperationException,++    -- * Waiters+    -- $waiters++    -- * Operations+    -- $operations++    -- ** CreateConnection+    CreateConnection (CreateConnection'),+    newCreateConnection,+    CreateConnectionResponse (CreateConnectionResponse'),+    newCreateConnectionResponse,++    -- ** CreateHost+    CreateHost (CreateHost'),+    newCreateHost,+    CreateHostResponse (CreateHostResponse'),+    newCreateHostResponse,++    -- ** DeleteConnection+    DeleteConnection (DeleteConnection'),+    newDeleteConnection,+    DeleteConnectionResponse (DeleteConnectionResponse'),+    newDeleteConnectionResponse,++    -- ** DeleteHost+    DeleteHost (DeleteHost'),+    newDeleteHost,+    DeleteHostResponse (DeleteHostResponse'),+    newDeleteHostResponse,++    -- ** GetConnection+    GetConnection (GetConnection'),+    newGetConnection,+    GetConnectionResponse (GetConnectionResponse'),+    newGetConnectionResponse,++    -- ** GetHost+    GetHost (GetHost'),+    newGetHost,+    GetHostResponse (GetHostResponse'),+    newGetHostResponse,++    -- ** ListConnections+    ListConnections (ListConnections'),+    newListConnections,+    ListConnectionsResponse (ListConnectionsResponse'),+    newListConnectionsResponse,++    -- ** ListHosts+    ListHosts (ListHosts'),+    newListHosts,+    ListHostsResponse (ListHostsResponse'),+    newListHostsResponse,++    -- ** ListTagsForResource+    ListTagsForResource (ListTagsForResource'),+    newListTagsForResource,+    ListTagsForResourceResponse (ListTagsForResourceResponse'),+    newListTagsForResourceResponse,++    -- ** TagResource+    TagResource (TagResource'),+    newTagResource,+    TagResourceResponse (TagResourceResponse'),+    newTagResourceResponse,++    -- ** UntagResource+    UntagResource (UntagResource'),+    newUntagResource,+    UntagResourceResponse (UntagResourceResponse'),+    newUntagResourceResponse,++    -- ** UpdateHost+    UpdateHost (UpdateHost'),+    newUpdateHost,+    UpdateHostResponse (UpdateHostResponse'),+    newUpdateHostResponse,++    -- * Types++    -- ** ConnectionStatus+    ConnectionStatus (..),++    -- ** ProviderType+    ProviderType (..),++    -- ** Connection+    Connection (Connection'),+    newConnection,++    -- ** Host+    Host (Host'),+    newHost,++    -- ** Tag+    Tag (Tag'),+    newTag,++    -- ** VpcConfiguration+    VpcConfiguration (VpcConfiguration'),+    newVpcConfiguration,+  )+where++import Amazonka.CodeStarConnections.CreateConnection+import Amazonka.CodeStarConnections.CreateHost+import Amazonka.CodeStarConnections.DeleteConnection+import Amazonka.CodeStarConnections.DeleteHost+import Amazonka.CodeStarConnections.GetConnection+import Amazonka.CodeStarConnections.GetHost+import Amazonka.CodeStarConnections.Lens+import Amazonka.CodeStarConnections.ListConnections+import Amazonka.CodeStarConnections.ListHosts+import Amazonka.CodeStarConnections.ListTagsForResource+import Amazonka.CodeStarConnections.TagResource+import Amazonka.CodeStarConnections.Types+import Amazonka.CodeStarConnections.UntagResource+import Amazonka.CodeStarConnections.UpdateHost+import Amazonka.CodeStarConnections.Waiters++-- $errors+-- Error matchers are designed for use with the functions provided by+-- <http://hackage.haskell.org/package/lens/docs/Control-Exception-Lens.html Control.Exception.Lens>.+-- This allows catching (and rethrowing) service specific errors returned+-- by 'CodeStarConnections'.++-- $operations+-- Some AWS operations return results that are incomplete and require subsequent+-- requests in order to obtain the entire result set. The process of sending+-- subsequent requests to continue where a previous request left off is called+-- pagination. For example, the 'ListObjects' operation of Amazon S3 returns up to+-- 1000 objects at a time, and you must send subsequent requests with the+-- appropriate Marker in order to retrieve the next page of results.+--+-- Operations that have an 'AWSPager' instance can transparently perform subsequent+-- requests, correctly setting Markers and other request facets to iterate through+-- the entire result set of a truncated API operation. Operations which support+-- this have an additional note in the documentation.+--+-- Many operations have the ability to filter results on the server side. See the+-- individual operation parameters for details.++-- $waiters+-- Waiters poll by repeatedly sending a request until some remote success condition+-- configured by the 'Wait' specification is fulfilled. The 'Wait' specification+-- determines how many attempts should be made, in addition to delay and retry strategies.
+ gen/Amazonka/CodeStarConnections/CreateConnection.hs view
@@ -0,0 +1,252 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.CodeStarConnections.CreateConnection+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Creates a connection that can then be given to other AWS services like+-- CodePipeline so that it can access third-party code repositories. The+-- connection is in pending status until the third-party connection+-- handshake is completed from the console.+module Amazonka.CodeStarConnections.CreateConnection+  ( -- * Creating a Request+    CreateConnection (..),+    newCreateConnection,++    -- * Request Lenses+    createConnection_hostArn,+    createConnection_providerType,+    createConnection_tags,+    createConnection_connectionName,++    -- * Destructuring the Response+    CreateConnectionResponse (..),+    newCreateConnectionResponse,++    -- * Response Lenses+    createConnectionResponse_tags,+    createConnectionResponse_httpStatus,+    createConnectionResponse_connectionArn,+  )+where++import Amazonka.CodeStarConnections.Types+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Request as Request+import qualified Amazonka.Response as Response++-- | /See:/ 'newCreateConnection' smart constructor.+data CreateConnection = CreateConnection'+  { -- | The Amazon Resource Name (ARN) of the host associated with the+    -- connection to be created.+    hostArn :: Prelude.Maybe Prelude.Text,+    -- | The name of the external provider where your third-party code repository+    -- is configured.+    providerType :: Prelude.Maybe ProviderType,+    -- | The key-value pair to use when tagging the resource.+    tags :: Prelude.Maybe [Tag],+    -- | The name of the connection to be created. The name must be unique in the+    -- calling AWS account.+    connectionName :: Prelude.Text+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'CreateConnection' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'hostArn', 'createConnection_hostArn' - The Amazon Resource Name (ARN) of the host associated with the+-- connection to be created.+--+-- 'providerType', 'createConnection_providerType' - The name of the external provider where your third-party code repository+-- is configured.+--+-- 'tags', 'createConnection_tags' - The key-value pair to use when tagging the resource.+--+-- 'connectionName', 'createConnection_connectionName' - The name of the connection to be created. The name must be unique in the+-- calling AWS account.+newCreateConnection ::+  -- | 'connectionName'+  Prelude.Text ->+  CreateConnection+newCreateConnection pConnectionName_ =+  CreateConnection'+    { hostArn = Prelude.Nothing,+      providerType = Prelude.Nothing,+      tags = Prelude.Nothing,+      connectionName = pConnectionName_+    }++-- | The Amazon Resource Name (ARN) of the host associated with the+-- connection to be created.+createConnection_hostArn :: Lens.Lens' CreateConnection (Prelude.Maybe Prelude.Text)+createConnection_hostArn = Lens.lens (\CreateConnection' {hostArn} -> hostArn) (\s@CreateConnection' {} a -> s {hostArn = a} :: CreateConnection)++-- | The name of the external provider where your third-party code repository+-- is configured.+createConnection_providerType :: Lens.Lens' CreateConnection (Prelude.Maybe ProviderType)+createConnection_providerType = Lens.lens (\CreateConnection' {providerType} -> providerType) (\s@CreateConnection' {} a -> s {providerType = a} :: CreateConnection)++-- | The key-value pair to use when tagging the resource.+createConnection_tags :: Lens.Lens' CreateConnection (Prelude.Maybe [Tag])+createConnection_tags = Lens.lens (\CreateConnection' {tags} -> tags) (\s@CreateConnection' {} a -> s {tags = a} :: CreateConnection) Prelude.. Lens.mapping Lens.coerced++-- | The name of the connection to be created. The name must be unique in the+-- calling AWS account.+createConnection_connectionName :: Lens.Lens' CreateConnection Prelude.Text+createConnection_connectionName = Lens.lens (\CreateConnection' {connectionName} -> connectionName) (\s@CreateConnection' {} a -> s {connectionName = a} :: CreateConnection)++instance Core.AWSRequest CreateConnection where+  type+    AWSResponse CreateConnection =+      CreateConnectionResponse+  request overrides =+    Request.postJSON (overrides defaultService)+  response =+    Response.receiveJSON+      ( \s h x ->+          CreateConnectionResponse'+            Prelude.<$> (x Data..?> "Tags" Core..!@ Prelude.mempty)+            Prelude.<*> (Prelude.pure (Prelude.fromEnum s))+            Prelude.<*> (x Data..:> "ConnectionArn")+      )++instance Prelude.Hashable CreateConnection where+  hashWithSalt _salt CreateConnection' {..} =+    _salt+      `Prelude.hashWithSalt` hostArn+      `Prelude.hashWithSalt` providerType+      `Prelude.hashWithSalt` tags+      `Prelude.hashWithSalt` connectionName++instance Prelude.NFData CreateConnection where+  rnf CreateConnection' {..} =+    Prelude.rnf hostArn+      `Prelude.seq` Prelude.rnf providerType+      `Prelude.seq` Prelude.rnf tags+      `Prelude.seq` Prelude.rnf connectionName++instance Data.ToHeaders CreateConnection where+  toHeaders =+    Prelude.const+      ( Prelude.mconcat+          [ "X-Amz-Target"+              Data.=# ( "com.amazonaws.codestar.connections.CodeStar_connections_20191201.CreateConnection" ::+                          Prelude.ByteString+                      ),+            "Content-Type"+              Data.=# ( "application/x-amz-json-1.0" ::+                          Prelude.ByteString+                      )+          ]+      )++instance Data.ToJSON CreateConnection where+  toJSON CreateConnection' {..} =+    Data.object+      ( Prelude.catMaybes+          [ ("HostArn" Data..=) Prelude.<$> hostArn,+            ("ProviderType" Data..=) Prelude.<$> providerType,+            ("Tags" Data..=) Prelude.<$> tags,+            Prelude.Just+              ("ConnectionName" Data..= connectionName)+          ]+      )++instance Data.ToPath CreateConnection where+  toPath = Prelude.const "/"++instance Data.ToQuery CreateConnection where+  toQuery = Prelude.const Prelude.mempty++-- | /See:/ 'newCreateConnectionResponse' smart constructor.+data CreateConnectionResponse = CreateConnectionResponse'+  { -- | Specifies the tags applied to the resource.+    tags :: Prelude.Maybe [Tag],+    -- | The response's http status code.+    httpStatus :: Prelude.Int,+    -- | The Amazon Resource Name (ARN) of the connection to be created. The ARN+    -- is used as the connection reference when the connection is shared+    -- between AWS services.+    --+    -- The ARN is never reused if the connection is deleted.+    connectionArn :: Prelude.Text+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'CreateConnectionResponse' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'tags', 'createConnectionResponse_tags' - Specifies the tags applied to the resource.+--+-- 'httpStatus', 'createConnectionResponse_httpStatus' - The response's http status code.+--+-- 'connectionArn', 'createConnectionResponse_connectionArn' - The Amazon Resource Name (ARN) of the connection to be created. The ARN+-- is used as the connection reference when the connection is shared+-- between AWS services.+--+-- The ARN is never reused if the connection is deleted.+newCreateConnectionResponse ::+  -- | 'httpStatus'+  Prelude.Int ->+  -- | 'connectionArn'+  Prelude.Text ->+  CreateConnectionResponse+newCreateConnectionResponse+  pHttpStatus_+  pConnectionArn_ =+    CreateConnectionResponse'+      { tags = Prelude.Nothing,+        httpStatus = pHttpStatus_,+        connectionArn = pConnectionArn_+      }++-- | Specifies the tags applied to the resource.+createConnectionResponse_tags :: Lens.Lens' CreateConnectionResponse (Prelude.Maybe [Tag])+createConnectionResponse_tags = Lens.lens (\CreateConnectionResponse' {tags} -> tags) (\s@CreateConnectionResponse' {} a -> s {tags = a} :: CreateConnectionResponse) Prelude.. Lens.mapping Lens.coerced++-- | The response's http status code.+createConnectionResponse_httpStatus :: Lens.Lens' CreateConnectionResponse Prelude.Int+createConnectionResponse_httpStatus = Lens.lens (\CreateConnectionResponse' {httpStatus} -> httpStatus) (\s@CreateConnectionResponse' {} a -> s {httpStatus = a} :: CreateConnectionResponse)++-- | The Amazon Resource Name (ARN) of the connection to be created. The ARN+-- is used as the connection reference when the connection is shared+-- between AWS services.+--+-- The ARN is never reused if the connection is deleted.+createConnectionResponse_connectionArn :: Lens.Lens' CreateConnectionResponse Prelude.Text+createConnectionResponse_connectionArn = Lens.lens (\CreateConnectionResponse' {connectionArn} -> connectionArn) (\s@CreateConnectionResponse' {} a -> s {connectionArn = a} :: CreateConnectionResponse)++instance Prelude.NFData CreateConnectionResponse where+  rnf CreateConnectionResponse' {..} =+    Prelude.rnf tags+      `Prelude.seq` Prelude.rnf httpStatus+      `Prelude.seq` Prelude.rnf connectionArn
+ gen/Amazonka/CodeStarConnections/CreateHost.hs view
@@ -0,0 +1,270 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.CodeStarConnections.CreateHost+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Creates a resource that represents the infrastructure where a+-- third-party provider is installed. The host is used when you create+-- connections to an installed third-party provider type, such as GitHub+-- Enterprise Server. You create one host for all connections to that+-- provider.+--+-- A host created through the CLI or the SDK is in \`PENDING\` status by+-- default. You can make its status \`AVAILABLE\` by setting up the host in+-- the console.+module Amazonka.CodeStarConnections.CreateHost+  ( -- * Creating a Request+    CreateHost (..),+    newCreateHost,++    -- * Request Lenses+    createHost_tags,+    createHost_vpcConfiguration,+    createHost_name,+    createHost_providerType,+    createHost_providerEndpoint,++    -- * Destructuring the Response+    CreateHostResponse (..),+    newCreateHostResponse,++    -- * Response Lenses+    createHostResponse_hostArn,+    createHostResponse_tags,+    createHostResponse_httpStatus,+  )+where++import Amazonka.CodeStarConnections.Types+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Request as Request+import qualified Amazonka.Response as Response++-- | /See:/ 'newCreateHost' smart constructor.+data CreateHost = CreateHost'+  { tags :: Prelude.Maybe [Tag],+    -- | The VPC configuration to be provisioned for the host. A VPC must be+    -- configured and the infrastructure to be represented by the host must+    -- already be connected to the VPC.+    vpcConfiguration :: Prelude.Maybe VpcConfiguration,+    -- | The name of the host to be created. The name must be unique in the+    -- calling AWS account.+    name :: Prelude.Text,+    -- | The name of the installed provider to be associated with your+    -- connection. The host resource represents the infrastructure where your+    -- provider type is installed. The valid provider type is GitHub Enterprise+    -- Server.+    providerType :: ProviderType,+    -- | The endpoint of the infrastructure to be represented by the host after+    -- it is created.+    providerEndpoint :: Prelude.Text+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'CreateHost' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'tags', 'createHost_tags' - Undocumented member.+--+-- 'vpcConfiguration', 'createHost_vpcConfiguration' - The VPC configuration to be provisioned for the host. A VPC must be+-- configured and the infrastructure to be represented by the host must+-- already be connected to the VPC.+--+-- 'name', 'createHost_name' - The name of the host to be created. The name must be unique in the+-- calling AWS account.+--+-- 'providerType', 'createHost_providerType' - The name of the installed provider to be associated with your+-- connection. The host resource represents the infrastructure where your+-- provider type is installed. The valid provider type is GitHub Enterprise+-- Server.+--+-- 'providerEndpoint', 'createHost_providerEndpoint' - The endpoint of the infrastructure to be represented by the host after+-- it is created.+newCreateHost ::+  -- | 'name'+  Prelude.Text ->+  -- | 'providerType'+  ProviderType ->+  -- | 'providerEndpoint'+  Prelude.Text ->+  CreateHost+newCreateHost+  pName_+  pProviderType_+  pProviderEndpoint_ =+    CreateHost'+      { tags = Prelude.Nothing,+        vpcConfiguration = Prelude.Nothing,+        name = pName_,+        providerType = pProviderType_,+        providerEndpoint = pProviderEndpoint_+      }++-- | Undocumented member.+createHost_tags :: Lens.Lens' CreateHost (Prelude.Maybe [Tag])+createHost_tags = Lens.lens (\CreateHost' {tags} -> tags) (\s@CreateHost' {} a -> s {tags = a} :: CreateHost) Prelude.. Lens.mapping Lens.coerced++-- | The VPC configuration to be provisioned for the host. A VPC must be+-- configured and the infrastructure to be represented by the host must+-- already be connected to the VPC.+createHost_vpcConfiguration :: Lens.Lens' CreateHost (Prelude.Maybe VpcConfiguration)+createHost_vpcConfiguration = Lens.lens (\CreateHost' {vpcConfiguration} -> vpcConfiguration) (\s@CreateHost' {} a -> s {vpcConfiguration = a} :: CreateHost)++-- | The name of the host to be created. The name must be unique in the+-- calling AWS account.+createHost_name :: Lens.Lens' CreateHost Prelude.Text+createHost_name = Lens.lens (\CreateHost' {name} -> name) (\s@CreateHost' {} a -> s {name = a} :: CreateHost)++-- | The name of the installed provider to be associated with your+-- connection. The host resource represents the infrastructure where your+-- provider type is installed. The valid provider type is GitHub Enterprise+-- Server.+createHost_providerType :: Lens.Lens' CreateHost ProviderType+createHost_providerType = Lens.lens (\CreateHost' {providerType} -> providerType) (\s@CreateHost' {} a -> s {providerType = a} :: CreateHost)++-- | The endpoint of the infrastructure to be represented by the host after+-- it is created.+createHost_providerEndpoint :: Lens.Lens' CreateHost Prelude.Text+createHost_providerEndpoint = Lens.lens (\CreateHost' {providerEndpoint} -> providerEndpoint) (\s@CreateHost' {} a -> s {providerEndpoint = a} :: CreateHost)++instance Core.AWSRequest CreateHost where+  type AWSResponse CreateHost = CreateHostResponse+  request overrides =+    Request.postJSON (overrides defaultService)+  response =+    Response.receiveJSON+      ( \s h x ->+          CreateHostResponse'+            Prelude.<$> (x Data..?> "HostArn")+            Prelude.<*> (x Data..?> "Tags" Core..!@ Prelude.mempty)+            Prelude.<*> (Prelude.pure (Prelude.fromEnum s))+      )++instance Prelude.Hashable CreateHost where+  hashWithSalt _salt CreateHost' {..} =+    _salt+      `Prelude.hashWithSalt` tags+      `Prelude.hashWithSalt` vpcConfiguration+      `Prelude.hashWithSalt` name+      `Prelude.hashWithSalt` providerType+      `Prelude.hashWithSalt` providerEndpoint++instance Prelude.NFData CreateHost where+  rnf CreateHost' {..} =+    Prelude.rnf tags+      `Prelude.seq` Prelude.rnf vpcConfiguration+      `Prelude.seq` Prelude.rnf name+      `Prelude.seq` Prelude.rnf providerType+      `Prelude.seq` Prelude.rnf providerEndpoint++instance Data.ToHeaders CreateHost where+  toHeaders =+    Prelude.const+      ( Prelude.mconcat+          [ "X-Amz-Target"+              Data.=# ( "com.amazonaws.codestar.connections.CodeStar_connections_20191201.CreateHost" ::+                          Prelude.ByteString+                      ),+            "Content-Type"+              Data.=# ( "application/x-amz-json-1.0" ::+                          Prelude.ByteString+                      )+          ]+      )++instance Data.ToJSON CreateHost where+  toJSON CreateHost' {..} =+    Data.object+      ( Prelude.catMaybes+          [ ("Tags" Data..=) Prelude.<$> tags,+            ("VpcConfiguration" Data..=)+              Prelude.<$> vpcConfiguration,+            Prelude.Just ("Name" Data..= name),+            Prelude.Just ("ProviderType" Data..= providerType),+            Prelude.Just+              ("ProviderEndpoint" Data..= providerEndpoint)+          ]+      )++instance Data.ToPath CreateHost where+  toPath = Prelude.const "/"++instance Data.ToQuery CreateHost where+  toQuery = Prelude.const Prelude.mempty++-- | /See:/ 'newCreateHostResponse' smart constructor.+data CreateHostResponse = CreateHostResponse'+  { -- | The Amazon Resource Name (ARN) of the host to be created.+    hostArn :: Prelude.Maybe Prelude.Text,+    tags :: Prelude.Maybe [Tag],+    -- | The response's http status code.+    httpStatus :: Prelude.Int+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'CreateHostResponse' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'hostArn', 'createHostResponse_hostArn' - The Amazon Resource Name (ARN) of the host to be created.+--+-- 'tags', 'createHostResponse_tags' - Undocumented member.+--+-- 'httpStatus', 'createHostResponse_httpStatus' - The response's http status code.+newCreateHostResponse ::+  -- | 'httpStatus'+  Prelude.Int ->+  CreateHostResponse+newCreateHostResponse pHttpStatus_ =+  CreateHostResponse'+    { hostArn = Prelude.Nothing,+      tags = Prelude.Nothing,+      httpStatus = pHttpStatus_+    }++-- | The Amazon Resource Name (ARN) of the host to be created.+createHostResponse_hostArn :: Lens.Lens' CreateHostResponse (Prelude.Maybe Prelude.Text)+createHostResponse_hostArn = Lens.lens (\CreateHostResponse' {hostArn} -> hostArn) (\s@CreateHostResponse' {} a -> s {hostArn = a} :: CreateHostResponse)++-- | Undocumented member.+createHostResponse_tags :: Lens.Lens' CreateHostResponse (Prelude.Maybe [Tag])+createHostResponse_tags = Lens.lens (\CreateHostResponse' {tags} -> tags) (\s@CreateHostResponse' {} a -> s {tags = a} :: CreateHostResponse) Prelude.. Lens.mapping Lens.coerced++-- | The response's http status code.+createHostResponse_httpStatus :: Lens.Lens' CreateHostResponse Prelude.Int+createHostResponse_httpStatus = Lens.lens (\CreateHostResponse' {httpStatus} -> httpStatus) (\s@CreateHostResponse' {} a -> s {httpStatus = a} :: CreateHostResponse)++instance Prelude.NFData CreateHostResponse where+  rnf CreateHostResponse' {..} =+    Prelude.rnf hostArn+      `Prelude.seq` Prelude.rnf tags+      `Prelude.seq` Prelude.rnf httpStatus
+ gen/Amazonka/CodeStarConnections/DeleteConnection.hs view
@@ -0,0 +1,164 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.CodeStarConnections.DeleteConnection+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- The connection to be deleted.+module Amazonka.CodeStarConnections.DeleteConnection+  ( -- * Creating a Request+    DeleteConnection (..),+    newDeleteConnection,++    -- * Request Lenses+    deleteConnection_connectionArn,++    -- * Destructuring the Response+    DeleteConnectionResponse (..),+    newDeleteConnectionResponse,++    -- * Response Lenses+    deleteConnectionResponse_httpStatus,+  )+where++import Amazonka.CodeStarConnections.Types+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Request as Request+import qualified Amazonka.Response as Response++-- | /See:/ 'newDeleteConnection' smart constructor.+data DeleteConnection = DeleteConnection'+  { -- | The Amazon Resource Name (ARN) of the connection to be deleted.+    --+    -- The ARN is never reused if the connection is deleted.+    connectionArn :: Prelude.Text+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'DeleteConnection' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'connectionArn', 'deleteConnection_connectionArn' - The Amazon Resource Name (ARN) of the connection to be deleted.+--+-- The ARN is never reused if the connection is deleted.+newDeleteConnection ::+  -- | 'connectionArn'+  Prelude.Text ->+  DeleteConnection+newDeleteConnection pConnectionArn_ =+  DeleteConnection' {connectionArn = pConnectionArn_}++-- | The Amazon Resource Name (ARN) of the connection to be deleted.+--+-- The ARN is never reused if the connection is deleted.+deleteConnection_connectionArn :: Lens.Lens' DeleteConnection Prelude.Text+deleteConnection_connectionArn = Lens.lens (\DeleteConnection' {connectionArn} -> connectionArn) (\s@DeleteConnection' {} a -> s {connectionArn = a} :: DeleteConnection)++instance Core.AWSRequest DeleteConnection where+  type+    AWSResponse DeleteConnection =+      DeleteConnectionResponse+  request overrides =+    Request.postJSON (overrides defaultService)+  response =+    Response.receiveEmpty+      ( \s h x ->+          DeleteConnectionResponse'+            Prelude.<$> (Prelude.pure (Prelude.fromEnum s))+      )++instance Prelude.Hashable DeleteConnection where+  hashWithSalt _salt DeleteConnection' {..} =+    _salt `Prelude.hashWithSalt` connectionArn++instance Prelude.NFData DeleteConnection where+  rnf DeleteConnection' {..} = Prelude.rnf connectionArn++instance Data.ToHeaders DeleteConnection where+  toHeaders =+    Prelude.const+      ( Prelude.mconcat+          [ "X-Amz-Target"+              Data.=# ( "com.amazonaws.codestar.connections.CodeStar_connections_20191201.DeleteConnection" ::+                          Prelude.ByteString+                      ),+            "Content-Type"+              Data.=# ( "application/x-amz-json-1.0" ::+                          Prelude.ByteString+                      )+          ]+      )++instance Data.ToJSON DeleteConnection where+  toJSON DeleteConnection' {..} =+    Data.object+      ( Prelude.catMaybes+          [ Prelude.Just+              ("ConnectionArn" Data..= connectionArn)+          ]+      )++instance Data.ToPath DeleteConnection where+  toPath = Prelude.const "/"++instance Data.ToQuery DeleteConnection where+  toQuery = Prelude.const Prelude.mempty++-- | /See:/ 'newDeleteConnectionResponse' smart constructor.+data DeleteConnectionResponse = DeleteConnectionResponse'+  { -- | The response's http status code.+    httpStatus :: Prelude.Int+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'DeleteConnectionResponse' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'httpStatus', 'deleteConnectionResponse_httpStatus' - The response's http status code.+newDeleteConnectionResponse ::+  -- | 'httpStatus'+  Prelude.Int ->+  DeleteConnectionResponse+newDeleteConnectionResponse pHttpStatus_ =+  DeleteConnectionResponse'+    { httpStatus =+        pHttpStatus_+    }++-- | The response's http status code.+deleteConnectionResponse_httpStatus :: Lens.Lens' DeleteConnectionResponse Prelude.Int+deleteConnectionResponse_httpStatus = Lens.lens (\DeleteConnectionResponse' {httpStatus} -> httpStatus) (\s@DeleteConnectionResponse' {} a -> s {httpStatus = a} :: DeleteConnectionResponse)++instance Prelude.NFData DeleteConnectionResponse where+  rnf DeleteConnectionResponse' {..} =+    Prelude.rnf httpStatus
+ gen/Amazonka/CodeStarConnections/DeleteHost.hs view
@@ -0,0 +1,154 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.CodeStarConnections.DeleteHost+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- The host to be deleted. Before you delete a host, all connections+-- associated to the host must be deleted.+--+-- A host cannot be deleted if it is in the VPC_CONFIG_INITIALIZING or+-- VPC_CONFIG_DELETING state.+module Amazonka.CodeStarConnections.DeleteHost+  ( -- * Creating a Request+    DeleteHost (..),+    newDeleteHost,++    -- * Request Lenses+    deleteHost_hostArn,++    -- * Destructuring the Response+    DeleteHostResponse (..),+    newDeleteHostResponse,++    -- * Response Lenses+    deleteHostResponse_httpStatus,+  )+where++import Amazonka.CodeStarConnections.Types+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Request as Request+import qualified Amazonka.Response as Response++-- | /See:/ 'newDeleteHost' smart constructor.+data DeleteHost = DeleteHost'+  { -- | The Amazon Resource Name (ARN) of the host to be deleted.+    hostArn :: Prelude.Text+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'DeleteHost' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'hostArn', 'deleteHost_hostArn' - The Amazon Resource Name (ARN) of the host to be deleted.+newDeleteHost ::+  -- | 'hostArn'+  Prelude.Text ->+  DeleteHost+newDeleteHost pHostArn_ =+  DeleteHost' {hostArn = pHostArn_}++-- | The Amazon Resource Name (ARN) of the host to be deleted.+deleteHost_hostArn :: Lens.Lens' DeleteHost Prelude.Text+deleteHost_hostArn = Lens.lens (\DeleteHost' {hostArn} -> hostArn) (\s@DeleteHost' {} a -> s {hostArn = a} :: DeleteHost)++instance Core.AWSRequest DeleteHost where+  type AWSResponse DeleteHost = DeleteHostResponse+  request overrides =+    Request.postJSON (overrides defaultService)+  response =+    Response.receiveEmpty+      ( \s h x ->+          DeleteHostResponse'+            Prelude.<$> (Prelude.pure (Prelude.fromEnum s))+      )++instance Prelude.Hashable DeleteHost where+  hashWithSalt _salt DeleteHost' {..} =+    _salt `Prelude.hashWithSalt` hostArn++instance Prelude.NFData DeleteHost where+  rnf DeleteHost' {..} = Prelude.rnf hostArn++instance Data.ToHeaders DeleteHost where+  toHeaders =+    Prelude.const+      ( Prelude.mconcat+          [ "X-Amz-Target"+              Data.=# ( "com.amazonaws.codestar.connections.CodeStar_connections_20191201.DeleteHost" ::+                          Prelude.ByteString+                      ),+            "Content-Type"+              Data.=# ( "application/x-amz-json-1.0" ::+                          Prelude.ByteString+                      )+          ]+      )++instance Data.ToJSON DeleteHost where+  toJSON DeleteHost' {..} =+    Data.object+      ( Prelude.catMaybes+          [Prelude.Just ("HostArn" Data..= hostArn)]+      )++instance Data.ToPath DeleteHost where+  toPath = Prelude.const "/"++instance Data.ToQuery DeleteHost where+  toQuery = Prelude.const Prelude.mempty++-- | /See:/ 'newDeleteHostResponse' smart constructor.+data DeleteHostResponse = DeleteHostResponse'+  { -- | The response's http status code.+    httpStatus :: Prelude.Int+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'DeleteHostResponse' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'httpStatus', 'deleteHostResponse_httpStatus' - The response's http status code.+newDeleteHostResponse ::+  -- | 'httpStatus'+  Prelude.Int ->+  DeleteHostResponse+newDeleteHostResponse pHttpStatus_ =+  DeleteHostResponse' {httpStatus = pHttpStatus_}++-- | The response's http status code.+deleteHostResponse_httpStatus :: Lens.Lens' DeleteHostResponse Prelude.Int+deleteHostResponse_httpStatus = Lens.lens (\DeleteHostResponse' {httpStatus} -> httpStatus) (\s@DeleteHostResponse' {} a -> s {httpStatus = a} :: DeleteHostResponse)++instance Prelude.NFData DeleteHostResponse where+  rnf DeleteHostResponse' {..} = Prelude.rnf httpStatus
+ gen/Amazonka/CodeStarConnections/GetConnection.hs view
@@ -0,0 +1,171 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.CodeStarConnections.GetConnection+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Returns the connection ARN and details such as status, owner, and+-- provider type.+module Amazonka.CodeStarConnections.GetConnection+  ( -- * Creating a Request+    GetConnection (..),+    newGetConnection,++    -- * Request Lenses+    getConnection_connectionArn,++    -- * Destructuring the Response+    GetConnectionResponse (..),+    newGetConnectionResponse,++    -- * Response Lenses+    getConnectionResponse_connection,+    getConnectionResponse_httpStatus,+  )+where++import Amazonka.CodeStarConnections.Types+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Request as Request+import qualified Amazonka.Response as Response++-- | /See:/ 'newGetConnection' smart constructor.+data GetConnection = GetConnection'+  { -- | The Amazon Resource Name (ARN) of a connection.+    connectionArn :: Prelude.Text+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'GetConnection' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'connectionArn', 'getConnection_connectionArn' - The Amazon Resource Name (ARN) of a connection.+newGetConnection ::+  -- | 'connectionArn'+  Prelude.Text ->+  GetConnection+newGetConnection pConnectionArn_ =+  GetConnection' {connectionArn = pConnectionArn_}++-- | The Amazon Resource Name (ARN) of a connection.+getConnection_connectionArn :: Lens.Lens' GetConnection Prelude.Text+getConnection_connectionArn = Lens.lens (\GetConnection' {connectionArn} -> connectionArn) (\s@GetConnection' {} a -> s {connectionArn = a} :: GetConnection)++instance Core.AWSRequest GetConnection where+  type+    AWSResponse GetConnection =+      GetConnectionResponse+  request overrides =+    Request.postJSON (overrides defaultService)+  response =+    Response.receiveJSON+      ( \s h x ->+          GetConnectionResponse'+            Prelude.<$> (x Data..?> "Connection")+            Prelude.<*> (Prelude.pure (Prelude.fromEnum s))+      )++instance Prelude.Hashable GetConnection where+  hashWithSalt _salt GetConnection' {..} =+    _salt `Prelude.hashWithSalt` connectionArn++instance Prelude.NFData GetConnection where+  rnf GetConnection' {..} = Prelude.rnf connectionArn++instance Data.ToHeaders GetConnection where+  toHeaders =+    Prelude.const+      ( Prelude.mconcat+          [ "X-Amz-Target"+              Data.=# ( "com.amazonaws.codestar.connections.CodeStar_connections_20191201.GetConnection" ::+                          Prelude.ByteString+                      ),+            "Content-Type"+              Data.=# ( "application/x-amz-json-1.0" ::+                          Prelude.ByteString+                      )+          ]+      )++instance Data.ToJSON GetConnection where+  toJSON GetConnection' {..} =+    Data.object+      ( Prelude.catMaybes+          [ Prelude.Just+              ("ConnectionArn" Data..= connectionArn)+          ]+      )++instance Data.ToPath GetConnection where+  toPath = Prelude.const "/"++instance Data.ToQuery GetConnection where+  toQuery = Prelude.const Prelude.mempty++-- | /See:/ 'newGetConnectionResponse' smart constructor.+data GetConnectionResponse = GetConnectionResponse'+  { -- | The connection details, such as status, owner, and provider type.+    connection :: Prelude.Maybe Connection,+    -- | The response's http status code.+    httpStatus :: Prelude.Int+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'GetConnectionResponse' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'connection', 'getConnectionResponse_connection' - The connection details, such as status, owner, and provider type.+--+-- 'httpStatus', 'getConnectionResponse_httpStatus' - The response's http status code.+newGetConnectionResponse ::+  -- | 'httpStatus'+  Prelude.Int ->+  GetConnectionResponse+newGetConnectionResponse pHttpStatus_ =+  GetConnectionResponse'+    { connection =+        Prelude.Nothing,+      httpStatus = pHttpStatus_+    }++-- | The connection details, such as status, owner, and provider type.+getConnectionResponse_connection :: Lens.Lens' GetConnectionResponse (Prelude.Maybe Connection)+getConnectionResponse_connection = Lens.lens (\GetConnectionResponse' {connection} -> connection) (\s@GetConnectionResponse' {} a -> s {connection = a} :: GetConnectionResponse)++-- | The response's http status code.+getConnectionResponse_httpStatus :: Lens.Lens' GetConnectionResponse Prelude.Int+getConnectionResponse_httpStatus = Lens.lens (\GetConnectionResponse' {httpStatus} -> httpStatus) (\s@GetConnectionResponse' {} a -> s {httpStatus = a} :: GetConnectionResponse)++instance Prelude.NFData GetConnectionResponse where+  rnf GetConnectionResponse' {..} =+    Prelude.rnf connection+      `Prelude.seq` Prelude.rnf httpStatus
+ gen/Amazonka/CodeStarConnections/GetHost.hs view
@@ -0,0 +1,216 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.CodeStarConnections.GetHost+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Returns the host ARN and details such as status, provider type,+-- endpoint, and, if applicable, the VPC configuration.+module Amazonka.CodeStarConnections.GetHost+  ( -- * Creating a Request+    GetHost (..),+    newGetHost,++    -- * Request Lenses+    getHost_hostArn,++    -- * Destructuring the Response+    GetHostResponse (..),+    newGetHostResponse,++    -- * Response Lenses+    getHostResponse_name,+    getHostResponse_providerEndpoint,+    getHostResponse_providerType,+    getHostResponse_status,+    getHostResponse_vpcConfiguration,+    getHostResponse_httpStatus,+  )+where++import Amazonka.CodeStarConnections.Types+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Request as Request+import qualified Amazonka.Response as Response++-- | /See:/ 'newGetHost' smart constructor.+data GetHost = GetHost'+  { -- | The Amazon Resource Name (ARN) of the requested host.+    hostArn :: Prelude.Text+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'GetHost' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'hostArn', 'getHost_hostArn' - The Amazon Resource Name (ARN) of the requested host.+newGetHost ::+  -- | 'hostArn'+  Prelude.Text ->+  GetHost+newGetHost pHostArn_ = GetHost' {hostArn = pHostArn_}++-- | The Amazon Resource Name (ARN) of the requested host.+getHost_hostArn :: Lens.Lens' GetHost Prelude.Text+getHost_hostArn = Lens.lens (\GetHost' {hostArn} -> hostArn) (\s@GetHost' {} a -> s {hostArn = a} :: GetHost)++instance Core.AWSRequest GetHost where+  type AWSResponse GetHost = GetHostResponse+  request overrides =+    Request.postJSON (overrides defaultService)+  response =+    Response.receiveJSON+      ( \s h x ->+          GetHostResponse'+            Prelude.<$> (x Data..?> "Name")+            Prelude.<*> (x Data..?> "ProviderEndpoint")+            Prelude.<*> (x Data..?> "ProviderType")+            Prelude.<*> (x Data..?> "Status")+            Prelude.<*> (x Data..?> "VpcConfiguration")+            Prelude.<*> (Prelude.pure (Prelude.fromEnum s))+      )++instance Prelude.Hashable GetHost where+  hashWithSalt _salt GetHost' {..} =+    _salt `Prelude.hashWithSalt` hostArn++instance Prelude.NFData GetHost where+  rnf GetHost' {..} = Prelude.rnf hostArn++instance Data.ToHeaders GetHost where+  toHeaders =+    Prelude.const+      ( Prelude.mconcat+          [ "X-Amz-Target"+              Data.=# ( "com.amazonaws.codestar.connections.CodeStar_connections_20191201.GetHost" ::+                          Prelude.ByteString+                      ),+            "Content-Type"+              Data.=# ( "application/x-amz-json-1.0" ::+                          Prelude.ByteString+                      )+          ]+      )++instance Data.ToJSON GetHost where+  toJSON GetHost' {..} =+    Data.object+      ( Prelude.catMaybes+          [Prelude.Just ("HostArn" Data..= hostArn)]+      )++instance Data.ToPath GetHost where+  toPath = Prelude.const "/"++instance Data.ToQuery GetHost where+  toQuery = Prelude.const Prelude.mempty++-- | /See:/ 'newGetHostResponse' smart constructor.+data GetHostResponse = GetHostResponse'+  { -- | The name of the requested host.+    name :: Prelude.Maybe Prelude.Text,+    -- | The endpoint of the infrastructure represented by the requested host.+    providerEndpoint :: Prelude.Maybe Prelude.Text,+    -- | The provider type of the requested host, such as GitHub Enterprise+    -- Server.+    providerType :: Prelude.Maybe ProviderType,+    -- | The status of the requested host.+    status :: Prelude.Maybe Prelude.Text,+    -- | The VPC configuration of the requested host.+    vpcConfiguration :: Prelude.Maybe VpcConfiguration,+    -- | The response's http status code.+    httpStatus :: Prelude.Int+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'GetHostResponse' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'name', 'getHostResponse_name' - The name of the requested host.+--+-- 'providerEndpoint', 'getHostResponse_providerEndpoint' - The endpoint of the infrastructure represented by the requested host.+--+-- 'providerType', 'getHostResponse_providerType' - The provider type of the requested host, such as GitHub Enterprise+-- Server.+--+-- 'status', 'getHostResponse_status' - The status of the requested host.+--+-- 'vpcConfiguration', 'getHostResponse_vpcConfiguration' - The VPC configuration of the requested host.+--+-- 'httpStatus', 'getHostResponse_httpStatus' - The response's http status code.+newGetHostResponse ::+  -- | 'httpStatus'+  Prelude.Int ->+  GetHostResponse+newGetHostResponse pHttpStatus_ =+  GetHostResponse'+    { name = Prelude.Nothing,+      providerEndpoint = Prelude.Nothing,+      providerType = Prelude.Nothing,+      status = Prelude.Nothing,+      vpcConfiguration = Prelude.Nothing,+      httpStatus = pHttpStatus_+    }++-- | The name of the requested host.+getHostResponse_name :: Lens.Lens' GetHostResponse (Prelude.Maybe Prelude.Text)+getHostResponse_name = Lens.lens (\GetHostResponse' {name} -> name) (\s@GetHostResponse' {} a -> s {name = a} :: GetHostResponse)++-- | The endpoint of the infrastructure represented by the requested host.+getHostResponse_providerEndpoint :: Lens.Lens' GetHostResponse (Prelude.Maybe Prelude.Text)+getHostResponse_providerEndpoint = Lens.lens (\GetHostResponse' {providerEndpoint} -> providerEndpoint) (\s@GetHostResponse' {} a -> s {providerEndpoint = a} :: GetHostResponse)++-- | The provider type of the requested host, such as GitHub Enterprise+-- Server.+getHostResponse_providerType :: Lens.Lens' GetHostResponse (Prelude.Maybe ProviderType)+getHostResponse_providerType = Lens.lens (\GetHostResponse' {providerType} -> providerType) (\s@GetHostResponse' {} a -> s {providerType = a} :: GetHostResponse)++-- | The status of the requested host.+getHostResponse_status :: Lens.Lens' GetHostResponse (Prelude.Maybe Prelude.Text)+getHostResponse_status = Lens.lens (\GetHostResponse' {status} -> status) (\s@GetHostResponse' {} a -> s {status = a} :: GetHostResponse)++-- | The VPC configuration of the requested host.+getHostResponse_vpcConfiguration :: Lens.Lens' GetHostResponse (Prelude.Maybe VpcConfiguration)+getHostResponse_vpcConfiguration = Lens.lens (\GetHostResponse' {vpcConfiguration} -> vpcConfiguration) (\s@GetHostResponse' {} a -> s {vpcConfiguration = a} :: GetHostResponse)++-- | The response's http status code.+getHostResponse_httpStatus :: Lens.Lens' GetHostResponse Prelude.Int+getHostResponse_httpStatus = Lens.lens (\GetHostResponse' {httpStatus} -> httpStatus) (\s@GetHostResponse' {} a -> s {httpStatus = a} :: GetHostResponse)++instance Prelude.NFData GetHostResponse where+  rnf GetHostResponse' {..} =+    Prelude.rnf name+      `Prelude.seq` Prelude.rnf providerEndpoint+      `Prelude.seq` Prelude.rnf providerType+      `Prelude.seq` Prelude.rnf status+      `Prelude.seq` Prelude.rnf vpcConfiguration+      `Prelude.seq` Prelude.rnf httpStatus
+ gen/Amazonka/CodeStarConnections/Lens.hs view
@@ -0,0 +1,141 @@+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.CodeStarConnections.Lens+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.CodeStarConnections.Lens+  ( -- * Operations++    -- ** CreateConnection+    createConnection_hostArn,+    createConnection_providerType,+    createConnection_tags,+    createConnection_connectionName,+    createConnectionResponse_tags,+    createConnectionResponse_httpStatus,+    createConnectionResponse_connectionArn,++    -- ** CreateHost+    createHost_tags,+    createHost_vpcConfiguration,+    createHost_name,+    createHost_providerType,+    createHost_providerEndpoint,+    createHostResponse_hostArn,+    createHostResponse_tags,+    createHostResponse_httpStatus,++    -- ** DeleteConnection+    deleteConnection_connectionArn,+    deleteConnectionResponse_httpStatus,++    -- ** DeleteHost+    deleteHost_hostArn,+    deleteHostResponse_httpStatus,++    -- ** GetConnection+    getConnection_connectionArn,+    getConnectionResponse_connection,+    getConnectionResponse_httpStatus,++    -- ** GetHost+    getHost_hostArn,+    getHostResponse_name,+    getHostResponse_providerEndpoint,+    getHostResponse_providerType,+    getHostResponse_status,+    getHostResponse_vpcConfiguration,+    getHostResponse_httpStatus,++    -- ** ListConnections+    listConnections_hostArnFilter,+    listConnections_maxResults,+    listConnections_nextToken,+    listConnections_providerTypeFilter,+    listConnectionsResponse_connections,+    listConnectionsResponse_nextToken,+    listConnectionsResponse_httpStatus,++    -- ** ListHosts+    listHosts_maxResults,+    listHosts_nextToken,+    listHostsResponse_hosts,+    listHostsResponse_nextToken,+    listHostsResponse_httpStatus,++    -- ** ListTagsForResource+    listTagsForResource_resourceArn,+    listTagsForResourceResponse_tags,+    listTagsForResourceResponse_httpStatus,++    -- ** TagResource+    tagResource_resourceArn,+    tagResource_tags,+    tagResourceResponse_httpStatus,++    -- ** UntagResource+    untagResource_resourceArn,+    untagResource_tagKeys,+    untagResourceResponse_httpStatus,++    -- ** UpdateHost+    updateHost_providerEndpoint,+    updateHost_vpcConfiguration,+    updateHost_hostArn,+    updateHostResponse_httpStatus,++    -- * Types++    -- ** Connection+    connection_connectionArn,+    connection_connectionName,+    connection_connectionStatus,+    connection_hostArn,+    connection_ownerAccountId,+    connection_providerType,++    -- ** Host+    host_hostArn,+    host_name,+    host_providerEndpoint,+    host_providerType,+    host_status,+    host_statusMessage,+    host_vpcConfiguration,++    -- ** Tag+    tag_key,+    tag_value,++    -- ** VpcConfiguration+    vpcConfiguration_tlsCertificate,+    vpcConfiguration_vpcId,+    vpcConfiguration_subnetIds,+    vpcConfiguration_securityGroupIds,+  )+where++import Amazonka.CodeStarConnections.CreateConnection+import Amazonka.CodeStarConnections.CreateHost+import Amazonka.CodeStarConnections.DeleteConnection+import Amazonka.CodeStarConnections.DeleteHost+import Amazonka.CodeStarConnections.GetConnection+import Amazonka.CodeStarConnections.GetHost+import Amazonka.CodeStarConnections.ListConnections+import Amazonka.CodeStarConnections.ListHosts+import Amazonka.CodeStarConnections.ListTagsForResource+import Amazonka.CodeStarConnections.TagResource+import Amazonka.CodeStarConnections.Types.Connection+import Amazonka.CodeStarConnections.Types.Host+import Amazonka.CodeStarConnections.Types.Tag+import Amazonka.CodeStarConnections.Types.VpcConfiguration+import Amazonka.CodeStarConnections.UntagResource+import Amazonka.CodeStarConnections.UpdateHost
+ gen/Amazonka/CodeStarConnections/ListConnections.hs view
@@ -0,0 +1,247 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.CodeStarConnections.ListConnections+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Lists the connections associated with your account.+module Amazonka.CodeStarConnections.ListConnections+  ( -- * Creating a Request+    ListConnections (..),+    newListConnections,++    -- * Request Lenses+    listConnections_hostArnFilter,+    listConnections_maxResults,+    listConnections_nextToken,+    listConnections_providerTypeFilter,++    -- * Destructuring the Response+    ListConnectionsResponse (..),+    newListConnectionsResponse,++    -- * Response Lenses+    listConnectionsResponse_connections,+    listConnectionsResponse_nextToken,+    listConnectionsResponse_httpStatus,+  )+where++import Amazonka.CodeStarConnections.Types+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Request as Request+import qualified Amazonka.Response as Response++-- | /See:/ 'newListConnections' smart constructor.+data ListConnections = ListConnections'+  { -- | Filters the list of connections to those associated with a specified+    -- host.+    hostArnFilter :: Prelude.Maybe Prelude.Text,+    -- | The maximum number of results to return in a single call. To retrieve+    -- the remaining results, make another call with the returned @nextToken@+    -- value.+    maxResults :: Prelude.Maybe Prelude.Natural,+    -- | The token that was returned from the previous @ListConnections@ call,+    -- which can be used to return the next set of connections in the list.+    nextToken :: Prelude.Maybe Prelude.Text,+    -- | Filters the list of connections to those associated with a specified+    -- provider, such as Bitbucket.+    providerTypeFilter :: Prelude.Maybe ProviderType+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'ListConnections' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'hostArnFilter', 'listConnections_hostArnFilter' - Filters the list of connections to those associated with a specified+-- host.+--+-- 'maxResults', 'listConnections_maxResults' - The maximum number of results to return in a single call. To retrieve+-- the remaining results, make another call with the returned @nextToken@+-- value.+--+-- 'nextToken', 'listConnections_nextToken' - The token that was returned from the previous @ListConnections@ call,+-- which can be used to return the next set of connections in the list.+--+-- 'providerTypeFilter', 'listConnections_providerTypeFilter' - Filters the list of connections to those associated with a specified+-- provider, such as Bitbucket.+newListConnections ::+  ListConnections+newListConnections =+  ListConnections'+    { hostArnFilter = Prelude.Nothing,+      maxResults = Prelude.Nothing,+      nextToken = Prelude.Nothing,+      providerTypeFilter = Prelude.Nothing+    }++-- | Filters the list of connections to those associated with a specified+-- host.+listConnections_hostArnFilter :: Lens.Lens' ListConnections (Prelude.Maybe Prelude.Text)+listConnections_hostArnFilter = Lens.lens (\ListConnections' {hostArnFilter} -> hostArnFilter) (\s@ListConnections' {} a -> s {hostArnFilter = a} :: ListConnections)++-- | The maximum number of results to return in a single call. To retrieve+-- the remaining results, make another call with the returned @nextToken@+-- value.+listConnections_maxResults :: Lens.Lens' ListConnections (Prelude.Maybe Prelude.Natural)+listConnections_maxResults = Lens.lens (\ListConnections' {maxResults} -> maxResults) (\s@ListConnections' {} a -> s {maxResults = a} :: ListConnections)++-- | The token that was returned from the previous @ListConnections@ call,+-- which can be used to return the next set of connections in the list.+listConnections_nextToken :: Lens.Lens' ListConnections (Prelude.Maybe Prelude.Text)+listConnections_nextToken = Lens.lens (\ListConnections' {nextToken} -> nextToken) (\s@ListConnections' {} a -> s {nextToken = a} :: ListConnections)++-- | Filters the list of connections to those associated with a specified+-- provider, such as Bitbucket.+listConnections_providerTypeFilter :: Lens.Lens' ListConnections (Prelude.Maybe ProviderType)+listConnections_providerTypeFilter = Lens.lens (\ListConnections' {providerTypeFilter} -> providerTypeFilter) (\s@ListConnections' {} a -> s {providerTypeFilter = a} :: ListConnections)++instance Core.AWSRequest ListConnections where+  type+    AWSResponse ListConnections =+      ListConnectionsResponse+  request overrides =+    Request.postJSON (overrides defaultService)+  response =+    Response.receiveJSON+      ( \s h x ->+          ListConnectionsResponse'+            Prelude.<$> (x Data..?> "Connections" Core..!@ Prelude.mempty)+            Prelude.<*> (x Data..?> "NextToken")+            Prelude.<*> (Prelude.pure (Prelude.fromEnum s))+      )++instance Prelude.Hashable ListConnections where+  hashWithSalt _salt ListConnections' {..} =+    _salt+      `Prelude.hashWithSalt` hostArnFilter+      `Prelude.hashWithSalt` maxResults+      `Prelude.hashWithSalt` nextToken+      `Prelude.hashWithSalt` providerTypeFilter++instance Prelude.NFData ListConnections where+  rnf ListConnections' {..} =+    Prelude.rnf hostArnFilter+      `Prelude.seq` Prelude.rnf maxResults+      `Prelude.seq` Prelude.rnf nextToken+      `Prelude.seq` Prelude.rnf providerTypeFilter++instance Data.ToHeaders ListConnections where+  toHeaders =+    Prelude.const+      ( Prelude.mconcat+          [ "X-Amz-Target"+              Data.=# ( "com.amazonaws.codestar.connections.CodeStar_connections_20191201.ListConnections" ::+                          Prelude.ByteString+                      ),+            "Content-Type"+              Data.=# ( "application/x-amz-json-1.0" ::+                          Prelude.ByteString+                      )+          ]+      )++instance Data.ToJSON ListConnections where+  toJSON ListConnections' {..} =+    Data.object+      ( Prelude.catMaybes+          [ ("HostArnFilter" Data..=) Prelude.<$> hostArnFilter,+            ("MaxResults" Data..=) Prelude.<$> maxResults,+            ("NextToken" Data..=) Prelude.<$> nextToken,+            ("ProviderTypeFilter" Data..=)+              Prelude.<$> providerTypeFilter+          ]+      )++instance Data.ToPath ListConnections where+  toPath = Prelude.const "/"++instance Data.ToQuery ListConnections where+  toQuery = Prelude.const Prelude.mempty++-- | /See:/ 'newListConnectionsResponse' smart constructor.+data ListConnectionsResponse = ListConnectionsResponse'+  { -- | A list of connections and the details for each connection, such as+    -- status, owner, and provider type.+    connections :: Prelude.Maybe [Connection],+    -- | A token that can be used in the next @ListConnections@ call. To view all+    -- items in the list, continue to call this operation with each subsequent+    -- token until no more @nextToken@ values are returned.+    nextToken :: Prelude.Maybe Prelude.Text,+    -- | The response's http status code.+    httpStatus :: Prelude.Int+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'ListConnectionsResponse' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'connections', 'listConnectionsResponse_connections' - A list of connections and the details for each connection, such as+-- status, owner, and provider type.+--+-- 'nextToken', 'listConnectionsResponse_nextToken' - A token that can be used in the next @ListConnections@ call. To view all+-- items in the list, continue to call this operation with each subsequent+-- token until no more @nextToken@ values are returned.+--+-- 'httpStatus', 'listConnectionsResponse_httpStatus' - The response's http status code.+newListConnectionsResponse ::+  -- | 'httpStatus'+  Prelude.Int ->+  ListConnectionsResponse+newListConnectionsResponse pHttpStatus_ =+  ListConnectionsResponse'+    { connections =+        Prelude.Nothing,+      nextToken = Prelude.Nothing,+      httpStatus = pHttpStatus_+    }++-- | A list of connections and the details for each connection, such as+-- status, owner, and provider type.+listConnectionsResponse_connections :: Lens.Lens' ListConnectionsResponse (Prelude.Maybe [Connection])+listConnectionsResponse_connections = Lens.lens (\ListConnectionsResponse' {connections} -> connections) (\s@ListConnectionsResponse' {} a -> s {connections = a} :: ListConnectionsResponse) Prelude.. Lens.mapping Lens.coerced++-- | A token that can be used in the next @ListConnections@ call. To view all+-- items in the list, continue to call this operation with each subsequent+-- token until no more @nextToken@ values are returned.+listConnectionsResponse_nextToken :: Lens.Lens' ListConnectionsResponse (Prelude.Maybe Prelude.Text)+listConnectionsResponse_nextToken = Lens.lens (\ListConnectionsResponse' {nextToken} -> nextToken) (\s@ListConnectionsResponse' {} a -> s {nextToken = a} :: ListConnectionsResponse)++-- | The response's http status code.+listConnectionsResponse_httpStatus :: Lens.Lens' ListConnectionsResponse Prelude.Int+listConnectionsResponse_httpStatus = Lens.lens (\ListConnectionsResponse' {httpStatus} -> httpStatus) (\s@ListConnectionsResponse' {} a -> s {httpStatus = a} :: ListConnectionsResponse)++instance Prelude.NFData ListConnectionsResponse where+  rnf ListConnectionsResponse' {..} =+    Prelude.rnf connections+      `Prelude.seq` Prelude.rnf nextToken+      `Prelude.seq` Prelude.rnf httpStatus
+ gen/Amazonka/CodeStarConnections/ListHosts.hs view
@@ -0,0 +1,211 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.CodeStarConnections.ListHosts+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Lists the hosts associated with your account.+module Amazonka.CodeStarConnections.ListHosts+  ( -- * Creating a Request+    ListHosts (..),+    newListHosts,++    -- * Request Lenses+    listHosts_maxResults,+    listHosts_nextToken,++    -- * Destructuring the Response+    ListHostsResponse (..),+    newListHostsResponse,++    -- * Response Lenses+    listHostsResponse_hosts,+    listHostsResponse_nextToken,+    listHostsResponse_httpStatus,+  )+where++import Amazonka.CodeStarConnections.Types+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Request as Request+import qualified Amazonka.Response as Response++-- | /See:/ 'newListHosts' smart constructor.+data ListHosts = ListHosts'+  { -- | The maximum number of results to return in a single call. To retrieve+    -- the remaining results, make another call with the returned @nextToken@+    -- value.+    maxResults :: Prelude.Maybe Prelude.Natural,+    -- | The token that was returned from the previous @ListHosts@ call, which+    -- can be used to return the next set of hosts in the list.+    nextToken :: Prelude.Maybe Prelude.Text+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'ListHosts' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'maxResults', 'listHosts_maxResults' - The maximum number of results to return in a single call. To retrieve+-- the remaining results, make another call with the returned @nextToken@+-- value.+--+-- 'nextToken', 'listHosts_nextToken' - The token that was returned from the previous @ListHosts@ call, which+-- can be used to return the next set of hosts in the list.+newListHosts ::+  ListHosts+newListHosts =+  ListHosts'+    { maxResults = Prelude.Nothing,+      nextToken = Prelude.Nothing+    }++-- | The maximum number of results to return in a single call. To retrieve+-- the remaining results, make another call with the returned @nextToken@+-- value.+listHosts_maxResults :: Lens.Lens' ListHosts (Prelude.Maybe Prelude.Natural)+listHosts_maxResults = Lens.lens (\ListHosts' {maxResults} -> maxResults) (\s@ListHosts' {} a -> s {maxResults = a} :: ListHosts)++-- | The token that was returned from the previous @ListHosts@ call, which+-- can be used to return the next set of hosts in the list.+listHosts_nextToken :: Lens.Lens' ListHosts (Prelude.Maybe Prelude.Text)+listHosts_nextToken = Lens.lens (\ListHosts' {nextToken} -> nextToken) (\s@ListHosts' {} a -> s {nextToken = a} :: ListHosts)++instance Core.AWSRequest ListHosts where+  type AWSResponse ListHosts = ListHostsResponse+  request overrides =+    Request.postJSON (overrides defaultService)+  response =+    Response.receiveJSON+      ( \s h x ->+          ListHostsResponse'+            Prelude.<$> (x Data..?> "Hosts" Core..!@ Prelude.mempty)+            Prelude.<*> (x Data..?> "NextToken")+            Prelude.<*> (Prelude.pure (Prelude.fromEnum s))+      )++instance Prelude.Hashable ListHosts where+  hashWithSalt _salt ListHosts' {..} =+    _salt+      `Prelude.hashWithSalt` maxResults+      `Prelude.hashWithSalt` nextToken++instance Prelude.NFData ListHosts where+  rnf ListHosts' {..} =+    Prelude.rnf maxResults+      `Prelude.seq` Prelude.rnf nextToken++instance Data.ToHeaders ListHosts where+  toHeaders =+    Prelude.const+      ( Prelude.mconcat+          [ "X-Amz-Target"+              Data.=# ( "com.amazonaws.codestar.connections.CodeStar_connections_20191201.ListHosts" ::+                          Prelude.ByteString+                      ),+            "Content-Type"+              Data.=# ( "application/x-amz-json-1.0" ::+                          Prelude.ByteString+                      )+          ]+      )++instance Data.ToJSON ListHosts where+  toJSON ListHosts' {..} =+    Data.object+      ( Prelude.catMaybes+          [ ("MaxResults" Data..=) Prelude.<$> maxResults,+            ("NextToken" Data..=) Prelude.<$> nextToken+          ]+      )++instance Data.ToPath ListHosts where+  toPath = Prelude.const "/"++instance Data.ToQuery ListHosts where+  toQuery = Prelude.const Prelude.mempty++-- | /See:/ 'newListHostsResponse' smart constructor.+data ListHostsResponse = ListHostsResponse'+  { -- | A list of hosts and the details for each host, such as status, endpoint,+    -- and provider type.+    hosts :: Prelude.Maybe [Host],+    -- | A token that can be used in the next @ListHosts@ call. To view all items+    -- in the list, continue to call this operation with each subsequent token+    -- until no more @nextToken@ values are returned.+    nextToken :: Prelude.Maybe Prelude.Text,+    -- | The response's http status code.+    httpStatus :: Prelude.Int+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'ListHostsResponse' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'hosts', 'listHostsResponse_hosts' - A list of hosts and the details for each host, such as status, endpoint,+-- and provider type.+--+-- 'nextToken', 'listHostsResponse_nextToken' - A token that can be used in the next @ListHosts@ call. To view all items+-- in the list, continue to call this operation with each subsequent token+-- until no more @nextToken@ values are returned.+--+-- 'httpStatus', 'listHostsResponse_httpStatus' - The response's http status code.+newListHostsResponse ::+  -- | 'httpStatus'+  Prelude.Int ->+  ListHostsResponse+newListHostsResponse pHttpStatus_ =+  ListHostsResponse'+    { hosts = Prelude.Nothing,+      nextToken = Prelude.Nothing,+      httpStatus = pHttpStatus_+    }++-- | A list of hosts and the details for each host, such as status, endpoint,+-- and provider type.+listHostsResponse_hosts :: Lens.Lens' ListHostsResponse (Prelude.Maybe [Host])+listHostsResponse_hosts = Lens.lens (\ListHostsResponse' {hosts} -> hosts) (\s@ListHostsResponse' {} a -> s {hosts = a} :: ListHostsResponse) Prelude.. Lens.mapping Lens.coerced++-- | A token that can be used in the next @ListHosts@ call. To view all items+-- in the list, continue to call this operation with each subsequent token+-- until no more @nextToken@ values are returned.+listHostsResponse_nextToken :: Lens.Lens' ListHostsResponse (Prelude.Maybe Prelude.Text)+listHostsResponse_nextToken = Lens.lens (\ListHostsResponse' {nextToken} -> nextToken) (\s@ListHostsResponse' {} a -> s {nextToken = a} :: ListHostsResponse)++-- | The response's http status code.+listHostsResponse_httpStatus :: Lens.Lens' ListHostsResponse Prelude.Int+listHostsResponse_httpStatus = Lens.lens (\ListHostsResponse' {httpStatus} -> httpStatus) (\s@ListHostsResponse' {} a -> s {httpStatus = a} :: ListHostsResponse)++instance Prelude.NFData ListHostsResponse where+  rnf ListHostsResponse' {..} =+    Prelude.rnf hosts+      `Prelude.seq` Prelude.rnf nextToken+      `Prelude.seq` Prelude.rnf httpStatus
+ gen/Amazonka/CodeStarConnections/ListTagsForResource.hs view
@@ -0,0 +1,176 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.CodeStarConnections.ListTagsForResource+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Gets the set of key-value pairs (metadata) that are used to manage the+-- resource.+module Amazonka.CodeStarConnections.ListTagsForResource+  ( -- * Creating a Request+    ListTagsForResource (..),+    newListTagsForResource,++    -- * Request Lenses+    listTagsForResource_resourceArn,++    -- * Destructuring the Response+    ListTagsForResourceResponse (..),+    newListTagsForResourceResponse,++    -- * Response Lenses+    listTagsForResourceResponse_tags,+    listTagsForResourceResponse_httpStatus,+  )+where++import Amazonka.CodeStarConnections.Types+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Request as Request+import qualified Amazonka.Response as Response++-- | /See:/ 'newListTagsForResource' smart constructor.+data ListTagsForResource = ListTagsForResource'+  { -- | The Amazon Resource Name (ARN) of the resource for which you want to get+    -- information about tags, if any.+    resourceArn :: Prelude.Text+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'ListTagsForResource' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'resourceArn', 'listTagsForResource_resourceArn' - The Amazon Resource Name (ARN) of the resource for which you want to get+-- information about tags, if any.+newListTagsForResource ::+  -- | 'resourceArn'+  Prelude.Text ->+  ListTagsForResource+newListTagsForResource pResourceArn_ =+  ListTagsForResource' {resourceArn = pResourceArn_}++-- | The Amazon Resource Name (ARN) of the resource for which you want to get+-- information about tags, if any.+listTagsForResource_resourceArn :: Lens.Lens' ListTagsForResource Prelude.Text+listTagsForResource_resourceArn = Lens.lens (\ListTagsForResource' {resourceArn} -> resourceArn) (\s@ListTagsForResource' {} a -> s {resourceArn = a} :: ListTagsForResource)++instance Core.AWSRequest ListTagsForResource where+  type+    AWSResponse ListTagsForResource =+      ListTagsForResourceResponse+  request overrides =+    Request.postJSON (overrides defaultService)+  response =+    Response.receiveJSON+      ( \s h x ->+          ListTagsForResourceResponse'+            Prelude.<$> (x Data..?> "Tags" Core..!@ Prelude.mempty)+            Prelude.<*> (Prelude.pure (Prelude.fromEnum s))+      )++instance Prelude.Hashable ListTagsForResource where+  hashWithSalt _salt ListTagsForResource' {..} =+    _salt `Prelude.hashWithSalt` resourceArn++instance Prelude.NFData ListTagsForResource where+  rnf ListTagsForResource' {..} =+    Prelude.rnf resourceArn++instance Data.ToHeaders ListTagsForResource where+  toHeaders =+    Prelude.const+      ( Prelude.mconcat+          [ "X-Amz-Target"+              Data.=# ( "com.amazonaws.codestar.connections.CodeStar_connections_20191201.ListTagsForResource" ::+                          Prelude.ByteString+                      ),+            "Content-Type"+              Data.=# ( "application/x-amz-json-1.0" ::+                          Prelude.ByteString+                      )+          ]+      )++instance Data.ToJSON ListTagsForResource where+  toJSON ListTagsForResource' {..} =+    Data.object+      ( Prelude.catMaybes+          [Prelude.Just ("ResourceArn" Data..= resourceArn)]+      )++instance Data.ToPath ListTagsForResource where+  toPath = Prelude.const "/"++instance Data.ToQuery ListTagsForResource where+  toQuery = Prelude.const Prelude.mempty++-- | /See:/ 'newListTagsForResourceResponse' smart constructor.+data ListTagsForResourceResponse = ListTagsForResourceResponse'+  { -- | A list of tag key and value pairs associated with the specified+    -- resource.+    tags :: Prelude.Maybe [Tag],+    -- | The response's http status code.+    httpStatus :: Prelude.Int+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'ListTagsForResourceResponse' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'tags', 'listTagsForResourceResponse_tags' - A list of tag key and value pairs associated with the specified+-- resource.+--+-- 'httpStatus', 'listTagsForResourceResponse_httpStatus' - The response's http status code.+newListTagsForResourceResponse ::+  -- | 'httpStatus'+  Prelude.Int ->+  ListTagsForResourceResponse+newListTagsForResourceResponse pHttpStatus_ =+  ListTagsForResourceResponse'+    { tags =+        Prelude.Nothing,+      httpStatus = pHttpStatus_+    }++-- | A list of tag key and value pairs associated with the specified+-- resource.+listTagsForResourceResponse_tags :: Lens.Lens' ListTagsForResourceResponse (Prelude.Maybe [Tag])+listTagsForResourceResponse_tags = Lens.lens (\ListTagsForResourceResponse' {tags} -> tags) (\s@ListTagsForResourceResponse' {} a -> s {tags = a} :: ListTagsForResourceResponse) Prelude.. Lens.mapping Lens.coerced++-- | The response's http status code.+listTagsForResourceResponse_httpStatus :: Lens.Lens' ListTagsForResourceResponse Prelude.Int+listTagsForResourceResponse_httpStatus = Lens.lens (\ListTagsForResourceResponse' {httpStatus} -> httpStatus) (\s@ListTagsForResourceResponse' {} a -> s {httpStatus = a} :: ListTagsForResourceResponse)++instance Prelude.NFData ListTagsForResourceResponse where+  rnf ListTagsForResourceResponse' {..} =+    Prelude.rnf tags+      `Prelude.seq` Prelude.rnf httpStatus
+ gen/Amazonka/CodeStarConnections/TagResource.hs view
@@ -0,0 +1,172 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.CodeStarConnections.TagResource+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Adds to or modifies the tags of the given resource. Tags are metadata+-- that can be used to manage a resource.+module Amazonka.CodeStarConnections.TagResource+  ( -- * Creating a Request+    TagResource (..),+    newTagResource,++    -- * Request Lenses+    tagResource_resourceArn,+    tagResource_tags,++    -- * Destructuring the Response+    TagResourceResponse (..),+    newTagResourceResponse,++    -- * Response Lenses+    tagResourceResponse_httpStatus,+  )+where++import Amazonka.CodeStarConnections.Types+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Request as Request+import qualified Amazonka.Response as Response++-- | /See:/ 'newTagResource' smart constructor.+data TagResource = TagResource'+  { -- | The Amazon Resource Name (ARN) of the resource to which you want to add+    -- or update tags.+    resourceArn :: Prelude.Text,+    -- | The tags you want to modify or add to the resource.+    tags :: [Tag]+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'TagResource' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'resourceArn', 'tagResource_resourceArn' - The Amazon Resource Name (ARN) of the resource to which you want to add+-- or update tags.+--+-- 'tags', 'tagResource_tags' - The tags you want to modify or add to the resource.+newTagResource ::+  -- | 'resourceArn'+  Prelude.Text ->+  TagResource+newTagResource pResourceArn_ =+  TagResource'+    { resourceArn = pResourceArn_,+      tags = Prelude.mempty+    }++-- | The Amazon Resource Name (ARN) of the resource to which you want to add+-- or update tags.+tagResource_resourceArn :: Lens.Lens' TagResource Prelude.Text+tagResource_resourceArn = Lens.lens (\TagResource' {resourceArn} -> resourceArn) (\s@TagResource' {} a -> s {resourceArn = a} :: TagResource)++-- | The tags you want to modify or add to the resource.+tagResource_tags :: Lens.Lens' TagResource [Tag]+tagResource_tags = Lens.lens (\TagResource' {tags} -> tags) (\s@TagResource' {} a -> s {tags = a} :: TagResource) Prelude.. Lens.coerced++instance Core.AWSRequest TagResource where+  type AWSResponse TagResource = TagResourceResponse+  request overrides =+    Request.postJSON (overrides defaultService)+  response =+    Response.receiveEmpty+      ( \s h x ->+          TagResourceResponse'+            Prelude.<$> (Prelude.pure (Prelude.fromEnum s))+      )++instance Prelude.Hashable TagResource where+  hashWithSalt _salt TagResource' {..} =+    _salt+      `Prelude.hashWithSalt` resourceArn+      `Prelude.hashWithSalt` tags++instance Prelude.NFData TagResource where+  rnf TagResource' {..} =+    Prelude.rnf resourceArn+      `Prelude.seq` Prelude.rnf tags++instance Data.ToHeaders TagResource where+  toHeaders =+    Prelude.const+      ( Prelude.mconcat+          [ "X-Amz-Target"+              Data.=# ( "com.amazonaws.codestar.connections.CodeStar_connections_20191201.TagResource" ::+                          Prelude.ByteString+                      ),+            "Content-Type"+              Data.=# ( "application/x-amz-json-1.0" ::+                          Prelude.ByteString+                      )+          ]+      )++instance Data.ToJSON TagResource where+  toJSON TagResource' {..} =+    Data.object+      ( Prelude.catMaybes+          [ Prelude.Just ("ResourceArn" Data..= resourceArn),+            Prelude.Just ("Tags" Data..= tags)+          ]+      )++instance Data.ToPath TagResource where+  toPath = Prelude.const "/"++instance Data.ToQuery TagResource where+  toQuery = Prelude.const Prelude.mempty++-- | /See:/ 'newTagResourceResponse' smart constructor.+data TagResourceResponse = TagResourceResponse'+  { -- | The response's http status code.+    httpStatus :: Prelude.Int+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'TagResourceResponse' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'httpStatus', 'tagResourceResponse_httpStatus' - The response's http status code.+newTagResourceResponse ::+  -- | 'httpStatus'+  Prelude.Int ->+  TagResourceResponse+newTagResourceResponse pHttpStatus_ =+  TagResourceResponse' {httpStatus = pHttpStatus_}++-- | The response's http status code.+tagResourceResponse_httpStatus :: Lens.Lens' TagResourceResponse Prelude.Int+tagResourceResponse_httpStatus = Lens.lens (\TagResourceResponse' {httpStatus} -> httpStatus) (\s@TagResourceResponse' {} a -> s {httpStatus = a} :: TagResourceResponse)++instance Prelude.NFData TagResourceResponse where+  rnf TagResourceResponse' {..} = Prelude.rnf httpStatus
+ gen/Amazonka/CodeStarConnections/Types.hs view
@@ -0,0 +1,186 @@+{-# LANGUAGE DisambiguateRecordFields #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.CodeStarConnections.Types+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.CodeStarConnections.Types+  ( -- * Service Configuration+    defaultService,++    -- * Errors+    _ConflictException,+    _LimitExceededException,+    _ResourceNotFoundException,+    _ResourceUnavailableException,+    _UnsupportedOperationException,++    -- * ConnectionStatus+    ConnectionStatus (..),++    -- * ProviderType+    ProviderType (..),++    -- * Connection+    Connection (..),+    newConnection,+    connection_connectionArn,+    connection_connectionName,+    connection_connectionStatus,+    connection_hostArn,+    connection_ownerAccountId,+    connection_providerType,++    -- * Host+    Host (..),+    newHost,+    host_hostArn,+    host_name,+    host_providerEndpoint,+    host_providerType,+    host_status,+    host_statusMessage,+    host_vpcConfiguration,++    -- * Tag+    Tag (..),+    newTag,+    tag_key,+    tag_value,++    -- * VpcConfiguration+    VpcConfiguration (..),+    newVpcConfiguration,+    vpcConfiguration_tlsCertificate,+    vpcConfiguration_vpcId,+    vpcConfiguration_subnetIds,+    vpcConfiguration_securityGroupIds,+  )+where++import Amazonka.CodeStarConnections.Types.Connection+import Amazonka.CodeStarConnections.Types.ConnectionStatus+import Amazonka.CodeStarConnections.Types.Host+import Amazonka.CodeStarConnections.Types.ProviderType+import Amazonka.CodeStarConnections.Types.Tag+import Amazonka.CodeStarConnections.Types.VpcConfiguration+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Sign.V4 as Sign++-- | API version @2019-12-01@ of the Amazon CodeStar connections SDK configuration.+defaultService :: Core.Service+defaultService =+  Core.Service+    { Core.abbrev = "CodeStarConnections",+      Core.signer = Sign.v4,+      Core.endpointPrefix = "codestar-connections",+      Core.signingName = "codestar-connections",+      Core.version = "2019-12-01",+      Core.s3AddressingStyle = Core.S3AddressingStyleAuto,+      Core.endpoint = Core.defaultEndpoint defaultService,+      Core.timeout = Prelude.Just 70,+      Core.check = Core.statusSuccess,+      Core.error =+        Core.parseJSONError "CodeStarConnections",+      Core.retry = retry+    }+  where+    retry =+      Core.Exponential+        { Core.base = 5.0e-2,+          Core.growth = 2,+          Core.attempts = 5,+          Core.check = check+        }+    check e+      | Lens.has (Core.hasStatus 502) e =+          Prelude.Just "bad_gateway"+      | Lens.has (Core.hasStatus 504) e =+          Prelude.Just "gateway_timeout"+      | Lens.has (Core.hasStatus 500) e =+          Prelude.Just "general_server_error"+      | Lens.has (Core.hasStatus 509) e =+          Prelude.Just "limit_exceeded"+      | Lens.has+          ( Core.hasCode "RequestThrottledException"+              Prelude.. Core.hasStatus 400+          )+          e =+          Prelude.Just "request_throttled_exception"+      | Lens.has (Core.hasStatus 503) e =+          Prelude.Just "service_unavailable"+      | Lens.has+          ( Core.hasCode "ThrottledException"+              Prelude.. Core.hasStatus 400+          )+          e =+          Prelude.Just "throttled_exception"+      | Lens.has+          ( Core.hasCode "Throttling"+              Prelude.. Core.hasStatus 400+          )+          e =+          Prelude.Just "throttling"+      | Lens.has+          ( Core.hasCode "ThrottlingException"+              Prelude.. Core.hasStatus 400+          )+          e =+          Prelude.Just "throttling_exception"+      | Lens.has+          ( Core.hasCode+              "ProvisionedThroughputExceededException"+              Prelude.. Core.hasStatus 400+          )+          e =+          Prelude.Just "throughput_exceeded"+      | Lens.has (Core.hasStatus 429) e =+          Prelude.Just "too_many_requests"+      | Prelude.otherwise = Prelude.Nothing++-- | Two conflicting operations have been made on the same resource.+_ConflictException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_ConflictException =+  Core._MatchServiceError+    defaultService+    "ConflictException"++-- | Exceeded the maximum limit for connections.+_LimitExceededException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_LimitExceededException =+  Core._MatchServiceError+    defaultService+    "LimitExceededException"++-- | Resource not found. Verify the connection resource ARN and try again.+_ResourceNotFoundException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_ResourceNotFoundException =+  Core._MatchServiceError+    defaultService+    "ResourceNotFoundException"++-- | Resource not found. Verify the ARN for the host resource and try again.+_ResourceUnavailableException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_ResourceUnavailableException =+  Core._MatchServiceError+    defaultService+    "ResourceUnavailableException"++-- | The operation is not supported. Check the connection status and try+-- again.+_UnsupportedOperationException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_UnsupportedOperationException =+  Core._MatchServiceError+    defaultService+    "UnsupportedOperationException"
+ gen/Amazonka/CodeStarConnections/Types/Connection.hs view
@@ -0,0 +1,163 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.CodeStarConnections.Types.Connection+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.CodeStarConnections.Types.Connection where++import Amazonka.CodeStarConnections.Types.ConnectionStatus+import Amazonka.CodeStarConnections.Types.ProviderType+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude++-- | A resource that is used to connect third-party source providers with+-- services like AWS CodePipeline.+--+-- Note: A connection created through CloudFormation, the CLI, or the SDK+-- is in \`PENDING\` status by default. You can make its status+-- \`AVAILABLE\` by updating the connection in the console.+--+-- /See:/ 'newConnection' smart constructor.+data Connection = Connection'+  { -- | The Amazon Resource Name (ARN) of the connection. The ARN is used as the+    -- connection reference when the connection is shared between AWS services.+    --+    -- The ARN is never reused if the connection is deleted.+    connectionArn :: Prelude.Maybe Prelude.Text,+    -- | The name of the connection. Connection names must be unique in an AWS+    -- user account.+    connectionName :: Prelude.Maybe Prelude.Text,+    -- | The current status of the connection.+    connectionStatus :: Prelude.Maybe ConnectionStatus,+    -- | The Amazon Resource Name (ARN) of the host associated with the+    -- connection.+    hostArn :: Prelude.Maybe Prelude.Text,+    -- | The identifier of the external provider where your third-party code+    -- repository is configured. For Bitbucket, this is the account ID of the+    -- owner of the Bitbucket repository.+    ownerAccountId :: Prelude.Maybe Prelude.Text,+    -- | The name of the external provider where your third-party code repository+    -- is configured.+    providerType :: Prelude.Maybe ProviderType+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'Connection' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'connectionArn', 'connection_connectionArn' - The Amazon Resource Name (ARN) of the connection. The ARN is used as the+-- connection reference when the connection is shared between AWS services.+--+-- The ARN is never reused if the connection is deleted.+--+-- 'connectionName', 'connection_connectionName' - The name of the connection. Connection names must be unique in an AWS+-- user account.+--+-- 'connectionStatus', 'connection_connectionStatus' - The current status of the connection.+--+-- 'hostArn', 'connection_hostArn' - The Amazon Resource Name (ARN) of the host associated with the+-- connection.+--+-- 'ownerAccountId', 'connection_ownerAccountId' - The identifier of the external provider where your third-party code+-- repository is configured. For Bitbucket, this is the account ID of the+-- owner of the Bitbucket repository.+--+-- 'providerType', 'connection_providerType' - The name of the external provider where your third-party code repository+-- is configured.+newConnection ::+  Connection+newConnection =+  Connection'+    { connectionArn = Prelude.Nothing,+      connectionName = Prelude.Nothing,+      connectionStatus = Prelude.Nothing,+      hostArn = Prelude.Nothing,+      ownerAccountId = Prelude.Nothing,+      providerType = Prelude.Nothing+    }++-- | The Amazon Resource Name (ARN) of the connection. The ARN is used as the+-- connection reference when the connection is shared between AWS services.+--+-- The ARN is never reused if the connection is deleted.+connection_connectionArn :: Lens.Lens' Connection (Prelude.Maybe Prelude.Text)+connection_connectionArn = Lens.lens (\Connection' {connectionArn} -> connectionArn) (\s@Connection' {} a -> s {connectionArn = a} :: Connection)++-- | The name of the connection. Connection names must be unique in an AWS+-- user account.+connection_connectionName :: Lens.Lens' Connection (Prelude.Maybe Prelude.Text)+connection_connectionName = Lens.lens (\Connection' {connectionName} -> connectionName) (\s@Connection' {} a -> s {connectionName = a} :: Connection)++-- | The current status of the connection.+connection_connectionStatus :: Lens.Lens' Connection (Prelude.Maybe ConnectionStatus)+connection_connectionStatus = Lens.lens (\Connection' {connectionStatus} -> connectionStatus) (\s@Connection' {} a -> s {connectionStatus = a} :: Connection)++-- | The Amazon Resource Name (ARN) of the host associated with the+-- connection.+connection_hostArn :: Lens.Lens' Connection (Prelude.Maybe Prelude.Text)+connection_hostArn = Lens.lens (\Connection' {hostArn} -> hostArn) (\s@Connection' {} a -> s {hostArn = a} :: Connection)++-- | The identifier of the external provider where your third-party code+-- repository is configured. For Bitbucket, this is the account ID of the+-- owner of the Bitbucket repository.+connection_ownerAccountId :: Lens.Lens' Connection (Prelude.Maybe Prelude.Text)+connection_ownerAccountId = Lens.lens (\Connection' {ownerAccountId} -> ownerAccountId) (\s@Connection' {} a -> s {ownerAccountId = a} :: Connection)++-- | The name of the external provider where your third-party code repository+-- is configured.+connection_providerType :: Lens.Lens' Connection (Prelude.Maybe ProviderType)+connection_providerType = Lens.lens (\Connection' {providerType} -> providerType) (\s@Connection' {} a -> s {providerType = a} :: Connection)++instance Data.FromJSON Connection where+  parseJSON =+    Data.withObject+      "Connection"+      ( \x ->+          Connection'+            Prelude.<$> (x Data..:? "ConnectionArn")+            Prelude.<*> (x Data..:? "ConnectionName")+            Prelude.<*> (x Data..:? "ConnectionStatus")+            Prelude.<*> (x Data..:? "HostArn")+            Prelude.<*> (x Data..:? "OwnerAccountId")+            Prelude.<*> (x Data..:? "ProviderType")+      )++instance Prelude.Hashable Connection where+  hashWithSalt _salt Connection' {..} =+    _salt+      `Prelude.hashWithSalt` connectionArn+      `Prelude.hashWithSalt` connectionName+      `Prelude.hashWithSalt` connectionStatus+      `Prelude.hashWithSalt` hostArn+      `Prelude.hashWithSalt` ownerAccountId+      `Prelude.hashWithSalt` providerType++instance Prelude.NFData Connection where+  rnf Connection' {..} =+    Prelude.rnf connectionArn+      `Prelude.seq` Prelude.rnf connectionName+      `Prelude.seq` Prelude.rnf connectionStatus+      `Prelude.seq` Prelude.rnf hostArn+      `Prelude.seq` Prelude.rnf ownerAccountId+      `Prelude.seq` Prelude.rnf providerType
+ gen/Amazonka/CodeStarConnections/Types/ConnectionStatus.hs view
@@ -0,0 +1,76 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE GeneralizedNewtypeDeriving #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.CodeStarConnections.Types.ConnectionStatus+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.CodeStarConnections.Types.ConnectionStatus+  ( ConnectionStatus+      ( ..,+        ConnectionStatus_AVAILABLE,+        ConnectionStatus_ERROR,+        ConnectionStatus_PENDING+      ),+  )+where++import qualified Amazonka.Core as Core+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude++newtype ConnectionStatus = ConnectionStatus'+  { fromConnectionStatus ::+      Data.Text+  }+  deriving stock+    ( Prelude.Show,+      Prelude.Read,+      Prelude.Eq,+      Prelude.Ord,+      Prelude.Generic+    )+  deriving newtype+    ( Prelude.Hashable,+      Prelude.NFData,+      Data.FromText,+      Data.ToText,+      Data.ToByteString,+      Data.ToLog,+      Data.ToHeader,+      Data.ToQuery,+      Data.FromJSON,+      Data.FromJSONKey,+      Data.ToJSON,+      Data.ToJSONKey,+      Data.FromXML,+      Data.ToXML+    )++pattern ConnectionStatus_AVAILABLE :: ConnectionStatus+pattern ConnectionStatus_AVAILABLE = ConnectionStatus' "AVAILABLE"++pattern ConnectionStatus_ERROR :: ConnectionStatus+pattern ConnectionStatus_ERROR = ConnectionStatus' "ERROR"++pattern ConnectionStatus_PENDING :: ConnectionStatus+pattern ConnectionStatus_PENDING = ConnectionStatus' "PENDING"++{-# COMPLETE+  ConnectionStatus_AVAILABLE,+  ConnectionStatus_ERROR,+  ConnectionStatus_PENDING,+  ConnectionStatus'+  #-}
+ gen/Amazonka/CodeStarConnections/Types/Host.hs view
@@ -0,0 +1,168 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.CodeStarConnections.Types.Host+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.CodeStarConnections.Types.Host where++import Amazonka.CodeStarConnections.Types.ProviderType+import Amazonka.CodeStarConnections.Types.VpcConfiguration+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude++-- | A resource that represents the infrastructure where a third-party+-- provider is installed. The host is used when you create connections to+-- an installed third-party provider type, such as GitHub Enterprise+-- Server. You create one host for all connections to that provider.+--+-- A host created through the CLI or the SDK is in \`PENDING\` status by+-- default. You can make its status \`AVAILABLE\` by setting up the host in+-- the console.+--+-- /See:/ 'newHost' smart constructor.+data Host = Host'+  { -- | The Amazon Resource Name (ARN) of the host.+    hostArn :: Prelude.Maybe Prelude.Text,+    -- | The name of the host.+    name :: Prelude.Maybe Prelude.Text,+    -- | The endpoint of the infrastructure where your provider type is+    -- installed.+    providerEndpoint :: Prelude.Maybe Prelude.Text,+    -- | The name of the installed provider to be associated with your+    -- connection. The host resource represents the infrastructure where your+    -- provider type is installed. The valid provider type is GitHub Enterprise+    -- Server.+    providerType :: Prelude.Maybe ProviderType,+    -- | The status of the host, such as PENDING, AVAILABLE, VPC_CONFIG_DELETING,+    -- VPC_CONFIG_INITIALIZING, and VPC_CONFIG_FAILED_INITIALIZATION.+    status :: Prelude.Maybe Prelude.Text,+    -- | The status description for the host.+    statusMessage :: Prelude.Maybe Prelude.Text,+    -- | The VPC configuration provisioned for the host.+    vpcConfiguration :: Prelude.Maybe VpcConfiguration+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'Host' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'hostArn', 'host_hostArn' - The Amazon Resource Name (ARN) of the host.+--+-- 'name', 'host_name' - The name of the host.+--+-- 'providerEndpoint', 'host_providerEndpoint' - The endpoint of the infrastructure where your provider type is+-- installed.+--+-- 'providerType', 'host_providerType' - The name of the installed provider to be associated with your+-- connection. The host resource represents the infrastructure where your+-- provider type is installed. The valid provider type is GitHub Enterprise+-- Server.+--+-- 'status', 'host_status' - The status of the host, such as PENDING, AVAILABLE, VPC_CONFIG_DELETING,+-- VPC_CONFIG_INITIALIZING, and VPC_CONFIG_FAILED_INITIALIZATION.+--+-- 'statusMessage', 'host_statusMessage' - The status description for the host.+--+-- 'vpcConfiguration', 'host_vpcConfiguration' - The VPC configuration provisioned for the host.+newHost ::+  Host+newHost =+  Host'+    { hostArn = Prelude.Nothing,+      name = Prelude.Nothing,+      providerEndpoint = Prelude.Nothing,+      providerType = Prelude.Nothing,+      status = Prelude.Nothing,+      statusMessage = Prelude.Nothing,+      vpcConfiguration = Prelude.Nothing+    }++-- | The Amazon Resource Name (ARN) of the host.+host_hostArn :: Lens.Lens' Host (Prelude.Maybe Prelude.Text)+host_hostArn = Lens.lens (\Host' {hostArn} -> hostArn) (\s@Host' {} a -> s {hostArn = a} :: Host)++-- | The name of the host.+host_name :: Lens.Lens' Host (Prelude.Maybe Prelude.Text)+host_name = Lens.lens (\Host' {name} -> name) (\s@Host' {} a -> s {name = a} :: Host)++-- | The endpoint of the infrastructure where your provider type is+-- installed.+host_providerEndpoint :: Lens.Lens' Host (Prelude.Maybe Prelude.Text)+host_providerEndpoint = Lens.lens (\Host' {providerEndpoint} -> providerEndpoint) (\s@Host' {} a -> s {providerEndpoint = a} :: Host)++-- | The name of the installed provider to be associated with your+-- connection. The host resource represents the infrastructure where your+-- provider type is installed. The valid provider type is GitHub Enterprise+-- Server.+host_providerType :: Lens.Lens' Host (Prelude.Maybe ProviderType)+host_providerType = Lens.lens (\Host' {providerType} -> providerType) (\s@Host' {} a -> s {providerType = a} :: Host)++-- | The status of the host, such as PENDING, AVAILABLE, VPC_CONFIG_DELETING,+-- VPC_CONFIG_INITIALIZING, and VPC_CONFIG_FAILED_INITIALIZATION.+host_status :: Lens.Lens' Host (Prelude.Maybe Prelude.Text)+host_status = Lens.lens (\Host' {status} -> status) (\s@Host' {} a -> s {status = a} :: Host)++-- | The status description for the host.+host_statusMessage :: Lens.Lens' Host (Prelude.Maybe Prelude.Text)+host_statusMessage = Lens.lens (\Host' {statusMessage} -> statusMessage) (\s@Host' {} a -> s {statusMessage = a} :: Host)++-- | The VPC configuration provisioned for the host.+host_vpcConfiguration :: Lens.Lens' Host (Prelude.Maybe VpcConfiguration)+host_vpcConfiguration = Lens.lens (\Host' {vpcConfiguration} -> vpcConfiguration) (\s@Host' {} a -> s {vpcConfiguration = a} :: Host)++instance Data.FromJSON Host where+  parseJSON =+    Data.withObject+      "Host"+      ( \x ->+          Host'+            Prelude.<$> (x Data..:? "HostArn")+            Prelude.<*> (x Data..:? "Name")+            Prelude.<*> (x Data..:? "ProviderEndpoint")+            Prelude.<*> (x Data..:? "ProviderType")+            Prelude.<*> (x Data..:? "Status")+            Prelude.<*> (x Data..:? "StatusMessage")+            Prelude.<*> (x Data..:? "VpcConfiguration")+      )++instance Prelude.Hashable Host where+  hashWithSalt _salt Host' {..} =+    _salt+      `Prelude.hashWithSalt` hostArn+      `Prelude.hashWithSalt` name+      `Prelude.hashWithSalt` providerEndpoint+      `Prelude.hashWithSalt` providerType+      `Prelude.hashWithSalt` status+      `Prelude.hashWithSalt` statusMessage+      `Prelude.hashWithSalt` vpcConfiguration++instance Prelude.NFData Host where+  rnf Host' {..} =+    Prelude.rnf hostArn+      `Prelude.seq` Prelude.rnf name+      `Prelude.seq` Prelude.rnf providerEndpoint+      `Prelude.seq` Prelude.rnf providerType+      `Prelude.seq` Prelude.rnf status+      `Prelude.seq` Prelude.rnf statusMessage+      `Prelude.seq` Prelude.rnf vpcConfiguration
+ gen/Amazonka/CodeStarConnections/Types/ProviderType.hs view
@@ -0,0 +1,76 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE GeneralizedNewtypeDeriving #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.CodeStarConnections.Types.ProviderType+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.CodeStarConnections.Types.ProviderType+  ( ProviderType+      ( ..,+        ProviderType_Bitbucket,+        ProviderType_GitHub,+        ProviderType_GitHubEnterpriseServer+      ),+  )+where++import qualified Amazonka.Core as Core+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude++newtype ProviderType = ProviderType'+  { fromProviderType ::+      Data.Text+  }+  deriving stock+    ( Prelude.Show,+      Prelude.Read,+      Prelude.Eq,+      Prelude.Ord,+      Prelude.Generic+    )+  deriving newtype+    ( Prelude.Hashable,+      Prelude.NFData,+      Data.FromText,+      Data.ToText,+      Data.ToByteString,+      Data.ToLog,+      Data.ToHeader,+      Data.ToQuery,+      Data.FromJSON,+      Data.FromJSONKey,+      Data.ToJSON,+      Data.ToJSONKey,+      Data.FromXML,+      Data.ToXML+    )++pattern ProviderType_Bitbucket :: ProviderType+pattern ProviderType_Bitbucket = ProviderType' "Bitbucket"++pattern ProviderType_GitHub :: ProviderType+pattern ProviderType_GitHub = ProviderType' "GitHub"++pattern ProviderType_GitHubEnterpriseServer :: ProviderType+pattern ProviderType_GitHubEnterpriseServer = ProviderType' "GitHubEnterpriseServer"++{-# COMPLETE+  ProviderType_Bitbucket,+  ProviderType_GitHub,+  ProviderType_GitHubEnterpriseServer,+  ProviderType'+  #-}
+ gen/Amazonka/CodeStarConnections/Types/Tag.hs view
@@ -0,0 +1,95 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.CodeStarConnections.Types.Tag+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.CodeStarConnections.Types.Tag where++import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude++-- | A tag is a key-value pair that is used to manage the resource.+--+-- This tag is available for use by AWS services that support tags.+--+-- /See:/ 'newTag' smart constructor.+data Tag = Tag'+  { -- | The tag\'s key.+    key :: Prelude.Text,+    -- | The tag\'s value.+    value :: Prelude.Text+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'Tag' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'key', 'tag_key' - The tag\'s key.+--+-- 'value', 'tag_value' - The tag\'s value.+newTag ::+  -- | 'key'+  Prelude.Text ->+  -- | 'value'+  Prelude.Text ->+  Tag+newTag pKey_ pValue_ =+  Tag' {key = pKey_, value = pValue_}++-- | The tag\'s key.+tag_key :: Lens.Lens' Tag Prelude.Text+tag_key = Lens.lens (\Tag' {key} -> key) (\s@Tag' {} a -> s {key = a} :: Tag)++-- | The tag\'s value.+tag_value :: Lens.Lens' Tag Prelude.Text+tag_value = Lens.lens (\Tag' {value} -> value) (\s@Tag' {} a -> s {value = a} :: Tag)++instance Data.FromJSON Tag where+  parseJSON =+    Data.withObject+      "Tag"+      ( \x ->+          Tag'+            Prelude.<$> (x Data..: "Key")+            Prelude.<*> (x Data..: "Value")+      )++instance Prelude.Hashable Tag where+  hashWithSalt _salt Tag' {..} =+    _salt+      `Prelude.hashWithSalt` key+      `Prelude.hashWithSalt` value++instance Prelude.NFData Tag where+  rnf Tag' {..} =+    Prelude.rnf key `Prelude.seq` Prelude.rnf value++instance Data.ToJSON Tag where+  toJSON Tag' {..} =+    Data.object+      ( Prelude.catMaybes+          [ Prelude.Just ("Key" Data..= key),+            Prelude.Just ("Value" Data..= value)+          ]+      )
+ gen/Amazonka/CodeStarConnections/Types/VpcConfiguration.hs view
@@ -0,0 +1,146 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.CodeStarConnections.Types.VpcConfiguration+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.CodeStarConnections.Types.VpcConfiguration where++import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude++-- | The VPC configuration provisioned for the host.+--+-- /See:/ 'newVpcConfiguration' smart constructor.+data VpcConfiguration = VpcConfiguration'+  { -- | The value of the Transport Layer Security (TLS) certificate associated+    -- with the infrastructure where your provider type is installed.+    tlsCertificate :: Prelude.Maybe Prelude.Text,+    -- | The ID of the Amazon VPC connected to the infrastructure where your+    -- provider type is installed.+    vpcId :: Prelude.Text,+    -- | The ID of the subnet or subnets associated with the Amazon VPC connected+    -- to the infrastructure where your provider type is installed.+    subnetIds :: Prelude.NonEmpty Prelude.Text,+    -- | The ID of the security group or security groups associated with the+    -- Amazon VPC connected to the infrastructure where your provider type is+    -- installed.+    securityGroupIds :: Prelude.NonEmpty Prelude.Text+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'VpcConfiguration' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'tlsCertificate', 'vpcConfiguration_tlsCertificate' - The value of the Transport Layer Security (TLS) certificate associated+-- with the infrastructure where your provider type is installed.+--+-- 'vpcId', 'vpcConfiguration_vpcId' - The ID of the Amazon VPC connected to the infrastructure where your+-- provider type is installed.+--+-- 'subnetIds', 'vpcConfiguration_subnetIds' - The ID of the subnet or subnets associated with the Amazon VPC connected+-- to the infrastructure where your provider type is installed.+--+-- 'securityGroupIds', 'vpcConfiguration_securityGroupIds' - The ID of the security group or security groups associated with the+-- Amazon VPC connected to the infrastructure where your provider type is+-- installed.+newVpcConfiguration ::+  -- | 'vpcId'+  Prelude.Text ->+  -- | 'subnetIds'+  Prelude.NonEmpty Prelude.Text ->+  -- | 'securityGroupIds'+  Prelude.NonEmpty Prelude.Text ->+  VpcConfiguration+newVpcConfiguration+  pVpcId_+  pSubnetIds_+  pSecurityGroupIds_ =+    VpcConfiguration'+      { tlsCertificate = Prelude.Nothing,+        vpcId = pVpcId_,+        subnetIds = Lens.coerced Lens.# pSubnetIds_,+        securityGroupIds =+          Lens.coerced Lens.# pSecurityGroupIds_+      }++-- | The value of the Transport Layer Security (TLS) certificate associated+-- with the infrastructure where your provider type is installed.+vpcConfiguration_tlsCertificate :: Lens.Lens' VpcConfiguration (Prelude.Maybe Prelude.Text)+vpcConfiguration_tlsCertificate = Lens.lens (\VpcConfiguration' {tlsCertificate} -> tlsCertificate) (\s@VpcConfiguration' {} a -> s {tlsCertificate = a} :: VpcConfiguration)++-- | The ID of the Amazon VPC connected to the infrastructure where your+-- provider type is installed.+vpcConfiguration_vpcId :: Lens.Lens' VpcConfiguration Prelude.Text+vpcConfiguration_vpcId = Lens.lens (\VpcConfiguration' {vpcId} -> vpcId) (\s@VpcConfiguration' {} a -> s {vpcId = a} :: VpcConfiguration)++-- | The ID of the subnet or subnets associated with the Amazon VPC connected+-- to the infrastructure where your provider type is installed.+vpcConfiguration_subnetIds :: Lens.Lens' VpcConfiguration (Prelude.NonEmpty Prelude.Text)+vpcConfiguration_subnetIds = Lens.lens (\VpcConfiguration' {subnetIds} -> subnetIds) (\s@VpcConfiguration' {} a -> s {subnetIds = a} :: VpcConfiguration) Prelude.. Lens.coerced++-- | The ID of the security group or security groups associated with the+-- Amazon VPC connected to the infrastructure where your provider type is+-- installed.+vpcConfiguration_securityGroupIds :: Lens.Lens' VpcConfiguration (Prelude.NonEmpty Prelude.Text)+vpcConfiguration_securityGroupIds = Lens.lens (\VpcConfiguration' {securityGroupIds} -> securityGroupIds) (\s@VpcConfiguration' {} a -> s {securityGroupIds = a} :: VpcConfiguration) Prelude.. Lens.coerced++instance Data.FromJSON VpcConfiguration where+  parseJSON =+    Data.withObject+      "VpcConfiguration"+      ( \x ->+          VpcConfiguration'+            Prelude.<$> (x Data..:? "TlsCertificate")+            Prelude.<*> (x Data..: "VpcId")+            Prelude.<*> (x Data..: "SubnetIds")+            Prelude.<*> (x Data..: "SecurityGroupIds")+      )++instance Prelude.Hashable VpcConfiguration where+  hashWithSalt _salt VpcConfiguration' {..} =+    _salt+      `Prelude.hashWithSalt` tlsCertificate+      `Prelude.hashWithSalt` vpcId+      `Prelude.hashWithSalt` subnetIds+      `Prelude.hashWithSalt` securityGroupIds++instance Prelude.NFData VpcConfiguration where+  rnf VpcConfiguration' {..} =+    Prelude.rnf tlsCertificate+      `Prelude.seq` Prelude.rnf vpcId+      `Prelude.seq` Prelude.rnf subnetIds+      `Prelude.seq` Prelude.rnf securityGroupIds++instance Data.ToJSON VpcConfiguration where+  toJSON VpcConfiguration' {..} =+    Data.object+      ( Prelude.catMaybes+          [ ("TlsCertificate" Data..=)+              Prelude.<$> tlsCertificate,+            Prelude.Just ("VpcId" Data..= vpcId),+            Prelude.Just ("SubnetIds" Data..= subnetIds),+            Prelude.Just+              ("SecurityGroupIds" Data..= securityGroupIds)+          ]+      )
+ gen/Amazonka/CodeStarConnections/UntagResource.hs view
@@ -0,0 +1,171 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.CodeStarConnections.UntagResource+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Removes tags from an AWS resource.+module Amazonka.CodeStarConnections.UntagResource+  ( -- * Creating a Request+    UntagResource (..),+    newUntagResource,++    -- * Request Lenses+    untagResource_resourceArn,+    untagResource_tagKeys,++    -- * Destructuring the Response+    UntagResourceResponse (..),+    newUntagResourceResponse,++    -- * Response Lenses+    untagResourceResponse_httpStatus,+  )+where++import Amazonka.CodeStarConnections.Types+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Request as Request+import qualified Amazonka.Response as Response++-- | /See:/ 'newUntagResource' smart constructor.+data UntagResource = UntagResource'+  { -- | The Amazon Resource Name (ARN) of the resource to remove tags from.+    resourceArn :: Prelude.Text,+    -- | The list of keys for the tags to be removed from the resource.+    tagKeys :: [Prelude.Text]+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'UntagResource' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'resourceArn', 'untagResource_resourceArn' - The Amazon Resource Name (ARN) of the resource to remove tags from.+--+-- 'tagKeys', 'untagResource_tagKeys' - The list of keys for the tags to be removed from the resource.+newUntagResource ::+  -- | 'resourceArn'+  Prelude.Text ->+  UntagResource+newUntagResource pResourceArn_ =+  UntagResource'+    { resourceArn = pResourceArn_,+      tagKeys = Prelude.mempty+    }++-- | The Amazon Resource Name (ARN) of the resource to remove tags from.+untagResource_resourceArn :: Lens.Lens' UntagResource Prelude.Text+untagResource_resourceArn = Lens.lens (\UntagResource' {resourceArn} -> resourceArn) (\s@UntagResource' {} a -> s {resourceArn = a} :: UntagResource)++-- | The list of keys for the tags to be removed from the resource.+untagResource_tagKeys :: Lens.Lens' UntagResource [Prelude.Text]+untagResource_tagKeys = Lens.lens (\UntagResource' {tagKeys} -> tagKeys) (\s@UntagResource' {} a -> s {tagKeys = a} :: UntagResource) Prelude.. Lens.coerced++instance Core.AWSRequest UntagResource where+  type+    AWSResponse UntagResource =+      UntagResourceResponse+  request overrides =+    Request.postJSON (overrides defaultService)+  response =+    Response.receiveEmpty+      ( \s h x ->+          UntagResourceResponse'+            Prelude.<$> (Prelude.pure (Prelude.fromEnum s))+      )++instance Prelude.Hashable UntagResource where+  hashWithSalt _salt UntagResource' {..} =+    _salt+      `Prelude.hashWithSalt` resourceArn+      `Prelude.hashWithSalt` tagKeys++instance Prelude.NFData UntagResource where+  rnf UntagResource' {..} =+    Prelude.rnf resourceArn+      `Prelude.seq` Prelude.rnf tagKeys++instance Data.ToHeaders UntagResource where+  toHeaders =+    Prelude.const+      ( Prelude.mconcat+          [ "X-Amz-Target"+              Data.=# ( "com.amazonaws.codestar.connections.CodeStar_connections_20191201.UntagResource" ::+                          Prelude.ByteString+                      ),+            "Content-Type"+              Data.=# ( "application/x-amz-json-1.0" ::+                          Prelude.ByteString+                      )+          ]+      )++instance Data.ToJSON UntagResource where+  toJSON UntagResource' {..} =+    Data.object+      ( Prelude.catMaybes+          [ Prelude.Just ("ResourceArn" Data..= resourceArn),+            Prelude.Just ("TagKeys" Data..= tagKeys)+          ]+      )++instance Data.ToPath UntagResource where+  toPath = Prelude.const "/"++instance Data.ToQuery UntagResource where+  toQuery = Prelude.const Prelude.mempty++-- | /See:/ 'newUntagResourceResponse' smart constructor.+data UntagResourceResponse = UntagResourceResponse'+  { -- | The response's http status code.+    httpStatus :: Prelude.Int+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'UntagResourceResponse' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'httpStatus', 'untagResourceResponse_httpStatus' - The response's http status code.+newUntagResourceResponse ::+  -- | 'httpStatus'+  Prelude.Int ->+  UntagResourceResponse+newUntagResourceResponse pHttpStatus_ =+  UntagResourceResponse' {httpStatus = pHttpStatus_}++-- | The response's http status code.+untagResourceResponse_httpStatus :: Lens.Lens' UntagResourceResponse Prelude.Int+untagResourceResponse_httpStatus = Lens.lens (\UntagResourceResponse' {httpStatus} -> httpStatus) (\s@UntagResourceResponse' {} a -> s {httpStatus = a} :: UntagResourceResponse)++instance Prelude.NFData UntagResourceResponse where+  rnf UntagResourceResponse' {..} =+    Prelude.rnf httpStatus
+ gen/Amazonka/CodeStarConnections/UpdateHost.hs view
@@ -0,0 +1,189 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.CodeStarConnections.UpdateHost+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Updates a specified host with the provided configurations.+module Amazonka.CodeStarConnections.UpdateHost+  ( -- * Creating a Request+    UpdateHost (..),+    newUpdateHost,++    -- * Request Lenses+    updateHost_providerEndpoint,+    updateHost_vpcConfiguration,+    updateHost_hostArn,++    -- * Destructuring the Response+    UpdateHostResponse (..),+    newUpdateHostResponse,++    -- * Response Lenses+    updateHostResponse_httpStatus,+  )+where++import Amazonka.CodeStarConnections.Types+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Request as Request+import qualified Amazonka.Response as Response++-- | /See:/ 'newUpdateHost' smart constructor.+data UpdateHost = UpdateHost'+  { -- | The URL or endpoint of the host to be updated.+    providerEndpoint :: Prelude.Maybe Prelude.Text,+    -- | The VPC configuration of the host to be updated. A VPC must be+    -- configured and the infrastructure to be represented by the host must+    -- already be connected to the VPC.+    vpcConfiguration :: Prelude.Maybe VpcConfiguration,+    -- | The Amazon Resource Name (ARN) of the host to be updated.+    hostArn :: Prelude.Text+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'UpdateHost' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'providerEndpoint', 'updateHost_providerEndpoint' - The URL or endpoint of the host to be updated.+--+-- 'vpcConfiguration', 'updateHost_vpcConfiguration' - The VPC configuration of the host to be updated. A VPC must be+-- configured and the infrastructure to be represented by the host must+-- already be connected to the VPC.+--+-- 'hostArn', 'updateHost_hostArn' - The Amazon Resource Name (ARN) of the host to be updated.+newUpdateHost ::+  -- | 'hostArn'+  Prelude.Text ->+  UpdateHost+newUpdateHost pHostArn_ =+  UpdateHost'+    { providerEndpoint = Prelude.Nothing,+      vpcConfiguration = Prelude.Nothing,+      hostArn = pHostArn_+    }++-- | The URL or endpoint of the host to be updated.+updateHost_providerEndpoint :: Lens.Lens' UpdateHost (Prelude.Maybe Prelude.Text)+updateHost_providerEndpoint = Lens.lens (\UpdateHost' {providerEndpoint} -> providerEndpoint) (\s@UpdateHost' {} a -> s {providerEndpoint = a} :: UpdateHost)++-- | The VPC configuration of the host to be updated. A VPC must be+-- configured and the infrastructure to be represented by the host must+-- already be connected to the VPC.+updateHost_vpcConfiguration :: Lens.Lens' UpdateHost (Prelude.Maybe VpcConfiguration)+updateHost_vpcConfiguration = Lens.lens (\UpdateHost' {vpcConfiguration} -> vpcConfiguration) (\s@UpdateHost' {} a -> s {vpcConfiguration = a} :: UpdateHost)++-- | The Amazon Resource Name (ARN) of the host to be updated.+updateHost_hostArn :: Lens.Lens' UpdateHost Prelude.Text+updateHost_hostArn = Lens.lens (\UpdateHost' {hostArn} -> hostArn) (\s@UpdateHost' {} a -> s {hostArn = a} :: UpdateHost)++instance Core.AWSRequest UpdateHost where+  type AWSResponse UpdateHost = UpdateHostResponse+  request overrides =+    Request.postJSON (overrides defaultService)+  response =+    Response.receiveEmpty+      ( \s h x ->+          UpdateHostResponse'+            Prelude.<$> (Prelude.pure (Prelude.fromEnum s))+      )++instance Prelude.Hashable UpdateHost where+  hashWithSalt _salt UpdateHost' {..} =+    _salt+      `Prelude.hashWithSalt` providerEndpoint+      `Prelude.hashWithSalt` vpcConfiguration+      `Prelude.hashWithSalt` hostArn++instance Prelude.NFData UpdateHost where+  rnf UpdateHost' {..} =+    Prelude.rnf providerEndpoint+      `Prelude.seq` Prelude.rnf vpcConfiguration+      `Prelude.seq` Prelude.rnf hostArn++instance Data.ToHeaders UpdateHost where+  toHeaders =+    Prelude.const+      ( Prelude.mconcat+          [ "X-Amz-Target"+              Data.=# ( "com.amazonaws.codestar.connections.CodeStar_connections_20191201.UpdateHost" ::+                          Prelude.ByteString+                      ),+            "Content-Type"+              Data.=# ( "application/x-amz-json-1.0" ::+                          Prelude.ByteString+                      )+          ]+      )++instance Data.ToJSON UpdateHost where+  toJSON UpdateHost' {..} =+    Data.object+      ( Prelude.catMaybes+          [ ("ProviderEndpoint" Data..=)+              Prelude.<$> providerEndpoint,+            ("VpcConfiguration" Data..=)+              Prelude.<$> vpcConfiguration,+            Prelude.Just ("HostArn" Data..= hostArn)+          ]+      )++instance Data.ToPath UpdateHost where+  toPath = Prelude.const "/"++instance Data.ToQuery UpdateHost where+  toQuery = Prelude.const Prelude.mempty++-- | /See:/ 'newUpdateHostResponse' smart constructor.+data UpdateHostResponse = UpdateHostResponse'+  { -- | The response's http status code.+    httpStatus :: Prelude.Int+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'UpdateHostResponse' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'httpStatus', 'updateHostResponse_httpStatus' - The response's http status code.+newUpdateHostResponse ::+  -- | 'httpStatus'+  Prelude.Int ->+  UpdateHostResponse+newUpdateHostResponse pHttpStatus_ =+  UpdateHostResponse' {httpStatus = pHttpStatus_}++-- | The response's http status code.+updateHostResponse_httpStatus :: Lens.Lens' UpdateHostResponse Prelude.Int+updateHostResponse_httpStatus = Lens.lens (\UpdateHostResponse' {httpStatus} -> httpStatus) (\s@UpdateHostResponse' {} a -> s {httpStatus = a} :: UpdateHostResponse)++instance Prelude.NFData UpdateHostResponse where+  rnf UpdateHostResponse' {..} = Prelude.rnf httpStatus
+ gen/Amazonka/CodeStarConnections/Waiters.hs view
@@ -0,0 +1,24 @@+{-# LANGUAGE DisambiguateRecordFields #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.CodeStarConnections.Waiters+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.CodeStarConnections.Waiters where++import Amazonka.CodeStarConnections.Lens+import Amazonka.CodeStarConnections.Types+import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude
+ src/.gitkeep view
+ test/Main.hs view
@@ -0,0 +1,23 @@+{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- |+-- Module      : Main+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+module Main (main) where++import Test.Amazonka.CodeStarConnections+import Test.Amazonka.CodeStarConnections.Internal+import Test.Tasty++main :: IO ()+main =+  defaultMain $+    testGroup+      "CodeStarConnections"+      [ testGroup "tests" tests,+        testGroup "fixtures" fixtures+      ]
+ test/Test/Amazonka/CodeStarConnections.hs view
@@ -0,0 +1,20 @@+-- |+-- Module      : Test.Amazonka.CodeStarConnections+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+module Test.Amazonka.CodeStarConnections+  ( tests,+    fixtures,+  )+where++import Test.Tasty (TestTree)++tests :: [TestTree]+tests = []++fixtures :: [TestTree]+fixtures = []
+ test/Test/Amazonka/CodeStarConnections/Internal.hs view
@@ -0,0 +1,8 @@+-- |+-- Module      : Test.Amazonka.CodeStarConnections.Internal+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+module Test.Amazonka.CodeStarConnections.Internal where
+ test/Test/Amazonka/Gen/CodeStarConnections.hs view
@@ -0,0 +1,278 @@+{-# OPTIONS_GHC -fno-warn-orphans #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Test.Amazonka.Gen.CodeStarConnections+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+module Test.Amazonka.Gen.CodeStarConnections where++import Amazonka.CodeStarConnections+import qualified Data.Proxy as Proxy+import Test.Amazonka.CodeStarConnections.Internal+import Test.Amazonka.Fixture+import Test.Amazonka.Prelude+import Test.Tasty++-- Auto-generated: the actual test selection needs to be manually placed into+-- the top-level so that real test data can be incrementally added.+--+-- This commented snippet is what the entire set should look like:++-- fixtures :: TestTree+-- fixtures =+--     [ testGroup "request"+--         [ requestCreateConnection $+--             newCreateConnection+--+--         , requestCreateHost $+--             newCreateHost+--+--         , requestDeleteConnection $+--             newDeleteConnection+--+--         , requestDeleteHost $+--             newDeleteHost+--+--         , requestGetConnection $+--             newGetConnection+--+--         , requestGetHost $+--             newGetHost+--+--         , requestListConnections $+--             newListConnections+--+--         , requestListHosts $+--             newListHosts+--+--         , requestListTagsForResource $+--             newListTagsForResource+--+--         , requestTagResource $+--             newTagResource+--+--         , requestUntagResource $+--             newUntagResource+--+--         , requestUpdateHost $+--             newUpdateHost+--+--           ]++--     , testGroup "response"+--         [ responseCreateConnection $+--             newCreateConnectionResponse+--+--         , responseCreateHost $+--             newCreateHostResponse+--+--         , responseDeleteConnection $+--             newDeleteConnectionResponse+--+--         , responseDeleteHost $+--             newDeleteHostResponse+--+--         , responseGetConnection $+--             newGetConnectionResponse+--+--         , responseGetHost $+--             newGetHostResponse+--+--         , responseListConnections $+--             newListConnectionsResponse+--+--         , responseListHosts $+--             newListHostsResponse+--+--         , responseListTagsForResource $+--             newListTagsForResourceResponse+--+--         , responseTagResource $+--             newTagResourceResponse+--+--         , responseUntagResource $+--             newUntagResourceResponse+--+--         , responseUpdateHost $+--             newUpdateHostResponse+--+--           ]+--     ]++-- Requests++requestCreateConnection :: CreateConnection -> TestTree+requestCreateConnection =+  req+    "CreateConnection"+    "fixture/CreateConnection.yaml"++requestCreateHost :: CreateHost -> TestTree+requestCreateHost =+  req+    "CreateHost"+    "fixture/CreateHost.yaml"++requestDeleteConnection :: DeleteConnection -> TestTree+requestDeleteConnection =+  req+    "DeleteConnection"+    "fixture/DeleteConnection.yaml"++requestDeleteHost :: DeleteHost -> TestTree+requestDeleteHost =+  req+    "DeleteHost"+    "fixture/DeleteHost.yaml"++requestGetConnection :: GetConnection -> TestTree+requestGetConnection =+  req+    "GetConnection"+    "fixture/GetConnection.yaml"++requestGetHost :: GetHost -> TestTree+requestGetHost =+  req+    "GetHost"+    "fixture/GetHost.yaml"++requestListConnections :: ListConnections -> TestTree+requestListConnections =+  req+    "ListConnections"+    "fixture/ListConnections.yaml"++requestListHosts :: ListHosts -> TestTree+requestListHosts =+  req+    "ListHosts"+    "fixture/ListHosts.yaml"++requestListTagsForResource :: ListTagsForResource -> TestTree+requestListTagsForResource =+  req+    "ListTagsForResource"+    "fixture/ListTagsForResource.yaml"++requestTagResource :: TagResource -> TestTree+requestTagResource =+  req+    "TagResource"+    "fixture/TagResource.yaml"++requestUntagResource :: UntagResource -> TestTree+requestUntagResource =+  req+    "UntagResource"+    "fixture/UntagResource.yaml"++requestUpdateHost :: UpdateHost -> TestTree+requestUpdateHost =+  req+    "UpdateHost"+    "fixture/UpdateHost.yaml"++-- Responses++responseCreateConnection :: CreateConnectionResponse -> TestTree+responseCreateConnection =+  res+    "CreateConnectionResponse"+    "fixture/CreateConnectionResponse.proto"+    defaultService+    (Proxy.Proxy :: Proxy.Proxy CreateConnection)++responseCreateHost :: CreateHostResponse -> TestTree+responseCreateHost =+  res+    "CreateHostResponse"+    "fixture/CreateHostResponse.proto"+    defaultService+    (Proxy.Proxy :: Proxy.Proxy CreateHost)++responseDeleteConnection :: DeleteConnectionResponse -> TestTree+responseDeleteConnection =+  res+    "DeleteConnectionResponse"+    "fixture/DeleteConnectionResponse.proto"+    defaultService+    (Proxy.Proxy :: Proxy.Proxy DeleteConnection)++responseDeleteHost :: DeleteHostResponse -> TestTree+responseDeleteHost =+  res+    "DeleteHostResponse"+    "fixture/DeleteHostResponse.proto"+    defaultService+    (Proxy.Proxy :: Proxy.Proxy DeleteHost)++responseGetConnection :: GetConnectionResponse -> TestTree+responseGetConnection =+  res+    "GetConnectionResponse"+    "fixture/GetConnectionResponse.proto"+    defaultService+    (Proxy.Proxy :: Proxy.Proxy GetConnection)++responseGetHost :: GetHostResponse -> TestTree+responseGetHost =+  res+    "GetHostResponse"+    "fixture/GetHostResponse.proto"+    defaultService+    (Proxy.Proxy :: Proxy.Proxy GetHost)++responseListConnections :: ListConnectionsResponse -> TestTree+responseListConnections =+  res+    "ListConnectionsResponse"+    "fixture/ListConnectionsResponse.proto"+    defaultService+    (Proxy.Proxy :: Proxy.Proxy ListConnections)++responseListHosts :: ListHostsResponse -> TestTree+responseListHosts =+  res+    "ListHostsResponse"+    "fixture/ListHostsResponse.proto"+    defaultService+    (Proxy.Proxy :: Proxy.Proxy ListHosts)++responseListTagsForResource :: ListTagsForResourceResponse -> TestTree+responseListTagsForResource =+  res+    "ListTagsForResourceResponse"+    "fixture/ListTagsForResourceResponse.proto"+    defaultService+    (Proxy.Proxy :: Proxy.Proxy ListTagsForResource)++responseTagResource :: TagResourceResponse -> TestTree+responseTagResource =+  res+    "TagResourceResponse"+    "fixture/TagResourceResponse.proto"+    defaultService+    (Proxy.Proxy :: Proxy.Proxy TagResource)++responseUntagResource :: UntagResourceResponse -> TestTree+responseUntagResource =+  res+    "UntagResourceResponse"+    "fixture/UntagResourceResponse.proto"+    defaultService+    (Proxy.Proxy :: Proxy.Proxy UntagResource)++responseUpdateHost :: UpdateHostResponse -> TestTree+responseUpdateHost =+  res+    "UpdateHostResponse"+    "fixture/UpdateHostResponse.proto"+    defaultService+    (Proxy.Proxy :: Proxy.Proxy UpdateHost)