{-# 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 #-}
module Amazonka.LicenseManager.Types.LicenseConfiguration where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.LicenseManager.Types.AutomatedDiscoveryInformation
import Amazonka.LicenseManager.Types.ConsumedLicenseSummary
import Amazonka.LicenseManager.Types.LicenseCountingType
import Amazonka.LicenseManager.Types.ManagedResourceSummary
import Amazonka.LicenseManager.Types.ProductInformation
import qualified Amazonka.Prelude as Prelude
data LicenseConfiguration = LicenseConfiguration'
{
LicenseConfiguration -> Maybe AutomatedDiscoveryInformation
automatedDiscoveryInformation :: Prelude.Maybe AutomatedDiscoveryInformation,
LicenseConfiguration -> Maybe [ConsumedLicenseSummary]
consumedLicenseSummaryList :: Prelude.Maybe [ConsumedLicenseSummary],
LicenseConfiguration -> Maybe Integer
consumedLicenses :: Prelude.Maybe Prelude.Integer,
LicenseConfiguration -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
LicenseConfiguration -> Maybe Bool
disassociateWhenNotFound :: Prelude.Maybe Prelude.Bool,
LicenseConfiguration -> Maybe Text
licenseConfigurationArn :: Prelude.Maybe Prelude.Text,
LicenseConfiguration -> Maybe Text
licenseConfigurationId :: Prelude.Maybe Prelude.Text,
LicenseConfiguration -> Maybe Integer
licenseCount :: Prelude.Maybe Prelude.Integer,
LicenseConfiguration -> Maybe Bool
licenseCountHardLimit :: Prelude.Maybe Prelude.Bool,
LicenseConfiguration -> Maybe LicenseCountingType
licenseCountingType :: Prelude.Maybe LicenseCountingType,
LicenseConfiguration -> Maybe [Text]
licenseRules :: Prelude.Maybe [Prelude.Text],
LicenseConfiguration -> Maybe [ManagedResourceSummary]
managedResourceSummaryList :: Prelude.Maybe [ManagedResourceSummary],
LicenseConfiguration -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
LicenseConfiguration -> Maybe Text
ownerAccountId :: Prelude.Maybe Prelude.Text,
LicenseConfiguration -> Maybe [ProductInformation]
productInformationList :: Prelude.Maybe [ProductInformation],
LicenseConfiguration -> Maybe Text
status :: Prelude.Maybe Prelude.Text
}
deriving (LicenseConfiguration -> LicenseConfiguration -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: LicenseConfiguration -> LicenseConfiguration -> Bool
$c/= :: LicenseConfiguration -> LicenseConfiguration -> Bool
== :: LicenseConfiguration -> LicenseConfiguration -> Bool
$c== :: LicenseConfiguration -> LicenseConfiguration -> Bool
Prelude.Eq, ReadPrec [LicenseConfiguration]
ReadPrec LicenseConfiguration
Int -> ReadS LicenseConfiguration
ReadS [LicenseConfiguration]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [LicenseConfiguration]
$creadListPrec :: ReadPrec [LicenseConfiguration]
readPrec :: ReadPrec LicenseConfiguration
$creadPrec :: ReadPrec LicenseConfiguration
readList :: ReadS [LicenseConfiguration]
$creadList :: ReadS [LicenseConfiguration]
readsPrec :: Int -> ReadS LicenseConfiguration
$creadsPrec :: Int -> ReadS LicenseConfiguration
Prelude.Read, Int -> LicenseConfiguration -> ShowS
[LicenseConfiguration] -> ShowS
LicenseConfiguration -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [LicenseConfiguration] -> ShowS
$cshowList :: [LicenseConfiguration] -> ShowS
show :: LicenseConfiguration -> String
$cshow :: LicenseConfiguration -> String
showsPrec :: Int -> LicenseConfiguration -> ShowS
$cshowsPrec :: Int -> LicenseConfiguration -> ShowS
Prelude.Show, forall x. Rep LicenseConfiguration x -> LicenseConfiguration
forall x. LicenseConfiguration -> Rep LicenseConfiguration x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep LicenseConfiguration x -> LicenseConfiguration
$cfrom :: forall x. LicenseConfiguration -> Rep LicenseConfiguration x
Prelude.Generic)
newLicenseConfiguration ::
LicenseConfiguration
newLicenseConfiguration :: LicenseConfiguration
newLicenseConfiguration =
LicenseConfiguration'
{ $sel:automatedDiscoveryInformation:LicenseConfiguration' :: Maybe AutomatedDiscoveryInformation
automatedDiscoveryInformation =
forall a. Maybe a
Prelude.Nothing,
$sel:consumedLicenseSummaryList:LicenseConfiguration' :: Maybe [ConsumedLicenseSummary]
consumedLicenseSummaryList = forall a. Maybe a
Prelude.Nothing,
$sel:consumedLicenses:LicenseConfiguration' :: Maybe Integer
consumedLicenses = forall a. Maybe a
Prelude.Nothing,
$sel:description:LicenseConfiguration' :: Maybe Text
description = forall a. Maybe a
Prelude.Nothing,
$sel:disassociateWhenNotFound:LicenseConfiguration' :: Maybe Bool
disassociateWhenNotFound = forall a. Maybe a
Prelude.Nothing,
$sel:licenseConfigurationArn:LicenseConfiguration' :: Maybe Text
licenseConfigurationArn = forall a. Maybe a
Prelude.Nothing,
$sel:licenseConfigurationId:LicenseConfiguration' :: Maybe Text
licenseConfigurationId = forall a. Maybe a
Prelude.Nothing,
$sel:licenseCount:LicenseConfiguration' :: Maybe Integer
licenseCount = forall a. Maybe a
Prelude.Nothing,
$sel:licenseCountHardLimit:LicenseConfiguration' :: Maybe Bool
licenseCountHardLimit = forall a. Maybe a
Prelude.Nothing,
$sel:licenseCountingType:LicenseConfiguration' :: Maybe LicenseCountingType
licenseCountingType = forall a. Maybe a
Prelude.Nothing,
$sel:licenseRules:LicenseConfiguration' :: Maybe [Text]
licenseRules = forall a. Maybe a
Prelude.Nothing,
$sel:managedResourceSummaryList:LicenseConfiguration' :: Maybe [ManagedResourceSummary]
managedResourceSummaryList = forall a. Maybe a
Prelude.Nothing,
$sel:name:LicenseConfiguration' :: Maybe Text
name = forall a. Maybe a
Prelude.Nothing,
$sel:ownerAccountId:LicenseConfiguration' :: Maybe Text
ownerAccountId = forall a. Maybe a
Prelude.Nothing,
$sel:productInformationList:LicenseConfiguration' :: Maybe [ProductInformation]
productInformationList = forall a. Maybe a
Prelude.Nothing,
$sel:status:LicenseConfiguration' :: Maybe Text
status = forall a. Maybe a
Prelude.Nothing
}
licenseConfiguration_automatedDiscoveryInformation :: Lens.Lens' LicenseConfiguration (Prelude.Maybe AutomatedDiscoveryInformation)
licenseConfiguration_automatedDiscoveryInformation :: Lens' LicenseConfiguration (Maybe AutomatedDiscoveryInformation)
licenseConfiguration_automatedDiscoveryInformation = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LicenseConfiguration' {Maybe AutomatedDiscoveryInformation
automatedDiscoveryInformation :: Maybe AutomatedDiscoveryInformation
$sel:automatedDiscoveryInformation:LicenseConfiguration' :: LicenseConfiguration -> Maybe AutomatedDiscoveryInformation
automatedDiscoveryInformation} -> Maybe AutomatedDiscoveryInformation
automatedDiscoveryInformation) (\s :: LicenseConfiguration
s@LicenseConfiguration' {} Maybe AutomatedDiscoveryInformation
a -> LicenseConfiguration
s {$sel:automatedDiscoveryInformation:LicenseConfiguration' :: Maybe AutomatedDiscoveryInformation
automatedDiscoveryInformation = Maybe AutomatedDiscoveryInformation
a} :: LicenseConfiguration)
licenseConfiguration_consumedLicenseSummaryList :: Lens.Lens' LicenseConfiguration (Prelude.Maybe [ConsumedLicenseSummary])
licenseConfiguration_consumedLicenseSummaryList :: Lens' LicenseConfiguration (Maybe [ConsumedLicenseSummary])
licenseConfiguration_consumedLicenseSummaryList = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LicenseConfiguration' {Maybe [ConsumedLicenseSummary]
consumedLicenseSummaryList :: Maybe [ConsumedLicenseSummary]
$sel:consumedLicenseSummaryList:LicenseConfiguration' :: LicenseConfiguration -> Maybe [ConsumedLicenseSummary]
consumedLicenseSummaryList} -> Maybe [ConsumedLicenseSummary]
consumedLicenseSummaryList) (\s :: LicenseConfiguration
s@LicenseConfiguration' {} Maybe [ConsumedLicenseSummary]
a -> LicenseConfiguration
s {$sel:consumedLicenseSummaryList:LicenseConfiguration' :: Maybe [ConsumedLicenseSummary]
consumedLicenseSummaryList = Maybe [ConsumedLicenseSummary]
a} :: LicenseConfiguration) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
licenseConfiguration_consumedLicenses :: Lens.Lens' LicenseConfiguration (Prelude.Maybe Prelude.Integer)
licenseConfiguration_consumedLicenses :: Lens' LicenseConfiguration (Maybe Integer)
licenseConfiguration_consumedLicenses = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LicenseConfiguration' {Maybe Integer
consumedLicenses :: Maybe Integer
$sel:consumedLicenses:LicenseConfiguration' :: LicenseConfiguration -> Maybe Integer
consumedLicenses} -> Maybe Integer
consumedLicenses) (\s :: LicenseConfiguration
s@LicenseConfiguration' {} Maybe Integer
a -> LicenseConfiguration
s {$sel:consumedLicenses:LicenseConfiguration' :: Maybe Integer
consumedLicenses = Maybe Integer
a} :: LicenseConfiguration)
licenseConfiguration_description :: Lens.Lens' LicenseConfiguration (Prelude.Maybe Prelude.Text)
licenseConfiguration_description :: Lens' LicenseConfiguration (Maybe Text)
licenseConfiguration_description = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LicenseConfiguration' {Maybe Text
description :: Maybe Text
$sel:description:LicenseConfiguration' :: LicenseConfiguration -> Maybe Text
description} -> Maybe Text
description) (\s :: LicenseConfiguration
s@LicenseConfiguration' {} Maybe Text
a -> LicenseConfiguration
s {$sel:description:LicenseConfiguration' :: Maybe Text
description = Maybe Text
a} :: LicenseConfiguration)
licenseConfiguration_disassociateWhenNotFound :: Lens.Lens' LicenseConfiguration (Prelude.Maybe Prelude.Bool)
licenseConfiguration_disassociateWhenNotFound :: Lens' LicenseConfiguration (Maybe Bool)
licenseConfiguration_disassociateWhenNotFound = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LicenseConfiguration' {Maybe Bool
disassociateWhenNotFound :: Maybe Bool
$sel:disassociateWhenNotFound:LicenseConfiguration' :: LicenseConfiguration -> Maybe Bool
disassociateWhenNotFound} -> Maybe Bool
disassociateWhenNotFound) (\s :: LicenseConfiguration
s@LicenseConfiguration' {} Maybe Bool
a -> LicenseConfiguration
s {$sel:disassociateWhenNotFound:LicenseConfiguration' :: Maybe Bool
disassociateWhenNotFound = Maybe Bool
a} :: LicenseConfiguration)
licenseConfiguration_licenseConfigurationArn :: Lens.Lens' LicenseConfiguration (Prelude.Maybe Prelude.Text)
licenseConfiguration_licenseConfigurationArn :: Lens' LicenseConfiguration (Maybe Text)
licenseConfiguration_licenseConfigurationArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LicenseConfiguration' {Maybe Text
licenseConfigurationArn :: Maybe Text
$sel:licenseConfigurationArn:LicenseConfiguration' :: LicenseConfiguration -> Maybe Text
licenseConfigurationArn} -> Maybe Text
licenseConfigurationArn) (\s :: LicenseConfiguration
s@LicenseConfiguration' {} Maybe Text
a -> LicenseConfiguration
s {$sel:licenseConfigurationArn:LicenseConfiguration' :: Maybe Text
licenseConfigurationArn = Maybe Text
a} :: LicenseConfiguration)
licenseConfiguration_licenseConfigurationId :: Lens.Lens' LicenseConfiguration (Prelude.Maybe Prelude.Text)
licenseConfiguration_licenseConfigurationId :: Lens' LicenseConfiguration (Maybe Text)
licenseConfiguration_licenseConfigurationId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LicenseConfiguration' {Maybe Text
licenseConfigurationId :: Maybe Text
$sel:licenseConfigurationId:LicenseConfiguration' :: LicenseConfiguration -> Maybe Text
licenseConfigurationId} -> Maybe Text
licenseConfigurationId) (\s :: LicenseConfiguration
s@LicenseConfiguration' {} Maybe Text
a -> LicenseConfiguration
s {$sel:licenseConfigurationId:LicenseConfiguration' :: Maybe Text
licenseConfigurationId = Maybe Text
a} :: LicenseConfiguration)
licenseConfiguration_licenseCount :: Lens.Lens' LicenseConfiguration (Prelude.Maybe Prelude.Integer)
licenseConfiguration_licenseCount :: Lens' LicenseConfiguration (Maybe Integer)
licenseConfiguration_licenseCount = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LicenseConfiguration' {Maybe Integer
licenseCount :: Maybe Integer
$sel:licenseCount:LicenseConfiguration' :: LicenseConfiguration -> Maybe Integer
licenseCount} -> Maybe Integer
licenseCount) (\s :: LicenseConfiguration
s@LicenseConfiguration' {} Maybe Integer
a -> LicenseConfiguration
s {$sel:licenseCount:LicenseConfiguration' :: Maybe Integer
licenseCount = Maybe Integer
a} :: LicenseConfiguration)
licenseConfiguration_licenseCountHardLimit :: Lens.Lens' LicenseConfiguration (Prelude.Maybe Prelude.Bool)
licenseConfiguration_licenseCountHardLimit :: Lens' LicenseConfiguration (Maybe Bool)
licenseConfiguration_licenseCountHardLimit = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LicenseConfiguration' {Maybe Bool
licenseCountHardLimit :: Maybe Bool
$sel:licenseCountHardLimit:LicenseConfiguration' :: LicenseConfiguration -> Maybe Bool
licenseCountHardLimit} -> Maybe Bool
licenseCountHardLimit) (\s :: LicenseConfiguration
s@LicenseConfiguration' {} Maybe Bool
a -> LicenseConfiguration
s {$sel:licenseCountHardLimit:LicenseConfiguration' :: Maybe Bool
licenseCountHardLimit = Maybe Bool
a} :: LicenseConfiguration)
licenseConfiguration_licenseCountingType :: Lens.Lens' LicenseConfiguration (Prelude.Maybe LicenseCountingType)
licenseConfiguration_licenseCountingType :: Lens' LicenseConfiguration (Maybe LicenseCountingType)
licenseConfiguration_licenseCountingType = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LicenseConfiguration' {Maybe LicenseCountingType
licenseCountingType :: Maybe LicenseCountingType
$sel:licenseCountingType:LicenseConfiguration' :: LicenseConfiguration -> Maybe LicenseCountingType
licenseCountingType} -> Maybe LicenseCountingType
licenseCountingType) (\s :: LicenseConfiguration
s@LicenseConfiguration' {} Maybe LicenseCountingType
a -> LicenseConfiguration
s {$sel:licenseCountingType:LicenseConfiguration' :: Maybe LicenseCountingType
licenseCountingType = Maybe LicenseCountingType
a} :: LicenseConfiguration)
licenseConfiguration_licenseRules :: Lens.Lens' LicenseConfiguration (Prelude.Maybe [Prelude.Text])
licenseConfiguration_licenseRules :: Lens' LicenseConfiguration (Maybe [Text])
licenseConfiguration_licenseRules = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LicenseConfiguration' {Maybe [Text]
licenseRules :: Maybe [Text]
$sel:licenseRules:LicenseConfiguration' :: LicenseConfiguration -> Maybe [Text]
licenseRules} -> Maybe [Text]
licenseRules) (\s :: LicenseConfiguration
s@LicenseConfiguration' {} Maybe [Text]
a -> LicenseConfiguration
s {$sel:licenseRules:LicenseConfiguration' :: Maybe [Text]
licenseRules = Maybe [Text]
a} :: LicenseConfiguration) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
licenseConfiguration_managedResourceSummaryList :: Lens.Lens' LicenseConfiguration (Prelude.Maybe [ManagedResourceSummary])
licenseConfiguration_managedResourceSummaryList :: Lens' LicenseConfiguration (Maybe [ManagedResourceSummary])
licenseConfiguration_managedResourceSummaryList = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LicenseConfiguration' {Maybe [ManagedResourceSummary]
managedResourceSummaryList :: Maybe [ManagedResourceSummary]
$sel:managedResourceSummaryList:LicenseConfiguration' :: LicenseConfiguration -> Maybe [ManagedResourceSummary]
managedResourceSummaryList} -> Maybe [ManagedResourceSummary]
managedResourceSummaryList) (\s :: LicenseConfiguration
s@LicenseConfiguration' {} Maybe [ManagedResourceSummary]
a -> LicenseConfiguration
s {$sel:managedResourceSummaryList:LicenseConfiguration' :: Maybe [ManagedResourceSummary]
managedResourceSummaryList = Maybe [ManagedResourceSummary]
a} :: LicenseConfiguration) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
licenseConfiguration_name :: Lens.Lens' LicenseConfiguration (Prelude.Maybe Prelude.Text)
licenseConfiguration_name :: Lens' LicenseConfiguration (Maybe Text)
licenseConfiguration_name = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LicenseConfiguration' {Maybe Text
name :: Maybe Text
$sel:name:LicenseConfiguration' :: LicenseConfiguration -> Maybe Text
name} -> Maybe Text
name) (\s :: LicenseConfiguration
s@LicenseConfiguration' {} Maybe Text
a -> LicenseConfiguration
s {$sel:name:LicenseConfiguration' :: Maybe Text
name = Maybe Text
a} :: LicenseConfiguration)
licenseConfiguration_ownerAccountId :: Lens.Lens' LicenseConfiguration (Prelude.Maybe Prelude.Text)
licenseConfiguration_ownerAccountId :: Lens' LicenseConfiguration (Maybe Text)
licenseConfiguration_ownerAccountId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LicenseConfiguration' {Maybe Text
ownerAccountId :: Maybe Text
$sel:ownerAccountId:LicenseConfiguration' :: LicenseConfiguration -> Maybe Text
ownerAccountId} -> Maybe Text
ownerAccountId) (\s :: LicenseConfiguration
s@LicenseConfiguration' {} Maybe Text
a -> LicenseConfiguration
s {$sel:ownerAccountId:LicenseConfiguration' :: Maybe Text
ownerAccountId = Maybe Text
a} :: LicenseConfiguration)
licenseConfiguration_productInformationList :: Lens.Lens' LicenseConfiguration (Prelude.Maybe [ProductInformation])
licenseConfiguration_productInformationList :: Lens' LicenseConfiguration (Maybe [ProductInformation])
licenseConfiguration_productInformationList = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LicenseConfiguration' {Maybe [ProductInformation]
productInformationList :: Maybe [ProductInformation]
$sel:productInformationList:LicenseConfiguration' :: LicenseConfiguration -> Maybe [ProductInformation]
productInformationList} -> Maybe [ProductInformation]
productInformationList) (\s :: LicenseConfiguration
s@LicenseConfiguration' {} Maybe [ProductInformation]
a -> LicenseConfiguration
s {$sel:productInformationList:LicenseConfiguration' :: Maybe [ProductInformation]
productInformationList = Maybe [ProductInformation]
a} :: LicenseConfiguration) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
licenseConfiguration_status :: Lens.Lens' LicenseConfiguration (Prelude.Maybe Prelude.Text)
licenseConfiguration_status :: Lens' LicenseConfiguration (Maybe Text)
licenseConfiguration_status = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LicenseConfiguration' {Maybe Text
status :: Maybe Text
$sel:status:LicenseConfiguration' :: LicenseConfiguration -> Maybe Text
status} -> Maybe Text
status) (\s :: LicenseConfiguration
s@LicenseConfiguration' {} Maybe Text
a -> LicenseConfiguration
s {$sel:status:LicenseConfiguration' :: Maybe Text
status = Maybe Text
a} :: LicenseConfiguration)
instance Data.FromJSON LicenseConfiguration where
parseJSON :: Value -> Parser LicenseConfiguration
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"LicenseConfiguration"
( \Object
x ->
Maybe AutomatedDiscoveryInformation
-> Maybe [ConsumedLicenseSummary]
-> Maybe Integer
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Integer
-> Maybe Bool
-> Maybe LicenseCountingType
-> Maybe [Text]
-> Maybe [ManagedResourceSummary]
-> Maybe Text
-> Maybe Text
-> Maybe [ProductInformation]
-> Maybe Text
-> LicenseConfiguration
LicenseConfiguration'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"AutomatedDiscoveryInformation")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"ConsumedLicenseSummaryList"
forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty
)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"ConsumedLicenses")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"Description")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"DisassociateWhenNotFound")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"LicenseConfigurationArn")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"LicenseConfigurationId")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"LicenseCount")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"LicenseCountHardLimit")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"LicenseCountingType")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"LicenseRules" forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"ManagedResourceSummaryList"
forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty
)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"Name")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"OwnerAccountId")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"ProductInformationList"
forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty
)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"Status")
)
instance Prelude.Hashable LicenseConfiguration where
hashWithSalt :: Int -> LicenseConfiguration -> Int
hashWithSalt Int
_salt LicenseConfiguration' {Maybe Bool
Maybe Integer
Maybe [Text]
Maybe [ProductInformation]
Maybe [ManagedResourceSummary]
Maybe [ConsumedLicenseSummary]
Maybe Text
Maybe AutomatedDiscoveryInformation
Maybe LicenseCountingType
status :: Maybe Text
productInformationList :: Maybe [ProductInformation]
ownerAccountId :: Maybe Text
name :: Maybe Text
managedResourceSummaryList :: Maybe [ManagedResourceSummary]
licenseRules :: Maybe [Text]
licenseCountingType :: Maybe LicenseCountingType
licenseCountHardLimit :: Maybe Bool
licenseCount :: Maybe Integer
licenseConfigurationId :: Maybe Text
licenseConfigurationArn :: Maybe Text
disassociateWhenNotFound :: Maybe Bool
description :: Maybe Text
consumedLicenses :: Maybe Integer
consumedLicenseSummaryList :: Maybe [ConsumedLicenseSummary]
automatedDiscoveryInformation :: Maybe AutomatedDiscoveryInformation
$sel:status:LicenseConfiguration' :: LicenseConfiguration -> Maybe Text
$sel:productInformationList:LicenseConfiguration' :: LicenseConfiguration -> Maybe [ProductInformation]
$sel:ownerAccountId:LicenseConfiguration' :: LicenseConfiguration -> Maybe Text
$sel:name:LicenseConfiguration' :: LicenseConfiguration -> Maybe Text
$sel:managedResourceSummaryList:LicenseConfiguration' :: LicenseConfiguration -> Maybe [ManagedResourceSummary]
$sel:licenseRules:LicenseConfiguration' :: LicenseConfiguration -> Maybe [Text]
$sel:licenseCountingType:LicenseConfiguration' :: LicenseConfiguration -> Maybe LicenseCountingType
$sel:licenseCountHardLimit:LicenseConfiguration' :: LicenseConfiguration -> Maybe Bool
$sel:licenseCount:LicenseConfiguration' :: LicenseConfiguration -> Maybe Integer
$sel:licenseConfigurationId:LicenseConfiguration' :: LicenseConfiguration -> Maybe Text
$sel:licenseConfigurationArn:LicenseConfiguration' :: LicenseConfiguration -> Maybe Text
$sel:disassociateWhenNotFound:LicenseConfiguration' :: LicenseConfiguration -> Maybe Bool
$sel:description:LicenseConfiguration' :: LicenseConfiguration -> Maybe Text
$sel:consumedLicenses:LicenseConfiguration' :: LicenseConfiguration -> Maybe Integer
$sel:consumedLicenseSummaryList:LicenseConfiguration' :: LicenseConfiguration -> Maybe [ConsumedLicenseSummary]
$sel:automatedDiscoveryInformation:LicenseConfiguration' :: LicenseConfiguration -> Maybe AutomatedDiscoveryInformation
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe AutomatedDiscoveryInformation
automatedDiscoveryInformation
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [ConsumedLicenseSummary]
consumedLicenseSummaryList
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Integer
consumedLicenses
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
description
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
disassociateWhenNotFound
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
licenseConfigurationArn
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
licenseConfigurationId
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Integer
licenseCount
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
licenseCountHardLimit
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe LicenseCountingType
licenseCountingType
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Text]
licenseRules
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [ManagedResourceSummary]
managedResourceSummaryList
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
name
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
ownerAccountId
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [ProductInformation]
productInformationList
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
status
instance Prelude.NFData LicenseConfiguration where
rnf :: LicenseConfiguration -> ()
rnf LicenseConfiguration' {Maybe Bool
Maybe Integer
Maybe [Text]
Maybe [ProductInformation]
Maybe [ManagedResourceSummary]
Maybe [ConsumedLicenseSummary]
Maybe Text
Maybe AutomatedDiscoveryInformation
Maybe LicenseCountingType
status :: Maybe Text
productInformationList :: Maybe [ProductInformation]
ownerAccountId :: Maybe Text
name :: Maybe Text
managedResourceSummaryList :: Maybe [ManagedResourceSummary]
licenseRules :: Maybe [Text]
licenseCountingType :: Maybe LicenseCountingType
licenseCountHardLimit :: Maybe Bool
licenseCount :: Maybe Integer
licenseConfigurationId :: Maybe Text
licenseConfigurationArn :: Maybe Text
disassociateWhenNotFound :: Maybe Bool
description :: Maybe Text
consumedLicenses :: Maybe Integer
consumedLicenseSummaryList :: Maybe [ConsumedLicenseSummary]
automatedDiscoveryInformation :: Maybe AutomatedDiscoveryInformation
$sel:status:LicenseConfiguration' :: LicenseConfiguration -> Maybe Text
$sel:productInformationList:LicenseConfiguration' :: LicenseConfiguration -> Maybe [ProductInformation]
$sel:ownerAccountId:LicenseConfiguration' :: LicenseConfiguration -> Maybe Text
$sel:name:LicenseConfiguration' :: LicenseConfiguration -> Maybe Text
$sel:managedResourceSummaryList:LicenseConfiguration' :: LicenseConfiguration -> Maybe [ManagedResourceSummary]
$sel:licenseRules:LicenseConfiguration' :: LicenseConfiguration -> Maybe [Text]
$sel:licenseCountingType:LicenseConfiguration' :: LicenseConfiguration -> Maybe LicenseCountingType
$sel:licenseCountHardLimit:LicenseConfiguration' :: LicenseConfiguration -> Maybe Bool
$sel:licenseCount:LicenseConfiguration' :: LicenseConfiguration -> Maybe Integer
$sel:licenseConfigurationId:LicenseConfiguration' :: LicenseConfiguration -> Maybe Text
$sel:licenseConfigurationArn:LicenseConfiguration' :: LicenseConfiguration -> Maybe Text
$sel:disassociateWhenNotFound:LicenseConfiguration' :: LicenseConfiguration -> Maybe Bool
$sel:description:LicenseConfiguration' :: LicenseConfiguration -> Maybe Text
$sel:consumedLicenses:LicenseConfiguration' :: LicenseConfiguration -> Maybe Integer
$sel:consumedLicenseSummaryList:LicenseConfiguration' :: LicenseConfiguration -> Maybe [ConsumedLicenseSummary]
$sel:automatedDiscoveryInformation:LicenseConfiguration' :: LicenseConfiguration -> Maybe AutomatedDiscoveryInformation
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe AutomatedDiscoveryInformation
automatedDiscoveryInformation
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [ConsumedLicenseSummary]
consumedLicenseSummaryList
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Integer
consumedLicenses
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
description
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
disassociateWhenNotFound
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
licenseConfigurationArn
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
licenseConfigurationId
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Integer
licenseCount
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
licenseCountHardLimit
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe LicenseCountingType
licenseCountingType
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Text]
licenseRules
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [ManagedResourceSummary]
managedResourceSummaryList
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
name
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
ownerAccountId
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [ProductInformation]
productInformationList
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
status