amazonka-codestar (empty) → 1.5.0
raw patch · 68 files changed
+4872/−0 lines, 68 filesdep +amazonka-codestardep +amazonka-coredep +amazonka-testsetup-changed
Dependencies added: amazonka-codestar, amazonka-core, amazonka-test, base, bytestring, tasty, tasty-hunit, text, time, unordered-containers
Files
- LICENSE +367/−0
- README.md +45/−0
- Setup.hs +2/−0
- amazonka-codestar.cabal +103/−0
- fixture/AssociateTeamMember.yaml +10/−0
- fixture/AssociateTeamMemberResponse.proto +0/−0
- fixture/CreateProject.yaml +10/−0
- fixture/CreateProjectResponse.proto +0/−0
- fixture/CreateUserProfile.yaml +10/−0
- fixture/CreateUserProfileResponse.proto +0/−0
- fixture/DeleteProject.yaml +10/−0
- fixture/DeleteProjectResponse.proto +0/−0
- fixture/DeleteUserProfile.yaml +10/−0
- fixture/DeleteUserProfileResponse.proto +0/−0
- fixture/DescribeProject.yaml +10/−0
- fixture/DescribeProjectResponse.proto +0/−0
- fixture/DescribeUserProfile.yaml +10/−0
- fixture/DescribeUserProfileResponse.proto +0/−0
- fixture/DisassociateTeamMember.yaml +10/−0
- fixture/DisassociateTeamMemberResponse.proto +0/−0
- fixture/ListProjects.yaml +10/−0
- fixture/ListProjectsResponse.proto +0/−0
- fixture/ListResources.yaml +10/−0
- fixture/ListResourcesResponse.proto +0/−0
- fixture/ListTagsForProject.yaml +10/−0
- fixture/ListTagsForProjectResponse.proto +0/−0
- fixture/ListTeamMembers.yaml +10/−0
- fixture/ListTeamMembersResponse.proto +0/−0
- fixture/ListUserProfiles.yaml +10/−0
- fixture/ListUserProfilesResponse.proto +0/−0
- fixture/TagProject.yaml +10/−0
- fixture/TagProjectResponse.proto +0/−0
- fixture/UntagProject.yaml +10/−0
- fixture/UntagProjectResponse.proto +0/−0
- fixture/UpdateProject.yaml +10/−0
- fixture/UpdateProjectResponse.proto +0/−0
- fixture/UpdateTeamMember.yaml +10/−0
- fixture/UpdateTeamMemberResponse.proto +0/−0
- fixture/UpdateUserProfile.yaml +10/−0
- fixture/UpdateUserProfileResponse.proto +0/−0
- gen/Network/AWS/CodeStar.hs +251/−0
- gen/Network/AWS/CodeStar/AssociateTeamMember.hs +180/−0
- gen/Network/AWS/CodeStar/CreateProject.hs +200/−0
- gen/Network/AWS/CodeStar/CreateUserProfile.hs +222/−0
- gen/Network/AWS/CodeStar/DeleteProject.hs +164/−0
- gen/Network/AWS/CodeStar/DeleteUserProfile.hs +132/−0
- gen/Network/AWS/CodeStar/DescribeProject.hs +202/−0
- gen/Network/AWS/CodeStar/DescribeUserProfile.hs +188/−0
- gen/Network/AWS/CodeStar/DisassociateTeamMember.hs +136/−0
- gen/Network/AWS/CodeStar/ListProjects.hs +152/−0
- gen/Network/AWS/CodeStar/ListResources.hs +165/−0
- gen/Network/AWS/CodeStar/ListTagsForProject.hs +166/−0
- gen/Network/AWS/CodeStar/ListTeamMembers.hs +167/−0
- gen/Network/AWS/CodeStar/ListUserProfiles.hs +153/−0
- gen/Network/AWS/CodeStar/TagProject.hs +140/−0
- gen/Network/AWS/CodeStar/Types.hs +203/−0
- gen/Network/AWS/CodeStar/Types/Product.hs +220/−0
- gen/Network/AWS/CodeStar/Types/Sum.hs +20/−0
- gen/Network/AWS/CodeStar/UntagProject.hs +130/−0
- gen/Network/AWS/CodeStar/UpdateProject.hs +141/−0
- gen/Network/AWS/CodeStar/UpdateTeamMember.hs +189/−0
- gen/Network/AWS/CodeStar/UpdateUserProfile.hs +220/−0
- gen/Network/AWS/CodeStar/Waiters.hs +21/−0
- src/.gitkeep +0/−0
- test/Main.hs +21/−0
- test/Test/AWS/CodeStar.hs +20/−0
- test/Test/AWS/CodeStar/Internal.hs +9/−0
- test/Test/AWS/Gen/CodeStar.hs +363/−0
+ 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,45 @@+# Amazon CodeStar SDK++* [Version](#version)+* [Description](#description)+* [Contribute](#contribute)+* [Licence](#licence)+++## Version++`1.5.0`+++## Description++Documentation is available via [Hackage](http://hackage.haskell.org/package/amazonka-codestar)+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 [Network.AWS.CodeStar](http://hackage.haskell.org/package/amazonka-codestar/docs/Network-AWS-CodeStar.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` 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.
+ Setup.hs view
@@ -0,0 +1,2 @@+import Distribution.Simple+main = defaultMain
+ amazonka-codestar.cabal view
@@ -0,0 +1,103 @@+name: amazonka-codestar+version: 1.5.0+synopsis: Amazon CodeStar 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>+copyright: Copyright (c) 2013-2017 Brendan Hay+category: Network, AWS, Cloud, Distributed Computing+build-type: Simple+cabal-version: >= 1.10+extra-source-files: README.md fixture/*.yaml fixture/*.proto src/.gitkeep+description:+ 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.+ .+ 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+ such as <http://hackage.haskell.org/package/lens lens> or+ <http://hackage.haskell.org/package/lens-family-core lens-family-core>.+ .+ See "Network.AWS.CodeStar" or <https://aws.amazon.com/documentation/ the AWS documentation>+ to get started.++source-repository head+ type: git+ location: git://github.com/brendanhay/amazonka.git+ subdir: amazonka-codestar++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:+ Network.AWS.CodeStar+ , Network.AWS.CodeStar.AssociateTeamMember+ , Network.AWS.CodeStar.CreateProject+ , Network.AWS.CodeStar.CreateUserProfile+ , Network.AWS.CodeStar.DeleteProject+ , Network.AWS.CodeStar.DeleteUserProfile+ , Network.AWS.CodeStar.DescribeProject+ , Network.AWS.CodeStar.DescribeUserProfile+ , Network.AWS.CodeStar.DisassociateTeamMember+ , Network.AWS.CodeStar.ListProjects+ , Network.AWS.CodeStar.ListResources+ , Network.AWS.CodeStar.ListTagsForProject+ , Network.AWS.CodeStar.ListTeamMembers+ , Network.AWS.CodeStar.ListUserProfiles+ , Network.AWS.CodeStar.TagProject+ , Network.AWS.CodeStar.Types+ , Network.AWS.CodeStar.UntagProject+ , Network.AWS.CodeStar.UpdateProject+ , Network.AWS.CodeStar.UpdateTeamMember+ , Network.AWS.CodeStar.UpdateUserProfile+ , Network.AWS.CodeStar.Waiters++ other-modules:+ Network.AWS.CodeStar.Types.Product+ , Network.AWS.CodeStar.Types.Sum++ build-depends:+ amazonka-core == 1.5.0.*+ , base >= 4.7 && < 5++test-suite amazonka-codestar-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.AWS.CodeStar+ , Test.AWS.Gen.CodeStar+ , Test.AWS.CodeStar.Internal++ build-depends:+ amazonka-core == 1.5.0.*+ , amazonka-test == 1.5.0.*+ , amazonka-codestar+ , base+ , bytestring+ , tasty+ , tasty-hunit+ , text+ , time+ , unordered-containers
+ fixture/AssociateTeamMember.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+ Authorization: AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/codestar/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+ Host: codestar.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/AssociateTeamMemberResponse.proto view
+ fixture/CreateProject.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+ Authorization: AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/codestar/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+ Host: codestar.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/CreateProjectResponse.proto view
+ fixture/CreateUserProfile.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+ Authorization: AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/codestar/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+ Host: codestar.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/CreateUserProfileResponse.proto view
+ fixture/DeleteProject.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+ Authorization: AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/codestar/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+ Host: codestar.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/DeleteProjectResponse.proto view
+ fixture/DeleteUserProfile.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+ Authorization: AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/codestar/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+ Host: codestar.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/DeleteUserProfileResponse.proto view
+ fixture/DescribeProject.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+ Authorization: AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/codestar/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+ Host: codestar.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/DescribeProjectResponse.proto view
+ fixture/DescribeUserProfile.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+ Authorization: AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/codestar/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+ Host: codestar.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/DescribeUserProfileResponse.proto view
+ fixture/DisassociateTeamMember.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+ Authorization: AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/codestar/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+ Host: codestar.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/DisassociateTeamMemberResponse.proto view
+ fixture/ListProjects.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+ Authorization: AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/codestar/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+ Host: codestar.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/ListProjectsResponse.proto view
+ fixture/ListResources.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+ Authorization: AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/codestar/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+ Host: codestar.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/ListResourcesResponse.proto view
+ fixture/ListTagsForProject.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+ Authorization: AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/codestar/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+ Host: codestar.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/ListTagsForProjectResponse.proto view
+ fixture/ListTeamMembers.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+ Authorization: AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/codestar/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+ Host: codestar.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/ListTeamMembersResponse.proto view
+ fixture/ListUserProfiles.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+ Authorization: AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/codestar/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+ Host: codestar.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/ListUserProfilesResponse.proto view
+ fixture/TagProject.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+ Authorization: AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/codestar/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+ Host: codestar.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/TagProjectResponse.proto view
+ fixture/UntagProject.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+ Authorization: AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/codestar/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+ Host: codestar.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/UntagProjectResponse.proto view
+ fixture/UpdateProject.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+ Authorization: AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/codestar/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+ Host: codestar.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/UpdateProjectResponse.proto view
+ fixture/UpdateTeamMember.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+ Authorization: AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/codestar/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+ Host: codestar.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/UpdateTeamMemberResponse.proto view
+ fixture/UpdateUserProfile.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+ Authorization: AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/codestar/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+ Host: codestar.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/UpdateUserProfileResponse.proto view
+ gen/Network/AWS/CodeStar.hs view
@@ -0,0 +1,251 @@+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Network.AWS.CodeStar+-- Copyright : (c) 2013-2017 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- __AWS CodeStar__+--+-- This is the API reference for AWS CodeStar. This reference provides descriptions of the operations and data types for the AWS CodeStar API along with usage examples.+--+-- You can use the AWS CodeStar API to work with:+--+-- Projects and their resources, by calling the following:+--+-- * @DeleteProject@ , which deletes a project.+--+-- * @DescribeProject@ , which lists the attributes of a project.+--+-- * @ListProjects@ , which lists all projects associated with your AWS account.+--+-- * @ListResources@ , which lists the resources associated with a project.+--+-- * @ListTagsForProject@ , which lists the tags associated with a project.+--+-- * @TagProject@ , which adds tags to a project.+--+-- * @UntagProject@ , which removes tags from a project.+--+-- * @UpdateProject@ , which updates the attributes of a project.+--+--+--+-- Teams and team members, by calling the following:+--+-- * @AssociateTeamMember@ , which adds an IAM user to the team for a project.+--+-- * @DisassociateTeamMember@ , which removes an IAM user from the team for a project.+--+-- * @ListTeamMembers@ , which lists all the IAM users in the team for a project, including their roles and attributes.+--+-- * @UpdateTeamMember@ , which updates a team member's attributes in a project.+--+--+--+-- Users, by calling the following:+--+-- * @CreateUserProfile@ , which creates a user profile that contains data associated with the user across all projects.+--+-- * @DeleteUserProfile@ , which deletes all user profile information across all projects.+--+-- * @DescribeUserProfile@ , which describes the profile of a user.+--+-- * @ListUserProfiles@ , which lists all user profiles.+--+-- * @UpdateUserProfile@ , which updates the profile for a user.+--+--+--+module Network.AWS.CodeStar+ (+ -- * Service Configuration+ codeStar++ -- * Errors+ -- $errors++ -- ** TeamMemberAlreadyAssociatedException+ , _TeamMemberAlreadyAssociatedException++ -- ** ValidationException+ , _ValidationException++ -- ** InvalidServiceRoleException+ , _InvalidServiceRoleException++ -- ** ProjectCreationFailedException+ , _ProjectCreationFailedException++ -- ** UserProfileAlreadyExistsException+ , _UserProfileAlreadyExistsException++ -- ** ProjectNotFoundException+ , _ProjectNotFoundException++ -- ** TeamMemberNotFoundException+ , _TeamMemberNotFoundException++ -- ** ProjectAlreadyExistsException+ , _ProjectAlreadyExistsException++ -- ** ProjectConfigurationException+ , _ProjectConfigurationException++ -- ** ConcurrentModificationException+ , _ConcurrentModificationException++ -- ** InvalidNextTokenException+ , _InvalidNextTokenException++ -- ** UserProfileNotFoundException+ , _UserProfileNotFoundException++ -- ** LimitExceededException+ , _LimitExceededException++ -- * Waiters+ -- $waiters++ -- * Operations+ -- $operations++ -- ** ListProjects+ , module Network.AWS.CodeStar.ListProjects++ -- ** ListTeamMembers+ , module Network.AWS.CodeStar.ListTeamMembers++ -- ** DeleteProject+ , module Network.AWS.CodeStar.DeleteProject++ -- ** UpdateProject+ , module Network.AWS.CodeStar.UpdateProject++ -- ** DisassociateTeamMember+ , module Network.AWS.CodeStar.DisassociateTeamMember++ -- ** TagProject+ , module Network.AWS.CodeStar.TagProject++ -- ** DescribeProject+ , module Network.AWS.CodeStar.DescribeProject++ -- ** ListUserProfiles+ , module Network.AWS.CodeStar.ListUserProfiles++ -- ** ListResources+ , module Network.AWS.CodeStar.ListResources++ -- ** AssociateTeamMember+ , module Network.AWS.CodeStar.AssociateTeamMember++ -- ** UntagProject+ , module Network.AWS.CodeStar.UntagProject++ -- ** UpdateTeamMember+ , module Network.AWS.CodeStar.UpdateTeamMember++ -- ** DescribeUserProfile+ , module Network.AWS.CodeStar.DescribeUserProfile++ -- ** ListTagsForProject+ , module Network.AWS.CodeStar.ListTagsForProject++ -- ** DeleteUserProfile+ , module Network.AWS.CodeStar.DeleteUserProfile++ -- ** UpdateUserProfile+ , module Network.AWS.CodeStar.UpdateUserProfile++ -- ** CreateUserProfile+ , module Network.AWS.CodeStar.CreateUserProfile++ -- ** CreateProject+ , module Network.AWS.CodeStar.CreateProject++ -- * Types++ -- ** ProjectSummary+ , ProjectSummary+ , projectSummary+ , psProjectARN+ , psProjectId++ -- ** Resource+ , Resource+ , resource+ , rId++ -- ** TeamMember+ , TeamMember+ , teamMember+ , tmRemoteAccessAllowed+ , tmUserARN+ , tmProjectRole++ -- ** UserProfileSummary+ , UserProfileSummary+ , userProfileSummary+ , upsSshPublicKey+ , upsUserARN+ , upsEmailAddress+ , upsDisplayName+ ) where++import Network.AWS.CodeStar.AssociateTeamMember+import Network.AWS.CodeStar.CreateProject+import Network.AWS.CodeStar.CreateUserProfile+import Network.AWS.CodeStar.DeleteProject+import Network.AWS.CodeStar.DeleteUserProfile+import Network.AWS.CodeStar.DescribeProject+import Network.AWS.CodeStar.DescribeUserProfile+import Network.AWS.CodeStar.DisassociateTeamMember+import Network.AWS.CodeStar.ListProjects+import Network.AWS.CodeStar.ListResources+import Network.AWS.CodeStar.ListTagsForProject+import Network.AWS.CodeStar.ListTeamMembers+import Network.AWS.CodeStar.ListUserProfiles+import Network.AWS.CodeStar.TagProject+import Network.AWS.CodeStar.Types+import Network.AWS.CodeStar.UntagProject+import Network.AWS.CodeStar.UpdateProject+import Network.AWS.CodeStar.UpdateTeamMember+import Network.AWS.CodeStar.UpdateUserProfile+import Network.AWS.CodeStar.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 'CodeStar'.+-}++{- $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/Network/AWS/CodeStar/AssociateTeamMember.hs view
@@ -0,0 +1,180 @@+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE TypeFamilies #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Network.AWS.CodeStar.AssociateTeamMember+-- Copyright : (c) 2013-2017 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Adds an IAM user to the team for an AWS CodeStar project.+--+--+module Network.AWS.CodeStar.AssociateTeamMember+ (+ -- * Creating a Request+ associateTeamMember+ , AssociateTeamMember+ -- * Request Lenses+ , atmRemoteAccessAllowed+ , atmClientRequestToken+ , atmProjectId+ , atmUserARN+ , atmProjectRole++ -- * Destructuring the Response+ , associateTeamMemberResponse+ , AssociateTeamMemberResponse+ -- * Response Lenses+ , atmrsClientRequestToken+ , atmrsResponseStatus+ ) where++import Network.AWS.CodeStar.Types+import Network.AWS.CodeStar.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | /See:/ 'associateTeamMember' smart constructor.+data AssociateTeamMember = AssociateTeamMember'+ { _atmRemoteAccessAllowed :: !(Maybe Bool)+ , _atmClientRequestToken :: !(Maybe Text)+ , _atmProjectId :: !Text+ , _atmUserARN :: !Text+ , _atmProjectRole :: !Text+ } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'AssociateTeamMember' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'atmRemoteAccessAllowed' - Whether the team member is allowed to use an SSH public/private key pair to remotely access project resources, for example Amazon EC2 instances.+--+-- * 'atmClientRequestToken' - A user- or system-generated token that identifies the entity that requested the team member association to the project. This token can be used to repeat the request.+--+-- * 'atmProjectId' - The ID of the project to which you will add the IAM user.+--+-- * 'atmUserARN' - The Amazon Resource Name (ARN) for the IAM user you want to add to the AWS CodeStar project.+--+-- * 'atmProjectRole' - The AWS CodeStar project role that will apply to this user. This role determines what actions a user can take in an AWS CodeStar project.+associateTeamMember+ :: Text -- ^ 'atmProjectId'+ -> Text -- ^ 'atmUserARN'+ -> Text -- ^ 'atmProjectRole'+ -> AssociateTeamMember+associateTeamMember pProjectId_ pUserARN_ pProjectRole_ =+ AssociateTeamMember'+ { _atmRemoteAccessAllowed = Nothing+ , _atmClientRequestToken = Nothing+ , _atmProjectId = pProjectId_+ , _atmUserARN = pUserARN_+ , _atmProjectRole = pProjectRole_+ }+++-- | Whether the team member is allowed to use an SSH public/private key pair to remotely access project resources, for example Amazon EC2 instances.+atmRemoteAccessAllowed :: Lens' AssociateTeamMember (Maybe Bool)+atmRemoteAccessAllowed = lens _atmRemoteAccessAllowed (\ s a -> s{_atmRemoteAccessAllowed = a});++-- | A user- or system-generated token that identifies the entity that requested the team member association to the project. This token can be used to repeat the request.+atmClientRequestToken :: Lens' AssociateTeamMember (Maybe Text)+atmClientRequestToken = lens _atmClientRequestToken (\ s a -> s{_atmClientRequestToken = a});++-- | The ID of the project to which you will add the IAM user.+atmProjectId :: Lens' AssociateTeamMember Text+atmProjectId = lens _atmProjectId (\ s a -> s{_atmProjectId = a});++-- | The Amazon Resource Name (ARN) for the IAM user you want to add to the AWS CodeStar project.+atmUserARN :: Lens' AssociateTeamMember Text+atmUserARN = lens _atmUserARN (\ s a -> s{_atmUserARN = a});++-- | The AWS CodeStar project role that will apply to this user. This role determines what actions a user can take in an AWS CodeStar project.+atmProjectRole :: Lens' AssociateTeamMember Text+atmProjectRole = lens _atmProjectRole (\ s a -> s{_atmProjectRole = a});++instance AWSRequest AssociateTeamMember where+ type Rs AssociateTeamMember =+ AssociateTeamMemberResponse+ request = postJSON codeStar+ response+ = receiveJSON+ (\ s h x ->+ AssociateTeamMemberResponse' <$>+ (x .?> "clientRequestToken") <*> (pure (fromEnum s)))++instance Hashable AssociateTeamMember where++instance NFData AssociateTeamMember where++instance ToHeaders AssociateTeamMember where+ toHeaders+ = const+ (mconcat+ ["X-Amz-Target" =#+ ("CodeStar_20170419.AssociateTeamMember" ::+ ByteString),+ "Content-Type" =#+ ("application/x-amz-json-1.1" :: ByteString)])++instance ToJSON AssociateTeamMember where+ toJSON AssociateTeamMember'{..}+ = object+ (catMaybes+ [("remoteAccessAllowed" .=) <$>+ _atmRemoteAccessAllowed,+ ("clientRequestToken" .=) <$> _atmClientRequestToken,+ Just ("projectId" .= _atmProjectId),+ Just ("userArn" .= _atmUserARN),+ Just ("projectRole" .= _atmProjectRole)])++instance ToPath AssociateTeamMember where+ toPath = const "/"++instance ToQuery AssociateTeamMember where+ toQuery = const mempty++-- | /See:/ 'associateTeamMemberResponse' smart constructor.+data AssociateTeamMemberResponse = AssociateTeamMemberResponse'+ { _atmrsClientRequestToken :: !(Maybe Text)+ , _atmrsResponseStatus :: !Int+ } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'AssociateTeamMemberResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'atmrsClientRequestToken' - The user- or system-generated token from the initial request that can be used to repeat the request.+--+-- * 'atmrsResponseStatus' - -- | The response status code.+associateTeamMemberResponse+ :: Int -- ^ 'atmrsResponseStatus'+ -> AssociateTeamMemberResponse+associateTeamMemberResponse pResponseStatus_ =+ AssociateTeamMemberResponse'+ {_atmrsClientRequestToken = Nothing, _atmrsResponseStatus = pResponseStatus_}+++-- | The user- or system-generated token from the initial request that can be used to repeat the request.+atmrsClientRequestToken :: Lens' AssociateTeamMemberResponse (Maybe Text)+atmrsClientRequestToken = lens _atmrsClientRequestToken (\ s a -> s{_atmrsClientRequestToken = a});++-- | -- | The response status code.+atmrsResponseStatus :: Lens' AssociateTeamMemberResponse Int+atmrsResponseStatus = lens _atmrsResponseStatus (\ s a -> s{_atmrsResponseStatus = a});++instance NFData AssociateTeamMemberResponse where
+ gen/Network/AWS/CodeStar/CreateProject.hs view
@@ -0,0 +1,200 @@+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE TypeFamilies #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Network.AWS.CodeStar.CreateProject+-- Copyright : (c) 2013-2017 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Reserved for future use. To create a project, use the AWS CodeStar console.+--+--+module Network.AWS.CodeStar.CreateProject+ (+ -- * Creating a Request+ createProject+ , CreateProject+ -- * Request Lenses+ , cpClientRequestToken+ , cpDescription+ , cpName+ , cpId++ -- * Destructuring the Response+ , createProjectResponse+ , CreateProjectResponse+ -- * Response Lenses+ , cprsProjectTemplateId+ , cprsClientRequestToken+ , cprsResponseStatus+ , cprsId+ , cprsArn+ ) where++import Network.AWS.CodeStar.Types+import Network.AWS.CodeStar.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | /See:/ 'createProject' smart constructor.+data CreateProject = CreateProject'+ { _cpClientRequestToken :: !(Maybe Text)+ , _cpDescription :: !(Maybe (Sensitive Text))+ , _cpName :: !(Sensitive Text)+ , _cpId :: !Text+ } deriving (Eq, Show, Data, Typeable, Generic)+++-- | Creates a value of 'CreateProject' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'cpClientRequestToken' - Reserved for future use.+--+-- * 'cpDescription' - Reserved for future use.+--+-- * 'cpName' - Reserved for future use.+--+-- * 'cpId' - Reserved for future use.+createProject+ :: Text -- ^ 'cpName'+ -> Text -- ^ 'cpId'+ -> CreateProject+createProject pName_ pId_ =+ CreateProject'+ { _cpClientRequestToken = Nothing+ , _cpDescription = Nothing+ , _cpName = _Sensitive # pName_+ , _cpId = pId_+ }+++-- | Reserved for future use.+cpClientRequestToken :: Lens' CreateProject (Maybe Text)+cpClientRequestToken = lens _cpClientRequestToken (\ s a -> s{_cpClientRequestToken = a});++-- | Reserved for future use.+cpDescription :: Lens' CreateProject (Maybe Text)+cpDescription = lens _cpDescription (\ s a -> s{_cpDescription = a}) . mapping _Sensitive;++-- | Reserved for future use.+cpName :: Lens' CreateProject Text+cpName = lens _cpName (\ s a -> s{_cpName = a}) . _Sensitive;++-- | Reserved for future use.+cpId :: Lens' CreateProject Text+cpId = lens _cpId (\ s a -> s{_cpId = a});++instance AWSRequest CreateProject where+ type Rs CreateProject = CreateProjectResponse+ request = postJSON codeStar+ response+ = receiveJSON+ (\ s h x ->+ CreateProjectResponse' <$>+ (x .?> "projectTemplateId") <*>+ (x .?> "clientRequestToken")+ <*> (pure (fromEnum s))+ <*> (x .:> "id")+ <*> (x .:> "arn"))++instance Hashable CreateProject where++instance NFData CreateProject where++instance ToHeaders CreateProject where+ toHeaders+ = const+ (mconcat+ ["X-Amz-Target" =#+ ("CodeStar_20170419.CreateProject" :: ByteString),+ "Content-Type" =#+ ("application/x-amz-json-1.1" :: ByteString)])++instance ToJSON CreateProject where+ toJSON CreateProject'{..}+ = object+ (catMaybes+ [("clientRequestToken" .=) <$> _cpClientRequestToken,+ ("description" .=) <$> _cpDescription,+ Just ("name" .= _cpName), Just ("id" .= _cpId)])++instance ToPath CreateProject where+ toPath = const "/"++instance ToQuery CreateProject where+ toQuery = const mempty++-- | /See:/ 'createProjectResponse' smart constructor.+data CreateProjectResponse = CreateProjectResponse'+ { _cprsProjectTemplateId :: !(Maybe Text)+ , _cprsClientRequestToken :: !(Maybe Text)+ , _cprsResponseStatus :: !Int+ , _cprsId :: !Text+ , _cprsArn :: !Text+ } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'CreateProjectResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'cprsProjectTemplateId' - Reserved for future use.+--+-- * 'cprsClientRequestToken' - Reserved for future use.+--+-- * 'cprsResponseStatus' - -- | The response status code.+--+-- * 'cprsId' - Reserved for future use.+--+-- * 'cprsArn' - Reserved for future use.+createProjectResponse+ :: Int -- ^ 'cprsResponseStatus'+ -> Text -- ^ 'cprsId'+ -> Text -- ^ 'cprsArn'+ -> CreateProjectResponse+createProjectResponse pResponseStatus_ pId_ pArn_ =+ CreateProjectResponse'+ { _cprsProjectTemplateId = Nothing+ , _cprsClientRequestToken = Nothing+ , _cprsResponseStatus = pResponseStatus_+ , _cprsId = pId_+ , _cprsArn = pArn_+ }+++-- | Reserved for future use.+cprsProjectTemplateId :: Lens' CreateProjectResponse (Maybe Text)+cprsProjectTemplateId = lens _cprsProjectTemplateId (\ s a -> s{_cprsProjectTemplateId = a});++-- | Reserved for future use.+cprsClientRequestToken :: Lens' CreateProjectResponse (Maybe Text)+cprsClientRequestToken = lens _cprsClientRequestToken (\ s a -> s{_cprsClientRequestToken = a});++-- | -- | The response status code.+cprsResponseStatus :: Lens' CreateProjectResponse Int+cprsResponseStatus = lens _cprsResponseStatus (\ s a -> s{_cprsResponseStatus = a});++-- | Reserved for future use.+cprsId :: Lens' CreateProjectResponse Text+cprsId = lens _cprsId (\ s a -> s{_cprsId = a});++-- | Reserved for future use.+cprsArn :: Lens' CreateProjectResponse Text+cprsArn = lens _cprsArn (\ s a -> s{_cprsArn = a});++instance NFData CreateProjectResponse where
+ gen/Network/AWS/CodeStar/CreateUserProfile.hs view
@@ -0,0 +1,222 @@+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE TypeFamilies #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Network.AWS.CodeStar.CreateUserProfile+-- Copyright : (c) 2013-2017 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Creates a profile for a user that includes user preferences, such as the display name and email address assocciated with the user, in AWS CodeStar. The user profile is not project-specific. Information in the user profile is displayed wherever the user's information appears to other users in AWS CodeStar.+--+--+module Network.AWS.CodeStar.CreateUserProfile+ (+ -- * Creating a Request+ createUserProfile+ , CreateUserProfile+ -- * Request Lenses+ , cupSshPublicKey+ , cupUserARN+ , cupDisplayName+ , cupEmailAddress++ -- * Destructuring the Response+ , createUserProfileResponse+ , CreateUserProfileResponse+ -- * Response Lenses+ , cuprsLastModifiedTimestamp+ , cuprsSshPublicKey+ , cuprsEmailAddress+ , cuprsDisplayName+ , cuprsCreatedTimestamp+ , cuprsResponseStatus+ , cuprsUserARN+ ) where++import Network.AWS.CodeStar.Types+import Network.AWS.CodeStar.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | /See:/ 'createUserProfile' smart constructor.+data CreateUserProfile = CreateUserProfile'+ { _cupSshPublicKey :: !(Maybe Text)+ , _cupUserARN :: !Text+ , _cupDisplayName :: !Text+ , _cupEmailAddress :: !(Sensitive Text)+ } deriving (Eq, Show, Data, Typeable, Generic)+++-- | Creates a value of 'CreateUserProfile' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'cupSshPublicKey' - The SSH public key associated with the user in AWS CodeStar. If a project owner allows the user remote access to project resources, this public key will be used along with the user's private key for SSH access.+--+-- * 'cupUserARN' - The Amazon Resource Name (ARN) of the user in IAM.+--+-- * 'cupDisplayName' - The name that will be displayed as the friendly name for the user in AWS CodeStar.+--+-- * 'cupEmailAddress' - The email address that will be displayed as part of the user's profile in AWS CodeStar.+createUserProfile+ :: Text -- ^ 'cupUserARN'+ -> Text -- ^ 'cupDisplayName'+ -> Text -- ^ 'cupEmailAddress'+ -> CreateUserProfile+createUserProfile pUserARN_ pDisplayName_ pEmailAddress_ =+ CreateUserProfile'+ { _cupSshPublicKey = Nothing+ , _cupUserARN = pUserARN_+ , _cupDisplayName = pDisplayName_+ , _cupEmailAddress = _Sensitive # pEmailAddress_+ }+++-- | The SSH public key associated with the user in AWS CodeStar. If a project owner allows the user remote access to project resources, this public key will be used along with the user's private key for SSH access.+cupSshPublicKey :: Lens' CreateUserProfile (Maybe Text)+cupSshPublicKey = lens _cupSshPublicKey (\ s a -> s{_cupSshPublicKey = a});++-- | The Amazon Resource Name (ARN) of the user in IAM.+cupUserARN :: Lens' CreateUserProfile Text+cupUserARN = lens _cupUserARN (\ s a -> s{_cupUserARN = a});++-- | The name that will be displayed as the friendly name for the user in AWS CodeStar.+cupDisplayName :: Lens' CreateUserProfile Text+cupDisplayName = lens _cupDisplayName (\ s a -> s{_cupDisplayName = a});++-- | The email address that will be displayed as part of the user's profile in AWS CodeStar.+cupEmailAddress :: Lens' CreateUserProfile Text+cupEmailAddress = lens _cupEmailAddress (\ s a -> s{_cupEmailAddress = a}) . _Sensitive;++instance AWSRequest CreateUserProfile where+ type Rs CreateUserProfile = CreateUserProfileResponse+ request = postJSON codeStar+ response+ = receiveJSON+ (\ s h x ->+ CreateUserProfileResponse' <$>+ (x .?> "lastModifiedTimestamp") <*>+ (x .?> "sshPublicKey")+ <*> (x .?> "emailAddress")+ <*> (x .?> "displayName")+ <*> (x .?> "createdTimestamp")+ <*> (pure (fromEnum s))+ <*> (x .:> "userArn"))++instance Hashable CreateUserProfile where++instance NFData CreateUserProfile where++instance ToHeaders CreateUserProfile where+ toHeaders+ = const+ (mconcat+ ["X-Amz-Target" =#+ ("CodeStar_20170419.CreateUserProfile" ::+ ByteString),+ "Content-Type" =#+ ("application/x-amz-json-1.1" :: ByteString)])++instance ToJSON CreateUserProfile where+ toJSON CreateUserProfile'{..}+ = object+ (catMaybes+ [("sshPublicKey" .=) <$> _cupSshPublicKey,+ Just ("userArn" .= _cupUserARN),+ Just ("displayName" .= _cupDisplayName),+ Just ("emailAddress" .= _cupEmailAddress)])++instance ToPath CreateUserProfile where+ toPath = const "/"++instance ToQuery CreateUserProfile where+ toQuery = const mempty++-- | /See:/ 'createUserProfileResponse' smart constructor.+data CreateUserProfileResponse = CreateUserProfileResponse'+ { _cuprsLastModifiedTimestamp :: !(Maybe POSIX)+ , _cuprsSshPublicKey :: !(Maybe Text)+ , _cuprsEmailAddress :: !(Maybe (Sensitive Text))+ , _cuprsDisplayName :: !(Maybe Text)+ , _cuprsCreatedTimestamp :: !(Maybe POSIX)+ , _cuprsResponseStatus :: !Int+ , _cuprsUserARN :: !Text+ } deriving (Eq, Show, Data, Typeable, Generic)+++-- | Creates a value of 'CreateUserProfileResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'cuprsLastModifiedTimestamp' - The date the user profile was last modified, in timestamp format.+--+-- * 'cuprsSshPublicKey' - The SSH public key associated with the user in AWS CodeStar. This is the public portion of the public/private keypair the user can use to access project resources if a project owner allows the user remote access to those resources.+--+-- * 'cuprsEmailAddress' - The email address that is displayed as part of the user's profile in AWS CodeStar.+--+-- * 'cuprsDisplayName' - The name that is displayed as the friendly name for the user in AWS CodeStar.+--+-- * 'cuprsCreatedTimestamp' - The date the user profile was created, in timestamp format.+--+-- * 'cuprsResponseStatus' - -- | The response status code.+--+-- * 'cuprsUserARN' - The Amazon Resource Name (ARN) of the user in IAM.+createUserProfileResponse+ :: Int -- ^ 'cuprsResponseStatus'+ -> Text -- ^ 'cuprsUserARN'+ -> CreateUserProfileResponse+createUserProfileResponse pResponseStatus_ pUserARN_ =+ CreateUserProfileResponse'+ { _cuprsLastModifiedTimestamp = Nothing+ , _cuprsSshPublicKey = Nothing+ , _cuprsEmailAddress = Nothing+ , _cuprsDisplayName = Nothing+ , _cuprsCreatedTimestamp = Nothing+ , _cuprsResponseStatus = pResponseStatus_+ , _cuprsUserARN = pUserARN_+ }+++-- | The date the user profile was last modified, in timestamp format.+cuprsLastModifiedTimestamp :: Lens' CreateUserProfileResponse (Maybe UTCTime)+cuprsLastModifiedTimestamp = lens _cuprsLastModifiedTimestamp (\ s a -> s{_cuprsLastModifiedTimestamp = a}) . mapping _Time;++-- | The SSH public key associated with the user in AWS CodeStar. This is the public portion of the public/private keypair the user can use to access project resources if a project owner allows the user remote access to those resources.+cuprsSshPublicKey :: Lens' CreateUserProfileResponse (Maybe Text)+cuprsSshPublicKey = lens _cuprsSshPublicKey (\ s a -> s{_cuprsSshPublicKey = a});++-- | The email address that is displayed as part of the user's profile in AWS CodeStar.+cuprsEmailAddress :: Lens' CreateUserProfileResponse (Maybe Text)+cuprsEmailAddress = lens _cuprsEmailAddress (\ s a -> s{_cuprsEmailAddress = a}) . mapping _Sensitive;++-- | The name that is displayed as the friendly name for the user in AWS CodeStar.+cuprsDisplayName :: Lens' CreateUserProfileResponse (Maybe Text)+cuprsDisplayName = lens _cuprsDisplayName (\ s a -> s{_cuprsDisplayName = a});++-- | The date the user profile was created, in timestamp format.+cuprsCreatedTimestamp :: Lens' CreateUserProfileResponse (Maybe UTCTime)+cuprsCreatedTimestamp = lens _cuprsCreatedTimestamp (\ s a -> s{_cuprsCreatedTimestamp = a}) . mapping _Time;++-- | -- | The response status code.+cuprsResponseStatus :: Lens' CreateUserProfileResponse Int+cuprsResponseStatus = lens _cuprsResponseStatus (\ s a -> s{_cuprsResponseStatus = a});++-- | The Amazon Resource Name (ARN) of the user in IAM.+cuprsUserARN :: Lens' CreateUserProfileResponse Text+cuprsUserARN = lens _cuprsUserARN (\ s a -> s{_cuprsUserARN = a});++instance NFData CreateUserProfileResponse where
+ gen/Network/AWS/CodeStar/DeleteProject.hs view
@@ -0,0 +1,164 @@+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE TypeFamilies #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Network.AWS.CodeStar.DeleteProject+-- Copyright : (c) 2013-2017 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Deletes a project, including project resources. Does not delete users associated with the project, but does delete the IAM roles that allowed access to the project.+--+--+module Network.AWS.CodeStar.DeleteProject+ (+ -- * Creating a Request+ deleteProject+ , DeleteProject+ -- * Request Lenses+ , dpDeleteStack+ , dpClientRequestToken+ , dpId++ -- * Destructuring the Response+ , deleteProjectResponse+ , DeleteProjectResponse+ -- * Response Lenses+ , dprsProjectARN+ , dprsStackId+ , dprsResponseStatus+ ) where++import Network.AWS.CodeStar.Types+import Network.AWS.CodeStar.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | /See:/ 'deleteProject' smart constructor.+data DeleteProject = DeleteProject'+ { _dpDeleteStack :: !(Maybe Bool)+ , _dpClientRequestToken :: !(Maybe Text)+ , _dpId :: !Text+ } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'DeleteProject' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'dpDeleteStack' - Whether to send a delete request for the primary stack in AWS CloudFormation originally used to generate the project and its resources. This option will delete all AWS resources for the project (except for any buckets in Amazon S3) as well as deleting the project itself. Recommended for most use cases.+--+-- * 'dpClientRequestToken' - A user- or system-generated token that identifies the entity that requested project deletion. This token can be used to repeat the request.+--+-- * 'dpId' - The ID of the project to be deleted in AWS CodeStar.+deleteProject+ :: Text -- ^ 'dpId'+ -> DeleteProject+deleteProject pId_ =+ DeleteProject'+ {_dpDeleteStack = Nothing, _dpClientRequestToken = Nothing, _dpId = pId_}+++-- | Whether to send a delete request for the primary stack in AWS CloudFormation originally used to generate the project and its resources. This option will delete all AWS resources for the project (except for any buckets in Amazon S3) as well as deleting the project itself. Recommended for most use cases.+dpDeleteStack :: Lens' DeleteProject (Maybe Bool)+dpDeleteStack = lens _dpDeleteStack (\ s a -> s{_dpDeleteStack = a});++-- | A user- or system-generated token that identifies the entity that requested project deletion. This token can be used to repeat the request.+dpClientRequestToken :: Lens' DeleteProject (Maybe Text)+dpClientRequestToken = lens _dpClientRequestToken (\ s a -> s{_dpClientRequestToken = a});++-- | The ID of the project to be deleted in AWS CodeStar.+dpId :: Lens' DeleteProject Text+dpId = lens _dpId (\ s a -> s{_dpId = a});++instance AWSRequest DeleteProject where+ type Rs DeleteProject = DeleteProjectResponse+ request = postJSON codeStar+ response+ = receiveJSON+ (\ s h x ->+ DeleteProjectResponse' <$>+ (x .?> "projectArn") <*> (x .?> "stackId") <*>+ (pure (fromEnum s)))++instance Hashable DeleteProject where++instance NFData DeleteProject where++instance ToHeaders DeleteProject where+ toHeaders+ = const+ (mconcat+ ["X-Amz-Target" =#+ ("CodeStar_20170419.DeleteProject" :: ByteString),+ "Content-Type" =#+ ("application/x-amz-json-1.1" :: ByteString)])++instance ToJSON DeleteProject where+ toJSON DeleteProject'{..}+ = object+ (catMaybes+ [("deleteStack" .=) <$> _dpDeleteStack,+ ("clientRequestToken" .=) <$> _dpClientRequestToken,+ Just ("id" .= _dpId)])++instance ToPath DeleteProject where+ toPath = const "/"++instance ToQuery DeleteProject where+ toQuery = const mempty++-- | /See:/ 'deleteProjectResponse' smart constructor.+data DeleteProjectResponse = DeleteProjectResponse'+ { _dprsProjectARN :: !(Maybe Text)+ , _dprsStackId :: !(Maybe Text)+ , _dprsResponseStatus :: !Int+ } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'DeleteProjectResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'dprsProjectARN' - The Amazon Resource Name (ARN) of the deleted project.+--+-- * 'dprsStackId' - The ID of the primary stack in AWS CloudFormation that will be deleted as part of deleting the project and its resources.+--+-- * 'dprsResponseStatus' - -- | The response status code.+deleteProjectResponse+ :: Int -- ^ 'dprsResponseStatus'+ -> DeleteProjectResponse+deleteProjectResponse pResponseStatus_ =+ DeleteProjectResponse'+ { _dprsProjectARN = Nothing+ , _dprsStackId = Nothing+ , _dprsResponseStatus = pResponseStatus_+ }+++-- | The Amazon Resource Name (ARN) of the deleted project.+dprsProjectARN :: Lens' DeleteProjectResponse (Maybe Text)+dprsProjectARN = lens _dprsProjectARN (\ s a -> s{_dprsProjectARN = a});++-- | The ID of the primary stack in AWS CloudFormation that will be deleted as part of deleting the project and its resources.+dprsStackId :: Lens' DeleteProjectResponse (Maybe Text)+dprsStackId = lens _dprsStackId (\ s a -> s{_dprsStackId = a});++-- | -- | The response status code.+dprsResponseStatus :: Lens' DeleteProjectResponse Int+dprsResponseStatus = lens _dprsResponseStatus (\ s a -> s{_dprsResponseStatus = a});++instance NFData DeleteProjectResponse where
+ gen/Network/AWS/CodeStar/DeleteUserProfile.hs view
@@ -0,0 +1,132 @@+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE TypeFamilies #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Network.AWS.CodeStar.DeleteUserProfile+-- Copyright : (c) 2013-2017 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Deletes a user profile in AWS CodeStar, including all personal preference data associated with that profile, such as display name and email address. It does not delete the history of that user, for example the history of commits made by that user.+--+--+module Network.AWS.CodeStar.DeleteUserProfile+ (+ -- * Creating a Request+ deleteUserProfile+ , DeleteUserProfile+ -- * Request Lenses+ , dUserARN++ -- * Destructuring the Response+ , deleteUserProfileResponse+ , DeleteUserProfileResponse+ -- * Response Lenses+ , delrsResponseStatus+ , delrsUserARN+ ) where++import Network.AWS.CodeStar.Types+import Network.AWS.CodeStar.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | /See:/ 'deleteUserProfile' smart constructor.+newtype DeleteUserProfile = DeleteUserProfile'+ { _dUserARN :: Text+ } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'DeleteUserProfile' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'dUserARN' - The Amazon Resource Name (ARN) of the user to delete from AWS CodeStar.+deleteUserProfile+ :: Text -- ^ 'dUserARN'+ -> DeleteUserProfile+deleteUserProfile pUserARN_ = DeleteUserProfile' {_dUserARN = pUserARN_}+++-- | The Amazon Resource Name (ARN) of the user to delete from AWS CodeStar.+dUserARN :: Lens' DeleteUserProfile Text+dUserARN = lens _dUserARN (\ s a -> s{_dUserARN = a});++instance AWSRequest DeleteUserProfile where+ type Rs DeleteUserProfile = DeleteUserProfileResponse+ request = postJSON codeStar+ response+ = receiveJSON+ (\ s h x ->+ DeleteUserProfileResponse' <$>+ (pure (fromEnum s)) <*> (x .:> "userArn"))++instance Hashable DeleteUserProfile where++instance NFData DeleteUserProfile where++instance ToHeaders DeleteUserProfile where+ toHeaders+ = const+ (mconcat+ ["X-Amz-Target" =#+ ("CodeStar_20170419.DeleteUserProfile" ::+ ByteString),+ "Content-Type" =#+ ("application/x-amz-json-1.1" :: ByteString)])++instance ToJSON DeleteUserProfile where+ toJSON DeleteUserProfile'{..}+ = object (catMaybes [Just ("userArn" .= _dUserARN)])++instance ToPath DeleteUserProfile where+ toPath = const "/"++instance ToQuery DeleteUserProfile where+ toQuery = const mempty++-- | /See:/ 'deleteUserProfileResponse' smart constructor.+data DeleteUserProfileResponse = DeleteUserProfileResponse'+ { _delrsResponseStatus :: !Int+ , _delrsUserARN :: !Text+ } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'DeleteUserProfileResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'delrsResponseStatus' - -- | The response status code.+--+-- * 'delrsUserARN' - The Amazon Resource Name (ARN) of the user deleted from AWS CodeStar.+deleteUserProfileResponse+ :: Int -- ^ 'delrsResponseStatus'+ -> Text -- ^ 'delrsUserARN'+ -> DeleteUserProfileResponse+deleteUserProfileResponse pResponseStatus_ pUserARN_ =+ DeleteUserProfileResponse'+ {_delrsResponseStatus = pResponseStatus_, _delrsUserARN = pUserARN_}+++-- | -- | The response status code.+delrsResponseStatus :: Lens' DeleteUserProfileResponse Int+delrsResponseStatus = lens _delrsResponseStatus (\ s a -> s{_delrsResponseStatus = a});++-- | The Amazon Resource Name (ARN) of the user deleted from AWS CodeStar.+delrsUserARN :: Lens' DeleteUserProfileResponse Text+delrsUserARN = lens _delrsUserARN (\ s a -> s{_delrsUserARN = a});++instance NFData DeleteUserProfileResponse where
+ gen/Network/AWS/CodeStar/DescribeProject.hs view
@@ -0,0 +1,202 @@+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE TypeFamilies #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Network.AWS.CodeStar.DescribeProject+-- Copyright : (c) 2013-2017 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Describes a project and its resources.+--+--+module Network.AWS.CodeStar.DescribeProject+ (+ -- * Creating a Request+ describeProject+ , DescribeProject+ -- * Request Lenses+ , dId++ -- * Destructuring the Response+ , describeProjectResponse+ , DescribeProjectResponse+ -- * Response Lenses+ , drsArn+ , drsProjectTemplateId+ , drsName+ , drsId+ , drsStackId+ , drsClientRequestToken+ , drsCreatedTimeStamp+ , drsDescription+ , drsResponseStatus+ ) where++import Network.AWS.CodeStar.Types+import Network.AWS.CodeStar.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | /See:/ 'describeProject' smart constructor.+newtype DescribeProject = DescribeProject'+ { _dId :: Text+ } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'DescribeProject' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'dId' - The ID of the project.+describeProject+ :: Text -- ^ 'dId'+ -> DescribeProject+describeProject pId_ = DescribeProject' {_dId = pId_}+++-- | The ID of the project.+dId :: Lens' DescribeProject Text+dId = lens _dId (\ s a -> s{_dId = a});++instance AWSRequest DescribeProject where+ type Rs DescribeProject = DescribeProjectResponse+ request = postJSON codeStar+ response+ = receiveJSON+ (\ s h x ->+ DescribeProjectResponse' <$>+ (x .?> "arn") <*> (x .?> "projectTemplateId") <*>+ (x .?> "name")+ <*> (x .?> "id")+ <*> (x .?> "stackId")+ <*> (x .?> "clientRequestToken")+ <*> (x .?> "createdTimeStamp")+ <*> (x .?> "description")+ <*> (pure (fromEnum s)))++instance Hashable DescribeProject where++instance NFData DescribeProject where++instance ToHeaders DescribeProject where+ toHeaders+ = const+ (mconcat+ ["X-Amz-Target" =#+ ("CodeStar_20170419.DescribeProject" :: ByteString),+ "Content-Type" =#+ ("application/x-amz-json-1.1" :: ByteString)])++instance ToJSON DescribeProject where+ toJSON DescribeProject'{..}+ = object (catMaybes [Just ("id" .= _dId)])++instance ToPath DescribeProject where+ toPath = const "/"++instance ToQuery DescribeProject where+ toQuery = const mempty++-- | /See:/ 'describeProjectResponse' smart constructor.+data DescribeProjectResponse = DescribeProjectResponse'+ { _drsArn :: !(Maybe Text)+ , _drsProjectTemplateId :: !(Maybe Text)+ , _drsName :: !(Maybe (Sensitive Text))+ , _drsId :: !(Maybe Text)+ , _drsStackId :: !(Maybe Text)+ , _drsClientRequestToken :: !(Maybe Text)+ , _drsCreatedTimeStamp :: !(Maybe POSIX)+ , _drsDescription :: !(Maybe (Sensitive Text))+ , _drsResponseStatus :: !Int+ } deriving (Eq, Show, Data, Typeable, Generic)+++-- | Creates a value of 'DescribeProjectResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'drsArn' - The Amazon Resource Name (ARN) for the project.+--+-- * 'drsProjectTemplateId' - The ID for the AWS CodeStar project template used to create the project.+--+-- * 'drsName' - The display name for the project.+--+-- * 'drsId' - The ID of the project.+--+-- * 'drsStackId' - The ID of the primary stack in AWS CloudFormation used to generate resources for the project.+--+-- * 'drsClientRequestToken' - A user- or system-generated token that identifies the entity that requested project creation.+--+-- * 'drsCreatedTimeStamp' - The date and time the project was created, in timestamp format.+--+-- * 'drsDescription' - The description of the project, if any.+--+-- * 'drsResponseStatus' - -- | The response status code.+describeProjectResponse+ :: Int -- ^ 'drsResponseStatus'+ -> DescribeProjectResponse+describeProjectResponse pResponseStatus_ =+ DescribeProjectResponse'+ { _drsArn = Nothing+ , _drsProjectTemplateId = Nothing+ , _drsName = Nothing+ , _drsId = Nothing+ , _drsStackId = Nothing+ , _drsClientRequestToken = Nothing+ , _drsCreatedTimeStamp = Nothing+ , _drsDescription = Nothing+ , _drsResponseStatus = pResponseStatus_+ }+++-- | The Amazon Resource Name (ARN) for the project.+drsArn :: Lens' DescribeProjectResponse (Maybe Text)+drsArn = lens _drsArn (\ s a -> s{_drsArn = a});++-- | The ID for the AWS CodeStar project template used to create the project.+drsProjectTemplateId :: Lens' DescribeProjectResponse (Maybe Text)+drsProjectTemplateId = lens _drsProjectTemplateId (\ s a -> s{_drsProjectTemplateId = a});++-- | The display name for the project.+drsName :: Lens' DescribeProjectResponse (Maybe Text)+drsName = lens _drsName (\ s a -> s{_drsName = a}) . mapping _Sensitive;++-- | The ID of the project.+drsId :: Lens' DescribeProjectResponse (Maybe Text)+drsId = lens _drsId (\ s a -> s{_drsId = a});++-- | The ID of the primary stack in AWS CloudFormation used to generate resources for the project.+drsStackId :: Lens' DescribeProjectResponse (Maybe Text)+drsStackId = lens _drsStackId (\ s a -> s{_drsStackId = a});++-- | A user- or system-generated token that identifies the entity that requested project creation.+drsClientRequestToken :: Lens' DescribeProjectResponse (Maybe Text)+drsClientRequestToken = lens _drsClientRequestToken (\ s a -> s{_drsClientRequestToken = a});++-- | The date and time the project was created, in timestamp format.+drsCreatedTimeStamp :: Lens' DescribeProjectResponse (Maybe UTCTime)+drsCreatedTimeStamp = lens _drsCreatedTimeStamp (\ s a -> s{_drsCreatedTimeStamp = a}) . mapping _Time;++-- | The description of the project, if any.+drsDescription :: Lens' DescribeProjectResponse (Maybe Text)+drsDescription = lens _drsDescription (\ s a -> s{_drsDescription = a}) . mapping _Sensitive;++-- | -- | The response status code.+drsResponseStatus :: Lens' DescribeProjectResponse Int+drsResponseStatus = lens _drsResponseStatus (\ s a -> s{_drsResponseStatus = a});++instance NFData DescribeProjectResponse where
+ gen/Network/AWS/CodeStar/DescribeUserProfile.hs view
@@ -0,0 +1,188 @@+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE TypeFamilies #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Network.AWS.CodeStar.DescribeUserProfile+-- Copyright : (c) 2013-2017 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Describes a user in AWS CodeStar and the user attributes across all projects.+--+--+module Network.AWS.CodeStar.DescribeUserProfile+ (+ -- * Creating a Request+ describeUserProfile+ , DescribeUserProfile+ -- * Request Lenses+ , dupUserARN++ -- * Destructuring the Response+ , describeUserProfileResponse+ , DescribeUserProfileResponse+ -- * Response Lenses+ , duprsSshPublicKey+ , duprsEmailAddress+ , duprsDisplayName+ , duprsResponseStatus+ , duprsUserARN+ , duprsCreatedTimestamp+ , duprsLastModifiedTimestamp+ ) where++import Network.AWS.CodeStar.Types+import Network.AWS.CodeStar.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | /See:/ 'describeUserProfile' smart constructor.+newtype DescribeUserProfile = DescribeUserProfile'+ { _dupUserARN :: Text+ } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'DescribeUserProfile' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'dupUserARN' - The Amazon Resource Name (ARN) of the user.+describeUserProfile+ :: Text -- ^ 'dupUserARN'+ -> DescribeUserProfile+describeUserProfile pUserARN_ = DescribeUserProfile' {_dupUserARN = pUserARN_}+++-- | The Amazon Resource Name (ARN) of the user.+dupUserARN :: Lens' DescribeUserProfile Text+dupUserARN = lens _dupUserARN (\ s a -> s{_dupUserARN = a});++instance AWSRequest DescribeUserProfile where+ type Rs DescribeUserProfile =+ DescribeUserProfileResponse+ request = postJSON codeStar+ response+ = receiveJSON+ (\ s h x ->+ DescribeUserProfileResponse' <$>+ (x .?> "sshPublicKey") <*> (x .?> "emailAddress") <*>+ (x .?> "displayName")+ <*> (pure (fromEnum s))+ <*> (x .:> "userArn")+ <*> (x .:> "createdTimestamp")+ <*> (x .:> "lastModifiedTimestamp"))++instance Hashable DescribeUserProfile where++instance NFData DescribeUserProfile where++instance ToHeaders DescribeUserProfile where+ toHeaders+ = const+ (mconcat+ ["X-Amz-Target" =#+ ("CodeStar_20170419.DescribeUserProfile" ::+ ByteString),+ "Content-Type" =#+ ("application/x-amz-json-1.1" :: ByteString)])++instance ToJSON DescribeUserProfile where+ toJSON DescribeUserProfile'{..}+ = object+ (catMaybes [Just ("userArn" .= _dupUserARN)])++instance ToPath DescribeUserProfile where+ toPath = const "/"++instance ToQuery DescribeUserProfile where+ toQuery = const mempty++-- | /See:/ 'describeUserProfileResponse' smart constructor.+data DescribeUserProfileResponse = DescribeUserProfileResponse'+ { _duprsSshPublicKey :: !(Maybe Text)+ , _duprsEmailAddress :: !(Maybe (Sensitive Text))+ , _duprsDisplayName :: !(Maybe Text)+ , _duprsResponseStatus :: !Int+ , _duprsUserARN :: !Text+ , _duprsCreatedTimestamp :: !POSIX+ , _duprsLastModifiedTimestamp :: !POSIX+ } deriving (Eq, Show, Data, Typeable, Generic)+++-- | Creates a value of 'DescribeUserProfileResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'duprsSshPublicKey' - The SSH public key associated with the user. This SSH public key is associated with the user profile, and can be used in conjunction with the associated private key for access to project resources, such as Amazon EC2 instances, if a project owner grants remote access to those resources.+--+-- * 'duprsEmailAddress' - The email address for the user. Optional.+--+-- * 'duprsDisplayName' - The display name shown for the user in AWS CodeStar projects. For example, this could be set to both first and last name ("Mary Major") or a single name ("Mary"). The display name is also used to generate the initial icon associated with the user in AWS CodeStar projects. If spaces are included in the display name, the first character that appears after the space will be used as the second character in the user initial icon. The initial icon displays a maximum of two characters, so a display name with more than one space (for example "Mary Jane Major") would generate an initial icon using the first character and the first character after the space ("MJ", not "MM").+--+-- * 'duprsResponseStatus' - -- | The response status code.+--+-- * 'duprsUserARN' - The Amazon Resource Name (ARN) of the user.+--+-- * 'duprsCreatedTimestamp' - The date and time when the user profile was created in AWS CodeStar, in timestamp format.+--+-- * 'duprsLastModifiedTimestamp' - The date and time when the user profile was last modified, in timestamp format.+describeUserProfileResponse+ :: Int -- ^ 'duprsResponseStatus'+ -> Text -- ^ 'duprsUserARN'+ -> UTCTime -- ^ 'duprsCreatedTimestamp'+ -> UTCTime -- ^ 'duprsLastModifiedTimestamp'+ -> DescribeUserProfileResponse+describeUserProfileResponse pResponseStatus_ pUserARN_ pCreatedTimestamp_ pLastModifiedTimestamp_ =+ DescribeUserProfileResponse'+ { _duprsSshPublicKey = Nothing+ , _duprsEmailAddress = Nothing+ , _duprsDisplayName = Nothing+ , _duprsResponseStatus = pResponseStatus_+ , _duprsUserARN = pUserARN_+ , _duprsCreatedTimestamp = _Time # pCreatedTimestamp_+ , _duprsLastModifiedTimestamp = _Time # pLastModifiedTimestamp_+ }+++-- | The SSH public key associated with the user. This SSH public key is associated with the user profile, and can be used in conjunction with the associated private key for access to project resources, such as Amazon EC2 instances, if a project owner grants remote access to those resources.+duprsSshPublicKey :: Lens' DescribeUserProfileResponse (Maybe Text)+duprsSshPublicKey = lens _duprsSshPublicKey (\ s a -> s{_duprsSshPublicKey = a});++-- | The email address for the user. Optional.+duprsEmailAddress :: Lens' DescribeUserProfileResponse (Maybe Text)+duprsEmailAddress = lens _duprsEmailAddress (\ s a -> s{_duprsEmailAddress = a}) . mapping _Sensitive;++-- | The display name shown for the user in AWS CodeStar projects. For example, this could be set to both first and last name ("Mary Major") or a single name ("Mary"). The display name is also used to generate the initial icon associated with the user in AWS CodeStar projects. If spaces are included in the display name, the first character that appears after the space will be used as the second character in the user initial icon. The initial icon displays a maximum of two characters, so a display name with more than one space (for example "Mary Jane Major") would generate an initial icon using the first character and the first character after the space ("MJ", not "MM").+duprsDisplayName :: Lens' DescribeUserProfileResponse (Maybe Text)+duprsDisplayName = lens _duprsDisplayName (\ s a -> s{_duprsDisplayName = a});++-- | -- | The response status code.+duprsResponseStatus :: Lens' DescribeUserProfileResponse Int+duprsResponseStatus = lens _duprsResponseStatus (\ s a -> s{_duprsResponseStatus = a});++-- | The Amazon Resource Name (ARN) of the user.+duprsUserARN :: Lens' DescribeUserProfileResponse Text+duprsUserARN = lens _duprsUserARN (\ s a -> s{_duprsUserARN = a});++-- | The date and time when the user profile was created in AWS CodeStar, in timestamp format.+duprsCreatedTimestamp :: Lens' DescribeUserProfileResponse UTCTime+duprsCreatedTimestamp = lens _duprsCreatedTimestamp (\ s a -> s{_duprsCreatedTimestamp = a}) . _Time;++-- | The date and time when the user profile was last modified, in timestamp format.+duprsLastModifiedTimestamp :: Lens' DescribeUserProfileResponse UTCTime+duprsLastModifiedTimestamp = lens _duprsLastModifiedTimestamp (\ s a -> s{_duprsLastModifiedTimestamp = a}) . _Time;++instance NFData DescribeUserProfileResponse where
+ gen/Network/AWS/CodeStar/DisassociateTeamMember.hs view
@@ -0,0 +1,136 @@+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE TypeFamilies #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Network.AWS.CodeStar.DisassociateTeamMember+-- Copyright : (c) 2013-2017 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Removes a user from a project. Removing a user from a project also removes the IAM policies from that user that allowed access to the project and its resources. Disassociating a team member does not remove that user's profile from AWS CodeStar. It does not remove the user from IAM.+--+--+module Network.AWS.CodeStar.DisassociateTeamMember+ (+ -- * Creating a Request+ disassociateTeamMember+ , DisassociateTeamMember+ -- * Request Lenses+ , dtmProjectId+ , dtmUserARN++ -- * Destructuring the Response+ , disassociateTeamMemberResponse+ , DisassociateTeamMemberResponse+ -- * Response Lenses+ , dtmrsResponseStatus+ ) where++import Network.AWS.CodeStar.Types+import Network.AWS.CodeStar.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | /See:/ 'disassociateTeamMember' smart constructor.+data DisassociateTeamMember = DisassociateTeamMember'+ { _dtmProjectId :: !Text+ , _dtmUserARN :: !Text+ } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'DisassociateTeamMember' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'dtmProjectId' - The ID of the AWS CodeStar project from which you want to remove a team member.+--+-- * 'dtmUserARN' - The Amazon Resource Name (ARN) of the IAM user or group whom you want to remove from the project.+disassociateTeamMember+ :: Text -- ^ 'dtmProjectId'+ -> Text -- ^ 'dtmUserARN'+ -> DisassociateTeamMember+disassociateTeamMember pProjectId_ pUserARN_ =+ DisassociateTeamMember' {_dtmProjectId = pProjectId_, _dtmUserARN = pUserARN_}+++-- | The ID of the AWS CodeStar project from which you want to remove a team member.+dtmProjectId :: Lens' DisassociateTeamMember Text+dtmProjectId = lens _dtmProjectId (\ s a -> s{_dtmProjectId = a});++-- | The Amazon Resource Name (ARN) of the IAM user or group whom you want to remove from the project.+dtmUserARN :: Lens' DisassociateTeamMember Text+dtmUserARN = lens _dtmUserARN (\ s a -> s{_dtmUserARN = a});++instance AWSRequest DisassociateTeamMember where+ type Rs DisassociateTeamMember =+ DisassociateTeamMemberResponse+ request = postJSON codeStar+ response+ = receiveEmpty+ (\ s h x ->+ DisassociateTeamMemberResponse' <$>+ (pure (fromEnum s)))++instance Hashable DisassociateTeamMember where++instance NFData DisassociateTeamMember where++instance ToHeaders DisassociateTeamMember where+ toHeaders+ = const+ (mconcat+ ["X-Amz-Target" =#+ ("CodeStar_20170419.DisassociateTeamMember" ::+ ByteString),+ "Content-Type" =#+ ("application/x-amz-json-1.1" :: ByteString)])++instance ToJSON DisassociateTeamMember where+ toJSON DisassociateTeamMember'{..}+ = object+ (catMaybes+ [Just ("projectId" .= _dtmProjectId),+ Just ("userArn" .= _dtmUserARN)])++instance ToPath DisassociateTeamMember where+ toPath = const "/"++instance ToQuery DisassociateTeamMember where+ toQuery = const mempty++-- | /See:/ 'disassociateTeamMemberResponse' smart constructor.+newtype DisassociateTeamMemberResponse = DisassociateTeamMemberResponse'+ { _dtmrsResponseStatus :: Int+ } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'DisassociateTeamMemberResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'dtmrsResponseStatus' - -- | The response status code.+disassociateTeamMemberResponse+ :: Int -- ^ 'dtmrsResponseStatus'+ -> DisassociateTeamMemberResponse+disassociateTeamMemberResponse pResponseStatus_ =+ DisassociateTeamMemberResponse' {_dtmrsResponseStatus = pResponseStatus_}+++-- | -- | The response status code.+dtmrsResponseStatus :: Lens' DisassociateTeamMemberResponse Int+dtmrsResponseStatus = lens _dtmrsResponseStatus (\ s a -> s{_dtmrsResponseStatus = a});++instance NFData DisassociateTeamMemberResponse where
+ gen/Network/AWS/CodeStar/ListProjects.hs view
@@ -0,0 +1,152 @@+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE TypeFamilies #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Network.AWS.CodeStar.ListProjects+-- Copyright : (c) 2013-2017 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Lists all projects in AWS CodeStar associated with your AWS account.+--+--+module Network.AWS.CodeStar.ListProjects+ (+ -- * Creating a Request+ listProjects+ , ListProjects+ -- * Request Lenses+ , lpNextToken+ , lpMaxResults++ -- * Destructuring the Response+ , listProjectsResponse+ , ListProjectsResponse+ -- * Response Lenses+ , lprsNextToken+ , lprsResponseStatus+ , lprsProjects+ ) where++import Network.AWS.CodeStar.Types+import Network.AWS.CodeStar.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | /See:/ 'listProjects' smart constructor.+data ListProjects = ListProjects'+ { _lpNextToken :: !(Maybe Text)+ , _lpMaxResults :: !(Maybe Nat)+ } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'ListProjects' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'lpNextToken' - The continuation token to be used to return the next set of results, if the results cannot be returned in one response.+--+-- * 'lpMaxResults' - The maximum amount of data that can be contained in a single set of results.+listProjects+ :: ListProjects+listProjects = ListProjects' {_lpNextToken = Nothing, _lpMaxResults = Nothing}+++-- | The continuation token to be used to return the next set of results, if the results cannot be returned in one response.+lpNextToken :: Lens' ListProjects (Maybe Text)+lpNextToken = lens _lpNextToken (\ s a -> s{_lpNextToken = a});++-- | The maximum amount of data that can be contained in a single set of results.+lpMaxResults :: Lens' ListProjects (Maybe Natural)+lpMaxResults = lens _lpMaxResults (\ s a -> s{_lpMaxResults = a}) . mapping _Nat;++instance AWSRequest ListProjects where+ type Rs ListProjects = ListProjectsResponse+ request = postJSON codeStar+ response+ = receiveJSON+ (\ s h x ->+ ListProjectsResponse' <$>+ (x .?> "nextToken") <*> (pure (fromEnum s)) <*>+ (x .?> "projects" .!@ mempty))++instance Hashable ListProjects where++instance NFData ListProjects where++instance ToHeaders ListProjects where+ toHeaders+ = const+ (mconcat+ ["X-Amz-Target" =#+ ("CodeStar_20170419.ListProjects" :: ByteString),+ "Content-Type" =#+ ("application/x-amz-json-1.1" :: ByteString)])++instance ToJSON ListProjects where+ toJSON ListProjects'{..}+ = object+ (catMaybes+ [("nextToken" .=) <$> _lpNextToken,+ ("maxResults" .=) <$> _lpMaxResults])++instance ToPath ListProjects where+ toPath = const "/"++instance ToQuery ListProjects where+ toQuery = const mempty++-- | /See:/ 'listProjectsResponse' smart constructor.+data ListProjectsResponse = ListProjectsResponse'+ { _lprsNextToken :: !(Maybe Text)+ , _lprsResponseStatus :: !Int+ , _lprsProjects :: ![ProjectSummary]+ } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'ListProjectsResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'lprsNextToken' - The continuation token to use when requesting the next set of results, if there are more results to be returned.+--+-- * 'lprsResponseStatus' - -- | The response status code.+--+-- * 'lprsProjects' - A list of projects.+listProjectsResponse+ :: Int -- ^ 'lprsResponseStatus'+ -> ListProjectsResponse+listProjectsResponse pResponseStatus_ =+ ListProjectsResponse'+ { _lprsNextToken = Nothing+ , _lprsResponseStatus = pResponseStatus_+ , _lprsProjects = mempty+ }+++-- | The continuation token to use when requesting the next set of results, if there are more results to be returned.+lprsNextToken :: Lens' ListProjectsResponse (Maybe Text)+lprsNextToken = lens _lprsNextToken (\ s a -> s{_lprsNextToken = a});++-- | -- | The response status code.+lprsResponseStatus :: Lens' ListProjectsResponse Int+lprsResponseStatus = lens _lprsResponseStatus (\ s a -> s{_lprsResponseStatus = a});++-- | A list of projects.+lprsProjects :: Lens' ListProjectsResponse [ProjectSummary]+lprsProjects = lens _lprsProjects (\ s a -> s{_lprsProjects = a}) . _Coerce;++instance NFData ListProjectsResponse where
+ gen/Network/AWS/CodeStar/ListResources.hs view
@@ -0,0 +1,165 @@+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE TypeFamilies #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Network.AWS.CodeStar.ListResources+-- Copyright : (c) 2013-2017 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Lists resources associated with a project in AWS CodeStar.+--+--+module Network.AWS.CodeStar.ListResources+ (+ -- * Creating a Request+ listResources+ , ListResources+ -- * Request Lenses+ , lrNextToken+ , lrMaxResults+ , lrProjectId++ -- * Destructuring the Response+ , listResourcesResponse+ , ListResourcesResponse+ -- * Response Lenses+ , lrrsResources+ , lrrsNextToken+ , lrrsResponseStatus+ ) where++import Network.AWS.CodeStar.Types+import Network.AWS.CodeStar.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | /See:/ 'listResources' smart constructor.+data ListResources = ListResources'+ { _lrNextToken :: !(Maybe Text)+ , _lrMaxResults :: !(Maybe Nat)+ , _lrProjectId :: !Text+ } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'ListResources' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'lrNextToken' - The continuation token for the next set of results, if the results cannot be returned in one response.+--+-- * 'lrMaxResults' - The maximum amount of data that can be contained in a single set of results.+--+-- * 'lrProjectId' - The ID of the project.+listResources+ :: Text -- ^ 'lrProjectId'+ -> ListResources+listResources pProjectId_ =+ ListResources'+ {_lrNextToken = Nothing, _lrMaxResults = Nothing, _lrProjectId = pProjectId_}+++-- | The continuation token for the next set of results, if the results cannot be returned in one response.+lrNextToken :: Lens' ListResources (Maybe Text)+lrNextToken = lens _lrNextToken (\ s a -> s{_lrNextToken = a});++-- | The maximum amount of data that can be contained in a single set of results.+lrMaxResults :: Lens' ListResources (Maybe Natural)+lrMaxResults = lens _lrMaxResults (\ s a -> s{_lrMaxResults = a}) . mapping _Nat;++-- | The ID of the project.+lrProjectId :: Lens' ListResources Text+lrProjectId = lens _lrProjectId (\ s a -> s{_lrProjectId = a});++instance AWSRequest ListResources where+ type Rs ListResources = ListResourcesResponse+ request = postJSON codeStar+ response+ = receiveJSON+ (\ s h x ->+ ListResourcesResponse' <$>+ (x .?> "resources" .!@ mempty) <*>+ (x .?> "nextToken")+ <*> (pure (fromEnum s)))++instance Hashable ListResources where++instance NFData ListResources where++instance ToHeaders ListResources where+ toHeaders+ = const+ (mconcat+ ["X-Amz-Target" =#+ ("CodeStar_20170419.ListResources" :: ByteString),+ "Content-Type" =#+ ("application/x-amz-json-1.1" :: ByteString)])++instance ToJSON ListResources where+ toJSON ListResources'{..}+ = object+ (catMaybes+ [("nextToken" .=) <$> _lrNextToken,+ ("maxResults" .=) <$> _lrMaxResults,+ Just ("projectId" .= _lrProjectId)])++instance ToPath ListResources where+ toPath = const "/"++instance ToQuery ListResources where+ toQuery = const mempty++-- | /See:/ 'listResourcesResponse' smart constructor.+data ListResourcesResponse = ListResourcesResponse'+ { _lrrsResources :: !(Maybe [Resource])+ , _lrrsNextToken :: !(Maybe Text)+ , _lrrsResponseStatus :: !Int+ } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'ListResourcesResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'lrrsResources' - An array of resources associated with the project.+--+-- * 'lrrsNextToken' - The continuation token to use when requesting the next set of results, if there are more results to be returned.+--+-- * 'lrrsResponseStatus' - -- | The response status code.+listResourcesResponse+ :: Int -- ^ 'lrrsResponseStatus'+ -> ListResourcesResponse+listResourcesResponse pResponseStatus_ =+ ListResourcesResponse'+ { _lrrsResources = Nothing+ , _lrrsNextToken = Nothing+ , _lrrsResponseStatus = pResponseStatus_+ }+++-- | An array of resources associated with the project.+lrrsResources :: Lens' ListResourcesResponse [Resource]+lrrsResources = lens _lrrsResources (\ s a -> s{_lrrsResources = a}) . _Default . _Coerce;++-- | The continuation token to use when requesting the next set of results, if there are more results to be returned.+lrrsNextToken :: Lens' ListResourcesResponse (Maybe Text)+lrrsNextToken = lens _lrrsNextToken (\ s a -> s{_lrrsNextToken = a});++-- | -- | The response status code.+lrrsResponseStatus :: Lens' ListResourcesResponse Int+lrrsResponseStatus = lens _lrrsResponseStatus (\ s a -> s{_lrrsResponseStatus = a});++instance NFData ListResourcesResponse where
+ gen/Network/AWS/CodeStar/ListTagsForProject.hs view
@@ -0,0 +1,166 @@+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE TypeFamilies #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Network.AWS.CodeStar.ListTagsForProject+-- Copyright : (c) 2013-2017 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Gets the tags for a project.+--+--+module Network.AWS.CodeStar.ListTagsForProject+ (+ -- * Creating a Request+ listTagsForProject+ , ListTagsForProject+ -- * Request Lenses+ , ltfpNextToken+ , ltfpMaxResults+ , ltfpId++ -- * Destructuring the Response+ , listTagsForProjectResponse+ , ListTagsForProjectResponse+ -- * Response Lenses+ , ltfprsNextToken+ , ltfprsTags+ , ltfprsResponseStatus+ ) where++import Network.AWS.CodeStar.Types+import Network.AWS.CodeStar.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | /See:/ 'listTagsForProject' smart constructor.+data ListTagsForProject = ListTagsForProject'+ { _ltfpNextToken :: !(Maybe Text)+ , _ltfpMaxResults :: !(Maybe Nat)+ , _ltfpId :: !Text+ } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'ListTagsForProject' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'ltfpNextToken' - Reserved for future use.+--+-- * 'ltfpMaxResults' - Reserved for future use.+--+-- * 'ltfpId' - The ID of the project to get tags for.+listTagsForProject+ :: Text -- ^ 'ltfpId'+ -> ListTagsForProject+listTagsForProject pId_ =+ ListTagsForProject'+ {_ltfpNextToken = Nothing, _ltfpMaxResults = Nothing, _ltfpId = pId_}+++-- | Reserved for future use.+ltfpNextToken :: Lens' ListTagsForProject (Maybe Text)+ltfpNextToken = lens _ltfpNextToken (\ s a -> s{_ltfpNextToken = a});++-- | Reserved for future use.+ltfpMaxResults :: Lens' ListTagsForProject (Maybe Natural)+ltfpMaxResults = lens _ltfpMaxResults (\ s a -> s{_ltfpMaxResults = a}) . mapping _Nat;++-- | The ID of the project to get tags for.+ltfpId :: Lens' ListTagsForProject Text+ltfpId = lens _ltfpId (\ s a -> s{_ltfpId = a});++instance AWSRequest ListTagsForProject where+ type Rs ListTagsForProject =+ ListTagsForProjectResponse+ request = postJSON codeStar+ response+ = receiveJSON+ (\ s h x ->+ ListTagsForProjectResponse' <$>+ (x .?> "nextToken") <*> (x .?> "tags" .!@ mempty) <*>+ (pure (fromEnum s)))++instance Hashable ListTagsForProject where++instance NFData ListTagsForProject where++instance ToHeaders ListTagsForProject where+ toHeaders+ = const+ (mconcat+ ["X-Amz-Target" =#+ ("CodeStar_20170419.ListTagsForProject" ::+ ByteString),+ "Content-Type" =#+ ("application/x-amz-json-1.1" :: ByteString)])++instance ToJSON ListTagsForProject where+ toJSON ListTagsForProject'{..}+ = object+ (catMaybes+ [("nextToken" .=) <$> _ltfpNextToken,+ ("maxResults" .=) <$> _ltfpMaxResults,+ Just ("id" .= _ltfpId)])++instance ToPath ListTagsForProject where+ toPath = const "/"++instance ToQuery ListTagsForProject where+ toQuery = const mempty++-- | /See:/ 'listTagsForProjectResponse' smart constructor.+data ListTagsForProjectResponse = ListTagsForProjectResponse'+ { _ltfprsNextToken :: !(Maybe Text)+ , _ltfprsTags :: !(Maybe (Map Text Text))+ , _ltfprsResponseStatus :: !Int+ } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'ListTagsForProjectResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'ltfprsNextToken' - Reserved for future use.+--+-- * 'ltfprsTags' - The tags for the project.+--+-- * 'ltfprsResponseStatus' - -- | The response status code.+listTagsForProjectResponse+ :: Int -- ^ 'ltfprsResponseStatus'+ -> ListTagsForProjectResponse+listTagsForProjectResponse pResponseStatus_ =+ ListTagsForProjectResponse'+ { _ltfprsNextToken = Nothing+ , _ltfprsTags = Nothing+ , _ltfprsResponseStatus = pResponseStatus_+ }+++-- | Reserved for future use.+ltfprsNextToken :: Lens' ListTagsForProjectResponse (Maybe Text)+ltfprsNextToken = lens _ltfprsNextToken (\ s a -> s{_ltfprsNextToken = a});++-- | The tags for the project.+ltfprsTags :: Lens' ListTagsForProjectResponse (HashMap Text Text)+ltfprsTags = lens _ltfprsTags (\ s a -> s{_ltfprsTags = a}) . _Default . _Map;++-- | -- | The response status code.+ltfprsResponseStatus :: Lens' ListTagsForProjectResponse Int+ltfprsResponseStatus = lens _ltfprsResponseStatus (\ s a -> s{_ltfprsResponseStatus = a});++instance NFData ListTagsForProjectResponse where
+ gen/Network/AWS/CodeStar/ListTeamMembers.hs view
@@ -0,0 +1,167 @@+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE TypeFamilies #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Network.AWS.CodeStar.ListTeamMembers+-- Copyright : (c) 2013-2017 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Lists all team members associated with a project.+--+--+module Network.AWS.CodeStar.ListTeamMembers+ (+ -- * Creating a Request+ listTeamMembers+ , ListTeamMembers+ -- * Request Lenses+ , ltmNextToken+ , ltmMaxResults+ , ltmProjectId++ -- * Destructuring the Response+ , listTeamMembersResponse+ , ListTeamMembersResponse+ -- * Response Lenses+ , ltmrsNextToken+ , ltmrsResponseStatus+ , ltmrsTeamMembers+ ) where++import Network.AWS.CodeStar.Types+import Network.AWS.CodeStar.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | /See:/ 'listTeamMembers' smart constructor.+data ListTeamMembers = ListTeamMembers'+ { _ltmNextToken :: !(Maybe Text)+ , _ltmMaxResults :: !(Maybe Nat)+ , _ltmProjectId :: !Text+ } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'ListTeamMembers' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'ltmNextToken' - The continuation token for the next set of results, if the results cannot be returned in one response.+--+-- * 'ltmMaxResults' - The maximum number of team members you want returned in a response.+--+-- * 'ltmProjectId' - The ID of the project for which you want to list team members.+listTeamMembers+ :: Text -- ^ 'ltmProjectId'+ -> ListTeamMembers+listTeamMembers pProjectId_ =+ ListTeamMembers'+ { _ltmNextToken = Nothing+ , _ltmMaxResults = Nothing+ , _ltmProjectId = pProjectId_+ }+++-- | The continuation token for the next set of results, if the results cannot be returned in one response.+ltmNextToken :: Lens' ListTeamMembers (Maybe Text)+ltmNextToken = lens _ltmNextToken (\ s a -> s{_ltmNextToken = a});++-- | The maximum number of team members you want returned in a response.+ltmMaxResults :: Lens' ListTeamMembers (Maybe Natural)+ltmMaxResults = lens _ltmMaxResults (\ s a -> s{_ltmMaxResults = a}) . mapping _Nat;++-- | The ID of the project for which you want to list team members.+ltmProjectId :: Lens' ListTeamMembers Text+ltmProjectId = lens _ltmProjectId (\ s a -> s{_ltmProjectId = a});++instance AWSRequest ListTeamMembers where+ type Rs ListTeamMembers = ListTeamMembersResponse+ request = postJSON codeStar+ response+ = receiveJSON+ (\ s h x ->+ ListTeamMembersResponse' <$>+ (x .?> "nextToken") <*> (pure (fromEnum s)) <*>+ (x .?> "teamMembers" .!@ mempty))++instance Hashable ListTeamMembers where++instance NFData ListTeamMembers where++instance ToHeaders ListTeamMembers where+ toHeaders+ = const+ (mconcat+ ["X-Amz-Target" =#+ ("CodeStar_20170419.ListTeamMembers" :: ByteString),+ "Content-Type" =#+ ("application/x-amz-json-1.1" :: ByteString)])++instance ToJSON ListTeamMembers where+ toJSON ListTeamMembers'{..}+ = object+ (catMaybes+ [("nextToken" .=) <$> _ltmNextToken,+ ("maxResults" .=) <$> _ltmMaxResults,+ Just ("projectId" .= _ltmProjectId)])++instance ToPath ListTeamMembers where+ toPath = const "/"++instance ToQuery ListTeamMembers where+ toQuery = const mempty++-- | /See:/ 'listTeamMembersResponse' smart constructor.+data ListTeamMembersResponse = ListTeamMembersResponse'+ { _ltmrsNextToken :: !(Maybe Text)+ , _ltmrsResponseStatus :: !Int+ , _ltmrsTeamMembers :: ![TeamMember]+ } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'ListTeamMembersResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'ltmrsNextToken' - The continuation token to use when requesting the next set of results, if there are more results to be returned.+--+-- * 'ltmrsResponseStatus' - -- | The response status code.+--+-- * 'ltmrsTeamMembers' - A list of team member objects for the project.+listTeamMembersResponse+ :: Int -- ^ 'ltmrsResponseStatus'+ -> ListTeamMembersResponse+listTeamMembersResponse pResponseStatus_ =+ ListTeamMembersResponse'+ { _ltmrsNextToken = Nothing+ , _ltmrsResponseStatus = pResponseStatus_+ , _ltmrsTeamMembers = mempty+ }+++-- | The continuation token to use when requesting the next set of results, if there are more results to be returned.+ltmrsNextToken :: Lens' ListTeamMembersResponse (Maybe Text)+ltmrsNextToken = lens _ltmrsNextToken (\ s a -> s{_ltmrsNextToken = a});++-- | -- | The response status code.+ltmrsResponseStatus :: Lens' ListTeamMembersResponse Int+ltmrsResponseStatus = lens _ltmrsResponseStatus (\ s a -> s{_ltmrsResponseStatus = a});++-- | A list of team member objects for the project.+ltmrsTeamMembers :: Lens' ListTeamMembersResponse [TeamMember]+ltmrsTeamMembers = lens _ltmrsTeamMembers (\ s a -> s{_ltmrsTeamMembers = a}) . _Coerce;++instance NFData ListTeamMembersResponse where
+ gen/Network/AWS/CodeStar/ListUserProfiles.hs view
@@ -0,0 +1,153 @@+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE TypeFamilies #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Network.AWS.CodeStar.ListUserProfiles+-- Copyright : (c) 2013-2017 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Lists all the user profiles configured for your AWS account in AWS CodeStar.+--+--+module Network.AWS.CodeStar.ListUserProfiles+ (+ -- * Creating a Request+ listUserProfiles+ , ListUserProfiles+ -- * Request Lenses+ , lupNextToken+ , lupMaxResults++ -- * Destructuring the Response+ , listUserProfilesResponse+ , ListUserProfilesResponse+ -- * Response Lenses+ , luprsNextToken+ , luprsResponseStatus+ , luprsUserProfiles+ ) where++import Network.AWS.CodeStar.Types+import Network.AWS.CodeStar.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | /See:/ 'listUserProfiles' smart constructor.+data ListUserProfiles = ListUserProfiles'+ { _lupNextToken :: !(Maybe Text)+ , _lupMaxResults :: !(Maybe Nat)+ } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'ListUserProfiles' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'lupNextToken' - The continuation token for the next set of results, if the results cannot be returned in one response.+--+-- * 'lupMaxResults' - The maximum number of results to return in a response.+listUserProfiles+ :: ListUserProfiles+listUserProfiles =+ ListUserProfiles' {_lupNextToken = Nothing, _lupMaxResults = Nothing}+++-- | The continuation token for the next set of results, if the results cannot be returned in one response.+lupNextToken :: Lens' ListUserProfiles (Maybe Text)+lupNextToken = lens _lupNextToken (\ s a -> s{_lupNextToken = a});++-- | The maximum number of results to return in a response.+lupMaxResults :: Lens' ListUserProfiles (Maybe Natural)+lupMaxResults = lens _lupMaxResults (\ s a -> s{_lupMaxResults = a}) . mapping _Nat;++instance AWSRequest ListUserProfiles where+ type Rs ListUserProfiles = ListUserProfilesResponse+ request = postJSON codeStar+ response+ = receiveJSON+ (\ s h x ->+ ListUserProfilesResponse' <$>+ (x .?> "nextToken") <*> (pure (fromEnum s)) <*>+ (x .?> "userProfiles" .!@ mempty))++instance Hashable ListUserProfiles where++instance NFData ListUserProfiles where++instance ToHeaders ListUserProfiles where+ toHeaders+ = const+ (mconcat+ ["X-Amz-Target" =#+ ("CodeStar_20170419.ListUserProfiles" :: ByteString),+ "Content-Type" =#+ ("application/x-amz-json-1.1" :: ByteString)])++instance ToJSON ListUserProfiles where+ toJSON ListUserProfiles'{..}+ = object+ (catMaybes+ [("nextToken" .=) <$> _lupNextToken,+ ("maxResults" .=) <$> _lupMaxResults])++instance ToPath ListUserProfiles where+ toPath = const "/"++instance ToQuery ListUserProfiles where+ toQuery = const mempty++-- | /See:/ 'listUserProfilesResponse' smart constructor.+data ListUserProfilesResponse = ListUserProfilesResponse'+ { _luprsNextToken :: !(Maybe Text)+ , _luprsResponseStatus :: !Int+ , _luprsUserProfiles :: ![UserProfileSummary]+ } deriving (Eq, Show, Data, Typeable, Generic)+++-- | Creates a value of 'ListUserProfilesResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'luprsNextToken' - The continuation token to use when requesting the next set of results, if there are more results to be returned.+--+-- * 'luprsResponseStatus' - -- | The response status code.+--+-- * 'luprsUserProfiles' - All the user profiles configured in AWS CodeStar for an AWS account.+listUserProfilesResponse+ :: Int -- ^ 'luprsResponseStatus'+ -> ListUserProfilesResponse+listUserProfilesResponse pResponseStatus_ =+ ListUserProfilesResponse'+ { _luprsNextToken = Nothing+ , _luprsResponseStatus = pResponseStatus_+ , _luprsUserProfiles = mempty+ }+++-- | The continuation token to use when requesting the next set of results, if there are more results to be returned.+luprsNextToken :: Lens' ListUserProfilesResponse (Maybe Text)+luprsNextToken = lens _luprsNextToken (\ s a -> s{_luprsNextToken = a});++-- | -- | The response status code.+luprsResponseStatus :: Lens' ListUserProfilesResponse Int+luprsResponseStatus = lens _luprsResponseStatus (\ s a -> s{_luprsResponseStatus = a});++-- | All the user profiles configured in AWS CodeStar for an AWS account.+luprsUserProfiles :: Lens' ListUserProfilesResponse [UserProfileSummary]+luprsUserProfiles = lens _luprsUserProfiles (\ s a -> s{_luprsUserProfiles = a}) . _Coerce;++instance NFData ListUserProfilesResponse where
+ gen/Network/AWS/CodeStar/TagProject.hs view
@@ -0,0 +1,140 @@+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE TypeFamilies #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Network.AWS.CodeStar.TagProject+-- Copyright : (c) 2013-2017 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Adds tags to a project.+--+--+module Network.AWS.CodeStar.TagProject+ (+ -- * Creating a Request+ tagProject+ , TagProject+ -- * Request Lenses+ , tpId+ , tpTags++ -- * Destructuring the Response+ , tagProjectResponse+ , TagProjectResponse+ -- * Response Lenses+ , tprsTags+ , tprsResponseStatus+ ) where++import Network.AWS.CodeStar.Types+import Network.AWS.CodeStar.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | /See:/ 'tagProject' smart constructor.+data TagProject = TagProject'+ { _tpId :: !Text+ , _tpTags :: !(Map Text Text)+ } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'TagProject' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'tpId' - The ID of the project you want to add a tag to.+--+-- * 'tpTags' - The tags you want to add to the project.+tagProject+ :: Text -- ^ 'tpId'+ -> TagProject+tagProject pId_ = TagProject' {_tpId = pId_, _tpTags = mempty}+++-- | The ID of the project you want to add a tag to.+tpId :: Lens' TagProject Text+tpId = lens _tpId (\ s a -> s{_tpId = a});++-- | The tags you want to add to the project.+tpTags :: Lens' TagProject (HashMap Text Text)+tpTags = lens _tpTags (\ s a -> s{_tpTags = a}) . _Map;++instance AWSRequest TagProject where+ type Rs TagProject = TagProjectResponse+ request = postJSON codeStar+ response+ = receiveJSON+ (\ s h x ->+ TagProjectResponse' <$>+ (x .?> "tags" .!@ mempty) <*> (pure (fromEnum s)))++instance Hashable TagProject where++instance NFData TagProject where++instance ToHeaders TagProject where+ toHeaders+ = const+ (mconcat+ ["X-Amz-Target" =#+ ("CodeStar_20170419.TagProject" :: ByteString),+ "Content-Type" =#+ ("application/x-amz-json-1.1" :: ByteString)])++instance ToJSON TagProject where+ toJSON TagProject'{..}+ = object+ (catMaybes+ [Just ("id" .= _tpId), Just ("tags" .= _tpTags)])++instance ToPath TagProject where+ toPath = const "/"++instance ToQuery TagProject where+ toQuery = const mempty++-- | /See:/ 'tagProjectResponse' smart constructor.+data TagProjectResponse = TagProjectResponse'+ { _tprsTags :: !(Maybe (Map Text Text))+ , _tprsResponseStatus :: !Int+ } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'TagProjectResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'tprsTags' - The tags for the project.+--+-- * 'tprsResponseStatus' - -- | The response status code.+tagProjectResponse+ :: Int -- ^ 'tprsResponseStatus'+ -> TagProjectResponse+tagProjectResponse pResponseStatus_ =+ TagProjectResponse'+ {_tprsTags = Nothing, _tprsResponseStatus = pResponseStatus_}+++-- | The tags for the project.+tprsTags :: Lens' TagProjectResponse (HashMap Text Text)+tprsTags = lens _tprsTags (\ s a -> s{_tprsTags = a}) . _Default . _Map;++-- | -- | The response status code.+tprsResponseStatus :: Lens' TagProjectResponse Int+tprsResponseStatus = lens _tprsResponseStatus (\ s a -> s{_tprsResponseStatus = a});++instance NFData TagProjectResponse where
+ gen/Network/AWS/CodeStar/Types.hs view
@@ -0,0 +1,203 @@+{-# LANGUAGE OverloadedStrings #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Network.AWS.CodeStar.Types+-- Copyright : (c) 2013-2017 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+module Network.AWS.CodeStar.Types+ (+ -- * Service Configuration+ codeStar++ -- * Errors+ , _TeamMemberAlreadyAssociatedException+ , _ValidationException+ , _InvalidServiceRoleException+ , _ProjectCreationFailedException+ , _UserProfileAlreadyExistsException+ , _ProjectNotFoundException+ , _TeamMemberNotFoundException+ , _ProjectAlreadyExistsException+ , _ProjectConfigurationException+ , _ConcurrentModificationException+ , _InvalidNextTokenException+ , _UserProfileNotFoundException+ , _LimitExceededException++ -- * ProjectSummary+ , ProjectSummary+ , projectSummary+ , psProjectARN+ , psProjectId++ -- * Resource+ , Resource+ , resource+ , rId++ -- * TeamMember+ , TeamMember+ , teamMember+ , tmRemoteAccessAllowed+ , tmUserARN+ , tmProjectRole++ -- * UserProfileSummary+ , UserProfileSummary+ , userProfileSummary+ , upsSshPublicKey+ , upsUserARN+ , upsEmailAddress+ , upsDisplayName+ ) where++import Network.AWS.CodeStar.Types.Product+import Network.AWS.CodeStar.Types.Sum+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Sign.V4++-- | API version @2017-04-19@ of the Amazon CodeStar SDK configuration.+codeStar :: Service+codeStar =+ Service+ { _svcAbbrev = "CodeStar"+ , _svcSigner = v4+ , _svcPrefix = "codestar"+ , _svcVersion = "2017-04-19"+ , _svcEndpoint = defaultEndpoint codeStar+ , _svcTimeout = Just 70+ , _svcCheck = statusSuccess+ , _svcError = parseJSONError "CodeStar"+ , _svcRetry = retry+ }+ where+ retry =+ Exponential+ { _retryBase = 5.0e-2+ , _retryGrowth = 2+ , _retryAttempts = 5+ , _retryCheck = check+ }+ check e+ | has (hasCode "ThrottledException" . hasStatus 400) e =+ Just "throttled_exception"+ | has (hasStatus 429) e = Just "too_many_requests"+ | has (hasCode "ThrottlingException" . hasStatus 400) e =+ Just "throttling_exception"+ | has (hasCode "Throttling" . hasStatus 400) e = Just "throttling"+ | has (hasStatus 504) e = Just "gateway_timeout"+ | has (hasStatus 502) e = Just "bad_gateway"+ | has (hasStatus 503) e = Just "service_unavailable"+ | has (hasStatus 500) e = Just "general_server_error"+ | has (hasStatus 509) e = Just "limit_exceeded"+ | otherwise = Nothing+++-- | The team member is already associated with a role in this project.+--+--+_TeamMemberAlreadyAssociatedException :: AsError a => Getting (First ServiceError) a ServiceError+_TeamMemberAlreadyAssociatedException =+ _MatchServiceError codeStar "TeamMemberAlreadyAssociatedException"+++-- | The specified input is either not valid, or it could not be validated.+--+--+_ValidationException :: AsError a => Getting (First ServiceError) a ServiceError+_ValidationException = _MatchServiceError codeStar "ValidationException"+++-- | The service role is not valid.+--+--+_InvalidServiceRoleException :: AsError a => Getting (First ServiceError) a ServiceError+_InvalidServiceRoleException =+ _MatchServiceError codeStar "InvalidServiceRoleException"+++-- | The project creation request was valid, but a nonspecific exception or error occurred during project creation. The project could not be created in AWS CodeStar.+--+--+_ProjectCreationFailedException :: AsError a => Getting (First ServiceError) a ServiceError+_ProjectCreationFailedException =+ _MatchServiceError codeStar "ProjectCreationFailedException"+++-- | A user profile with that name already exists in this region for the AWS account. AWS CodeStar user profile names must be unique within a region for the AWS account.+--+--+_UserProfileAlreadyExistsException :: AsError a => Getting (First ServiceError) a ServiceError+_UserProfileAlreadyExistsException =+ _MatchServiceError codeStar "UserProfileAlreadyExistsException"+++-- | The specified AWS CodeStar project was not found.+--+--+_ProjectNotFoundException :: AsError a => Getting (First ServiceError) a ServiceError+_ProjectNotFoundException =+ _MatchServiceError codeStar "ProjectNotFoundException"+++-- | The specified team member was not found.+--+--+_TeamMemberNotFoundException :: AsError a => Getting (First ServiceError) a ServiceError+_TeamMemberNotFoundException =+ _MatchServiceError codeStar "TeamMemberNotFoundException"+++-- | An AWS CodeStar project with the same ID already exists in this region for the AWS account. AWS CodeStar project IDs must be unique within a region for the AWS account.+--+--+_ProjectAlreadyExistsException :: AsError a => Getting (First ServiceError) a ServiceError+_ProjectAlreadyExistsException =+ _MatchServiceError codeStar "ProjectAlreadyExistsException"+++-- | Project configuration information is required but not specified.+--+--+_ProjectConfigurationException :: AsError a => Getting (First ServiceError) a ServiceError+_ProjectConfigurationException =+ _MatchServiceError codeStar "ProjectConfigurationException"+++-- | Another modification is being made. That modification must complete before you can make your change.+--+--+_ConcurrentModificationException :: AsError a => Getting (First ServiceError) a ServiceError+_ConcurrentModificationException =+ _MatchServiceError codeStar "ConcurrentModificationException"+++-- | The next token is not valid.+--+--+_InvalidNextTokenException :: AsError a => Getting (First ServiceError) a ServiceError+_InvalidNextTokenException =+ _MatchServiceError codeStar "InvalidNextTokenException"+++-- | The user profile was not found.+--+--+_UserProfileNotFoundException :: AsError a => Getting (First ServiceError) a ServiceError+_UserProfileNotFoundException =+ _MatchServiceError codeStar "UserProfileNotFoundException"+++-- | A resource limit has been exceeded.+--+--+_LimitExceededException :: AsError a => Getting (First ServiceError) a ServiceError+_LimitExceededException = _MatchServiceError codeStar "LimitExceededException"+
+ gen/Network/AWS/CodeStar/Types/Product.hs view
@@ -0,0 +1,220 @@+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Network.AWS.CodeStar.Types.Product+-- Copyright : (c) 2013-2017 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+module Network.AWS.CodeStar.Types.Product where++import Network.AWS.CodeStar.Types.Sum+import Network.AWS.Lens+import Network.AWS.Prelude++-- | Information about the metadata for a project.+--+--+--+-- /See:/ 'projectSummary' smart constructor.+data ProjectSummary = ProjectSummary'+ { _psProjectARN :: !(Maybe Text)+ , _psProjectId :: !(Maybe Text)+ } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'ProjectSummary' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'psProjectARN' - The Amazon Resource Name (ARN) of the project.+--+-- * 'psProjectId' - The ID of the project.+projectSummary+ :: ProjectSummary+projectSummary =+ ProjectSummary' {_psProjectARN = Nothing, _psProjectId = Nothing}+++-- | The Amazon Resource Name (ARN) of the project.+psProjectARN :: Lens' ProjectSummary (Maybe Text)+psProjectARN = lens _psProjectARN (\ s a -> s{_psProjectARN = a});++-- | The ID of the project.+psProjectId :: Lens' ProjectSummary (Maybe Text)+psProjectId = lens _psProjectId (\ s a -> s{_psProjectId = a});++instance FromJSON ProjectSummary where+ parseJSON+ = withObject "ProjectSummary"+ (\ x ->+ ProjectSummary' <$>+ (x .:? "projectArn") <*> (x .:? "projectId"))++instance Hashable ProjectSummary where++instance NFData ProjectSummary where++-- | Information about a resource for a project.+--+--+--+-- /See:/ 'resource' smart constructor.+newtype Resource = Resource'+ { _rId :: Text+ } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'Resource' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'rId' - The Amazon Resource Name (ARN) of the resource.+resource+ :: Text -- ^ 'rId'+ -> Resource+resource pId_ = Resource' {_rId = pId_}+++-- | The Amazon Resource Name (ARN) of the resource.+rId :: Lens' Resource Text+rId = lens _rId (\ s a -> s{_rId = a});++instance FromJSON Resource where+ parseJSON+ = withObject "Resource"+ (\ x -> Resource' <$> (x .: "id"))++instance Hashable Resource where++instance NFData Resource where++-- | Information about a team member in a project.+--+--+--+-- /See:/ 'teamMember' smart constructor.+data TeamMember = TeamMember'+ { _tmRemoteAccessAllowed :: !(Maybe Bool)+ , _tmUserARN :: !Text+ , _tmProjectRole :: !Text+ } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'TeamMember' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'tmRemoteAccessAllowed' - Whether the user is allowed to remotely access project resources using an SSH public/private key pair.+--+-- * 'tmUserARN' - The Amazon Resource Name (ARN) of the user in IAM.+--+-- * 'tmProjectRole' - The role assigned to the user in the project. Project roles have different levels of access. For more information, see <http://docs.aws.amazon.com/codestar/latest/userguide/working-with-teams.html Working with Teams> in the /AWS CodeStar User Guide/ .+teamMember+ :: Text -- ^ 'tmUserARN'+ -> Text -- ^ 'tmProjectRole'+ -> TeamMember+teamMember pUserARN_ pProjectRole_ =+ TeamMember'+ { _tmRemoteAccessAllowed = Nothing+ , _tmUserARN = pUserARN_+ , _tmProjectRole = pProjectRole_+ }+++-- | Whether the user is allowed to remotely access project resources using an SSH public/private key pair.+tmRemoteAccessAllowed :: Lens' TeamMember (Maybe Bool)+tmRemoteAccessAllowed = lens _tmRemoteAccessAllowed (\ s a -> s{_tmRemoteAccessAllowed = a});++-- | The Amazon Resource Name (ARN) of the user in IAM.+tmUserARN :: Lens' TeamMember Text+tmUserARN = lens _tmUserARN (\ s a -> s{_tmUserARN = a});++-- | The role assigned to the user in the project. Project roles have different levels of access. For more information, see <http://docs.aws.amazon.com/codestar/latest/userguide/working-with-teams.html Working with Teams> in the /AWS CodeStar User Guide/ .+tmProjectRole :: Lens' TeamMember Text+tmProjectRole = lens _tmProjectRole (\ s a -> s{_tmProjectRole = a});++instance FromJSON TeamMember where+ parseJSON+ = withObject "TeamMember"+ (\ x ->+ TeamMember' <$>+ (x .:? "remoteAccessAllowed") <*> (x .: "userArn")+ <*> (x .: "projectRole"))++instance Hashable TeamMember where++instance NFData TeamMember where++-- | Information about a user's profile in AWS CodeStar.+--+--+--+-- /See:/ 'userProfileSummary' smart constructor.+data UserProfileSummary = UserProfileSummary'+ { _upsSshPublicKey :: !(Maybe Text)+ , _upsUserARN :: !(Maybe Text)+ , _upsEmailAddress :: !(Maybe (Sensitive Text))+ , _upsDisplayName :: !(Maybe Text)+ } deriving (Eq, Show, Data, Typeable, Generic)+++-- | Creates a value of 'UserProfileSummary' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'upsSshPublicKey' - The SSH public key associated with the user in AWS CodeStar. If a project owner allows the user remote access to project resources, this public key will be used along with the user's private key for SSH access.+--+-- * 'upsUserARN' - The Amazon Resource Name (ARN) of the user in IAM.+--+-- * 'upsEmailAddress' - The email address associated with the user.+--+-- * 'upsDisplayName' - The display name of a user in AWS CodeStar. For example, this could be set to both first and last name ("Mary Major") or a single name ("Mary"). The display name is also used to generate the initial icon associated with the user in AWS CodeStar projects. If spaces are included in the display name, the first character that appears after the space will be used as the second character in the user initial icon. The initial icon displays a maximum of two characters, so a display name with more than one space (for example "Mary Jane Major") would generate an initial icon using the first character and the first character after the space ("MJ", not "MM").+userProfileSummary+ :: UserProfileSummary+userProfileSummary =+ UserProfileSummary'+ { _upsSshPublicKey = Nothing+ , _upsUserARN = Nothing+ , _upsEmailAddress = Nothing+ , _upsDisplayName = Nothing+ }+++-- | The SSH public key associated with the user in AWS CodeStar. If a project owner allows the user remote access to project resources, this public key will be used along with the user's private key for SSH access.+upsSshPublicKey :: Lens' UserProfileSummary (Maybe Text)+upsSshPublicKey = lens _upsSshPublicKey (\ s a -> s{_upsSshPublicKey = a});++-- | The Amazon Resource Name (ARN) of the user in IAM.+upsUserARN :: Lens' UserProfileSummary (Maybe Text)+upsUserARN = lens _upsUserARN (\ s a -> s{_upsUserARN = a});++-- | The email address associated with the user.+upsEmailAddress :: Lens' UserProfileSummary (Maybe Text)+upsEmailAddress = lens _upsEmailAddress (\ s a -> s{_upsEmailAddress = a}) . mapping _Sensitive;++-- | The display name of a user in AWS CodeStar. For example, this could be set to both first and last name ("Mary Major") or a single name ("Mary"). The display name is also used to generate the initial icon associated with the user in AWS CodeStar projects. If spaces are included in the display name, the first character that appears after the space will be used as the second character in the user initial icon. The initial icon displays a maximum of two characters, so a display name with more than one space (for example "Mary Jane Major") would generate an initial icon using the first character and the first character after the space ("MJ", not "MM").+upsDisplayName :: Lens' UserProfileSummary (Maybe Text)+upsDisplayName = lens _upsDisplayName (\ s a -> s{_upsDisplayName = a});++instance FromJSON UserProfileSummary where+ parseJSON+ = withObject "UserProfileSummary"+ (\ x ->+ UserProfileSummary' <$>+ (x .:? "sshPublicKey") <*> (x .:? "userArn") <*>+ (x .:? "emailAddress")+ <*> (x .:? "displayName"))++instance Hashable UserProfileSummary where++instance NFData UserProfileSummary where
+ gen/Network/AWS/CodeStar/Types/Sum.hs view
@@ -0,0 +1,20 @@+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Network.AWS.CodeStar.Types.Sum+-- Copyright : (c) 2013-2017 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+module Network.AWS.CodeStar.Types.Sum where++import Network.AWS.Prelude
+ gen/Network/AWS/CodeStar/UntagProject.hs view
@@ -0,0 +1,130 @@+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE TypeFamilies #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Network.AWS.CodeStar.UntagProject+-- Copyright : (c) 2013-2017 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Removes tags from a project.+--+--+module Network.AWS.CodeStar.UntagProject+ (+ -- * Creating a Request+ untagProject+ , UntagProject+ -- * Request Lenses+ , uId+ , uTags++ -- * Destructuring the Response+ , untagProjectResponse+ , UntagProjectResponse+ -- * Response Lenses+ , ursResponseStatus+ ) where++import Network.AWS.CodeStar.Types+import Network.AWS.CodeStar.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | /See:/ 'untagProject' smart constructor.+data UntagProject = UntagProject'+ { _uId :: !Text+ , _uTags :: ![Text]+ } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'UntagProject' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'uId' - The ID of the project to remove tags from.+--+-- * 'uTags' - The tags to remove from the project.+untagProject+ :: Text -- ^ 'uId'+ -> UntagProject+untagProject pId_ = UntagProject' {_uId = pId_, _uTags = mempty}+++-- | The ID of the project to remove tags from.+uId :: Lens' UntagProject Text+uId = lens _uId (\ s a -> s{_uId = a});++-- | The tags to remove from the project.+uTags :: Lens' UntagProject [Text]+uTags = lens _uTags (\ s a -> s{_uTags = a}) . _Coerce;++instance AWSRequest UntagProject where+ type Rs UntagProject = UntagProjectResponse+ request = postJSON codeStar+ response+ = receiveEmpty+ (\ s h x ->+ UntagProjectResponse' <$> (pure (fromEnum s)))++instance Hashable UntagProject where++instance NFData UntagProject where++instance ToHeaders UntagProject where+ toHeaders+ = const+ (mconcat+ ["X-Amz-Target" =#+ ("CodeStar_20170419.UntagProject" :: ByteString),+ "Content-Type" =#+ ("application/x-amz-json-1.1" :: ByteString)])++instance ToJSON UntagProject where+ toJSON UntagProject'{..}+ = object+ (catMaybes+ [Just ("id" .= _uId), Just ("tags" .= _uTags)])++instance ToPath UntagProject where+ toPath = const "/"++instance ToQuery UntagProject where+ toQuery = const mempty++-- | /See:/ 'untagProjectResponse' smart constructor.+newtype UntagProjectResponse = UntagProjectResponse'+ { _ursResponseStatus :: Int+ } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'UntagProjectResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'ursResponseStatus' - -- | The response status code.+untagProjectResponse+ :: Int -- ^ 'ursResponseStatus'+ -> UntagProjectResponse+untagProjectResponse pResponseStatus_ =+ UntagProjectResponse' {_ursResponseStatus = pResponseStatus_}+++-- | -- | The response status code.+ursResponseStatus :: Lens' UntagProjectResponse Int+ursResponseStatus = lens _ursResponseStatus (\ s a -> s{_ursResponseStatus = a});++instance NFData UntagProjectResponse where
+ gen/Network/AWS/CodeStar/UpdateProject.hs view
@@ -0,0 +1,141 @@+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE TypeFamilies #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Network.AWS.CodeStar.UpdateProject+-- Copyright : (c) 2013-2017 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Updates a project in AWS CodeStar.+--+--+module Network.AWS.CodeStar.UpdateProject+ (+ -- * Creating a Request+ updateProject+ , UpdateProject+ -- * Request Lenses+ , upName+ , upDescription+ , upId++ -- * Destructuring the Response+ , updateProjectResponse+ , UpdateProjectResponse+ -- * Response Lenses+ , uprsResponseStatus+ ) where++import Network.AWS.CodeStar.Types+import Network.AWS.CodeStar.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | /See:/ 'updateProject' smart constructor.+data UpdateProject = UpdateProject'+ { _upName :: !(Maybe (Sensitive Text))+ , _upDescription :: !(Maybe (Sensitive Text))+ , _upId :: !Text+ } deriving (Eq, Show, Data, Typeable, Generic)+++-- | Creates a value of 'UpdateProject' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'upName' - The name of the project you want to update.+--+-- * 'upDescription' - The description of the project, if any.+--+-- * 'upId' - The ID of the project you want to update.+updateProject+ :: Text -- ^ 'upId'+ -> UpdateProject+updateProject pId_ =+ UpdateProject' {_upName = Nothing, _upDescription = Nothing, _upId = pId_}+++-- | The name of the project you want to update.+upName :: Lens' UpdateProject (Maybe Text)+upName = lens _upName (\ s a -> s{_upName = a}) . mapping _Sensitive;++-- | The description of the project, if any.+upDescription :: Lens' UpdateProject (Maybe Text)+upDescription = lens _upDescription (\ s a -> s{_upDescription = a}) . mapping _Sensitive;++-- | The ID of the project you want to update.+upId :: Lens' UpdateProject Text+upId = lens _upId (\ s a -> s{_upId = a});++instance AWSRequest UpdateProject where+ type Rs UpdateProject = UpdateProjectResponse+ request = postJSON codeStar+ response+ = receiveEmpty+ (\ s h x ->+ UpdateProjectResponse' <$> (pure (fromEnum s)))++instance Hashable UpdateProject where++instance NFData UpdateProject where++instance ToHeaders UpdateProject where+ toHeaders+ = const+ (mconcat+ ["X-Amz-Target" =#+ ("CodeStar_20170419.UpdateProject" :: ByteString),+ "Content-Type" =#+ ("application/x-amz-json-1.1" :: ByteString)])++instance ToJSON UpdateProject where+ toJSON UpdateProject'{..}+ = object+ (catMaybes+ [("name" .=) <$> _upName,+ ("description" .=) <$> _upDescription,+ Just ("id" .= _upId)])++instance ToPath UpdateProject where+ toPath = const "/"++instance ToQuery UpdateProject where+ toQuery = const mempty++-- | /See:/ 'updateProjectResponse' smart constructor.+newtype UpdateProjectResponse = UpdateProjectResponse'+ { _uprsResponseStatus :: Int+ } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'UpdateProjectResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'uprsResponseStatus' - -- | The response status code.+updateProjectResponse+ :: Int -- ^ 'uprsResponseStatus'+ -> UpdateProjectResponse+updateProjectResponse pResponseStatus_ =+ UpdateProjectResponse' {_uprsResponseStatus = pResponseStatus_}+++-- | -- | The response status code.+uprsResponseStatus :: Lens' UpdateProjectResponse Int+uprsResponseStatus = lens _uprsResponseStatus (\ s a -> s{_uprsResponseStatus = a});++instance NFData UpdateProjectResponse where
+ gen/Network/AWS/CodeStar/UpdateTeamMember.hs view
@@ -0,0 +1,189 @@+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE TypeFamilies #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Network.AWS.CodeStar.UpdateTeamMember+-- Copyright : (c) 2013-2017 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Updates a team member's attributes in an AWS CodeStar project. For example, you can change a team member's role in the project, or change whether they have remote access to project resources.+--+--+module Network.AWS.CodeStar.UpdateTeamMember+ (+ -- * Creating a Request+ updateTeamMember+ , UpdateTeamMember+ -- * Request Lenses+ , utmRemoteAccessAllowed+ , utmProjectRole+ , utmProjectId+ , utmUserARN++ -- * Destructuring the Response+ , updateTeamMemberResponse+ , UpdateTeamMemberResponse+ -- * Response Lenses+ , utmrsUserARN+ , utmrsRemoteAccessAllowed+ , utmrsProjectRole+ , utmrsResponseStatus+ ) where++import Network.AWS.CodeStar.Types+import Network.AWS.CodeStar.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | /See:/ 'updateTeamMember' smart constructor.+data UpdateTeamMember = UpdateTeamMember'+ { _utmRemoteAccessAllowed :: !(Maybe Bool)+ , _utmProjectRole :: !(Maybe Text)+ , _utmProjectId :: !Text+ , _utmUserARN :: !Text+ } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'UpdateTeamMember' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'utmRemoteAccessAllowed' - Whether a team member is allowed to remotely access project resources using the SSH public key associated with the user's profile. Even if this is set to True, the user must associate a public key with their profile before the user can access resources.+--+-- * 'utmProjectRole' - The role assigned to the user in the project. Project roles have different levels of access. For more information, see <http://docs.aws.amazon.com/codestar/latest/userguide/working-with-teams.html Working with Teams> in the /AWS CodeStar User Guide/ .+--+-- * 'utmProjectId' - The ID of the project.+--+-- * 'utmUserARN' - The Amazon Resource Name (ARN) of the user for whom you want to change team membership attributes.+updateTeamMember+ :: Text -- ^ 'utmProjectId'+ -> Text -- ^ 'utmUserARN'+ -> UpdateTeamMember+updateTeamMember pProjectId_ pUserARN_ =+ UpdateTeamMember'+ { _utmRemoteAccessAllowed = Nothing+ , _utmProjectRole = Nothing+ , _utmProjectId = pProjectId_+ , _utmUserARN = pUserARN_+ }+++-- | Whether a team member is allowed to remotely access project resources using the SSH public key associated with the user's profile. Even if this is set to True, the user must associate a public key with their profile before the user can access resources.+utmRemoteAccessAllowed :: Lens' UpdateTeamMember (Maybe Bool)+utmRemoteAccessAllowed = lens _utmRemoteAccessAllowed (\ s a -> s{_utmRemoteAccessAllowed = a});++-- | The role assigned to the user in the project. Project roles have different levels of access. For more information, see <http://docs.aws.amazon.com/codestar/latest/userguide/working-with-teams.html Working with Teams> in the /AWS CodeStar User Guide/ .+utmProjectRole :: Lens' UpdateTeamMember (Maybe Text)+utmProjectRole = lens _utmProjectRole (\ s a -> s{_utmProjectRole = a});++-- | The ID of the project.+utmProjectId :: Lens' UpdateTeamMember Text+utmProjectId = lens _utmProjectId (\ s a -> s{_utmProjectId = a});++-- | The Amazon Resource Name (ARN) of the user for whom you want to change team membership attributes.+utmUserARN :: Lens' UpdateTeamMember Text+utmUserARN = lens _utmUserARN (\ s a -> s{_utmUserARN = a});++instance AWSRequest UpdateTeamMember where+ type Rs UpdateTeamMember = UpdateTeamMemberResponse+ request = postJSON codeStar+ response+ = receiveJSON+ (\ s h x ->+ UpdateTeamMemberResponse' <$>+ (x .?> "userArn") <*> (x .?> "remoteAccessAllowed")+ <*> (x .?> "projectRole")+ <*> (pure (fromEnum s)))++instance Hashable UpdateTeamMember where++instance NFData UpdateTeamMember where++instance ToHeaders UpdateTeamMember where+ toHeaders+ = const+ (mconcat+ ["X-Amz-Target" =#+ ("CodeStar_20170419.UpdateTeamMember" :: ByteString),+ "Content-Type" =#+ ("application/x-amz-json-1.1" :: ByteString)])++instance ToJSON UpdateTeamMember where+ toJSON UpdateTeamMember'{..}+ = object+ (catMaybes+ [("remoteAccessAllowed" .=) <$>+ _utmRemoteAccessAllowed,+ ("projectRole" .=) <$> _utmProjectRole,+ Just ("projectId" .= _utmProjectId),+ Just ("userArn" .= _utmUserARN)])++instance ToPath UpdateTeamMember where+ toPath = const "/"++instance ToQuery UpdateTeamMember where+ toQuery = const mempty++-- | /See:/ 'updateTeamMemberResponse' smart constructor.+data UpdateTeamMemberResponse = UpdateTeamMemberResponse'+ { _utmrsUserARN :: !(Maybe Text)+ , _utmrsRemoteAccessAllowed :: !(Maybe Bool)+ , _utmrsProjectRole :: !(Maybe Text)+ , _utmrsResponseStatus :: !Int+ } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'UpdateTeamMemberResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'utmrsUserARN' - The Amazon Resource Name (ARN) of the user whose team membership attributes were updated.+--+-- * 'utmrsRemoteAccessAllowed' - Whether a team member is allowed to remotely access project resources using the SSH public key associated with the user's profile.+--+-- * 'utmrsProjectRole' - The project role granted to the user.+--+-- * 'utmrsResponseStatus' - -- | The response status code.+updateTeamMemberResponse+ :: Int -- ^ 'utmrsResponseStatus'+ -> UpdateTeamMemberResponse+updateTeamMemberResponse pResponseStatus_ =+ UpdateTeamMemberResponse'+ { _utmrsUserARN = Nothing+ , _utmrsRemoteAccessAllowed = Nothing+ , _utmrsProjectRole = Nothing+ , _utmrsResponseStatus = pResponseStatus_+ }+++-- | The Amazon Resource Name (ARN) of the user whose team membership attributes were updated.+utmrsUserARN :: Lens' UpdateTeamMemberResponse (Maybe Text)+utmrsUserARN = lens _utmrsUserARN (\ s a -> s{_utmrsUserARN = a});++-- | Whether a team member is allowed to remotely access project resources using the SSH public key associated with the user's profile.+utmrsRemoteAccessAllowed :: Lens' UpdateTeamMemberResponse (Maybe Bool)+utmrsRemoteAccessAllowed = lens _utmrsRemoteAccessAllowed (\ s a -> s{_utmrsRemoteAccessAllowed = a});++-- | The project role granted to the user.+utmrsProjectRole :: Lens' UpdateTeamMemberResponse (Maybe Text)+utmrsProjectRole = lens _utmrsProjectRole (\ s a -> s{_utmrsProjectRole = a});++-- | -- | The response status code.+utmrsResponseStatus :: Lens' UpdateTeamMemberResponse Int+utmrsResponseStatus = lens _utmrsResponseStatus (\ s a -> s{_utmrsResponseStatus = a});++instance NFData UpdateTeamMemberResponse where
+ gen/Network/AWS/CodeStar/UpdateUserProfile.hs view
@@ -0,0 +1,220 @@+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE TypeFamilies #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Network.AWS.CodeStar.UpdateUserProfile+-- Copyright : (c) 2013-2017 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Updates a user's profile in AWS CodeStar. The user profile is not project-specific. Information in the user profile is displayed wherever the user's information appears to other users in AWS CodeStar.+--+--+module Network.AWS.CodeStar.UpdateUserProfile+ (+ -- * Creating a Request+ updateUserProfile+ , UpdateUserProfile+ -- * Request Lenses+ , uupSshPublicKey+ , uupEmailAddress+ , uupDisplayName+ , uupUserARN++ -- * Destructuring the Response+ , updateUserProfileResponse+ , UpdateUserProfileResponse+ -- * Response Lenses+ , uuprsLastModifiedTimestamp+ , uuprsSshPublicKey+ , uuprsEmailAddress+ , uuprsDisplayName+ , uuprsCreatedTimestamp+ , uuprsResponseStatus+ , uuprsUserARN+ ) where++import Network.AWS.CodeStar.Types+import Network.AWS.CodeStar.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | /See:/ 'updateUserProfile' smart constructor.+data UpdateUserProfile = UpdateUserProfile'+ { _uupSshPublicKey :: !(Maybe Text)+ , _uupEmailAddress :: !(Maybe (Sensitive Text))+ , _uupDisplayName :: !(Maybe Text)+ , _uupUserARN :: !Text+ } deriving (Eq, Show, Data, Typeable, Generic)+++-- | Creates a value of 'UpdateUserProfile' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'uupSshPublicKey' - The SSH public key associated with the user in AWS CodeStar. If a project owner allows the user remote access to project resources, this public key will be used along with the user's private key for SSH access.+--+-- * 'uupEmailAddress' - The email address that is displayed as part of the user's profile in AWS CodeStar.+--+-- * 'uupDisplayName' - The name that is displayed as the friendly name for the user in AWS CodeStar.+--+-- * 'uupUserARN' - The name that will be displayed as the friendly name for the user in AWS CodeStar.+updateUserProfile+ :: Text -- ^ 'uupUserARN'+ -> UpdateUserProfile+updateUserProfile pUserARN_ =+ UpdateUserProfile'+ { _uupSshPublicKey = Nothing+ , _uupEmailAddress = Nothing+ , _uupDisplayName = Nothing+ , _uupUserARN = pUserARN_+ }+++-- | The SSH public key associated with the user in AWS CodeStar. If a project owner allows the user remote access to project resources, this public key will be used along with the user's private key for SSH access.+uupSshPublicKey :: Lens' UpdateUserProfile (Maybe Text)+uupSshPublicKey = lens _uupSshPublicKey (\ s a -> s{_uupSshPublicKey = a});++-- | The email address that is displayed as part of the user's profile in AWS CodeStar.+uupEmailAddress :: Lens' UpdateUserProfile (Maybe Text)+uupEmailAddress = lens _uupEmailAddress (\ s a -> s{_uupEmailAddress = a}) . mapping _Sensitive;++-- | The name that is displayed as the friendly name for the user in AWS CodeStar.+uupDisplayName :: Lens' UpdateUserProfile (Maybe Text)+uupDisplayName = lens _uupDisplayName (\ s a -> s{_uupDisplayName = a});++-- | The name that will be displayed as the friendly name for the user in AWS CodeStar.+uupUserARN :: Lens' UpdateUserProfile Text+uupUserARN = lens _uupUserARN (\ s a -> s{_uupUserARN = a});++instance AWSRequest UpdateUserProfile where+ type Rs UpdateUserProfile = UpdateUserProfileResponse+ request = postJSON codeStar+ response+ = receiveJSON+ (\ s h x ->+ UpdateUserProfileResponse' <$>+ (x .?> "lastModifiedTimestamp") <*>+ (x .?> "sshPublicKey")+ <*> (x .?> "emailAddress")+ <*> (x .?> "displayName")+ <*> (x .?> "createdTimestamp")+ <*> (pure (fromEnum s))+ <*> (x .:> "userArn"))++instance Hashable UpdateUserProfile where++instance NFData UpdateUserProfile where++instance ToHeaders UpdateUserProfile where+ toHeaders+ = const+ (mconcat+ ["X-Amz-Target" =#+ ("CodeStar_20170419.UpdateUserProfile" ::+ ByteString),+ "Content-Type" =#+ ("application/x-amz-json-1.1" :: ByteString)])++instance ToJSON UpdateUserProfile where+ toJSON UpdateUserProfile'{..}+ = object+ (catMaybes+ [("sshPublicKey" .=) <$> _uupSshPublicKey,+ ("emailAddress" .=) <$> _uupEmailAddress,+ ("displayName" .=) <$> _uupDisplayName,+ Just ("userArn" .= _uupUserARN)])++instance ToPath UpdateUserProfile where+ toPath = const "/"++instance ToQuery UpdateUserProfile where+ toQuery = const mempty++-- | /See:/ 'updateUserProfileResponse' smart constructor.+data UpdateUserProfileResponse = UpdateUserProfileResponse'+ { _uuprsLastModifiedTimestamp :: !(Maybe POSIX)+ , _uuprsSshPublicKey :: !(Maybe Text)+ , _uuprsEmailAddress :: !(Maybe (Sensitive Text))+ , _uuprsDisplayName :: !(Maybe Text)+ , _uuprsCreatedTimestamp :: !(Maybe POSIX)+ , _uuprsResponseStatus :: !Int+ , _uuprsUserARN :: !Text+ } deriving (Eq, Show, Data, Typeable, Generic)+++-- | Creates a value of 'UpdateUserProfileResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'uuprsLastModifiedTimestamp' - The date the user profile was last modified, in timestamp format.+--+-- * 'uuprsSshPublicKey' - The SSH public key associated with the user in AWS CodeStar. This is the public portion of the public/private keypair the user can use to access project resources if a project owner allows the user remote access to those resources.+--+-- * 'uuprsEmailAddress' - The email address that is displayed as part of the user's profile in AWS CodeStar.+--+-- * 'uuprsDisplayName' - The name that is displayed as the friendly name for the user in AWS CodeStar.+--+-- * 'uuprsCreatedTimestamp' - The date the user profile was created, in timestamp format.+--+-- * 'uuprsResponseStatus' - -- | The response status code.+--+-- * 'uuprsUserARN' - The Amazon Resource Name (ARN) of the user in IAM.+updateUserProfileResponse+ :: Int -- ^ 'uuprsResponseStatus'+ -> Text -- ^ 'uuprsUserARN'+ -> UpdateUserProfileResponse+updateUserProfileResponse pResponseStatus_ pUserARN_ =+ UpdateUserProfileResponse'+ { _uuprsLastModifiedTimestamp = Nothing+ , _uuprsSshPublicKey = Nothing+ , _uuprsEmailAddress = Nothing+ , _uuprsDisplayName = Nothing+ , _uuprsCreatedTimestamp = Nothing+ , _uuprsResponseStatus = pResponseStatus_+ , _uuprsUserARN = pUserARN_+ }+++-- | The date the user profile was last modified, in timestamp format.+uuprsLastModifiedTimestamp :: Lens' UpdateUserProfileResponse (Maybe UTCTime)+uuprsLastModifiedTimestamp = lens _uuprsLastModifiedTimestamp (\ s a -> s{_uuprsLastModifiedTimestamp = a}) . mapping _Time;++-- | The SSH public key associated with the user in AWS CodeStar. This is the public portion of the public/private keypair the user can use to access project resources if a project owner allows the user remote access to those resources.+uuprsSshPublicKey :: Lens' UpdateUserProfileResponse (Maybe Text)+uuprsSshPublicKey = lens _uuprsSshPublicKey (\ s a -> s{_uuprsSshPublicKey = a});++-- | The email address that is displayed as part of the user's profile in AWS CodeStar.+uuprsEmailAddress :: Lens' UpdateUserProfileResponse (Maybe Text)+uuprsEmailAddress = lens _uuprsEmailAddress (\ s a -> s{_uuprsEmailAddress = a}) . mapping _Sensitive;++-- | The name that is displayed as the friendly name for the user in AWS CodeStar.+uuprsDisplayName :: Lens' UpdateUserProfileResponse (Maybe Text)+uuprsDisplayName = lens _uuprsDisplayName (\ s a -> s{_uuprsDisplayName = a});++-- | The date the user profile was created, in timestamp format.+uuprsCreatedTimestamp :: Lens' UpdateUserProfileResponse (Maybe UTCTime)+uuprsCreatedTimestamp = lens _uuprsCreatedTimestamp (\ s a -> s{_uuprsCreatedTimestamp = a}) . mapping _Time;++-- | -- | The response status code.+uuprsResponseStatus :: Lens' UpdateUserProfileResponse Int+uuprsResponseStatus = lens _uuprsResponseStatus (\ s a -> s{_uuprsResponseStatus = a});++-- | The Amazon Resource Name (ARN) of the user in IAM.+uuprsUserARN :: Lens' UpdateUserProfileResponse Text+uuprsUserARN = lens _uuprsUserARN (\ s a -> s{_uuprsUserARN = a});++instance NFData UpdateUserProfileResponse where
+ gen/Network/AWS/CodeStar/Waiters.hs view
@@ -0,0 +1,21 @@+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE TypeFamilies #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Network.AWS.CodeStar.Waiters+-- Copyright : (c) 2013-2017 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+module Network.AWS.CodeStar.Waiters where++import Network.AWS.CodeStar.Types+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Waiter
+ src/.gitkeep view
+ test/Main.hs view
@@ -0,0 +1,21 @@+{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- |+-- Module : Main+-- Copyright : (c) 2013-2017 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+module Main (main) where++import Test.Tasty+import Test.AWS.CodeStar+import Test.AWS.CodeStar.Internal++main :: IO ()+main = defaultMain $ testGroup "CodeStar"+ [ testGroup "tests" tests+ , testGroup "fixtures" fixtures+ ]
+ test/Test/AWS/CodeStar.hs view
@@ -0,0 +1,20 @@+-- |+-- Module : Test.AWS.CodeStar+-- Copyright : (c) 2013-2016 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+module Test.AWS.CodeStar+ ( tests+ , fixtures+ ) where++import Test.Tasty (TestTree)++tests :: [TestTree]+tests = []++fixtures :: [TestTree]+fixtures = []
+ test/Test/AWS/CodeStar/Internal.hs view
@@ -0,0 +1,9 @@+-- |+-- Module : Test.AWS.CodeStar.Internal+-- Copyright : (c) 2013-2016 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+module Test.AWS.CodeStar.Internal where
+ test/Test/AWS/Gen/CodeStar.hs view
@@ -0,0 +1,363 @@+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-orphans #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Test.AWS.Gen.CodeStar+-- Copyright : (c) 2013-2017 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+module Test.AWS.Gen.CodeStar where++import Data.Proxy+import Network.AWS.CodeStar+import Test.AWS.CodeStar.Internal+import Test.AWS.Fixture+import Test.AWS.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"+-- [ requestListProjects $+-- listProjects+--+-- , requestListTeamMembers $+-- listTeamMembers+--+-- , requestDeleteProject $+-- deleteProject+--+-- , requestUpdateProject $+-- updateProject+--+-- , requestDisassociateTeamMember $+-- disassociateTeamMember+--+-- , requestTagProject $+-- tagProject+--+-- , requestDescribeProject $+-- describeProject+--+-- , requestListUserProfiles $+-- listUserProfiles+--+-- , requestListResources $+-- listResources+--+-- , requestAssociateTeamMember $+-- associateTeamMember+--+-- , requestUntagProject $+-- untagProject+--+-- , requestUpdateTeamMember $+-- updateTeamMember+--+-- , requestDescribeUserProfile $+-- describeUserProfile+--+-- , requestListTagsForProject $+-- listTagsForProject+--+-- , requestDeleteUserProfile $+-- deleteUserProfile+--+-- , requestUpdateUserProfile $+-- updateUserProfile+--+-- , requestCreateUserProfile $+-- createUserProfile+--+-- , requestCreateProject $+-- createProject+--+-- ]++-- , testGroup "response"+-- [ responseListProjects $+-- listProjectsResponse+--+-- , responseListTeamMembers $+-- listTeamMembersResponse+--+-- , responseDeleteProject $+-- deleteProjectResponse+--+-- , responseUpdateProject $+-- updateProjectResponse+--+-- , responseDisassociateTeamMember $+-- disassociateTeamMemberResponse+--+-- , responseTagProject $+-- tagProjectResponse+--+-- , responseDescribeProject $+-- describeProjectResponse+--+-- , responseListUserProfiles $+-- listUserProfilesResponse+--+-- , responseListResources $+-- listResourcesResponse+--+-- , responseAssociateTeamMember $+-- associateTeamMemberResponse+--+-- , responseUntagProject $+-- untagProjectResponse+--+-- , responseUpdateTeamMember $+-- updateTeamMemberResponse+--+-- , responseDescribeUserProfile $+-- describeUserProfileResponse+--+-- , responseListTagsForProject $+-- listTagsForProjectResponse+--+-- , responseDeleteUserProfile $+-- deleteUserProfileResponse+--+-- , responseUpdateUserProfile $+-- updateUserProfileResponse+--+-- , responseCreateUserProfile $+-- createUserProfileResponse+--+-- , responseCreateProject $+-- createProjectResponse+--+-- ]+-- ]++-- Requests++requestListProjects :: ListProjects -> TestTree+requestListProjects = req+ "ListProjects"+ "fixture/ListProjects.yaml"++requestListTeamMembers :: ListTeamMembers -> TestTree+requestListTeamMembers = req+ "ListTeamMembers"+ "fixture/ListTeamMembers.yaml"++requestDeleteProject :: DeleteProject -> TestTree+requestDeleteProject = req+ "DeleteProject"+ "fixture/DeleteProject.yaml"++requestUpdateProject :: UpdateProject -> TestTree+requestUpdateProject = req+ "UpdateProject"+ "fixture/UpdateProject.yaml"++requestDisassociateTeamMember :: DisassociateTeamMember -> TestTree+requestDisassociateTeamMember = req+ "DisassociateTeamMember"+ "fixture/DisassociateTeamMember.yaml"++requestTagProject :: TagProject -> TestTree+requestTagProject = req+ "TagProject"+ "fixture/TagProject.yaml"++requestDescribeProject :: DescribeProject -> TestTree+requestDescribeProject = req+ "DescribeProject"+ "fixture/DescribeProject.yaml"++requestListUserProfiles :: ListUserProfiles -> TestTree+requestListUserProfiles = req+ "ListUserProfiles"+ "fixture/ListUserProfiles.yaml"++requestListResources :: ListResources -> TestTree+requestListResources = req+ "ListResources"+ "fixture/ListResources.yaml"++requestAssociateTeamMember :: AssociateTeamMember -> TestTree+requestAssociateTeamMember = req+ "AssociateTeamMember"+ "fixture/AssociateTeamMember.yaml"++requestUntagProject :: UntagProject -> TestTree+requestUntagProject = req+ "UntagProject"+ "fixture/UntagProject.yaml"++requestUpdateTeamMember :: UpdateTeamMember -> TestTree+requestUpdateTeamMember = req+ "UpdateTeamMember"+ "fixture/UpdateTeamMember.yaml"++requestDescribeUserProfile :: DescribeUserProfile -> TestTree+requestDescribeUserProfile = req+ "DescribeUserProfile"+ "fixture/DescribeUserProfile.yaml"++requestListTagsForProject :: ListTagsForProject -> TestTree+requestListTagsForProject = req+ "ListTagsForProject"+ "fixture/ListTagsForProject.yaml"++requestDeleteUserProfile :: DeleteUserProfile -> TestTree+requestDeleteUserProfile = req+ "DeleteUserProfile"+ "fixture/DeleteUserProfile.yaml"++requestUpdateUserProfile :: UpdateUserProfile -> TestTree+requestUpdateUserProfile = req+ "UpdateUserProfile"+ "fixture/UpdateUserProfile.yaml"++requestCreateUserProfile :: CreateUserProfile -> TestTree+requestCreateUserProfile = req+ "CreateUserProfile"+ "fixture/CreateUserProfile.yaml"++requestCreateProject :: CreateProject -> TestTree+requestCreateProject = req+ "CreateProject"+ "fixture/CreateProject.yaml"++-- Responses++responseListProjects :: ListProjectsResponse -> TestTree+responseListProjects = res+ "ListProjectsResponse"+ "fixture/ListProjectsResponse.proto"+ codeStar+ (Proxy :: Proxy ListProjects)++responseListTeamMembers :: ListTeamMembersResponse -> TestTree+responseListTeamMembers = res+ "ListTeamMembersResponse"+ "fixture/ListTeamMembersResponse.proto"+ codeStar+ (Proxy :: Proxy ListTeamMembers)++responseDeleteProject :: DeleteProjectResponse -> TestTree+responseDeleteProject = res+ "DeleteProjectResponse"+ "fixture/DeleteProjectResponse.proto"+ codeStar+ (Proxy :: Proxy DeleteProject)++responseUpdateProject :: UpdateProjectResponse -> TestTree+responseUpdateProject = res+ "UpdateProjectResponse"+ "fixture/UpdateProjectResponse.proto"+ codeStar+ (Proxy :: Proxy UpdateProject)++responseDisassociateTeamMember :: DisassociateTeamMemberResponse -> TestTree+responseDisassociateTeamMember = res+ "DisassociateTeamMemberResponse"+ "fixture/DisassociateTeamMemberResponse.proto"+ codeStar+ (Proxy :: Proxy DisassociateTeamMember)++responseTagProject :: TagProjectResponse -> TestTree+responseTagProject = res+ "TagProjectResponse"+ "fixture/TagProjectResponse.proto"+ codeStar+ (Proxy :: Proxy TagProject)++responseDescribeProject :: DescribeProjectResponse -> TestTree+responseDescribeProject = res+ "DescribeProjectResponse"+ "fixture/DescribeProjectResponse.proto"+ codeStar+ (Proxy :: Proxy DescribeProject)++responseListUserProfiles :: ListUserProfilesResponse -> TestTree+responseListUserProfiles = res+ "ListUserProfilesResponse"+ "fixture/ListUserProfilesResponse.proto"+ codeStar+ (Proxy :: Proxy ListUserProfiles)++responseListResources :: ListResourcesResponse -> TestTree+responseListResources = res+ "ListResourcesResponse"+ "fixture/ListResourcesResponse.proto"+ codeStar+ (Proxy :: Proxy ListResources)++responseAssociateTeamMember :: AssociateTeamMemberResponse -> TestTree+responseAssociateTeamMember = res+ "AssociateTeamMemberResponse"+ "fixture/AssociateTeamMemberResponse.proto"+ codeStar+ (Proxy :: Proxy AssociateTeamMember)++responseUntagProject :: UntagProjectResponse -> TestTree+responseUntagProject = res+ "UntagProjectResponse"+ "fixture/UntagProjectResponse.proto"+ codeStar+ (Proxy :: Proxy UntagProject)++responseUpdateTeamMember :: UpdateTeamMemberResponse -> TestTree+responseUpdateTeamMember = res+ "UpdateTeamMemberResponse"+ "fixture/UpdateTeamMemberResponse.proto"+ codeStar+ (Proxy :: Proxy UpdateTeamMember)++responseDescribeUserProfile :: DescribeUserProfileResponse -> TestTree+responseDescribeUserProfile = res+ "DescribeUserProfileResponse"+ "fixture/DescribeUserProfileResponse.proto"+ codeStar+ (Proxy :: Proxy DescribeUserProfile)++responseListTagsForProject :: ListTagsForProjectResponse -> TestTree+responseListTagsForProject = res+ "ListTagsForProjectResponse"+ "fixture/ListTagsForProjectResponse.proto"+ codeStar+ (Proxy :: Proxy ListTagsForProject)++responseDeleteUserProfile :: DeleteUserProfileResponse -> TestTree+responseDeleteUserProfile = res+ "DeleteUserProfileResponse"+ "fixture/DeleteUserProfileResponse.proto"+ codeStar+ (Proxy :: Proxy DeleteUserProfile)++responseUpdateUserProfile :: UpdateUserProfileResponse -> TestTree+responseUpdateUserProfile = res+ "UpdateUserProfileResponse"+ "fixture/UpdateUserProfileResponse.proto"+ codeStar+ (Proxy :: Proxy UpdateUserProfile)++responseCreateUserProfile :: CreateUserProfileResponse -> TestTree+responseCreateUserProfile = res+ "CreateUserProfileResponse"+ "fixture/CreateUserProfileResponse.proto"+ codeStar+ (Proxy :: Proxy CreateUserProfile)++responseCreateProject :: CreateProjectResponse -> TestTree+responseCreateProject = res+ "CreateProjectResponse"+ "fixture/CreateProjectResponse.proto"+ codeStar+ (Proxy :: Proxy CreateProject)