{-# 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.LicenseManager.GetServiceSettings
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Gets the License Manager settings for the current Region.
module Amazonka.LicenseManager.GetServiceSettings
  ( -- * Creating a Request
    GetServiceSettings (..),
    newGetServiceSettings,

    -- * Destructuring the Response
    GetServiceSettingsResponse (..),
    newGetServiceSettingsResponse,

    -- * Response Lenses
    getServiceSettingsResponse_enableCrossAccountsDiscovery,
    getServiceSettingsResponse_snsTopicArn,
    getServiceSettingsResponse_licenseManagerResourceShareArn,
    getServiceSettingsResponse_s3BucketArn,
    getServiceSettingsResponse_organizationConfiguration,
    getServiceSettingsResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.LicenseManager.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 (GetServiceSettings -> GetServiceSettings -> Bool
(GetServiceSettings -> GetServiceSettings -> Bool)
-> (GetServiceSettings -> GetServiceSettings -> Bool)
-> Eq GetServiceSettings
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetServiceSettings -> GetServiceSettings -> Bool
$c/= :: GetServiceSettings -> GetServiceSettings -> Bool
== :: GetServiceSettings -> GetServiceSettings -> Bool
$c== :: GetServiceSettings -> GetServiceSettings -> Bool
Prelude.Eq, ReadPrec [GetServiceSettings]
ReadPrec GetServiceSettings
Int -> ReadS GetServiceSettings
ReadS [GetServiceSettings]
(Int -> ReadS GetServiceSettings)
-> ReadS [GetServiceSettings]
-> ReadPrec GetServiceSettings
-> ReadPrec [GetServiceSettings]
-> Read GetServiceSettings
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetServiceSettings]
$creadListPrec :: ReadPrec [GetServiceSettings]
readPrec :: ReadPrec GetServiceSettings
$creadPrec :: ReadPrec GetServiceSettings
readList :: ReadS [GetServiceSettings]
$creadList :: ReadS [GetServiceSettings]
readsPrec :: Int -> ReadS GetServiceSettings
$creadsPrec :: Int -> ReadS GetServiceSettings
Prelude.Read, Int -> GetServiceSettings -> ShowS
[GetServiceSettings] -> ShowS
GetServiceSettings -> String
(Int -> GetServiceSettings -> ShowS)
-> (GetServiceSettings -> String)
-> ([GetServiceSettings] -> ShowS)
-> Show GetServiceSettings
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetServiceSettings] -> ShowS
$cshowList :: [GetServiceSettings] -> ShowS
show :: GetServiceSettings -> String
$cshow :: GetServiceSettings -> String
showsPrec :: Int -> GetServiceSettings -> ShowS
$cshowsPrec :: Int -> GetServiceSettings -> ShowS
Prelude.Show, (forall x. GetServiceSettings -> Rep GetServiceSettings x)
-> (forall x. Rep GetServiceSettings x -> GetServiceSettings)
-> Generic GetServiceSettings
forall x. Rep GetServiceSettings x -> GetServiceSettings
forall x. GetServiceSettings -> Rep GetServiceSettings x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetServiceSettings x -> GetServiceSettings
$cfrom :: forall x. GetServiceSettings -> Rep GetServiceSettings x
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
newGetServiceSettings = GetServiceSettings
GetServiceSettings'

instance Core.AWSRequest GetServiceSettings where
  type
    AWSResponse GetServiceSettings =
      GetServiceSettingsResponse
  request :: GetServiceSettings -> Request GetServiceSettings
request = Service -> GetServiceSettings -> Request GetServiceSettings
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy GetServiceSettings
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse GetServiceSettings)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse GetServiceSettings))
-> Logger
-> Service
-> Proxy GetServiceSettings
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse GetServiceSettings)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
      ( \Int
s ResponseHeaders
h Object
x ->
          Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe OrganizationConfiguration
-> Int
-> GetServiceSettingsResponse
GetServiceSettingsResponse'
            (Maybe Bool
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe OrganizationConfiguration
 -> Int
 -> GetServiceSettingsResponse)
-> Either String (Maybe Bool)
-> Either
     String
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe OrganizationConfiguration
      -> Int
      -> GetServiceSettingsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe Bool)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"EnableCrossAccountsDiscovery")
            Either
  String
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe OrganizationConfiguration
   -> Int
   -> GetServiceSettingsResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Text
      -> Maybe Text
      -> Maybe OrganizationConfiguration
      -> Int
      -> GetServiceSettingsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"SnsTopicArn")
            Either
  String
  (Maybe Text
   -> Maybe Text
   -> Maybe OrganizationConfiguration
   -> Int
   -> GetServiceSettingsResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Text
      -> Maybe OrganizationConfiguration
      -> Int
      -> GetServiceSettingsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"LicenseManagerResourceShareArn")
            Either
  String
  (Maybe Text
   -> Maybe OrganizationConfiguration
   -> Int
   -> GetServiceSettingsResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe OrganizationConfiguration
      -> Int -> GetServiceSettingsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"S3BucketArn")
            Either
  String
  (Maybe OrganizationConfiguration
   -> Int -> GetServiceSettingsResponse)
