module Stratosphere.S3.MultiRegionAccessPointPolicy.PolicyStatusProperty (
PolicyStatusProperty(..), mkPolicyStatusProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data PolicyStatusProperty
=
PolicyStatusProperty {PolicyStatusProperty -> ()
haddock_workaround_ :: (),
PolicyStatusProperty -> Value Text
isPublic :: (Value Prelude.Text)}
deriving stock (PolicyStatusProperty -> PolicyStatusProperty -> Bool
(PolicyStatusProperty -> PolicyStatusProperty -> Bool)
-> (PolicyStatusProperty -> PolicyStatusProperty -> Bool)
-> Eq PolicyStatusProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: PolicyStatusProperty -> PolicyStatusProperty -> Bool
== :: PolicyStatusProperty -> PolicyStatusProperty -> Bool
$c/= :: PolicyStatusProperty -> PolicyStatusProperty -> Bool
/= :: PolicyStatusProperty -> PolicyStatusProperty -> Bool
Prelude.Eq, Int -> PolicyStatusProperty -> ShowS
[PolicyStatusProperty] -> ShowS
PolicyStatusProperty -> String
(Int -> PolicyStatusProperty -> ShowS)
-> (PolicyStatusProperty -> String)
-> ([PolicyStatusProperty] -> ShowS)
-> Show PolicyStatusProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> PolicyStatusProperty -> ShowS
showsPrec :: Int -> PolicyStatusProperty -> ShowS
$cshow :: PolicyStatusProperty -> String
show :: PolicyStatusProperty -> String
$cshowList :: [PolicyStatusProperty] -> ShowS
showList :: [PolicyStatusProperty] -> ShowS
Prelude.Show)
mkPolicyStatusProperty ::
Value Prelude.Text -> PolicyStatusProperty
mkPolicyStatusProperty :: Value Text -> PolicyStatusProperty
mkPolicyStatusProperty Value Text
isPublic
= PolicyStatusProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), isPublic :: Value Text
isPublic = Value Text
isPublic}
instance ToResourceProperties PolicyStatusProperty where
toResourceProperties :: PolicyStatusProperty -> ResourceProperties
toResourceProperties PolicyStatusProperty {()
Value Text
haddock_workaround_ :: PolicyStatusProperty -> ()
isPublic :: PolicyStatusProperty -> Value Text
haddock_workaround_ :: ()
isPublic :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::S3::MultiRegionAccessPointPolicy.PolicyStatus",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"IsPublic" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
isPublic]}
instance JSON.ToJSON PolicyStatusProperty where
toJSON :: PolicyStatusProperty -> Value
toJSON PolicyStatusProperty {()
Value Text
haddock_workaround_ :: PolicyStatusProperty -> ()
isPublic :: PolicyStatusProperty -> Value Text
haddock_workaround_ :: ()
isPublic :: Value Text
..}
= [(Key, Value)] -> Value
JSON.object [Key
"IsPublic" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
isPublic]
instance Property "IsPublic" PolicyStatusProperty where
type PropertyType "IsPublic" PolicyStatusProperty = Value Prelude.Text
set :: PropertyType "IsPublic" PolicyStatusProperty
-> PolicyStatusProperty -> PolicyStatusProperty
set PropertyType "IsPublic" PolicyStatusProperty
newValue PolicyStatusProperty {()
Value Text
haddock_workaround_ :: PolicyStatusProperty -> ()
isPublic :: PolicyStatusProperty -> Value Text
haddock_workaround_ :: ()
isPublic :: Value Text
..}
= PolicyStatusProperty {isPublic :: Value Text
isPublic = PropertyType "IsPublic" PolicyStatusProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}