module Stratosphere.AccessAnalyzer.Analyzer.InternalAccessConfigurationProperty (
module Exports, InternalAccessConfigurationProperty(..),
mkInternalAccessConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.AccessAnalyzer.Analyzer.InternalAccessAnalysisRuleProperty as Exports
import Stratosphere.ResourceProperties
data InternalAccessConfigurationProperty
=
InternalAccessConfigurationProperty {InternalAccessConfigurationProperty -> ()
haddock_workaround_ :: (),
InternalAccessConfigurationProperty
-> Maybe InternalAccessAnalysisRuleProperty
internalAccessAnalysisRule :: (Prelude.Maybe InternalAccessAnalysisRuleProperty)}
deriving stock (InternalAccessConfigurationProperty
-> InternalAccessConfigurationProperty -> Bool
(InternalAccessConfigurationProperty
-> InternalAccessConfigurationProperty -> Bool)
-> (InternalAccessConfigurationProperty
-> InternalAccessConfigurationProperty -> Bool)
-> Eq InternalAccessConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: InternalAccessConfigurationProperty
-> InternalAccessConfigurationProperty -> Bool
== :: InternalAccessConfigurationProperty
-> InternalAccessConfigurationProperty -> Bool
$c/= :: InternalAccessConfigurationProperty
-> InternalAccessConfigurationProperty -> Bool
/= :: InternalAccessConfigurationProperty
-> InternalAccessConfigurationProperty -> Bool
Prelude.Eq, Int -> InternalAccessConfigurationProperty -> ShowS
[InternalAccessConfigurationProperty] -> ShowS
InternalAccessConfigurationProperty -> String
(Int -> InternalAccessConfigurationProperty -> ShowS)
-> (InternalAccessConfigurationProperty -> String)
-> ([InternalAccessConfigurationProperty] -> ShowS)
-> Show InternalAccessConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> InternalAccessConfigurationProperty -> ShowS
showsPrec :: Int -> InternalAccessConfigurationProperty -> ShowS
$cshow :: InternalAccessConfigurationProperty -> String
show :: InternalAccessConfigurationProperty -> String
$cshowList :: [InternalAccessConfigurationProperty] -> ShowS
showList :: [InternalAccessConfigurationProperty] -> ShowS
Prelude.Show)
mkInternalAccessConfigurationProperty ::
InternalAccessConfigurationProperty
mkInternalAccessConfigurationProperty :: InternalAccessConfigurationProperty
mkInternalAccessConfigurationProperty
= InternalAccessConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (),
internalAccessAnalysisRule :: Maybe InternalAccessAnalysisRuleProperty
internalAccessAnalysisRule = Maybe InternalAccessAnalysisRuleProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties InternalAccessConfigurationProperty where
toResourceProperties :: InternalAccessConfigurationProperty -> ResourceProperties
toResourceProperties InternalAccessConfigurationProperty {Maybe InternalAccessAnalysisRuleProperty
()
haddock_workaround_ :: InternalAccessConfigurationProperty -> ()
internalAccessAnalysisRule :: InternalAccessConfigurationProperty
-> Maybe InternalAccessAnalysisRuleProperty
haddock_workaround_ :: ()
internalAccessAnalysisRule :: Maybe InternalAccessAnalysisRuleProperty
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::AccessAnalyzer::Analyzer.InternalAccessConfiguration",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> InternalAccessAnalysisRuleProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"InternalAccessAnalysisRule"
(InternalAccessAnalysisRuleProperty -> (Key, Value))
-> Maybe InternalAccessAnalysisRuleProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe InternalAccessAnalysisRuleProperty
internalAccessAnalysisRule])}
instance JSON.ToJSON InternalAccessConfigurationProperty where
toJSON :: InternalAccessConfigurationProperty -> Value
toJSON InternalAccessConfigurationProperty {Maybe InternalAccessAnalysisRuleProperty
()
haddock_workaround_ :: InternalAccessConfigurationProperty -> ()
internalAccessAnalysisRule :: InternalAccessConfigurationProperty
-> Maybe InternalAccessAnalysisRuleProperty
haddock_workaround_ :: ()
internalAccessAnalysisRule :: Maybe InternalAccessAnalysisRuleProperty
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> InternalAccessAnalysisRuleProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"InternalAccessAnalysisRule"
(InternalAccessAnalysisRuleProperty -> (Key, Value))
-> Maybe InternalAccessAnalysisRuleProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe InternalAccessAnalysisRuleProperty
internalAccessAnalysisRule]))
instance Property "InternalAccessAnalysisRule" InternalAccessConfigurationProperty where
type PropertyType "InternalAccessAnalysisRule" InternalAccessConfigurationProperty = InternalAccessAnalysisRuleProperty
set :: PropertyType
"InternalAccessAnalysisRule" InternalAccessConfigurationProperty
-> InternalAccessConfigurationProperty
-> InternalAccessConfigurationProperty
set PropertyType
"InternalAccessAnalysisRule" InternalAccessConfigurationProperty
newValue InternalAccessConfigurationProperty {Maybe InternalAccessAnalysisRuleProperty
()
haddock_workaround_ :: InternalAccessConfigurationProperty -> ()
internalAccessAnalysisRule :: InternalAccessConfigurationProperty
-> Maybe InternalAccessAnalysisRuleProperty
haddock_workaround_ :: ()
internalAccessAnalysisRule :: Maybe InternalAccessAnalysisRuleProperty
..}
= InternalAccessConfigurationProperty
{internalAccessAnalysisRule :: Maybe InternalAccessAnalysisRuleProperty
internalAccessAnalysisRule = InternalAccessAnalysisRuleProperty
-> Maybe InternalAccessAnalysisRuleProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"InternalAccessAnalysisRule" InternalAccessConfigurationProperty
InternalAccessAnalysisRuleProperty
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}