-> Either String (Maybe OrganizationConfiguration)
-> Either String (Int -> GetServiceSettingsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe OrganizationConfiguration)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"OrganizationConfiguration")
            Either String (Int -> GetServiceSettingsResponse)
-> Either String Int -> Either String GetServiceSettingsResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
      )

instance Prelude.Hashable GetServiceSettings

instance Prelude.NFData GetServiceSettings

instance Core.ToHeaders GetServiceSettings where
  toHeaders :: GetServiceSettings -> ResponseHeaders
toHeaders =
    ResponseHeaders -> GetServiceSettings -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
      ( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"X-Amz-Target"
              HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"AWSLicenseManager.GetServiceSettings" ::
                          Prelude.ByteString
                      ),
            HeaderName
"Content-Type"
              HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
                          Prelude.ByteString
                      )
          ]
      )

instance Core.ToJSON GetServiceSettings where
  toJSON :: GetServiceSettings -> Value
toJSON = Value -> GetServiceSettings -> Value
forall a b. a -> b -> a
Prelude.const (Object -> Value
Core.Object Object
forall a. Monoid a => a
Prelude.mempty)

instance Core.ToPath GetServiceSettings where
  toPath :: GetServiceSettings -> ByteString
toPath = ByteString -> GetServiceSettings -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"

instance Core.ToQuery GetServiceSettings where
  toQuery :: GetServiceSettings -> QueryString
toQuery = QueryString -> GetServiceSettings -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty

