module Stratosphere.S3.StorageLens.AwsOrgProperty (
        AwsOrgProperty(..), mkAwsOrgProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data AwsOrgProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-storagelens-awsorg.html>
    AwsOrgProperty {AwsOrgProperty -> ()
haddock_workaround_ :: (),
                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-storagelens-awsorg.html#cfn-s3-storagelens-awsorg-arn>
                    AwsOrgProperty -> Value Text
arn :: (Value Prelude.Text)}
  deriving stock (AwsOrgProperty -> AwsOrgProperty -> Bool
(AwsOrgProperty -> AwsOrgProperty -> Bool)
-> (AwsOrgProperty -> AwsOrgProperty -> Bool) -> Eq AwsOrgProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: AwsOrgProperty -> AwsOrgProperty -> Bool
== :: AwsOrgProperty -> AwsOrgProperty -> Bool
$c/= :: AwsOrgProperty -> AwsOrgProperty -> Bool
/= :: AwsOrgProperty -> AwsOrgProperty -> Bool
Prelude.Eq, Int -> AwsOrgProperty -> ShowS
[AwsOrgProperty] -> ShowS
AwsOrgProperty -> String
(Int -> AwsOrgProperty -> ShowS)
-> (AwsOrgProperty -> String)
-> ([AwsOrgProperty] -> ShowS)
-> Show AwsOrgProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> AwsOrgProperty -> ShowS
showsPrec :: Int -> AwsOrgProperty -> ShowS
$cshow :: AwsOrgProperty -> String
show :: AwsOrgProperty -> String
$cshowList :: [AwsOrgProperty] -> ShowS
showList :: [AwsOrgProperty] -> ShowS
Prelude.Show)
mkAwsOrgProperty :: Value Prelude.Text -> AwsOrgProperty
mkAwsOrgProperty :: Value Text -> AwsOrgProperty
mkAwsOrgProperty Value Text
arn
  = AwsOrgProperty {haddock_workaround_ :: ()
haddock_workaround_ = (), arn :: Value Text
arn = Value Text
arn}
instance ToResourceProperties AwsOrgProperty where
  toResourceProperties :: AwsOrgProperty -> ResourceProperties
toResourceProperties AwsOrgProperty {()
Value Text
haddock_workaround_ :: AwsOrgProperty -> ()
arn :: AwsOrgProperty -> Value Text
haddock_workaround_ :: ()
arn :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::S3::StorageLens.AwsOrg",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False, properties :: Object
properties = [Key
"Arn" 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
arn]}
instance JSON.ToJSON AwsOrgProperty where
  toJSON :: AwsOrgProperty -> Value
toJSON AwsOrgProperty {()
Value Text
haddock_workaround_ :: AwsOrgProperty -> ()
arn :: AwsOrgProperty -> Value Text
haddock_workaround_ :: ()
arn :: Value Text
..} = [(Key, Value)] -> Value
JSON.object [Key
"Arn" 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
arn]
instance Property "Arn" AwsOrgProperty where
  type PropertyType "Arn" AwsOrgProperty = Value Prelude.Text
  set :: PropertyType "Arn" AwsOrgProperty
-> AwsOrgProperty -> AwsOrgProperty
set PropertyType "Arn" AwsOrgProperty
newValue AwsOrgProperty {()
Value Text
haddock_workaround_ :: AwsOrgProperty -> ()
arn :: AwsOrgProperty -> Value Text
haddock_workaround_ :: ()
arn :: Value Text
..}
    = AwsOrgProperty {arn :: Value Text
arn = PropertyType "Arn" AwsOrgProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}