packages feed

amazonka-license-manager-linux-subscriptions (empty) → 2.0

raw patch · 32 files changed

+3076/−0 lines, 32 filesdep +amazonka-coredep +amazonka-license-manager-linux-subscriptionsdep +amazonka-test

Dependencies added: amazonka-core, amazonka-license-manager-linux-subscriptions, amazonka-test, base, bytestring, case-insensitive, tasty, tasty-hunit, text, time, unordered-containers

Files

+ LICENSE view
@@ -0,0 +1,367 @@+Mozilla Public License Version 2.0+==================================++1. Definitions+--------------++1.1. "Contributor"+    means each individual or legal entity that creates, contributes to+    the creation of, or owns Covered Software.++1.2. "Contributor Version"+    means the combination of the Contributions of others (if any) used+    by a Contributor and that particular Contributor's Contribution.++1.3. "Contribution"+    means Covered Software of a particular Contributor.++1.4. "Covered Software"+    means Source Code Form to which the initial Contributor has attached+    the notice in Exhibit A, the Executable Form of such Source Code+    Form, and Modifications of such Source Code Form, in each case+    including portions thereof.++1.5. "Incompatible With Secondary Licenses"+    means++    (a) that the initial Contributor has attached the notice described+        in Exhibit B to the Covered Software; or++    (b) that the Covered Software was made available under the terms of+        version 1.1 or earlier of the License, but not also under the+        terms of a Secondary License.++1.6. "Executable Form"+    means any form of the work other than Source Code Form.++1.7. "Larger Work"+    means a work that combines Covered Software with other material, in+    a separate file or files, that is not Covered Software.++1.8. "License"+    means this document.++1.9. "Licensable"+    means having the right to grant, to the maximum extent possible,+    whether at the time of the initial grant or subsequently, any and+    all of the rights conveyed by this License.++1.10. "Modifications"+    means any of the following:++    (a) any file in Source Code Form that results from an addition to,+        deletion from, or modification of the contents of Covered+        Software; or++    (b) any new file in Source Code Form that contains any Covered+        Software.++1.11. "Patent Claims" of a Contributor+    means any patent claim(s), including without limitation, method,+    process, and apparatus claims, in any patent Licensable by such+    Contributor that would be infringed, but for the grant of the+    License, by the making, using, selling, offering for sale, having+    made, import, or transfer of either its Contributions or its+    Contributor Version.++1.12. "Secondary License"+    means either the GNU General Public License, Version 2.0, the GNU+    Lesser General Public License, Version 2.1, the GNU Affero General+    Public License, Version 3.0, or any later versions of those+    licenses.++1.13. "Source Code Form"+    means the form of the work preferred for making modifications.++1.14. "You" (or "Your")+    means an individual or a legal entity exercising rights under this+    License. For legal entities, "You" includes any entity that+    controls, is controlled by, or is under common control with You. For+    purposes of this definition, "control" means (a) the power, direct+    or indirect, to cause the direction or management of such entity,+    whether by contract or otherwise, or (b) ownership of more than+    fifty percent (50%) of the outstanding shares or beneficial+    ownership of such entity.++2. License Grants and Conditions+--------------------------------++2.1. Grants++Each Contributor hereby grants You a world-wide, royalty-free,+non-exclusive license:++(a) under intellectual property rights (other than patent or trademark)+    Licensable by such Contributor to use, reproduce, make available,+    modify, display, perform, distribute, and otherwise exploit its+    Contributions, either on an unmodified basis, with Modifications, or+    as part of a Larger Work; and++(b) under Patent Claims of such Contributor to make, use, sell, offer+    for sale, have made, import, and otherwise transfer either its+    Contributions or its Contributor Version.++2.2. Effective Date++The licenses granted in Section 2.1 with respect to any Contribution+become effective for each Contribution on the date the Contributor first+distributes such Contribution.++2.3. Limitations on Grant Scope++The licenses granted in this Section 2 are the only rights granted under+this License. No additional rights or licenses will be implied from the+distribution or licensing of Covered Software under this License.+Notwithstanding Section 2.1(b) above, no patent license is granted by a+Contributor:++(a) for any code that a Contributor has removed from Covered Software;+    or++(b) for infringements caused by: (i) Your and any other third party's+    modifications of Covered Software, or (ii) the combination of its+    Contributions with other software (except as part of its Contributor+    Version); or++(c) under Patent Claims infringed by Covered Software in the absence of+    its Contributions.++This License does not grant any rights in the trademarks, service marks,+or logos of any Contributor (except as may be necessary to comply with+the notice requirements in Section 3.4).++2.4. Subsequent Licenses++No Contributor makes additional grants as a result of Your choice to+distribute the Covered Software under a subsequent version of this+License (see Section 10.2) or under the terms of a Secondary License (if+permitted under the terms of Section 3.3).++2.5. Representation++Each Contributor represents that the Contributor believes its+Contributions are its original creation(s) or it has sufficient rights+to grant the rights to its Contributions conveyed by this License.++2.6. Fair Use++This License is not intended to limit any rights You have under+applicable copyright doctrines of fair use, fair dealing, or other+equivalents.++2.7. Conditions++Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted+in Section 2.1.++3. Responsibilities+-------------------++3.1. Distribution of Source Form++All distribution of Covered Software in Source Code Form, including any+Modifications that You create or to which You contribute, must be under+the terms of this License. You must inform recipients that the Source+Code Form of the Covered Software is governed by the terms of this+License, and how they can obtain a copy of this License. You may not+attempt to alter or restrict the recipients' rights in the Source Code+Form.++3.2. Distribution of Executable Form++If You distribute Covered Software in Executable Form then:++(a) such Covered Software must also be made available in Source Code+    Form, as described in Section 3.1, and You must inform recipients of+    the Executable Form how they can obtain a copy of such Source Code+    Form by reasonable means in a timely manner, at a charge no more+    than the cost of distribution to the recipient; and++(b) You may distribute such Executable Form under the terms of this+    License, or sublicense it under different terms, provided that the+    license for the Executable Form does not attempt to limit or alter+    the recipients' rights in the Source Code Form under this License.++3.3. Distribution of a Larger Work++You may create and distribute a Larger Work under terms of Your choice,+provided that You also comply with the requirements of this License for+the Covered Software. If the Larger Work is a combination of Covered+Software with a work governed by one or more Secondary Licenses, and the+Covered Software is not Incompatible With Secondary Licenses, this+License permits You to additionally distribute such Covered Software+under the terms of such Secondary License(s), so that the recipient of+the Larger Work may, at their option, further distribute the Covered+Software under the terms of either this License or such Secondary+License(s).++3.4. Notices++You may not remove or alter the substance of any license notices+(including copyright notices, patent notices, disclaimers of warranty,+or limitations of liability) contained within the Source Code Form of+the Covered Software, except that You may alter any license notices to+the extent required to remedy known factual inaccuracies.++3.5. Application of Additional Terms++You may choose to offer, and to charge a fee for, warranty, support,+indemnity or liability obligations to one or more recipients of Covered+Software. However, You may do so only on Your own behalf, and not on+behalf of any Contributor. You must make it absolutely clear that any+such warranty, support, indemnity, or liability obligation is offered by+You alone, and You hereby agree to indemnify every Contributor for any+liability incurred by such Contributor as a result of warranty, support,+indemnity or liability terms You offer. You may include additional+disclaimers of warranty and limitations of liability specific to any+jurisdiction.++4. Inability to Comply Due to Statute or Regulation+---------------------------------------------------++If it is impossible for You to comply with any of the terms of this+License with respect to some or all of the Covered Software due to+statute, judicial order, or regulation then You must: (a) comply with+the terms of this License to the maximum extent possible; and (b)+describe the limitations and the code they affect. Such description must+be placed in a text file included with all distributions of the Covered+Software under this License. Except to the extent prohibited by statute+or regulation, such description must be sufficiently detailed for a+recipient of ordinary skill to be able to understand it.++5. Termination+--------------++5.1. The rights granted under this License will terminate automatically+if You fail to comply with any of its terms. However, if You become+compliant, then the rights granted under this License from a particular+Contributor are reinstated (a) provisionally, unless and until such+Contributor explicitly and finally terminates Your grants, and (b) on an+ongoing basis, if such Contributor fails to notify You of the+non-compliance by some reasonable means prior to 60 days after You have+come back into compliance. Moreover, Your grants from a particular+Contributor are reinstated on an ongoing basis if such Contributor+notifies You of the non-compliance by some reasonable means, this is the+first time You have received notice of non-compliance with this License+from such Contributor, and You become compliant prior to 30 days after+Your receipt of the notice.++5.2. If You initiate litigation against any entity by asserting a patent+infringement claim (excluding declaratory judgment actions,+counter-claims, and cross-claims) alleging that a Contributor Version+directly or indirectly infringes any patent, then the rights granted to+You by any and all Contributors for the Covered Software under Section+2.1 of this License shall terminate.++5.3. In the event of termination under Sections 5.1 or 5.2 above, all+end user license agreements (excluding distributors and resellers) which+have been validly granted by You or Your distributors under this License+prior to termination shall survive termination.++************************************************************************+*                                                                      *+*  6. Disclaimer of Warranty                                           *+*  -------------------------                                           *+*                                                                      *+*  Covered Software is provided under this License on an "as is"       *+*  basis, without warranty of any kind, either expressed, implied, or  *+*  statutory, including, without limitation, warranties that the       *+*  Covered Software is free of defects, merchantable, fit for a        *+*  particular purpose or non-infringing. The entire risk as to the     *+*  quality and performance of the Covered Software is with You.        *+*  Should any Covered Software prove defective in any respect, You     *+*  (not any Contributor) assume the cost of any necessary servicing,   *+*  repair, or correction. This disclaimer of warranty constitutes an   *+*  essential part of this License. No use of any Covered Software is   *+*  authorized under this License except under this disclaimer.         *+*                                                                      *+************************************************************************++************************************************************************+*                                                                      *+*  7. Limitation of Liability                                          *+*  --------------------------                                          *+*                                                                      *+*  Under no circumstances and under no legal theory, whether tort      *+*  (including negligence), contract, or otherwise, shall any           *+*  Contributor, or anyone who distributes Covered Software as          *+*  permitted above, be liable to You for any direct, indirect,         *+*  special, incidental, or consequential damages of any character      *+*  including, without limitation, damages for lost profits, loss of    *+*  goodwill, work stoppage, computer failure or malfunction, or any    *+*  and all other commercial damages or losses, even if such party      *+*  shall have been informed of the possibility of such damages. This   *+*  limitation of liability shall not apply to liability for death or   *+*  personal injury resulting from such party's negligence to the       *+*  extent applicable law prohibits such limitation. Some               *+*  jurisdictions do not allow the exclusion or limitation of           *+*  incidental or consequential damages, so this exclusion and          *+*  limitation may not apply to You.                                    *+*                                                                      *+************************************************************************++8. Litigation+-------------++Any litigation relating to this License may be brought only in the+courts of a jurisdiction where the defendant maintains its principal+place of business and such litigation shall be governed by laws of that+jurisdiction, without reference to its conflict-of-law provisions.+Nothing in this Section shall prevent a party's ability to bring+cross-claims or counter-claims.++9. Miscellaneous+----------------++This License represents the complete agreement concerning the subject+matter hereof. If any provision of this License is held to be+unenforceable, such provision shall be reformed only to the extent+necessary to make it enforceable. Any law or regulation which provides+that the language of a contract shall be construed against the drafter+shall not be used to construe this License against a Contributor.++10. Versions of the License+---------------------------++10.1. New Versions++Mozilla Foundation is the license steward. Except as provided in Section+10.3, no one other than the license steward has the right to modify or+publish new versions of this License. Each version will be given a+distinguishing version number.++10.2. Effect of New Versions++You may distribute the Covered Software under the terms of the version+of the License under which You originally received the Covered Software,+or under the terms of any subsequent version published by the license+steward.++10.3. Modified Versions++If you create software not governed by this License, and you want to+create a new license for such software, you may create and use a+modified version of this License if you rename the license and remove+any references to the name of the license steward (except to note that+such modified license differs from this License).++10.4. Distributing Source Code Form that is Incompatible With Secondary+Licenses++If You choose to distribute Source Code Form that is Incompatible With+Secondary Licenses under the terms of this version of the License, the+notice described in Exhibit B of this License must be attached.++Exhibit A - Source Code Form License Notice+-------------------------------------------++  This Source Code Form is subject to the terms of the Mozilla Public+  License, v. 2.0. If a copy of the MPL was not distributed with this+  file, You can obtain one at http://mozilla.org/MPL/2.0/.++If it is not possible or desirable to put the notice in a particular+file, then You may include the notice in a location (such as a LICENSE+file in a relevant directory) where a recipient would be likely to look+for such a notice.++You may add additional accurate notices of copyright ownership.
+ README.md view
@@ -0,0 +1,44 @@+# Amazon License Manager Linux Subscriptions SDK++* [Version](#version)+* [Description](#description)+* [Contribute](#contribute)+* [Licence](#licence)+++## Version+ +`2.0` - Derived from API version @2018-05-10@ of the AWS service descriptions, licensed under Apache 2.0.++## Description++Documentation is available via [Hackage](http://hackage.haskell.org/package/amazonka-license-manager-linux-subscriptions)+and the [AWS API Reference](https://aws.amazon.com/documentation/).++The types from this library are intended to be used with [amazonka](http://hackage.haskell.org/package/amazonka),+which provides mechanisms for specifying AuthN/AuthZ information, sending requests,+and receiving responses.++Lenses are used for constructing and manipulating types,+due to the depth of nesting of AWS types and transparency regarding+de/serialisation into more palatable Haskell values.+The provided lenses should be compatible with any of the major lens libraries+[lens](http://hackage.haskell.org/package/lens) or [lens-family-core](http://hackage.haskell.org/package/lens-family-core).++See [Amazonka.LicenseManagerLinuxSubscriptions](http://hackage.haskell.org/package/amazonka-license-manager-linux-subscriptions/docs/Amazonka-LicenseManagerLinuxSubscriptions.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-license-manager-linux-subscriptions` is released under the [Mozilla Public License Version 2.0](http://www.mozilla.org/MPL/).++Parts of the code are derived from AWS service descriptions, licensed under Apache 2.0.+Source files subject to this contain an additional licensing clause in their header.
+ amazonka-license-manager-linux-subscriptions.cabal view
@@ -0,0 +1,95 @@+cabal-version:      2.2+name:               amazonka-license-manager-linux-subscriptions+version:            2.0+synopsis:           Amazon License Manager Linux Subscriptions SDK.+homepage:           https://github.com/brendanhay/amazonka+bug-reports:        https://github.com/brendanhay/amazonka/issues+license:            MPL-2.0+license-file:       LICENSE+author:             Brendan Hay+maintainer:+  Brendan Hay <brendan.g.hay+amazonka@gmail.com>, Jack Kelly <jack@jackkelly.name>++copyright:          Copyright (c) 2013-2023 Brendan Hay+category:           AWS+build-type:         Simple+extra-source-files:+  fixture/*.proto+  fixture/*.yaml+  README.md+  src/.gitkeep++description:+  Derived from API version @2018-05-10@ of the AWS service descriptions, licensed under Apache 2.0.+  .+  The types from this library are intended to be used with <http://hackage.haskell.org/package/amazonka amazonka>,+  which provides mechanisms for specifying AuthN/AuthZ information, sending requests, and receiving responses.+  .+  It is recommended to use generic lenses or optics from packages such as <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify optional fields and deconstruct responses.+  .+  Generated lenses can be found in "Amazonka.LicenseManagerLinuxSubscriptions.Lens" and are+  suitable for use with a lens package such as <http://hackage.haskell.org/package/lens lens> or <http://hackage.haskell.org/package/lens-family-core lens-family-core>.+  .+  See "Amazonka.LicenseManagerLinuxSubscriptions" and the <https://aws.amazon.com/documentation/ AWS documentation> to get started.++source-repository head+  type:     git+  location: git://github.com/brendanhay/amazonka.git+  subdir:   amazonka-license-manager-linux-subscriptions++library+  default-language: Haskell2010+  hs-source-dirs:   src gen+  ghc-options:+    -Wall -fwarn-incomplete-uni-patterns+    -fwarn-incomplete-record-updates -funbox-strict-fields++  exposed-modules:+    Amazonka.LicenseManagerLinuxSubscriptions+    Amazonka.LicenseManagerLinuxSubscriptions.GetServiceSettings+    Amazonka.LicenseManagerLinuxSubscriptions.Lens+    Amazonka.LicenseManagerLinuxSubscriptions.ListLinuxSubscriptionInstances+    Amazonka.LicenseManagerLinuxSubscriptions.ListLinuxSubscriptions+    Amazonka.LicenseManagerLinuxSubscriptions.Types+    Amazonka.LicenseManagerLinuxSubscriptions.Types.Filter+    Amazonka.LicenseManagerLinuxSubscriptions.Types.Instance+    Amazonka.LicenseManagerLinuxSubscriptions.Types.LinuxSubscriptionsDiscovery+    Amazonka.LicenseManagerLinuxSubscriptions.Types.LinuxSubscriptionsDiscoverySettings+    Amazonka.LicenseManagerLinuxSubscriptions.Types.Operator+    Amazonka.LicenseManagerLinuxSubscriptions.Types.OrganizationIntegration+    Amazonka.LicenseManagerLinuxSubscriptions.Types.Status+    Amazonka.LicenseManagerLinuxSubscriptions.Types.Subscription+    Amazonka.LicenseManagerLinuxSubscriptions.UpdateServiceSettings+    Amazonka.LicenseManagerLinuxSubscriptions.Waiters++  build-depends:+    , amazonka-core  >=2.0  && <2.1+    , base           >=4.12 && <5++test-suite amazonka-license-manager-linux-subscriptions-test+  type:             exitcode-stdio-1.0+  default-language: Haskell2010+  hs-source-dirs:   test+  main-is:          Main.hs+  ghc-options:      -Wall -threaded++  -- This section is encoded by the template and any modules added by+  -- hand outside these namespaces will not correctly be added to the+  -- distribution package.+  other-modules:+    Test.Amazonka.Gen.LicenseManagerLinuxSubscriptions+    Test.Amazonka.LicenseManagerLinuxSubscriptions+    Test.Amazonka.LicenseManagerLinuxSubscriptions.Internal++  build-depends:+    , amazonka-core                                 >=2.0 && <2.1+    , amazonka-license-manager-linux-subscriptions+    , amazonka-test                                 >=2.0 && <2.1+    , base+    , bytestring+    , case-insensitive+    , tasty+    , tasty-hunit+    , text+    , time+    , unordered-containers
+ fixture/GetServiceSettings.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/license-manager-linux-subscriptions/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  license-manager-linux-subscriptions.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/GetServiceSettingsResponse.proto view
+ fixture/ListLinuxSubscriptionInstances.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/license-manager-linux-subscriptions/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  license-manager-linux-subscriptions.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/ListLinuxSubscriptionInstancesResponse.proto view
+ fixture/ListLinuxSubscriptions.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/license-manager-linux-subscriptions/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  license-manager-linux-subscriptions.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/ListLinuxSubscriptionsResponse.proto view
+ fixture/UpdateServiceSettings.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/license-manager-linux-subscriptions/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  license-manager-linux-subscriptions.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/UpdateServiceSettingsResponse.proto view
+ gen/Amazonka/LicenseManagerLinuxSubscriptions.hs view
@@ -0,0 +1,127 @@+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- |+-- Module      : Amazonka.LicenseManagerLinuxSubscriptions+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Derived from API version @2018-05-10@ of the AWS service descriptions, licensed under Apache 2.0.+--+-- With License Manager, you can discover and track your commercial Linux+-- subscriptions on running Amazon EC2 instances.+module Amazonka.LicenseManagerLinuxSubscriptions+  ( -- * Service Configuration+    defaultService,++    -- * Errors+    -- $errors++    -- ** InternalServerException+    _InternalServerException,++    -- ** ThrottlingException+    _ThrottlingException,++    -- ** ValidationException+    _ValidationException,++    -- * Waiters+    -- $waiters++    -- * Operations+    -- $operations++    -- ** GetServiceSettings+    GetServiceSettings (GetServiceSettings'),+    newGetServiceSettings,+    GetServiceSettingsResponse (GetServiceSettingsResponse'),+    newGetServiceSettingsResponse,++    -- ** ListLinuxSubscriptionInstances (Paginated)+    ListLinuxSubscriptionInstances (ListLinuxSubscriptionInstances'),+    newListLinuxSubscriptionInstances,+    ListLinuxSubscriptionInstancesResponse (ListLinuxSubscriptionInstancesResponse'),+    newListLinuxSubscriptionInstancesResponse,++    -- ** ListLinuxSubscriptions (Paginated)+    ListLinuxSubscriptions (ListLinuxSubscriptions'),+    newListLinuxSubscriptions,+    ListLinuxSubscriptionsResponse (ListLinuxSubscriptionsResponse'),+    newListLinuxSubscriptionsResponse,++    -- ** UpdateServiceSettings+    UpdateServiceSettings (UpdateServiceSettings'),+    newUpdateServiceSettings,+    UpdateServiceSettingsResponse (UpdateServiceSettingsResponse'),+    newUpdateServiceSettingsResponse,++    -- * Types++    -- ** LinuxSubscriptionsDiscovery+    LinuxSubscriptionsDiscovery (..),++    -- ** Operator+    Operator (..),++    -- ** OrganizationIntegration+    OrganizationIntegration (..),++    -- ** Status+    Status (..),++    -- ** Filter+    Filter (Filter'),+    newFilter,++    -- ** Instance+    Instance (Instance'),+    newInstance,++    -- ** LinuxSubscriptionsDiscoverySettings+    LinuxSubscriptionsDiscoverySettings (LinuxSubscriptionsDiscoverySettings'),+    newLinuxSubscriptionsDiscoverySettings,++    -- ** Subscription+    Subscription (Subscription'),+    newSubscription,+  )+where++import Amazonka.LicenseManagerLinuxSubscriptions.GetServiceSettings+import Amazonka.LicenseManagerLinuxSubscriptions.Lens+import Amazonka.LicenseManagerLinuxSubscriptions.ListLinuxSubscriptionInstances+import Amazonka.LicenseManagerLinuxSubscriptions.ListLinuxSubscriptions+import Amazonka.LicenseManagerLinuxSubscriptions.Types+import Amazonka.LicenseManagerLinuxSubscriptions.UpdateServiceSettings+import Amazonka.LicenseManagerLinuxSubscriptions.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 'LicenseManagerLinuxSubscriptions'.++-- $operations+-- Some AWS operations return results that are incomplete and require subsequent+-- requests in order to obtain the entire result set. The process of sending+-- subsequent requests to continue where a previous request left off is called+-- pagination. For example, the 'ListObjects' operation of Amazon S3 returns up to+-- 1000 objects at a time, and you must send subsequent requests with the+-- appropriate Marker in order to retrieve the next page of results.+--+-- Operations that have an 'AWSPager' instance can transparently perform subsequent+-- requests, correctly setting Markers and other request facets to iterate through+-- the entire result set of a truncated API operation. Operations which support+-- this have an additional note in the documentation.+--+-- Many operations have the ability to filter results on the server side. See the+-- individual operation parameters for details.++-- $waiters+-- Waiters poll by repeatedly sending a request until some remote success condition+-- configured by the 'Wait' specification is fulfilled. The 'Wait' specification+-- determines how many attempts should be made, in addition to delay and retry strategies.
+ gen/Amazonka/LicenseManagerLinuxSubscriptions/GetServiceSettings.hs view
@@ -0,0 +1,206 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.LicenseManagerLinuxSubscriptions.GetServiceSettings+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Lists the Linux subscriptions service settings.+module Amazonka.LicenseManagerLinuxSubscriptions.GetServiceSettings+  ( -- * Creating a Request+    GetServiceSettings (..),+    newGetServiceSettings,++    -- * Destructuring the Response+    GetServiceSettingsResponse (..),+    newGetServiceSettingsResponse,++    -- * Response Lenses+    getServiceSettingsResponse_homeRegions,+    getServiceSettingsResponse_linuxSubscriptionsDiscovery,+    getServiceSettingsResponse_linuxSubscriptionsDiscoverySettings,+    getServiceSettingsResponse_status,+    getServiceSettingsResponse_statusMessage,+    getServiceSettingsResponse_httpStatus,+  )+where++import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import Amazonka.LicenseManagerLinuxSubscriptions.Types+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Request as Request+import qualified Amazonka.Response as Response++-- | /See:/ 'newGetServiceSettings' smart constructor.+data GetServiceSettings = GetServiceSettings'+  {+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'GetServiceSettings' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+newGetServiceSettings ::+  GetServiceSettings+newGetServiceSettings = GetServiceSettings'++instance Core.AWSRequest GetServiceSettings where+  type+    AWSResponse GetServiceSettings =+      GetServiceSettingsResponse+  request overrides =+    Request.postJSON (overrides defaultService)+  response =+    Response.receiveJSON+      ( \s h x ->+          GetServiceSettingsResponse'+            Prelude.<$> (x Data..?> "HomeRegions")+            Prelude.<*> (x Data..?> "LinuxSubscriptionsDiscovery")+            Prelude.<*> (x Data..?> "LinuxSubscriptionsDiscoverySettings")+            Prelude.<*> (x Data..?> "Status")+            Prelude.<*> (x Data..?> "StatusMessage" Core..!@ Prelude.mempty)+            Prelude.<*> (Prelude.pure (Prelude.fromEnum s))+      )++instance Prelude.Hashable GetServiceSettings where+  hashWithSalt _salt _ =+    _salt `Prelude.hashWithSalt` ()++instance Prelude.NFData GetServiceSettings where+  rnf _ = ()++instance Data.ToHeaders GetServiceSettings where+  toHeaders =+    Prelude.const+      ( Prelude.mconcat+          [ "Content-Type"+              Data.=# ( "application/x-amz-json-1.1" ::+                          Prelude.ByteString+                      )+          ]+      )++instance Data.ToJSON GetServiceSettings where+  toJSON = Prelude.const (Data.Object Prelude.mempty)++instance Data.ToPath GetServiceSettings where+  toPath =+    Prelude.const "/subscription/GetServiceSettings"++instance Data.ToQuery GetServiceSettings where+  toQuery = Prelude.const Prelude.mempty++-- | /See:/ 'newGetServiceSettingsResponse' smart constructor.+data GetServiceSettingsResponse = GetServiceSettingsResponse'+  { -- | The Region in which License Manager displays the aggregated data for+    -- Linux subscriptions.+    homeRegions :: Prelude.Maybe (Prelude.NonEmpty Prelude.Text),+    -- | Lists if discovery has been enabled for Linux subscriptions.+    linuxSubscriptionsDiscovery :: Prelude.Maybe LinuxSubscriptionsDiscovery,+    -- | Lists the settings defined for Linux subscriptions discovery. The+    -- settings include if Organizations integration has been enabled, and+    -- which Regions data will be aggregated from.+    linuxSubscriptionsDiscoverySettings :: Prelude.Maybe LinuxSubscriptionsDiscoverySettings,+    -- | Indicates the status of Linux subscriptions settings being applied.+    status :: Prelude.Maybe Status,+    -- | A message which details the Linux subscriptions service settings current+    -- status.+    statusMessage :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),+    -- | The response's http status code.+    httpStatus :: Prelude.Int+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'GetServiceSettingsResponse' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'homeRegions', 'getServiceSettingsResponse_homeRegions' - The Region in which License Manager displays the aggregated data for+-- Linux subscriptions.+--+-- 'linuxSubscriptionsDiscovery', 'getServiceSettingsResponse_linuxSubscriptionsDiscovery' - Lists if discovery has been enabled for Linux subscriptions.+--+-- 'linuxSubscriptionsDiscoverySettings', 'getServiceSettingsResponse_linuxSubscriptionsDiscoverySettings' - Lists the settings defined for Linux subscriptions discovery. The+-- settings include if Organizations integration has been enabled, and+-- which Regions data will be aggregated from.+--+-- 'status', 'getServiceSettingsResponse_status' - Indicates the status of Linux subscriptions settings being applied.+--+-- 'statusMessage', 'getServiceSettingsResponse_statusMessage' - A message which details the Linux subscriptions service settings current+-- status.+--+-- 'httpStatus', 'getServiceSettingsResponse_httpStatus' - The response's http status code.+newGetServiceSettingsResponse ::+  -- | 'httpStatus'+  Prelude.Int ->+  GetServiceSettingsResponse+newGetServiceSettingsResponse pHttpStatus_ =+  GetServiceSettingsResponse'+    { homeRegions =+        Prelude.Nothing,+      linuxSubscriptionsDiscovery = Prelude.Nothing,+      linuxSubscriptionsDiscoverySettings =+        Prelude.Nothing,+      status = Prelude.Nothing,+      statusMessage = Prelude.Nothing,+      httpStatus = pHttpStatus_+    }++-- | The Region in which License Manager displays the aggregated data for+-- Linux subscriptions.+getServiceSettingsResponse_homeRegions :: Lens.Lens' GetServiceSettingsResponse (Prelude.Maybe (Prelude.NonEmpty Prelude.Text))+getServiceSettingsResponse_homeRegions = Lens.lens (\GetServiceSettingsResponse' {homeRegions} -> homeRegions) (\s@GetServiceSettingsResponse' {} a -> s {homeRegions = a} :: GetServiceSettingsResponse) Prelude.. Lens.mapping Lens.coerced++-- | Lists if discovery has been enabled for Linux subscriptions.+getServiceSettingsResponse_linuxSubscriptionsDiscovery :: Lens.Lens' GetServiceSettingsResponse (Prelude.Maybe LinuxSubscriptionsDiscovery)+getServiceSettingsResponse_linuxSubscriptionsDiscovery = Lens.lens (\GetServiceSettingsResponse' {linuxSubscriptionsDiscovery} -> linuxSubscriptionsDiscovery) (\s@GetServiceSettingsResponse' {} a -> s {linuxSubscriptionsDiscovery = a} :: GetServiceSettingsResponse)++-- | Lists the settings defined for Linux subscriptions discovery. The+-- settings include if Organizations integration has been enabled, and+-- which Regions data will be aggregated from.+getServiceSettingsResponse_linuxSubscriptionsDiscoverySettings :: Lens.Lens' GetServiceSettingsResponse (Prelude.Maybe LinuxSubscriptionsDiscoverySettings)+getServiceSettingsResponse_linuxSubscriptionsDiscoverySettings = Lens.lens (\GetServiceSettingsResponse' {linuxSubscriptionsDiscoverySettings} -> linuxSubscriptionsDiscoverySettings) (\s@GetServiceSettingsResponse' {} a -> s {linuxSubscriptionsDiscoverySettings = a} :: GetServiceSettingsResponse)++-- | Indicates the status of Linux subscriptions settings being applied.+getServiceSettingsResponse_status :: Lens.Lens' GetServiceSettingsResponse (Prelude.Maybe Status)+getServiceSettingsResponse_status = Lens.lens (\GetServiceSettingsResponse' {status} -> status) (\s@GetServiceSettingsResponse' {} a -> s {status = a} :: GetServiceSettingsResponse)++-- | A message which details the Linux subscriptions service settings current+-- status.+getServiceSettingsResponse_statusMessage :: Lens.Lens' GetServiceSettingsResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))+getServiceSettingsResponse_statusMessage = Lens.lens (\GetServiceSettingsResponse' {statusMessage} -> statusMessage) (\s@GetServiceSettingsResponse' {} a -> s {statusMessage = a} :: GetServiceSettingsResponse) Prelude.. Lens.mapping Lens.coerced++-- | The response's http status code.+getServiceSettingsResponse_httpStatus :: Lens.Lens' GetServiceSettingsResponse Prelude.Int+getServiceSettingsResponse_httpStatus = Lens.lens (\GetServiceSettingsResponse' {httpStatus} -> httpStatus) (\s@GetServiceSettingsResponse' {} a -> s {httpStatus = a} :: GetServiceSettingsResponse)++instance Prelude.NFData GetServiceSettingsResponse where+  rnf GetServiceSettingsResponse' {..} =+    Prelude.rnf homeRegions+      `Prelude.seq` Prelude.rnf linuxSubscriptionsDiscovery+      `Prelude.seq` Prelude.rnf linuxSubscriptionsDiscoverySettings+      `Prelude.seq` Prelude.rnf status+      `Prelude.seq` Prelude.rnf statusMessage+      `Prelude.seq` Prelude.rnf httpStatus
+ gen/Amazonka/LicenseManagerLinuxSubscriptions/Lens.hs view
@@ -0,0 +1,89 @@+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.LicenseManagerLinuxSubscriptions.Lens+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.LicenseManagerLinuxSubscriptions.Lens+  ( -- * Operations++    -- ** GetServiceSettings+    getServiceSettingsResponse_homeRegions,+    getServiceSettingsResponse_linuxSubscriptionsDiscovery,+    getServiceSettingsResponse_linuxSubscriptionsDiscoverySettings,+    getServiceSettingsResponse_status,+    getServiceSettingsResponse_statusMessage,+    getServiceSettingsResponse_httpStatus,++    -- ** ListLinuxSubscriptionInstances+    listLinuxSubscriptionInstances_filters,+    listLinuxSubscriptionInstances_maxResults,+    listLinuxSubscriptionInstances_nextToken,+    listLinuxSubscriptionInstancesResponse_instances,+    listLinuxSubscriptionInstancesResponse_nextToken,+    listLinuxSubscriptionInstancesResponse_httpStatus,++    -- ** ListLinuxSubscriptions+    listLinuxSubscriptions_filters,+    listLinuxSubscriptions_maxResults,+    listLinuxSubscriptions_nextToken,+    listLinuxSubscriptionsResponse_nextToken,+    listLinuxSubscriptionsResponse_subscriptions,+    listLinuxSubscriptionsResponse_httpStatus,++    -- ** UpdateServiceSettings+    updateServiceSettings_allowUpdate,+    updateServiceSettings_linuxSubscriptionsDiscovery,+    updateServiceSettings_linuxSubscriptionsDiscoverySettings,+    updateServiceSettingsResponse_homeRegions,+    updateServiceSettingsResponse_linuxSubscriptionsDiscovery,+    updateServiceSettingsResponse_linuxSubscriptionsDiscoverySettings,+    updateServiceSettingsResponse_status,+    updateServiceSettingsResponse_statusMessage,+    updateServiceSettingsResponse_httpStatus,++    -- * Types++    -- ** Filter+    filter_name,+    filter_operator,+    filter_values,++    -- ** Instance+    instance_accountID,+    instance_amiId,+    instance_instanceID,+    instance_instanceType,+    instance_lastUpdatedTime,+    instance_productCode,+    instance_region,+    instance_status,+    instance_subscriptionName,+    instance_usageOperation,++    -- ** LinuxSubscriptionsDiscoverySettings+    linuxSubscriptionsDiscoverySettings_organizationIntegration,+    linuxSubscriptionsDiscoverySettings_sourceRegions,++    -- ** Subscription+    subscription_instanceCount,+    subscription_name,+    subscription_type,+  )+where++import Amazonka.LicenseManagerLinuxSubscriptions.GetServiceSettings+import Amazonka.LicenseManagerLinuxSubscriptions.ListLinuxSubscriptionInstances+import Amazonka.LicenseManagerLinuxSubscriptions.ListLinuxSubscriptions+import Amazonka.LicenseManagerLinuxSubscriptions.Types.Filter+import Amazonka.LicenseManagerLinuxSubscriptions.Types.Instance+import Amazonka.LicenseManagerLinuxSubscriptions.Types.LinuxSubscriptionsDiscoverySettings+import Amazonka.LicenseManagerLinuxSubscriptions.Types.Subscription+import Amazonka.LicenseManagerLinuxSubscriptions.UpdateServiceSettings
+ gen/Amazonka/LicenseManagerLinuxSubscriptions/ListLinuxSubscriptionInstances.hs view
@@ -0,0 +1,344 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.LicenseManagerLinuxSubscriptions.ListLinuxSubscriptionInstances+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Lists the running Amazon EC2 instances that were discovered with+-- commercial Linux subscriptions.+--+-- This operation returns paginated results.+module Amazonka.LicenseManagerLinuxSubscriptions.ListLinuxSubscriptionInstances+  ( -- * Creating a Request+    ListLinuxSubscriptionInstances (..),+    newListLinuxSubscriptionInstances,++    -- * Request Lenses+    listLinuxSubscriptionInstances_filters,+    listLinuxSubscriptionInstances_maxResults,+    listLinuxSubscriptionInstances_nextToken,++    -- * Destructuring the Response+    ListLinuxSubscriptionInstancesResponse (..),+    newListLinuxSubscriptionInstancesResponse,++    -- * Response Lenses+    listLinuxSubscriptionInstancesResponse_instances,+    listLinuxSubscriptionInstancesResponse_nextToken,+    listLinuxSubscriptionInstancesResponse_httpStatus,+  )+where++import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import Amazonka.LicenseManagerLinuxSubscriptions.Types+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Request as Request+import qualified Amazonka.Response as Response++-- | NextToken length limit is half of ddb accepted limit. Increase this+-- limit if parameters in request increases.+--+-- /See:/ 'newListLinuxSubscriptionInstances' smart constructor.+data ListLinuxSubscriptionInstances = ListLinuxSubscriptionInstances'+  { -- | An array of structures that you can use to filter the results to those+    -- that match one or more sets of key-value pairs that you specify. For+    -- example, you can filter by the name of @AmiID@ with an optional operator+    -- to see subscriptions that match, partially match, or don\'t match a+    -- certain Amazon Machine Image (AMI) ID.+    --+    -- The valid names for this filter are:+    --+    -- -   @AmiID@+    --+    -- -   @InstanceID@+    --+    -- -   @AccountID@+    --+    -- -   @Status@+    --+    -- -   @Region@+    --+    -- -   @UsageOperation@+    --+    -- -   @ProductCode@+    --+    -- -   @InstanceType@+    --+    -- The valid Operators for this filter are:+    --+    -- -   @contains@+    --+    -- -   @equals@+    --+    -- -   @Notequal@+    filters :: Prelude.Maybe [Filter],+    -- | Maximum number of results to return in a single call.+    maxResults :: Prelude.Maybe Prelude.Int,+    -- | Token for the next set of results.+    nextToken :: Prelude.Maybe Prelude.Text+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'ListLinuxSubscriptionInstances' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'filters', 'listLinuxSubscriptionInstances_filters' - An array of structures that you can use to filter the results to those+-- that match one or more sets of key-value pairs that you specify. For+-- example, you can filter by the name of @AmiID@ with an optional operator+-- to see subscriptions that match, partially match, or don\'t match a+-- certain Amazon Machine Image (AMI) ID.+--+-- The valid names for this filter are:+--+-- -   @AmiID@+--+-- -   @InstanceID@+--+-- -   @AccountID@+--+-- -   @Status@+--+-- -   @Region@+--+-- -   @UsageOperation@+--+-- -   @ProductCode@+--+-- -   @InstanceType@+--+-- The valid Operators for this filter are:+--+-- -   @contains@+--+-- -   @equals@+--+-- -   @Notequal@+--+-- 'maxResults', 'listLinuxSubscriptionInstances_maxResults' - Maximum number of results to return in a single call.+--+-- 'nextToken', 'listLinuxSubscriptionInstances_nextToken' - Token for the next set of results.+newListLinuxSubscriptionInstances ::+  ListLinuxSubscriptionInstances+newListLinuxSubscriptionInstances =+  ListLinuxSubscriptionInstances'+    { filters =+        Prelude.Nothing,+      maxResults = Prelude.Nothing,+      nextToken = Prelude.Nothing+    }++-- | An array of structures that you can use to filter the results to those+-- that match one or more sets of key-value pairs that you specify. For+-- example, you can filter by the name of @AmiID@ with an optional operator+-- to see subscriptions that match, partially match, or don\'t match a+-- certain Amazon Machine Image (AMI) ID.+--+-- The valid names for this filter are:+--+-- -   @AmiID@+--+-- -   @InstanceID@+--+-- -   @AccountID@+--+-- -   @Status@+--+-- -   @Region@+--+-- -   @UsageOperation@+--+-- -   @ProductCode@+--+-- -   @InstanceType@+--+-- The valid Operators for this filter are:+--+-- -   @contains@+--+-- -   @equals@+--+-- -   @Notequal@+listLinuxSubscriptionInstances_filters :: Lens.Lens' ListLinuxSubscriptionInstances (Prelude.Maybe [Filter])+listLinuxSubscriptionInstances_filters = Lens.lens (\ListLinuxSubscriptionInstances' {filters} -> filters) (\s@ListLinuxSubscriptionInstances' {} a -> s {filters = a} :: ListLinuxSubscriptionInstances) Prelude.. Lens.mapping Lens.coerced++-- | Maximum number of results to return in a single call.+listLinuxSubscriptionInstances_maxResults :: Lens.Lens' ListLinuxSubscriptionInstances (Prelude.Maybe Prelude.Int)+listLinuxSubscriptionInstances_maxResults = Lens.lens (\ListLinuxSubscriptionInstances' {maxResults} -> maxResults) (\s@ListLinuxSubscriptionInstances' {} a -> s {maxResults = a} :: ListLinuxSubscriptionInstances)++-- | Token for the next set of results.+listLinuxSubscriptionInstances_nextToken :: Lens.Lens' ListLinuxSubscriptionInstances (Prelude.Maybe Prelude.Text)+listLinuxSubscriptionInstances_nextToken = Lens.lens (\ListLinuxSubscriptionInstances' {nextToken} -> nextToken) (\s@ListLinuxSubscriptionInstances' {} a -> s {nextToken = a} :: ListLinuxSubscriptionInstances)++instance Core.AWSPager ListLinuxSubscriptionInstances where+  page rq rs+    | Core.stop+        ( rs+            Lens.^? listLinuxSubscriptionInstancesResponse_nextToken+            Prelude.. Lens._Just+        ) =+        Prelude.Nothing+    | Core.stop+        ( rs+            Lens.^? listLinuxSubscriptionInstancesResponse_instances+            Prelude.. Lens._Just+        ) =+        Prelude.Nothing+    | Prelude.otherwise =+        Prelude.Just+          Prelude.$ rq+          Prelude.& listLinuxSubscriptionInstances_nextToken+          Lens..~ rs+          Lens.^? listLinuxSubscriptionInstancesResponse_nextToken+          Prelude.. Lens._Just++instance+  Core.AWSRequest+    ListLinuxSubscriptionInstances+  where+  type+    AWSResponse ListLinuxSubscriptionInstances =+      ListLinuxSubscriptionInstancesResponse+  request overrides =+    Request.postJSON (overrides defaultService)+  response =+    Response.receiveJSON+      ( \s h x ->+          ListLinuxSubscriptionInstancesResponse'+            Prelude.<$> (x Data..?> "Instances" Core..!@ Prelude.mempty)+            Prelude.<*> (x Data..?> "NextToken")+            Prelude.<*> (Prelude.pure (Prelude.fromEnum s))+      )++instance+  Prelude.Hashable+    ListLinuxSubscriptionInstances+  where+  hashWithSalt+    _salt+    ListLinuxSubscriptionInstances' {..} =+      _salt+        `Prelude.hashWithSalt` filters+        `Prelude.hashWithSalt` maxResults+        `Prelude.hashWithSalt` nextToken++instance+  Prelude.NFData+    ListLinuxSubscriptionInstances+  where+  rnf ListLinuxSubscriptionInstances' {..} =+    Prelude.rnf filters+      `Prelude.seq` Prelude.rnf maxResults+      `Prelude.seq` Prelude.rnf nextToken++instance+  Data.ToHeaders+    ListLinuxSubscriptionInstances+  where+  toHeaders =+    Prelude.const+      ( Prelude.mconcat+          [ "Content-Type"+              Data.=# ( "application/x-amz-json-1.1" ::+                          Prelude.ByteString+                      )+          ]+      )++instance Data.ToJSON ListLinuxSubscriptionInstances where+  toJSON ListLinuxSubscriptionInstances' {..} =+    Data.object+      ( Prelude.catMaybes+          [ ("Filters" Data..=) Prelude.<$> filters,+            ("MaxResults" Data..=) Prelude.<$> maxResults,+            ("NextToken" Data..=) Prelude.<$> nextToken+          ]+      )++instance Data.ToPath ListLinuxSubscriptionInstances where+  toPath =+    Prelude.const+      "/subscription/ListLinuxSubscriptionInstances"++instance Data.ToQuery ListLinuxSubscriptionInstances where+  toQuery = Prelude.const Prelude.mempty++-- | /See:/ 'newListLinuxSubscriptionInstancesResponse' smart constructor.+data ListLinuxSubscriptionInstancesResponse = ListLinuxSubscriptionInstancesResponse'+  { -- | An array that contains instance objects.+    instances :: Prelude.Maybe [Instance],+    -- | Token for the next set of results.+    nextToken :: Prelude.Maybe Prelude.Text,+    -- | The response's http status code.+    httpStatus :: Prelude.Int+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'ListLinuxSubscriptionInstancesResponse' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'instances', 'listLinuxSubscriptionInstancesResponse_instances' - An array that contains instance objects.+--+-- 'nextToken', 'listLinuxSubscriptionInstancesResponse_nextToken' - Token for the next set of results.+--+-- 'httpStatus', 'listLinuxSubscriptionInstancesResponse_httpStatus' - The response's http status code.+newListLinuxSubscriptionInstancesResponse ::+  -- | 'httpStatus'+  Prelude.Int ->+  ListLinuxSubscriptionInstancesResponse+newListLinuxSubscriptionInstancesResponse+  pHttpStatus_ =+    ListLinuxSubscriptionInstancesResponse'+      { instances =+          Prelude.Nothing,+        nextToken = Prelude.Nothing,+        httpStatus = pHttpStatus_+      }++-- | An array that contains instance objects.+listLinuxSubscriptionInstancesResponse_instances :: Lens.Lens' ListLinuxSubscriptionInstancesResponse (Prelude.Maybe [Instance])+listLinuxSubscriptionInstancesResponse_instances = Lens.lens (\ListLinuxSubscriptionInstancesResponse' {instances} -> instances) (\s@ListLinuxSubscriptionInstancesResponse' {} a -> s {instances = a} :: ListLinuxSubscriptionInstancesResponse) Prelude.. Lens.mapping Lens.coerced++-- | Token for the next set of results.+listLinuxSubscriptionInstancesResponse_nextToken :: Lens.Lens' ListLinuxSubscriptionInstancesResponse (Prelude.Maybe Prelude.Text)+listLinuxSubscriptionInstancesResponse_nextToken = Lens.lens (\ListLinuxSubscriptionInstancesResponse' {nextToken} -> nextToken) (\s@ListLinuxSubscriptionInstancesResponse' {} a -> s {nextToken = a} :: ListLinuxSubscriptionInstancesResponse)++-- | The response's http status code.+listLinuxSubscriptionInstancesResponse_httpStatus :: Lens.Lens' ListLinuxSubscriptionInstancesResponse Prelude.Int+listLinuxSubscriptionInstancesResponse_httpStatus = Lens.lens (\ListLinuxSubscriptionInstancesResponse' {httpStatus} -> httpStatus) (\s@ListLinuxSubscriptionInstancesResponse' {} a -> s {httpStatus = a} :: ListLinuxSubscriptionInstancesResponse)++instance+  Prelude.NFData+    ListLinuxSubscriptionInstancesResponse+  where+  rnf ListLinuxSubscriptionInstancesResponse' {..} =+    Prelude.rnf instances+      `Prelude.seq` Prelude.rnf nextToken+      `Prelude.seq` Prelude.rnf httpStatus
+ gen/Amazonka/LicenseManagerLinuxSubscriptions/ListLinuxSubscriptions.hs view
@@ -0,0 +1,287 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.LicenseManagerLinuxSubscriptions.ListLinuxSubscriptions+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Lists the Linux subscriptions that have been discovered. If you have+-- linked your organization, the returned results will include data+-- aggregated across your accounts in Organizations.+--+-- This operation returns paginated results.+module Amazonka.LicenseManagerLinuxSubscriptions.ListLinuxSubscriptions+  ( -- * Creating a Request+    ListLinuxSubscriptions (..),+    newListLinuxSubscriptions,++    -- * Request Lenses+    listLinuxSubscriptions_filters,+    listLinuxSubscriptions_maxResults,+    listLinuxSubscriptions_nextToken,++    -- * Destructuring the Response+    ListLinuxSubscriptionsResponse (..),+    newListLinuxSubscriptionsResponse,++    -- * Response Lenses+    listLinuxSubscriptionsResponse_nextToken,+    listLinuxSubscriptionsResponse_subscriptions,+    listLinuxSubscriptionsResponse_httpStatus,+  )+where++import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import Amazonka.LicenseManagerLinuxSubscriptions.Types+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Request as Request+import qualified Amazonka.Response as Response++-- | NextToken length limit is half of ddb accepted limit. Increase this+-- limit if parameters in request increases.+--+-- /See:/ 'newListLinuxSubscriptions' smart constructor.+data ListLinuxSubscriptions = ListLinuxSubscriptions'+  { -- | An array of structures that you can use to filter the results to those+    -- that match one or more sets of key-value pairs that you specify. For+    -- example, you can filter by the name of @Subscription@ with an optional+    -- operator to see subscriptions that match, partially match, or don\'t+    -- match a certain subscription\'s name.+    --+    -- The valid names for this filter are:+    --+    -- -   @Subscription@+    --+    -- The valid Operators for this filter are:+    --+    -- -   @contains@+    --+    -- -   @equals@+    --+    -- -   @Notequal@+    filters :: Prelude.Maybe [Filter],+    -- | Maximum number of results to return in a single call.+    maxResults :: Prelude.Maybe Prelude.Int,+    -- | Token for the next set of results.+    nextToken :: Prelude.Maybe Prelude.Text+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'ListLinuxSubscriptions' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'filters', 'listLinuxSubscriptions_filters' - An array of structures that you can use to filter the results to those+-- that match one or more sets of key-value pairs that you specify. For+-- example, you can filter by the name of @Subscription@ with an optional+-- operator to see subscriptions that match, partially match, or don\'t+-- match a certain subscription\'s name.+--+-- The valid names for this filter are:+--+-- -   @Subscription@+--+-- The valid Operators for this filter are:+--+-- -   @contains@+--+-- -   @equals@+--+-- -   @Notequal@+--+-- 'maxResults', 'listLinuxSubscriptions_maxResults' - Maximum number of results to return in a single call.+--+-- 'nextToken', 'listLinuxSubscriptions_nextToken' - Token for the next set of results.+newListLinuxSubscriptions ::+  ListLinuxSubscriptions+newListLinuxSubscriptions =+  ListLinuxSubscriptions'+    { filters = Prelude.Nothing,+      maxResults = Prelude.Nothing,+      nextToken = Prelude.Nothing+    }++-- | An array of structures that you can use to filter the results to those+-- that match one or more sets of key-value pairs that you specify. For+-- example, you can filter by the name of @Subscription@ with an optional+-- operator to see subscriptions that match, partially match, or don\'t+-- match a certain subscription\'s name.+--+-- The valid names for this filter are:+--+-- -   @Subscription@+--+-- The valid Operators for this filter are:+--+-- -   @contains@+--+-- -   @equals@+--+-- -   @Notequal@+listLinuxSubscriptions_filters :: Lens.Lens' ListLinuxSubscriptions (Prelude.Maybe [Filter])+listLinuxSubscriptions_filters = Lens.lens (\ListLinuxSubscriptions' {filters} -> filters) (\s@ListLinuxSubscriptions' {} a -> s {filters = a} :: ListLinuxSubscriptions) Prelude.. Lens.mapping Lens.coerced++-- | Maximum number of results to return in a single call.+listLinuxSubscriptions_maxResults :: Lens.Lens' ListLinuxSubscriptions (Prelude.Maybe Prelude.Int)+listLinuxSubscriptions_maxResults = Lens.lens (\ListLinuxSubscriptions' {maxResults} -> maxResults) (\s@ListLinuxSubscriptions' {} a -> s {maxResults = a} :: ListLinuxSubscriptions)++-- | Token for the next set of results.+listLinuxSubscriptions_nextToken :: Lens.Lens' ListLinuxSubscriptions (Prelude.Maybe Prelude.Text)+listLinuxSubscriptions_nextToken = Lens.lens (\ListLinuxSubscriptions' {nextToken} -> nextToken) (\s@ListLinuxSubscriptions' {} a -> s {nextToken = a} :: ListLinuxSubscriptions)++instance Core.AWSPager ListLinuxSubscriptions where+  page rq rs+    | Core.stop+        ( rs+            Lens.^? listLinuxSubscriptionsResponse_nextToken+            Prelude.. Lens._Just+        ) =+        Prelude.Nothing+    | Core.stop+        ( rs+            Lens.^? listLinuxSubscriptionsResponse_subscriptions+            Prelude.. Lens._Just+        ) =+        Prelude.Nothing+    | Prelude.otherwise =+        Prelude.Just+          Prelude.$ rq+          Prelude.& listLinuxSubscriptions_nextToken+          Lens..~ rs+          Lens.^? listLinuxSubscriptionsResponse_nextToken+          Prelude.. Lens._Just++instance Core.AWSRequest ListLinuxSubscriptions where+  type+    AWSResponse ListLinuxSubscriptions =+      ListLinuxSubscriptionsResponse+  request overrides =+    Request.postJSON (overrides defaultService)+  response =+    Response.receiveJSON+      ( \s h x ->+          ListLinuxSubscriptionsResponse'+            Prelude.<$> (x Data..?> "NextToken")+            Prelude.<*> (x Data..?> "Subscriptions" Core..!@ Prelude.mempty)+            Prelude.<*> (Prelude.pure (Prelude.fromEnum s))+      )++instance Prelude.Hashable ListLinuxSubscriptions where+  hashWithSalt _salt ListLinuxSubscriptions' {..} =+    _salt+      `Prelude.hashWithSalt` filters+      `Prelude.hashWithSalt` maxResults+      `Prelude.hashWithSalt` nextToken++instance Prelude.NFData ListLinuxSubscriptions where+  rnf ListLinuxSubscriptions' {..} =+    Prelude.rnf filters+      `Prelude.seq` Prelude.rnf maxResults+      `Prelude.seq` Prelude.rnf nextToken++instance Data.ToHeaders ListLinuxSubscriptions where+  toHeaders =+    Prelude.const+      ( Prelude.mconcat+          [ "Content-Type"+              Data.=# ( "application/x-amz-json-1.1" ::+                          Prelude.ByteString+                      )+          ]+      )++instance Data.ToJSON ListLinuxSubscriptions where+  toJSON ListLinuxSubscriptions' {..} =+    Data.object+      ( Prelude.catMaybes+          [ ("Filters" Data..=) Prelude.<$> filters,+            ("MaxResults" Data..=) Prelude.<$> maxResults,+            ("NextToken" Data..=) Prelude.<$> nextToken+          ]+      )++instance Data.ToPath ListLinuxSubscriptions where+  toPath =+    Prelude.const+      "/subscription/ListLinuxSubscriptions"++instance Data.ToQuery ListLinuxSubscriptions where+  toQuery = Prelude.const Prelude.mempty++-- | /See:/ 'newListLinuxSubscriptionsResponse' smart constructor.+data ListLinuxSubscriptionsResponse = ListLinuxSubscriptionsResponse'+  { -- | Token for the next set of results.+    nextToken :: Prelude.Maybe Prelude.Text,+    -- | An array that contains subscription objects.+    subscriptions :: Prelude.Maybe [Subscription],+    -- | The response's http status code.+    httpStatus :: Prelude.Int+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'ListLinuxSubscriptionsResponse' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'nextToken', 'listLinuxSubscriptionsResponse_nextToken' - Token for the next set of results.+--+-- 'subscriptions', 'listLinuxSubscriptionsResponse_subscriptions' - An array that contains subscription objects.+--+-- 'httpStatus', 'listLinuxSubscriptionsResponse_httpStatus' - The response's http status code.+newListLinuxSubscriptionsResponse ::+  -- | 'httpStatus'+  Prelude.Int ->+  ListLinuxSubscriptionsResponse+newListLinuxSubscriptionsResponse pHttpStatus_ =+  ListLinuxSubscriptionsResponse'+    { nextToken =+        Prelude.Nothing,+      subscriptions = Prelude.Nothing,+      httpStatus = pHttpStatus_+    }++-- | Token for the next set of results.+listLinuxSubscriptionsResponse_nextToken :: Lens.Lens' ListLinuxSubscriptionsResponse (Prelude.Maybe Prelude.Text)+listLinuxSubscriptionsResponse_nextToken = Lens.lens (\ListLinuxSubscriptionsResponse' {nextToken} -> nextToken) (\s@ListLinuxSubscriptionsResponse' {} a -> s {nextToken = a} :: ListLinuxSubscriptionsResponse)++-- | An array that contains subscription objects.+listLinuxSubscriptionsResponse_subscriptions :: Lens.Lens' ListLinuxSubscriptionsResponse (Prelude.Maybe [Subscription])+listLinuxSubscriptionsResponse_subscriptions = Lens.lens (\ListLinuxSubscriptionsResponse' {subscriptions} -> subscriptions) (\s@ListLinuxSubscriptionsResponse' {} a -> s {subscriptions = a} :: ListLinuxSubscriptionsResponse) Prelude.. Lens.mapping Lens.coerced++-- | The response's http status code.+listLinuxSubscriptionsResponse_httpStatus :: Lens.Lens' ListLinuxSubscriptionsResponse Prelude.Int+listLinuxSubscriptionsResponse_httpStatus = Lens.lens (\ListLinuxSubscriptionsResponse' {httpStatus} -> httpStatus) (\s@ListLinuxSubscriptionsResponse' {} a -> s {httpStatus = a} :: ListLinuxSubscriptionsResponse)++instance+  Prelude.NFData+    ListLinuxSubscriptionsResponse+  where+  rnf ListLinuxSubscriptionsResponse' {..} =+    Prelude.rnf nextToken+      `Prelude.seq` Prelude.rnf subscriptions+      `Prelude.seq` Prelude.rnf httpStatus
+ gen/Amazonka/LicenseManagerLinuxSubscriptions/Types.hs view
@@ -0,0 +1,180 @@+{-# LANGUAGE DisambiguateRecordFields #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.LicenseManagerLinuxSubscriptions.Types+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.LicenseManagerLinuxSubscriptions.Types+  ( -- * Service Configuration+    defaultService,++    -- * Errors+    _InternalServerException,+    _ThrottlingException,+    _ValidationException,++    -- * LinuxSubscriptionsDiscovery+    LinuxSubscriptionsDiscovery (..),++    -- * Operator+    Operator (..),++    -- * OrganizationIntegration+    OrganizationIntegration (..),++    -- * Status+    Status (..),++    -- * Filter+    Filter (..),+    newFilter,+    filter_name,+    filter_operator,+    filter_values,++    -- * Instance+    Instance (..),+    newInstance,+    instance_accountID,+    instance_amiId,+    instance_instanceID,+    instance_instanceType,+    instance_lastUpdatedTime,+    instance_productCode,+    instance_region,+    instance_status,+    instance_subscriptionName,+    instance_usageOperation,++    -- * LinuxSubscriptionsDiscoverySettings+    LinuxSubscriptionsDiscoverySettings (..),+    newLinuxSubscriptionsDiscoverySettings,+    linuxSubscriptionsDiscoverySettings_organizationIntegration,+    linuxSubscriptionsDiscoverySettings_sourceRegions,++    -- * Subscription+    Subscription (..),+    newSubscription,+    subscription_instanceCount,+    subscription_name,+    subscription_type,+  )+where++import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import Amazonka.LicenseManagerLinuxSubscriptions.Types.Filter+import Amazonka.LicenseManagerLinuxSubscriptions.Types.Instance+import Amazonka.LicenseManagerLinuxSubscriptions.Types.LinuxSubscriptionsDiscovery+import Amazonka.LicenseManagerLinuxSubscriptions.Types.LinuxSubscriptionsDiscoverySettings+import Amazonka.LicenseManagerLinuxSubscriptions.Types.Operator+import Amazonka.LicenseManagerLinuxSubscriptions.Types.OrganizationIntegration+import Amazonka.LicenseManagerLinuxSubscriptions.Types.Status+import Amazonka.LicenseManagerLinuxSubscriptions.Types.Subscription+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Sign.V4 as Sign++-- | API version @2018-05-10@ of the Amazon License Manager Linux Subscriptions SDK configuration.+defaultService :: Core.Service+defaultService =+  Core.Service+    { Core.abbrev =+        "LicenseManagerLinuxSubscriptions",+      Core.signer = Sign.v4,+      Core.endpointPrefix =+        "license-manager-linux-subscriptions",+      Core.signingName =+        "license-manager-linux-subscriptions",+      Core.version = "2018-05-10",+      Core.s3AddressingStyle = Core.S3AddressingStyleAuto,+      Core.endpoint = Core.defaultEndpoint defaultService,+      Core.timeout = Prelude.Just 70,+      Core.check = Core.statusSuccess,+      Core.error =+        Core.parseJSONError+          "LicenseManagerLinuxSubscriptions",+      Core.retry = retry+    }+  where+    retry =+      Core.Exponential+        { Core.base = 5.0e-2,+          Core.growth = 2,+          Core.attempts = 5,+          Core.check = check+        }+    check e+      | Lens.has (Core.hasStatus 502) e =+          Prelude.Just "bad_gateway"+      | Lens.has (Core.hasStatus 504) e =+          Prelude.Just "gateway_timeout"+      | Lens.has (Core.hasStatus 500) e =+          Prelude.Just "general_server_error"+      | Lens.has (Core.hasStatus 509) e =+          Prelude.Just "limit_exceeded"+      | Lens.has+          ( Core.hasCode "RequestThrottledException"+              Prelude.. Core.hasStatus 400+          )+          e =+          Prelude.Just "request_throttled_exception"+      | Lens.has (Core.hasStatus 503) e =+          Prelude.Just "service_unavailable"+      | Lens.has+          ( Core.hasCode "ThrottledException"+              Prelude.. Core.hasStatus 400+          )+          e =+          Prelude.Just "throttled_exception"+      | Lens.has+          ( Core.hasCode "Throttling"+              Prelude.. Core.hasStatus 400+          )+          e =+          Prelude.Just "throttling"+      | Lens.has+          ( Core.hasCode "ThrottlingException"+              Prelude.. Core.hasStatus 400+          )+          e =+          Prelude.Just "throttling_exception"+      | Lens.has+          ( Core.hasCode+              "ProvisionedThroughputExceededException"+              Prelude.. Core.hasStatus 400+          )+          e =+          Prelude.Just "throughput_exceeded"+      | Lens.has (Core.hasStatus 429) e =+          Prelude.Just "too_many_requests"+      | Prelude.otherwise = Prelude.Nothing++-- | An exception occurred with the service.+_InternalServerException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_InternalServerException =+  Core._MatchServiceError+    defaultService+    "InternalServerException"++-- | The request was denied due to request throttling.+_ThrottlingException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_ThrottlingException =+  Core._MatchServiceError+    defaultService+    "ThrottlingException"++-- | The provided input is not valid. Try your request again.+_ValidationException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_ValidationException =+  Core._MatchServiceError+    defaultService+    "ValidationException"
+ gen/Amazonka/LicenseManagerLinuxSubscriptions/Types/Filter.hs view
@@ -0,0 +1,98 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.LicenseManagerLinuxSubscriptions.Types.Filter+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.LicenseManagerLinuxSubscriptions.Types.Filter where++import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import Amazonka.LicenseManagerLinuxSubscriptions.Types.Operator+import qualified Amazonka.Prelude as Prelude++-- | A filter object that is used to return more specific results from a+-- describe operation. Filters can be used to match a set of resources by+-- specific criteria.+--+-- /See:/ 'newFilter' smart constructor.+data Filter = Filter'+  { -- | The type of name to filter by.+    name :: Prelude.Maybe Prelude.Text,+    -- | An operator for filtering results.+    operator :: Prelude.Maybe Operator,+    -- | One or more values for the name to filter by.+    values :: Prelude.Maybe (Prelude.NonEmpty Prelude.Text)+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'Filter' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'name', 'filter_name' - The type of name to filter by.+--+-- 'operator', 'filter_operator' - An operator for filtering results.+--+-- 'values', 'filter_values' - One or more values for the name to filter by.+newFilter ::+  Filter+newFilter =+  Filter'+    { name = Prelude.Nothing,+      operator = Prelude.Nothing,+      values = Prelude.Nothing+    }++-- | The type of name to filter by.+filter_name :: Lens.Lens' Filter (Prelude.Maybe Prelude.Text)+filter_name = Lens.lens (\Filter' {name} -> name) (\s@Filter' {} a -> s {name = a} :: Filter)++-- | An operator for filtering results.+filter_operator :: Lens.Lens' Filter (Prelude.Maybe Operator)+filter_operator = Lens.lens (\Filter' {operator} -> operator) (\s@Filter' {} a -> s {operator = a} :: Filter)++-- | One or more values for the name to filter by.+filter_values :: Lens.Lens' Filter (Prelude.Maybe (Prelude.NonEmpty Prelude.Text))+filter_values = Lens.lens (\Filter' {values} -> values) (\s@Filter' {} a -> s {values = a} :: Filter) Prelude.. Lens.mapping Lens.coerced++instance Prelude.Hashable Filter where+  hashWithSalt _salt Filter' {..} =+    _salt+      `Prelude.hashWithSalt` name+      `Prelude.hashWithSalt` operator+      `Prelude.hashWithSalt` values++instance Prelude.NFData Filter where+  rnf Filter' {..} =+    Prelude.rnf name+      `Prelude.seq` Prelude.rnf operator+      `Prelude.seq` Prelude.rnf values++instance Data.ToJSON Filter where+  toJSON Filter' {..} =+    Data.object+      ( Prelude.catMaybes+          [ ("Name" Data..=) Prelude.<$> name,+            ("Operator" Data..=) Prelude.<$> operator,+            ("Values" Data..=) Prelude.<$> values+          ]+      )
+ gen/Amazonka/LicenseManagerLinuxSubscriptions/Types/Instance.hs view
@@ -0,0 +1,196 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.LicenseManagerLinuxSubscriptions.Types.Instance+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.LicenseManagerLinuxSubscriptions.Types.Instance where++import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude++-- | Details discovered information about a running instance using Linux+-- subscriptions.+--+-- /See:/ 'newInstance' smart constructor.+data Instance = Instance'+  { -- | The account ID which owns the instance.+    accountID :: Prelude.Maybe Prelude.Text,+    -- | The AMI ID used to launch the instance.+    amiId :: Prelude.Maybe Prelude.Text,+    -- | The instance ID of the resource.+    instanceID :: Prelude.Maybe Prelude.Text,+    -- | The instance type of the resource.+    instanceType :: Prelude.Maybe Prelude.Text,+    -- | The time in which the last discovery updated the instance details.+    lastUpdatedTime :: Prelude.Maybe Prelude.Text,+    -- | The product code for the instance. For more information, see+    -- <https://docs.aws.amazon.com/license-manager/latest/userguide/linux-subscriptions-usage-operation.html Usage operation values>+    -- in the /License Manager User Guide/ .+    productCode :: Prelude.Maybe [Prelude.Text],+    -- | The Region the instance is running in.+    region :: Prelude.Maybe Prelude.Text,+    -- | The status of the instance.+    status :: Prelude.Maybe Prelude.Text,+    -- | The name of the subscription being used by the instance.+    subscriptionName :: Prelude.Maybe Prelude.Text,+    -- | The usage operation of the instance. For more information, see For more+    -- information, see+    -- <https://docs.aws.amazon.com/license-manager/latest/userguide/linux-subscriptions-usage-operation.html Usage operation values>+    -- in the /License Manager User Guide/.+    usageOperation :: Prelude.Maybe Prelude.Text+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'Instance' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'accountID', 'instance_accountID' - The account ID which owns the instance.+--+-- 'amiId', 'instance_amiId' - The AMI ID used to launch the instance.+--+-- 'instanceID', 'instance_instanceID' - The instance ID of the resource.+--+-- 'instanceType', 'instance_instanceType' - The instance type of the resource.+--+-- 'lastUpdatedTime', 'instance_lastUpdatedTime' - The time in which the last discovery updated the instance details.+--+-- 'productCode', 'instance_productCode' - The product code for the instance. For more information, see+-- <https://docs.aws.amazon.com/license-manager/latest/userguide/linux-subscriptions-usage-operation.html Usage operation values>+-- in the /License Manager User Guide/ .+--+-- 'region', 'instance_region' - The Region the instance is running in.+--+-- 'status', 'instance_status' - The status of the instance.+--+-- 'subscriptionName', 'instance_subscriptionName' - The name of the subscription being used by the instance.+--+-- 'usageOperation', 'instance_usageOperation' - The usage operation of the instance. For more information, see For more+-- information, see+-- <https://docs.aws.amazon.com/license-manager/latest/userguide/linux-subscriptions-usage-operation.html Usage operation values>+-- in the /License Manager User Guide/.+newInstance ::+  Instance+newInstance =+  Instance'+    { accountID = Prelude.Nothing,+      amiId = Prelude.Nothing,+      instanceID = Prelude.Nothing,+      instanceType = Prelude.Nothing,+      lastUpdatedTime = Prelude.Nothing,+      productCode = Prelude.Nothing,+      region = Prelude.Nothing,+      status = Prelude.Nothing,+      subscriptionName = Prelude.Nothing,+      usageOperation = Prelude.Nothing+    }++-- | The account ID which owns the instance.+instance_accountID :: Lens.Lens' Instance (Prelude.Maybe Prelude.Text)+instance_accountID = Lens.lens (\Instance' {accountID} -> accountID) (\s@Instance' {} a -> s {accountID = a} :: Instance)++-- | The AMI ID used to launch the instance.+instance_amiId :: Lens.Lens' Instance (Prelude.Maybe Prelude.Text)+instance_amiId = Lens.lens (\Instance' {amiId} -> amiId) (\s@Instance' {} a -> s {amiId = a} :: Instance)++-- | The instance ID of the resource.+instance_instanceID :: Lens.Lens' Instance (Prelude.Maybe Prelude.Text)+instance_instanceID = Lens.lens (\Instance' {instanceID} -> instanceID) (\s@Instance' {} a -> s {instanceID = a} :: Instance)++-- | The instance type of the resource.+instance_instanceType :: Lens.Lens' Instance (Prelude.Maybe Prelude.Text)+instance_instanceType = Lens.lens (\Instance' {instanceType} -> instanceType) (\s@Instance' {} a -> s {instanceType = a} :: Instance)++-- | The time in which the last discovery updated the instance details.+instance_lastUpdatedTime :: Lens.Lens' Instance (Prelude.Maybe Prelude.Text)+instance_lastUpdatedTime = Lens.lens (\Instance' {lastUpdatedTime} -> lastUpdatedTime) (\s@Instance' {} a -> s {lastUpdatedTime = a} :: Instance)++-- | The product code for the instance. For more information, see+-- <https://docs.aws.amazon.com/license-manager/latest/userguide/linux-subscriptions-usage-operation.html Usage operation values>+-- in the /License Manager User Guide/ .+instance_productCode :: Lens.Lens' Instance (Prelude.Maybe [Prelude.Text])+instance_productCode = Lens.lens (\Instance' {productCode} -> productCode) (\s@Instance' {} a -> s {productCode = a} :: Instance) Prelude.. Lens.mapping Lens.coerced++-- | The Region the instance is running in.+instance_region :: Lens.Lens' Instance (Prelude.Maybe Prelude.Text)+instance_region = Lens.lens (\Instance' {region} -> region) (\s@Instance' {} a -> s {region = a} :: Instance)++-- | The status of the instance.+instance_status :: Lens.Lens' Instance (Prelude.Maybe Prelude.Text)+instance_status = Lens.lens (\Instance' {status} -> status) (\s@Instance' {} a -> s {status = a} :: Instance)++-- | The name of the subscription being used by the instance.+instance_subscriptionName :: Lens.Lens' Instance (Prelude.Maybe Prelude.Text)+instance_subscriptionName = Lens.lens (\Instance' {subscriptionName} -> subscriptionName) (\s@Instance' {} a -> s {subscriptionName = a} :: Instance)++-- | The usage operation of the instance. For more information, see For more+-- information, see+-- <https://docs.aws.amazon.com/license-manager/latest/userguide/linux-subscriptions-usage-operation.html Usage operation values>+-- in the /License Manager User Guide/.+instance_usageOperation :: Lens.Lens' Instance (Prelude.Maybe Prelude.Text)+instance_usageOperation = Lens.lens (\Instance' {usageOperation} -> usageOperation) (\s@Instance' {} a -> s {usageOperation = a} :: Instance)++instance Data.FromJSON Instance where+  parseJSON =+    Data.withObject+      "Instance"+      ( \x ->+          Instance'+            Prelude.<$> (x Data..:? "AccountID")+            Prelude.<*> (x Data..:? "AmiId")+            Prelude.<*> (x Data..:? "InstanceID")+            Prelude.<*> (x Data..:? "InstanceType")+            Prelude.<*> (x Data..:? "LastUpdatedTime")+            Prelude.<*> (x Data..:? "ProductCode" Data..!= Prelude.mempty)+            Prelude.<*> (x Data..:? "Region")+            Prelude.<*> (x Data..:? "Status")+            Prelude.<*> (x Data..:? "SubscriptionName")+            Prelude.<*> (x Data..:? "UsageOperation")+      )++instance Prelude.Hashable Instance where+  hashWithSalt _salt Instance' {..} =+    _salt+      `Prelude.hashWithSalt` accountID+      `Prelude.hashWithSalt` amiId+      `Prelude.hashWithSalt` instanceID+      `Prelude.hashWithSalt` instanceType+      `Prelude.hashWithSalt` lastUpdatedTime+      `Prelude.hashWithSalt` productCode+      `Prelude.hashWithSalt` region+      `Prelude.hashWithSalt` status+      `Prelude.hashWithSalt` subscriptionName+      `Prelude.hashWithSalt` usageOperation++instance Prelude.NFData Instance where+  rnf Instance' {..} =+    Prelude.rnf accountID+      `Prelude.seq` Prelude.rnf amiId+      `Prelude.seq` Prelude.rnf instanceID+      `Prelude.seq` Prelude.rnf instanceType+      `Prelude.seq` Prelude.rnf lastUpdatedTime+      `Prelude.seq` Prelude.rnf productCode+      `Prelude.seq` Prelude.rnf region+      `Prelude.seq` Prelude.rnf status+      `Prelude.seq` Prelude.rnf subscriptionName+      `Prelude.seq` Prelude.rnf usageOperation
+ gen/Amazonka/LicenseManagerLinuxSubscriptions/Types/LinuxSubscriptionsDiscovery.hs view
@@ -0,0 +1,71 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE GeneralizedNewtypeDeriving #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.LicenseManagerLinuxSubscriptions.Types.LinuxSubscriptionsDiscovery+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.LicenseManagerLinuxSubscriptions.Types.LinuxSubscriptionsDiscovery+  ( LinuxSubscriptionsDiscovery+      ( ..,+        LinuxSubscriptionsDiscovery_Disabled,+        LinuxSubscriptionsDiscovery_Enabled+      ),+  )+where++import qualified Amazonka.Core as Core+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude++newtype LinuxSubscriptionsDiscovery = LinuxSubscriptionsDiscovery'+  { fromLinuxSubscriptionsDiscovery ::+      Data.Text+  }+  deriving stock+    ( Prelude.Show,+      Prelude.Read,+      Prelude.Eq,+      Prelude.Ord,+      Prelude.Generic+    )+  deriving newtype+    ( Prelude.Hashable,+      Prelude.NFData,+      Data.FromText,+      Data.ToText,+      Data.ToByteString,+      Data.ToLog,+      Data.ToHeader,+      Data.ToQuery,+      Data.FromJSON,+      Data.FromJSONKey,+      Data.ToJSON,+      Data.ToJSONKey,+      Data.FromXML,+      Data.ToXML+    )++pattern LinuxSubscriptionsDiscovery_Disabled :: LinuxSubscriptionsDiscovery+pattern LinuxSubscriptionsDiscovery_Disabled = LinuxSubscriptionsDiscovery' "Disabled"++pattern LinuxSubscriptionsDiscovery_Enabled :: LinuxSubscriptionsDiscovery+pattern LinuxSubscriptionsDiscovery_Enabled = LinuxSubscriptionsDiscovery' "Enabled"++{-# COMPLETE+  LinuxSubscriptionsDiscovery_Disabled,+  LinuxSubscriptionsDiscovery_Enabled,+  LinuxSubscriptionsDiscovery'+  #-}
+ gen/Amazonka/LicenseManagerLinuxSubscriptions/Types/LinuxSubscriptionsDiscoverySettings.hs view
@@ -0,0 +1,123 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.LicenseManagerLinuxSubscriptions.Types.LinuxSubscriptionsDiscoverySettings+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.LicenseManagerLinuxSubscriptions.Types.LinuxSubscriptionsDiscoverySettings where++import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import Amazonka.LicenseManagerLinuxSubscriptions.Types.OrganizationIntegration+import qualified Amazonka.Prelude as Prelude++-- | Lists the settings defined for discovering Linux subscriptions.+--+-- /See:/ 'newLinuxSubscriptionsDiscoverySettings' smart constructor.+data LinuxSubscriptionsDiscoverySettings = LinuxSubscriptionsDiscoverySettings'+  { -- | Details if you have enabled resource discovery across your accounts in+    -- Organizations.+    organizationIntegration :: OrganizationIntegration,+    -- | The Regions in which to discover data for Linux subscriptions.+    sourceRegions :: Prelude.NonEmpty Prelude.Text+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'LinuxSubscriptionsDiscoverySettings' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'organizationIntegration', 'linuxSubscriptionsDiscoverySettings_organizationIntegration' - Details if you have enabled resource discovery across your accounts in+-- Organizations.+--+-- 'sourceRegions', 'linuxSubscriptionsDiscoverySettings_sourceRegions' - The Regions in which to discover data for Linux subscriptions.+newLinuxSubscriptionsDiscoverySettings ::+  -- | 'organizationIntegration'+  OrganizationIntegration ->+  -- | 'sourceRegions'+  Prelude.NonEmpty Prelude.Text ->+  LinuxSubscriptionsDiscoverySettings+newLinuxSubscriptionsDiscoverySettings+  pOrganizationIntegration_+  pSourceRegions_ =+    LinuxSubscriptionsDiscoverySettings'+      { organizationIntegration =+          pOrganizationIntegration_,+        sourceRegions =+          Lens.coerced Lens.# pSourceRegions_+      }++-- | Details if you have enabled resource discovery across your accounts in+-- Organizations.+linuxSubscriptionsDiscoverySettings_organizationIntegration :: Lens.Lens' LinuxSubscriptionsDiscoverySettings OrganizationIntegration+linuxSubscriptionsDiscoverySettings_organizationIntegration = Lens.lens (\LinuxSubscriptionsDiscoverySettings' {organizationIntegration} -> organizationIntegration) (\s@LinuxSubscriptionsDiscoverySettings' {} a -> s {organizationIntegration = a} :: LinuxSubscriptionsDiscoverySettings)++-- | The Regions in which to discover data for Linux subscriptions.+linuxSubscriptionsDiscoverySettings_sourceRegions :: Lens.Lens' LinuxSubscriptionsDiscoverySettings (Prelude.NonEmpty Prelude.Text)+linuxSubscriptionsDiscoverySettings_sourceRegions = Lens.lens (\LinuxSubscriptionsDiscoverySettings' {sourceRegions} -> sourceRegions) (\s@LinuxSubscriptionsDiscoverySettings' {} a -> s {sourceRegions = a} :: LinuxSubscriptionsDiscoverySettings) Prelude.. Lens.coerced++instance+  Data.FromJSON+    LinuxSubscriptionsDiscoverySettings+  where+  parseJSON =+    Data.withObject+      "LinuxSubscriptionsDiscoverySettings"+      ( \x ->+          LinuxSubscriptionsDiscoverySettings'+            Prelude.<$> (x Data..: "OrganizationIntegration")+            Prelude.<*> (x Data..: "SourceRegions")+      )++instance+  Prelude.Hashable+    LinuxSubscriptionsDiscoverySettings+  where+  hashWithSalt+    _salt+    LinuxSubscriptionsDiscoverySettings' {..} =+      _salt+        `Prelude.hashWithSalt` organizationIntegration+        `Prelude.hashWithSalt` sourceRegions++instance+  Prelude.NFData+    LinuxSubscriptionsDiscoverySettings+  where+  rnf LinuxSubscriptionsDiscoverySettings' {..} =+    Prelude.rnf organizationIntegration+      `Prelude.seq` Prelude.rnf sourceRegions++instance+  Data.ToJSON+    LinuxSubscriptionsDiscoverySettings+  where+  toJSON LinuxSubscriptionsDiscoverySettings' {..} =+    Data.object+      ( Prelude.catMaybes+          [ Prelude.Just+              ( "OrganizationIntegration"+                  Data..= organizationIntegration+              ),+            Prelude.Just+              ("SourceRegions" Data..= sourceRegions)+          ]+      )
+ gen/Amazonka/LicenseManagerLinuxSubscriptions/Types/Operator.hs view
@@ -0,0 +1,76 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE GeneralizedNewtypeDeriving #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.LicenseManagerLinuxSubscriptions.Types.Operator+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.LicenseManagerLinuxSubscriptions.Types.Operator+  ( Operator+      ( ..,+        Operator_Contains,+        Operator_Equal,+        Operator_NotEqual+      ),+  )+where++import qualified Amazonka.Core as Core+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude++newtype Operator = Operator'+  { fromOperator ::+      Data.Text+  }+  deriving stock+    ( Prelude.Show,+      Prelude.Read,+      Prelude.Eq,+      Prelude.Ord,+      Prelude.Generic+    )+  deriving newtype+    ( Prelude.Hashable,+      Prelude.NFData,+      Data.FromText,+      Data.ToText,+      Data.ToByteString,+      Data.ToLog,+      Data.ToHeader,+      Data.ToQuery,+      Data.FromJSON,+      Data.FromJSONKey,+      Data.ToJSON,+      Data.ToJSONKey,+      Data.FromXML,+      Data.ToXML+    )++pattern Operator_Contains :: Operator+pattern Operator_Contains = Operator' "Contains"++pattern Operator_Equal :: Operator+pattern Operator_Equal = Operator' "Equal"++pattern Operator_NotEqual :: Operator+pattern Operator_NotEqual = Operator' "NotEqual"++{-# COMPLETE+  Operator_Contains,+  Operator_Equal,+  Operator_NotEqual,+  Operator'+  #-}
+ gen/Amazonka/LicenseManagerLinuxSubscriptions/Types/OrganizationIntegration.hs view
@@ -0,0 +1,71 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE GeneralizedNewtypeDeriving #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.LicenseManagerLinuxSubscriptions.Types.OrganizationIntegration+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.LicenseManagerLinuxSubscriptions.Types.OrganizationIntegration+  ( OrganizationIntegration+      ( ..,+        OrganizationIntegration_Disabled,+        OrganizationIntegration_Enabled+      ),+  )+where++import qualified Amazonka.Core as Core+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude++newtype OrganizationIntegration = OrganizationIntegration'+  { fromOrganizationIntegration ::+      Data.Text+  }+  deriving stock+    ( Prelude.Show,+      Prelude.Read,+      Prelude.Eq,+      Prelude.Ord,+      Prelude.Generic+    )+  deriving newtype+    ( Prelude.Hashable,+      Prelude.NFData,+      Data.FromText,+      Data.ToText,+      Data.ToByteString,+      Data.ToLog,+      Data.ToHeader,+      Data.ToQuery,+      Data.FromJSON,+      Data.FromJSONKey,+      Data.ToJSON,+      Data.ToJSONKey,+      Data.FromXML,+      Data.ToXML+    )++pattern OrganizationIntegration_Disabled :: OrganizationIntegration+pattern OrganizationIntegration_Disabled = OrganizationIntegration' "Disabled"++pattern OrganizationIntegration_Enabled :: OrganizationIntegration+pattern OrganizationIntegration_Enabled = OrganizationIntegration' "Enabled"++{-# COMPLETE+  OrganizationIntegration_Disabled,+  OrganizationIntegration_Enabled,+  OrganizationIntegration'+  #-}
+ gen/Amazonka/LicenseManagerLinuxSubscriptions/Types/Status.hs view
@@ -0,0 +1,78 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE GeneralizedNewtypeDeriving #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.LicenseManagerLinuxSubscriptions.Types.Status+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.LicenseManagerLinuxSubscriptions.Types.Status+  ( Status+      ( ..,+        Status_Completed,+        Status_Failed,+        Status_InProgress,+        Status_Successful+      ),+  )+where++import qualified Amazonka.Core as Core+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude++newtype Status = Status' {fromStatus :: Data.Text}+  deriving stock+    ( Prelude.Show,+      Prelude.Read,+      Prelude.Eq,+      Prelude.Ord,+      Prelude.Generic+    )+  deriving newtype+    ( Prelude.Hashable,+      Prelude.NFData,+      Data.FromText,+      Data.ToText,+      Data.ToByteString,+      Data.ToLog,+      Data.ToHeader,+      Data.ToQuery,+      Data.FromJSON,+      Data.FromJSONKey,+      Data.ToJSON,+      Data.ToJSONKey,+      Data.FromXML,+      Data.ToXML+    )++pattern Status_Completed :: Status+pattern Status_Completed = Status' "Completed"++pattern Status_Failed :: Status+pattern Status_Failed = Status' "Failed"++pattern Status_InProgress :: Status+pattern Status_InProgress = Status' "InProgress"++pattern Status_Successful :: Status+pattern Status_Successful = Status' "Successful"++{-# COMPLETE+  Status_Completed,+  Status_Failed,+  Status_InProgress,+  Status_Successful,+  Status'+  #-}
+ gen/Amazonka/LicenseManagerLinuxSubscriptions/Types/Subscription.hs view
@@ -0,0 +1,108 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.LicenseManagerLinuxSubscriptions.Types.Subscription+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.LicenseManagerLinuxSubscriptions.Types.Subscription where++import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude++-- | An object which details a discovered Linux subscription.+--+-- /See:/ 'newSubscription' smart constructor.+data Subscription = Subscription'+  { -- | The total amount of running instances using this subscription.+    instanceCount :: Prelude.Maybe Prelude.Integer,+    -- | The name of the subscription.+    name :: Prelude.Maybe Prelude.Text,+    -- | The type of subscription. The type can be subscription-included with+    -- Amazon EC2, Bring Your Own Subscription model (BYOS), or from the Amazon+    -- Web Services Marketplace. Certain subscriptions may use licensing from+    -- the Amazon Web Services Marketplace as well as OS licensing from Amazon+    -- EC2 or BYOS.+    type' :: Prelude.Maybe Prelude.Text+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'Subscription' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'instanceCount', 'subscription_instanceCount' - The total amount of running instances using this subscription.+--+-- 'name', 'subscription_name' - The name of the subscription.+--+-- 'type'', 'subscription_type' - The type of subscription. The type can be subscription-included with+-- Amazon EC2, Bring Your Own Subscription model (BYOS), or from the Amazon+-- Web Services Marketplace. Certain subscriptions may use licensing from+-- the Amazon Web Services Marketplace as well as OS licensing from Amazon+-- EC2 or BYOS.+newSubscription ::+  Subscription+newSubscription =+  Subscription'+    { instanceCount = Prelude.Nothing,+      name = Prelude.Nothing,+      type' = Prelude.Nothing+    }++-- | The total amount of running instances using this subscription.+subscription_instanceCount :: Lens.Lens' Subscription (Prelude.Maybe Prelude.Integer)+subscription_instanceCount = Lens.lens (\Subscription' {instanceCount} -> instanceCount) (\s@Subscription' {} a -> s {instanceCount = a} :: Subscription)++-- | The name of the subscription.+subscription_name :: Lens.Lens' Subscription (Prelude.Maybe Prelude.Text)+subscription_name = Lens.lens (\Subscription' {name} -> name) (\s@Subscription' {} a -> s {name = a} :: Subscription)++-- | The type of subscription. The type can be subscription-included with+-- Amazon EC2, Bring Your Own Subscription model (BYOS), or from the Amazon+-- Web Services Marketplace. Certain subscriptions may use licensing from+-- the Amazon Web Services Marketplace as well as OS licensing from Amazon+-- EC2 or BYOS.+subscription_type :: Lens.Lens' Subscription (Prelude.Maybe Prelude.Text)+subscription_type = Lens.lens (\Subscription' {type'} -> type') (\s@Subscription' {} a -> s {type' = a} :: Subscription)++instance Data.FromJSON Subscription where+  parseJSON =+    Data.withObject+      "Subscription"+      ( \x ->+          Subscription'+            Prelude.<$> (x Data..:? "InstanceCount")+            Prelude.<*> (x Data..:? "Name")+            Prelude.<*> (x Data..:? "Type")+      )++instance Prelude.Hashable Subscription where+  hashWithSalt _salt Subscription' {..} =+    _salt+      `Prelude.hashWithSalt` instanceCount+      `Prelude.hashWithSalt` name+      `Prelude.hashWithSalt` type'++instance Prelude.NFData Subscription where+  rnf Subscription' {..} =+    Prelude.rnf instanceCount+      `Prelude.seq` Prelude.rnf name+      `Prelude.seq` Prelude.rnf type'
+ gen/Amazonka/LicenseManagerLinuxSubscriptions/UpdateServiceSettings.hs view
@@ -0,0 +1,283 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.LicenseManagerLinuxSubscriptions.UpdateServiceSettings+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Updates the service settings for Linux subscriptions.+module Amazonka.LicenseManagerLinuxSubscriptions.UpdateServiceSettings+  ( -- * Creating a Request+    UpdateServiceSettings (..),+    newUpdateServiceSettings,++    -- * Request Lenses+    updateServiceSettings_allowUpdate,+    updateServiceSettings_linuxSubscriptionsDiscovery,+    updateServiceSettings_linuxSubscriptionsDiscoverySettings,++    -- * Destructuring the Response+    UpdateServiceSettingsResponse (..),+    newUpdateServiceSettingsResponse,++    -- * Response Lenses+    updateServiceSettingsResponse_homeRegions,+    updateServiceSettingsResponse_linuxSubscriptionsDiscovery,+    updateServiceSettingsResponse_linuxSubscriptionsDiscoverySettings,+    updateServiceSettingsResponse_status,+    updateServiceSettingsResponse_statusMessage,+    updateServiceSettingsResponse_httpStatus,+  )+where++import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import Amazonka.LicenseManagerLinuxSubscriptions.Types+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Request as Request+import qualified Amazonka.Response as Response++-- | /See:/ 'newUpdateServiceSettings' smart constructor.+data UpdateServiceSettings = UpdateServiceSettings'+  { -- | Describes if updates are allowed to the service settings for Linux+    -- subscriptions. If you allow updates, you can aggregate Linux+    -- subscription data in more than one home Region.+    allowUpdate :: Prelude.Maybe Prelude.Bool,+    -- | Describes if the discovery of Linux subscriptions is enabled.+    linuxSubscriptionsDiscovery :: LinuxSubscriptionsDiscovery,+    -- | The settings defined for Linux subscriptions discovery. The settings+    -- include if Organizations integration has been enabled, and which Regions+    -- data will be aggregated from.+    linuxSubscriptionsDiscoverySettings :: LinuxSubscriptionsDiscoverySettings+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'UpdateServiceSettings' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'allowUpdate', 'updateServiceSettings_allowUpdate' - Describes if updates are allowed to the service settings for Linux+-- subscriptions. If you allow updates, you can aggregate Linux+-- subscription data in more than one home Region.+--+-- 'linuxSubscriptionsDiscovery', 'updateServiceSettings_linuxSubscriptionsDiscovery' - Describes if the discovery of Linux subscriptions is enabled.+--+-- 'linuxSubscriptionsDiscoverySettings', 'updateServiceSettings_linuxSubscriptionsDiscoverySettings' - The settings defined for Linux subscriptions discovery. The settings+-- include if Organizations integration has been enabled, and which Regions+-- data will be aggregated from.+newUpdateServiceSettings ::+  -- | 'linuxSubscriptionsDiscovery'+  LinuxSubscriptionsDiscovery ->+  -- | 'linuxSubscriptionsDiscoverySettings'+  LinuxSubscriptionsDiscoverySettings ->+  UpdateServiceSettings+newUpdateServiceSettings+  pLinuxSubscriptionsDiscovery_+  pLinuxSubscriptionsDiscoverySettings_ =+    UpdateServiceSettings'+      { allowUpdate =+          Prelude.Nothing,+        linuxSubscriptionsDiscovery =+          pLinuxSubscriptionsDiscovery_,+        linuxSubscriptionsDiscoverySettings =+          pLinuxSubscriptionsDiscoverySettings_+      }++-- | Describes if updates are allowed to the service settings for Linux+-- subscriptions. If you allow updates, you can aggregate Linux+-- subscription data in more than one home Region.+updateServiceSettings_allowUpdate :: Lens.Lens' UpdateServiceSettings (Prelude.Maybe Prelude.Bool)+updateServiceSettings_allowUpdate = Lens.lens (\UpdateServiceSettings' {allowUpdate} -> allowUpdate) (\s@UpdateServiceSettings' {} a -> s {allowUpdate = a} :: UpdateServiceSettings)++-- | Describes if the discovery of Linux subscriptions is enabled.+updateServiceSettings_linuxSubscriptionsDiscovery :: Lens.Lens' UpdateServiceSettings LinuxSubscriptionsDiscovery+updateServiceSettings_linuxSubscriptionsDiscovery = Lens.lens (\UpdateServiceSettings' {linuxSubscriptionsDiscovery} -> linuxSubscriptionsDiscovery) (\s@UpdateServiceSettings' {} a -> s {linuxSubscriptionsDiscovery = a} :: UpdateServiceSettings)++-- | The settings defined for Linux subscriptions discovery. The settings+-- include if Organizations integration has been enabled, and which Regions+-- data will be aggregated from.+updateServiceSettings_linuxSubscriptionsDiscoverySettings :: Lens.Lens' UpdateServiceSettings LinuxSubscriptionsDiscoverySettings+updateServiceSettings_linuxSubscriptionsDiscoverySettings = Lens.lens (\UpdateServiceSettings' {linuxSubscriptionsDiscoverySettings} -> linuxSubscriptionsDiscoverySettings) (\s@UpdateServiceSettings' {} a -> s {linuxSubscriptionsDiscoverySettings = a} :: UpdateServiceSettings)++instance Core.AWSRequest UpdateServiceSettings where+  type+    AWSResponse UpdateServiceSettings =+      UpdateServiceSettingsResponse+  request overrides =+    Request.postJSON (overrides defaultService)+  response =+    Response.receiveJSON+      ( \s h x ->+          UpdateServiceSettingsResponse'+            Prelude.<$> (x Data..?> "HomeRegions")+            Prelude.<*> (x Data..?> "LinuxSubscriptionsDiscovery")+            Prelude.<*> (x Data..?> "LinuxSubscriptionsDiscoverySettings")+            Prelude.<*> (x Data..?> "Status")+            Prelude.<*> (x Data..?> "StatusMessage" Core..!@ Prelude.mempty)+            Prelude.<*> (Prelude.pure (Prelude.fromEnum s))+      )++instance Prelude.Hashable UpdateServiceSettings where+  hashWithSalt _salt UpdateServiceSettings' {..} =+    _salt+      `Prelude.hashWithSalt` allowUpdate+      `Prelude.hashWithSalt` linuxSubscriptionsDiscovery+      `Prelude.hashWithSalt` linuxSubscriptionsDiscoverySettings++instance Prelude.NFData UpdateServiceSettings where+  rnf UpdateServiceSettings' {..} =+    Prelude.rnf allowUpdate+      `Prelude.seq` Prelude.rnf linuxSubscriptionsDiscovery+      `Prelude.seq` Prelude.rnf linuxSubscriptionsDiscoverySettings++instance Data.ToHeaders UpdateServiceSettings where+  toHeaders =+    Prelude.const+      ( Prelude.mconcat+          [ "Content-Type"+              Data.=# ( "application/x-amz-json-1.1" ::+                          Prelude.ByteString+                      )+          ]+      )++instance Data.ToJSON UpdateServiceSettings where+  toJSON UpdateServiceSettings' {..} =+    Data.object+      ( Prelude.catMaybes+          [ ("AllowUpdate" Data..=) Prelude.<$> allowUpdate,+            Prelude.Just+              ( "LinuxSubscriptionsDiscovery"+                  Data..= linuxSubscriptionsDiscovery+              ),+            Prelude.Just+              ( "LinuxSubscriptionsDiscoverySettings"+                  Data..= linuxSubscriptionsDiscoverySettings+              )+          ]+      )++instance Data.ToPath UpdateServiceSettings where+  toPath =+    Prelude.const "/subscription/UpdateServiceSettings"++instance Data.ToQuery UpdateServiceSettings where+  toQuery = Prelude.const Prelude.mempty++-- | /See:/ 'newUpdateServiceSettingsResponse' smart constructor.+data UpdateServiceSettingsResponse = UpdateServiceSettingsResponse'+  { -- | The Region in which License Manager displays the aggregated data for+    -- Linux subscriptions.+    homeRegions :: Prelude.Maybe (Prelude.NonEmpty Prelude.Text),+    -- | Lists if discovery has been enabled for Linux subscriptions.+    linuxSubscriptionsDiscovery :: Prelude.Maybe LinuxSubscriptionsDiscovery,+    -- | The settings defined for Linux subscriptions discovery. The settings+    -- include if Organizations integration has been enabled, and which Regions+    -- data will be aggregated from.+    linuxSubscriptionsDiscoverySettings :: Prelude.Maybe LinuxSubscriptionsDiscoverySettings,+    -- | Indicates the status of Linux subscriptions settings being applied.+    status :: Prelude.Maybe Status,+    -- | A message which details the Linux subscriptions service settings current+    -- status.+    statusMessage :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),+    -- | The response's http status code.+    httpStatus :: Prelude.Int+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'UpdateServiceSettingsResponse' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'homeRegions', 'updateServiceSettingsResponse_homeRegions' - The Region in which License Manager displays the aggregated data for+-- Linux subscriptions.+--+-- 'linuxSubscriptionsDiscovery', 'updateServiceSettingsResponse_linuxSubscriptionsDiscovery' - Lists if discovery has been enabled for Linux subscriptions.+--+-- 'linuxSubscriptionsDiscoverySettings', 'updateServiceSettingsResponse_linuxSubscriptionsDiscoverySettings' - The settings defined for Linux subscriptions discovery. The settings+-- include if Organizations integration has been enabled, and which Regions+-- data will be aggregated from.+--+-- 'status', 'updateServiceSettingsResponse_status' - Indicates the status of Linux subscriptions settings being applied.+--+-- 'statusMessage', 'updateServiceSettingsResponse_statusMessage' - A message which details the Linux subscriptions service settings current+-- status.+--+-- 'httpStatus', 'updateServiceSettingsResponse_httpStatus' - The response's http status code.+newUpdateServiceSettingsResponse ::+  -- | 'httpStatus'+  Prelude.Int ->+  UpdateServiceSettingsResponse+newUpdateServiceSettingsResponse pHttpStatus_ =+  UpdateServiceSettingsResponse'+    { homeRegions =+        Prelude.Nothing,+      linuxSubscriptionsDiscovery =+        Prelude.Nothing,+      linuxSubscriptionsDiscoverySettings =+        Prelude.Nothing,+      status = Prelude.Nothing,+      statusMessage = Prelude.Nothing,+      httpStatus = pHttpStatus_+    }++-- | The Region in which License Manager displays the aggregated data for+-- Linux subscriptions.+updateServiceSettingsResponse_homeRegions :: Lens.Lens' UpdateServiceSettingsResponse (Prelude.Maybe (Prelude.NonEmpty Prelude.Text))+updateServiceSettingsResponse_homeRegions = Lens.lens (\UpdateServiceSettingsResponse' {homeRegions} -> homeRegions) (\s@UpdateServiceSettingsResponse' {} a -> s {homeRegions = a} :: UpdateServiceSettingsResponse) Prelude.. Lens.mapping Lens.coerced++-- | Lists if discovery has been enabled for Linux subscriptions.+updateServiceSettingsResponse_linuxSubscriptionsDiscovery :: Lens.Lens' UpdateServiceSettingsResponse (Prelude.Maybe LinuxSubscriptionsDiscovery)+updateServiceSettingsResponse_linuxSubscriptionsDiscovery = Lens.lens (\UpdateServiceSettingsResponse' {linuxSubscriptionsDiscovery} -> linuxSubscriptionsDiscovery) (\s@UpdateServiceSettingsResponse' {} a -> s {linuxSubscriptionsDiscovery = a} :: UpdateServiceSettingsResponse)++-- | The settings defined for Linux subscriptions discovery. The settings+-- include if Organizations integration has been enabled, and which Regions+-- data will be aggregated from.+updateServiceSettingsResponse_linuxSubscriptionsDiscoverySettings :: Lens.Lens' UpdateServiceSettingsResponse (Prelude.Maybe LinuxSubscriptionsDiscoverySettings)+updateServiceSettingsResponse_linuxSubscriptionsDiscoverySettings = Lens.lens (\UpdateServiceSettingsResponse' {linuxSubscriptionsDiscoverySettings} -> linuxSubscriptionsDiscoverySettings) (\s@UpdateServiceSettingsResponse' {} a -> s {linuxSubscriptionsDiscoverySettings = a} :: UpdateServiceSettingsResponse)++-- | Indicates the status of Linux subscriptions settings being applied.+updateServiceSettingsResponse_status :: Lens.Lens' UpdateServiceSettingsResponse (Prelude.Maybe Status)+updateServiceSettingsResponse_status = Lens.lens (\UpdateServiceSettingsResponse' {status} -> status) (\s@UpdateServiceSettingsResponse' {} a -> s {status = a} :: UpdateServiceSettingsResponse)++-- | A message which details the Linux subscriptions service settings current+-- status.+updateServiceSettingsResponse_statusMessage :: Lens.Lens' UpdateServiceSettingsResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))+updateServiceSettingsResponse_statusMessage = Lens.lens (\UpdateServiceSettingsResponse' {statusMessage} -> statusMessage) (\s@UpdateServiceSettingsResponse' {} a -> s {statusMessage = a} :: UpdateServiceSettingsResponse) Prelude.. Lens.mapping Lens.coerced++-- | The response's http status code.+updateServiceSettingsResponse_httpStatus :: Lens.Lens' UpdateServiceSettingsResponse Prelude.Int+updateServiceSettingsResponse_httpStatus = Lens.lens (\UpdateServiceSettingsResponse' {httpStatus} -> httpStatus) (\s@UpdateServiceSettingsResponse' {} a -> s {httpStatus = a} :: UpdateServiceSettingsResponse)++instance Prelude.NFData UpdateServiceSettingsResponse where+  rnf UpdateServiceSettingsResponse' {..} =+    Prelude.rnf homeRegions+      `Prelude.seq` Prelude.rnf linuxSubscriptionsDiscovery+      `Prelude.seq` Prelude.rnf linuxSubscriptionsDiscoverySettings+      `Prelude.seq` Prelude.rnf status+      `Prelude.seq` Prelude.rnf statusMessage+      `Prelude.seq` Prelude.rnf httpStatus
+ gen/Amazonka/LicenseManagerLinuxSubscriptions/Waiters.hs view
@@ -0,0 +1,24 @@+{-# LANGUAGE DisambiguateRecordFields #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.LicenseManagerLinuxSubscriptions.Waiters+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.LicenseManagerLinuxSubscriptions.Waiters where++import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import Amazonka.LicenseManagerLinuxSubscriptions.Lens+import Amazonka.LicenseManagerLinuxSubscriptions.Types+import qualified Amazonka.Prelude as Prelude
+ src/.gitkeep view
+ test/Main.hs view
@@ -0,0 +1,23 @@+{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- |+-- Module      : Main+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+module Main (main) where++import Test.Amazonka.LicenseManagerLinuxSubscriptions+import Test.Amazonka.LicenseManagerLinuxSubscriptions.Internal+import Test.Tasty++main :: IO ()+main =+  defaultMain $+    testGroup+      "LicenseManagerLinuxSubscriptions"+      [ testGroup "tests" tests,+        testGroup "fixtures" fixtures+      ]
+ test/Test/Amazonka/Gen/LicenseManagerLinuxSubscriptions.hs view
@@ -0,0 +1,118 @@+{-# OPTIONS_GHC -fno-warn-orphans #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Test.Amazonka.Gen.LicenseManagerLinuxSubscriptions+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+module Test.Amazonka.Gen.LicenseManagerLinuxSubscriptions where++import Amazonka.LicenseManagerLinuxSubscriptions+import qualified Data.Proxy as Proxy+import Test.Amazonka.Fixture+import Test.Amazonka.LicenseManagerLinuxSubscriptions.Internal+import Test.Amazonka.Prelude+import Test.Tasty++-- Auto-generated: the actual test selection needs to be manually placed into+-- the top-level so that real test data can be incrementally added.+--+-- This commented snippet is what the entire set should look like:++-- fixtures :: TestTree+-- fixtures =+--     [ testGroup "request"+--         [ requestGetServiceSettings $+--             newGetServiceSettings+--+--         , requestListLinuxSubscriptionInstances $+--             newListLinuxSubscriptionInstances+--+--         , requestListLinuxSubscriptions $+--             newListLinuxSubscriptions+--+--         , requestUpdateServiceSettings $+--             newUpdateServiceSettings+--+--           ]++--     , testGroup "response"+--         [ responseGetServiceSettings $+--             newGetServiceSettingsResponse+--+--         , responseListLinuxSubscriptionInstances $+--             newListLinuxSubscriptionInstancesResponse+--+--         , responseListLinuxSubscriptions $+--             newListLinuxSubscriptionsResponse+--+--         , responseUpdateServiceSettings $+--             newUpdateServiceSettingsResponse+--+--           ]+--     ]++-- Requests++requestGetServiceSettings :: GetServiceSettings -> TestTree+requestGetServiceSettings =+  req+    "GetServiceSettings"+    "fixture/GetServiceSettings.yaml"++requestListLinuxSubscriptionInstances :: ListLinuxSubscriptionInstances -> TestTree+requestListLinuxSubscriptionInstances =+  req+    "ListLinuxSubscriptionInstances"+    "fixture/ListLinuxSubscriptionInstances.yaml"++requestListLinuxSubscriptions :: ListLinuxSubscriptions -> TestTree+requestListLinuxSubscriptions =+  req+    "ListLinuxSubscriptions"+    "fixture/ListLinuxSubscriptions.yaml"++requestUpdateServiceSettings :: UpdateServiceSettings -> TestTree+requestUpdateServiceSettings =+  req+    "UpdateServiceSettings"+    "fixture/UpdateServiceSettings.yaml"++-- Responses++responseGetServiceSettings :: GetServiceSettingsResponse -> TestTree+responseGetServiceSettings =+  res+    "GetServiceSettingsResponse"+    "fixture/GetServiceSettingsResponse.proto"+    defaultService+    (Proxy.Proxy :: Proxy.Proxy GetServiceSettings)++responseListLinuxSubscriptionInstances :: ListLinuxSubscriptionInstancesResponse -> TestTree+responseListLinuxSubscriptionInstances =+  res+    "ListLinuxSubscriptionInstancesResponse"+    "fixture/ListLinuxSubscriptionInstancesResponse.proto"+    defaultService+    (Proxy.Proxy :: Proxy.Proxy ListLinuxSubscriptionInstances)++responseListLinuxSubscriptions :: ListLinuxSubscriptionsResponse -> TestTree+responseListLinuxSubscriptions =+  res+    "ListLinuxSubscriptionsResponse"+    "fixture/ListLinuxSubscriptionsResponse.proto"+    defaultService+    (Proxy.Proxy :: Proxy.Proxy ListLinuxSubscriptions)++responseUpdateServiceSettings :: UpdateServiceSettingsResponse -> TestTree+responseUpdateServiceSettings =+  res+    "UpdateServiceSettingsResponse"+    "fixture/UpdateServiceSettingsResponse.proto"+    defaultService+    (Proxy.Proxy :: Proxy.Proxy UpdateServiceSettings)
+ test/Test/Amazonka/LicenseManagerLinuxSubscriptions.hs view
@@ -0,0 +1,20 @@+-- |+-- Module      : Test.Amazonka.LicenseManagerLinuxSubscriptions+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+module Test.Amazonka.LicenseManagerLinuxSubscriptions+  ( tests,+    fixtures,+  )+where++import Test.Tasty (TestTree)++tests :: [TestTree]+tests = []++fixtures :: [TestTree]+fixtures = []
+ test/Test/Amazonka/LicenseManagerLinuxSubscriptions/Internal.hs view
@@ -0,0 +1,8 @@+-- |+-- Module      : Test.Amazonka.LicenseManagerLinuxSubscriptions.Internal+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+module Test.Amazonka.LicenseManagerLinuxSubscriptions.Internal where