-- | /See:/ 'newGetServiceSettingsResponse' smart constructor.
data GetServiceSettingsResponse = GetServiceSettingsResponse'
  { -- | Indicates whether cross-account discovery is enabled.
    GetServiceSettingsResponse -> Maybe Bool
enableCrossAccountsDiscovery :: Prelude.Maybe Prelude.Bool,
    -- | SNS topic configured to receive notifications from License Manager.
    GetServiceSettingsResponse -> Maybe Text
snsTopicArn :: Prelude.Maybe Prelude.Text,
    -- | Amazon Resource Name (ARN) of the resource share. The License Manager
    -- management account provides member accounts with access to this share.
    GetServiceSettingsResponse -> Maybe Text
licenseManagerResourceShareArn :: Prelude.Maybe Prelude.Text,
    -- | Regional S3 bucket path for storing reports, license trail event data,
    -- discovery data, and so on.
    GetServiceSettingsResponse -> Maybe Text
s3BucketArn :: Prelude.Maybe Prelude.Text,
    -- | Indicates whether Organizations is integrated with License Manager for
    -- cross-account discovery.
    GetServiceSettingsResponse -> Maybe OrganizationConfiguration
organizationConfiguration :: Prelude.Maybe OrganizationConfiguration,
    -- | The response's http status code.
    GetServiceSettingsResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (GetServiceSettingsResponse -> GetServiceSettingsResponse -> Bool
(GetServiceSettingsResponse -> GetServiceSettingsResponse -> Bool)
-> (GetServiceSettingsResponse
    -> GetServiceSettingsResponse -> Bool)
-> Eq GetServiceSettingsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetServiceSettingsResponse -> GetServiceSettingsResponse -> Bool
$c/= :: GetServiceSettingsResponse -> GetServiceSettingsResponse -> Bool
== :: GetServiceSettingsResponse -> GetServiceSettingsResponse -> Bool
$c== :: GetServiceSettingsResponse -> GetServiceSettingsResponse -> Bool
Prelude.Eq, ReadPrec [GetServiceSettingsResponse]
ReadPrec GetServiceSettingsResponse
Int -> ReadS GetServiceSettingsResponse
ReadS [GetServiceSettingsResponse]
(Int -> ReadS GetServiceSettingsResponse)
-> ReadS [GetServiceSettingsResponse]
-> ReadPrec GetServiceSettingsResponse
-> ReadPrec [GetServiceSettingsResponse]
-> Read GetServiceSettingsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetServiceSettingsResponse]
$creadListPrec :: ReadPrec [GetServiceSettingsResponse]
readPrec :: ReadPrec GetServiceSettingsResponse
$creadPrec :: ReadPrec GetServiceSettingsResponse
readList :: ReadS [GetServiceSettingsResponse]
$creadList :: ReadS [GetServiceSettingsResponse]
readsPrec :: Int -> ReadS GetServiceSettingsResponse
$creadsPrec :: Int -> ReadS GetServiceSettingsResponse
Prelude.Read, Int -> GetServiceSettingsResponse -> ShowS
[GetServiceSettingsResponse] -> ShowS
GetServiceSettingsResponse -> String
(Int -> GetServiceSettingsResponse -> ShowS)
-> (GetServiceSettingsResponse -> String)
-> ([GetServiceSettingsResponse] -> ShowS)
-> Show GetServiceSettingsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetServiceSettingsResponse] -> ShowS
$cshowList :: [GetServiceSettingsResponse] -> ShowS
show :: GetServiceSettingsResponse -> String
$cshow :: GetServiceSettingsResponse -> String
showsPrec :: Int -> GetServiceSettingsResponse -> ShowS
$cshowsPrec :: Int -> GetServiceSettingsResponse -> ShowS
Prelude.Show, (forall x.
 GetServiceSettingsResponse -> Rep GetServiceSettingsResponse x)
-> (forall x.
    Rep GetServiceSettingsResponse x -> GetServiceSettingsResponse)
-> Generic GetServiceSettingsResponse
forall x.
Rep GetServiceSettingsResponse x -> GetServiceSettingsResponse
forall x.
GetServiceSettingsResponse -> Rep GetServiceSettingsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetServiceSettingsResponse x -> GetServiceSettingsResponse
$cfrom :: forall x.
GetServiceSettingsResponse -> Rep GetServiceSettingsResponse x
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:
--
-- 'enableCrossAccountsDiscovery', 'getServiceSettingsResponse_enableCrossAccountsDiscovery' - Indicates whether cross-account discovery is enabled.
--
-- 'snsTopicArn', 'getServiceSettingsResponse_snsTopicArn' - SNS topic configured to receive notifications from License Manager.
--
-- 'licenseManagerResourceShareArn', 'getServiceSettingsResponse_licenseManagerResourceShareArn' - Amazon Resource Name (ARN) of the resource share. The License Manager
-- management account provides member accounts with access to this share.
--
-- 's3BucketArn', 'getServiceSettingsResponse_s3BucketArn' - Regional S3 bucket path for storing reports, license trail event data,
-- discovery data, and so on.
--
-- 'organizationConfiguration', 'getServiceSettingsResponse_organizationConfiguration' - Indicates whether Organizations is integrated with License Manager for
-- cross-account discovery.
--
-- 'httpStatus', 'getServiceSettingsResponse_httpStatus' - The response's http status code.
newGetServiceSettingsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  GetServiceSettingsResponse
newGetServiceSettingsResponse :: Int -> GetServiceSettingsResponse
newGetServiceSettingsResponse Int
pHttpStatus_ =
  GetServiceSettingsResponse' :: Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe OrganizationConfiguration
-> Int
-> GetServiceSettingsResponse
GetServiceSettingsResponse'
    { $sel:enableCrossAccountsDiscovery:GetServiceSettingsResponse' :: Maybe Bool
enableCrossAccountsDiscovery =
        Maybe Bool
forall a. Maybe a
Prelude.Nothing,
      $sel:snsTopicArn:GetServiceSettingsResponse' :: Maybe Text
snsTopicArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:licenseManagerResourceShareArn:GetServiceSettingsResponse' :: Maybe Text
licenseManagerResourceShareArn =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:s3BucketArn:GetServiceSettingsResponse' :: Maybe Text
s3BucketArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:organizationConfiguration:GetServiceSettingsResponse' :: Maybe OrganizationConfiguration
organizationConfiguration = Maybe OrganizationConfiguration
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:GetServiceSettingsResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | Indicates whether cross-account discovery is enabled.
getServiceSettingsResponse_enableCrossAccountsDiscovery :: Lens.Lens' GetServiceSettingsResponse (Prelude.Maybe Prelude.Bool)
getServiceSettingsResponse_enableCrossAccountsDiscovery :: (Maybe Bool -> f (Maybe Bool))
-> GetServiceSettingsResponse -> f GetServiceSettingsResponse
getServiceSettingsResponse_enableCrossAccountsDiscovery = (GetServiceSettingsResponse -> Maybe Bool)
-> (GetServiceSettingsResponse
    -> Maybe Bool -> GetServiceSettingsResponse)
-> Lens
     GetServiceSettingsResponse
     GetServiceSettingsResponse
     (Maybe Bool)
     (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetServiceSettingsResponse' {Maybe Bool
enableCrossAccountsDiscovery :: Maybe Bool
$sel:enableCrossAccountsDiscovery:GetServiceSettingsResponse' :: GetServiceSettingsResponse -> Maybe Bool
enableCrossAccountsDiscovery} -> Maybe Bool
enableCrossAccountsDiscovery) (\s :: GetServiceSettingsResponse
s@GetServiceSettingsResponse' {} Maybe Bool
a -> GetServiceSettingsResponse
s {$sel:enableCrossAccountsDiscovery:GetServiceSettingsResponse' :: Maybe Bool
enableCrossAccountsDiscovery = Maybe Bool
a} :: GetServiceSettingsResponse)

-- | SNS topic configured to receive notifications from License Manager.
getServiceSettingsResponse_snsTopicArn :: Lens.Lens' GetServiceSettingsResponse (Prelude.Maybe Prelude.Text)
getServiceSettingsResponse_snsTopicArn :: (Maybe Text -> f (Maybe Text))
-> GetServiceSettingsResponse -> f GetServiceSettingsResponse
getServiceSettingsResponse_snsTopicArn = (GetServiceSettingsResponse -> Maybe Text)
-> (GetServiceSettingsResponse
    -> Maybe Text -> GetServiceSettingsResponse)
-> Lens
     GetServiceSettingsResponse
     GetServiceSettingsResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetServiceSettingsResponse' {Maybe Text
snsTopicArn :: Maybe Text
$sel:snsTopicArn:GetServiceSettingsResponse' :: GetServiceSettingsResponse -> Maybe Text
snsTopicArn} -> Maybe Text
snsTopicArn) (\s :: GetServiceSettingsResponse
s@GetServiceSettingsResponse' {} Maybe Text
a -> GetServiceSettingsResponse
s {$sel:snsTopicArn:GetServiceSettingsResponse' :: Maybe Text
snsTopicArn = Maybe Text
a} :: GetServiceSettingsResponse)

-- | Amazon Resource Name (ARN) of the resource share. The License Manager
-- management account provides member accounts with access to this share.
getServiceSettingsResponse_licenseManagerResourceShareArn :: Lens.Lens' GetServiceSettingsResponse (Prelude.Maybe Prelude.Text)
getServiceSettingsResponse_licenseManagerResourceShareArn :: (Maybe Text -> f (Maybe Text))
-> GetServiceSettingsResponse -> f GetServiceSettingsResponse
getServiceSettingsResponse_licenseManagerResourceShareArn = (GetServiceSettingsResponse -> Maybe Text)
-> (GetServiceSettingsResponse
    -> Maybe Text -> GetServiceSettingsResponse)
-> Lens
     GetServiceSettingsResponse
     GetServiceSettingsResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetServiceSettingsResponse' {Maybe Text
licenseManagerResourceShareArn :: Maybe Text
$sel:licenseManagerResourceShareArn:GetServiceSettingsResponse' :: GetServiceSettingsResponse -> Maybe Text
licenseManagerResourceShareArn} -> Maybe Text
licenseManagerResourceShareArn) (\s :: GetServiceSettingsResponse
s@GetServiceSettingsResponse' {} Maybe Text
a -> GetServiceSettingsResponse
s {$sel:licenseManagerResourceShareArn:GetServiceSettingsResponse' :: Maybe Text
licenseManagerResourceShareArn = Maybe Text
a} :: GetServiceSettingsResponse)

-- | Regional S3 bucket path for storing reports, license trail event data,
-- discovery data, and so on.
getServiceSettingsResponse_s3BucketArn :: Lens.Lens' GetServiceSettingsResponse (Prelude.Maybe Prelude.Text)
getServiceSettingsResponse_s3BucketArn :: (Maybe Text -> f (Maybe Text))
-> GetServiceSettingsResponse -> f GetServiceSettingsResponse
getServiceSettingsResponse_s3BucketArn = (GetServiceSettingsResponse -> Maybe Text)
-> (GetServiceSettingsResponse
    -> Maybe Text -> GetServiceSettingsResponse)
-> Lens
     GetServiceSettingsResponse
     GetServiceSettingsResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetServiceSettingsResponse' {Maybe Text
s3BucketArn :: Maybe Text
$sel:s3BucketArn:GetServiceSettingsResponse' :: GetServiceSettingsResponse -> Maybe Text
s3BucketArn} -> Maybe Text
s3BucketArn) (\s :: GetServiceSettingsResponse
s@GetServiceSettingsResponse' {} Maybe Text
a -> GetServiceSettingsResponse
s {$sel:s3BucketArn:GetServiceSettingsResponse' :: Maybe Text
s3BucketArn = Maybe Text
a} :: GetServiceSettingsResponse)

-- | Indicates whether Organizations is integrated with License Manager for
-- cross-account discovery.
getServiceSettingsResponse_organizationConfiguration :: Lens.Lens' GetServiceSettingsResponse (Prelude.Maybe OrganizationConfiguration)
getServiceSettingsResponse_organizationConfiguration :: (Maybe OrganizationConfiguration
 -> f (Maybe OrganizationConfiguration))
-> GetServiceSettingsResponse -> f GetServiceSettingsResponse
getServiceSettingsResponse_organizationConfiguration = (GetServiceSettingsResponse -> Maybe OrganizationConfiguration)
-> (GetServiceSettingsResponse
    -> Maybe OrganizationConfiguration -> GetServiceSettingsResponse)
-> Lens
     GetServiceSettingsResponse
     GetServiceSettingsResponse
     (Maybe OrganizationConfiguration)
     (Maybe OrganizationConfiguration)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetServiceSettingsResponse' {Maybe OrganizationConfiguration
organizationConfiguration :: Maybe OrganizationConfiguration
$sel:organizationConfiguration:GetServiceSettingsResponse' :: GetServiceSettingsResponse -> Maybe OrganizationConfiguration
organizationConfiguration} -> Maybe OrganizationConfiguration
organizationConfiguration) (\s :: GetServiceSettingsResponse
s@GetServiceSettingsResponse' {} Maybe OrganizationConfiguration
a -> GetServiceSettingsResponse
s {$sel:organizationConfiguration:GetServiceSettingsResponse' :: Maybe OrganizationConfiguration
organizationConfiguration = Maybe OrganizationConfiguration
a} :: GetServiceSettingsResponse)

-- | The response's http status code.
getServiceSettingsResponse_httpStatus :: Lens.Lens' GetServiceSettingsResponse Prelude.Int
getServiceSettingsResponse_httpStatus :: (Int -> f Int)
-> GetServiceSettingsResponse -> f GetServiceSettingsResponse
getServiceSettingsResponse_httpStatus = (GetServiceSettingsResponse -> Int)
-> (GetServiceSettingsResponse
    -> Int -> GetServiceSettingsResponse)
-> Lens
     GetServiceSettingsResponse GetServiceSettingsResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetServiceSettingsResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetServiceSettingsResponse' :: GetServiceSettingsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetServiceSettingsResponse
s@GetServiceSettingsResponse' {} Int
a -> GetServiceSettingsResponse
s {$sel:httpStatus:GetServiceSettingsResponse' :: Int
httpStatus = Int
a} :: GetServiceSettingsResponse)

instance Prelude.NFData GetServiceSettingsResponse