module Stratosphere.ODB.OdbNetwork.S3AccessProperty (
        S3AccessProperty(..), mkS3AccessProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data S3AccessProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-odb-odbnetwork-s3access.html>
    S3AccessProperty {S3AccessProperty -> ()
haddock_workaround_ :: (),
                      -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-odb-odbnetwork-s3access.html#cfn-odb-odbnetwork-s3access-domainname>
                      S3AccessProperty -> Maybe (Value Text)
domainName :: (Prelude.Maybe (Value Prelude.Text)),
                      -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-odb-odbnetwork-s3access.html#cfn-odb-odbnetwork-s3access-ipv4addresses>
                      S3AccessProperty -> Maybe (ValueList Text)
ipv4Addresses :: (Prelude.Maybe (ValueList Prelude.Text)),
                      -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-odb-odbnetwork-s3access.html#cfn-odb-odbnetwork-s3access-s3policydocument>
                      S3AccessProperty -> Maybe (Value Text)
s3PolicyDocument :: (Prelude.Maybe (Value Prelude.Text)),
                      -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-odb-odbnetwork-s3access.html#cfn-odb-odbnetwork-s3access-status>
                      S3AccessProperty -> Maybe (Value Text)
status :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (S3AccessProperty -> S3AccessProperty -> Bool
(S3AccessProperty -> S3AccessProperty -> Bool)
-> (S3AccessProperty -> S3AccessProperty -> Bool)
-> Eq S3AccessProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: S3AccessProperty -> S3AccessProperty -> Bool
== :: S3AccessProperty -> S3AccessProperty -> Bool
$c/= :: S3AccessProperty -> S3AccessProperty -> Bool
/= :: S3AccessProperty -> S3AccessProperty -> Bool
Prelude.Eq, Int -> S3AccessProperty -> ShowS
[S3AccessProperty] -> ShowS
S3AccessProperty -> String
(Int -> S3AccessProperty -> ShowS)
-> (S3AccessProperty -> String)
-> ([S3AccessProperty] -> ShowS)
-> Show S3AccessProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> S3AccessProperty -> ShowS
showsPrec :: Int -> S3AccessProperty -> ShowS
$cshow :: S3AccessProperty -> String
show :: S3AccessProperty -> String
$cshowList :: [S3AccessProperty] -> ShowS
showList :: [S3AccessProperty] -> ShowS
Prelude.Show)
mkS3AccessProperty :: S3AccessProperty
mkS3AccessProperty :: S3AccessProperty
mkS3AccessProperty
  = S3AccessProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), domainName :: Maybe (Value Text)
domainName = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       ipv4Addresses :: Maybe (ValueList Text)
ipv4Addresses = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing,
       s3PolicyDocument :: Maybe (Value Text)
s3PolicyDocument = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, status :: Maybe (Value Text)
status = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties S3AccessProperty where
  toResourceProperties :: S3AccessProperty -> ResourceProperties
toResourceProperties S3AccessProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: S3AccessProperty -> ()
domainName :: S3AccessProperty -> Maybe (Value Text)
ipv4Addresses :: S3AccessProperty -> Maybe (ValueList Text)
s3PolicyDocument :: S3AccessProperty -> Maybe (Value Text)
status :: S3AccessProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
domainName :: Maybe (Value Text)
ipv4Addresses :: Maybe (ValueList Text)
s3PolicyDocument :: Maybe (Value Text)
status :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::ODB::OdbNetwork.S3Access",
         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 -> 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..=) Key
"DomainName" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
domainName,
                            Key -> ValueList Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Ipv4Addresses" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
ipv4Addresses,
                            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..=) Key
"S3PolicyDocument" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
s3PolicyDocument,
                            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..=) Key
"Status" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
status])}
instance JSON.ToJSON S3AccessProperty where
  toJSON :: S3AccessProperty -> Value
toJSON S3AccessProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: S3AccessProperty -> ()
domainName :: S3AccessProperty -> Maybe (Value Text)
ipv4Addresses :: S3AccessProperty -> Maybe (ValueList Text)
s3PolicyDocument :: S3AccessProperty -> Maybe (Value Text)
status :: S3AccessProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
domainName :: Maybe (Value Text)
ipv4Addresses :: Maybe (ValueList Text)
s3PolicyDocument :: Maybe (Value Text)
status :: Maybe (Value Text)
..}
    = [(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 -> 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..=) Key
"DomainName" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
domainName,
               Key -> ValueList Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Ipv4Addresses" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
ipv4Addresses,
               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..=) Key
"S3PolicyDocument" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
s3PolicyDocument,
               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..=) Key
"Status" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
status]))
instance Property "DomainName" S3AccessProperty where
  type PropertyType "DomainName" S3AccessProperty = Value Prelude.Text
  set :: PropertyType "DomainName" S3AccessProperty
-> S3AccessProperty -> S3AccessProperty
set PropertyType "DomainName" S3AccessProperty
newValue S3AccessProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: S3AccessProperty -> ()
domainName :: S3AccessProperty -> Maybe (Value Text)
ipv4Addresses :: S3AccessProperty -> Maybe (ValueList Text)
s3PolicyDocument :: S3AccessProperty -> Maybe (Value Text)
status :: S3AccessProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
domainName :: Maybe (Value Text)
ipv4Addresses :: Maybe (ValueList Text)
s3PolicyDocument :: Maybe (Value Text)
status :: Maybe (Value Text)
..}
    = S3AccessProperty {domainName :: Maybe (Value Text)
domainName = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "DomainName" S3AccessProperty
Value Text
newValue, Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ()
ipv4Addresses :: Maybe (ValueList Text)
s3PolicyDocument :: Maybe (Value Text)
status :: Maybe (Value Text)
haddock_workaround_ :: ()
ipv4Addresses :: Maybe (ValueList Text)
s3PolicyDocument :: Maybe (Value Text)
status :: Maybe (Value Text)
..}
instance Property "Ipv4Addresses" S3AccessProperty where
  type PropertyType "Ipv4Addresses" S3AccessProperty = ValueList Prelude.Text
  set :: PropertyType "Ipv4Addresses" S3AccessProperty
-> S3AccessProperty -> S3AccessProperty
set PropertyType "Ipv4Addresses" S3AccessProperty
newValue S3AccessProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: S3AccessProperty -> ()
domainName :: S3AccessProperty -> Maybe (Value Text)
ipv4Addresses :: S3AccessProperty -> Maybe (ValueList Text)
s3PolicyDocument :: S3AccessProperty -> Maybe (Value Text)
status :: S3AccessProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
domainName :: Maybe (Value Text)
ipv4Addresses :: Maybe (ValueList Text)
s3PolicyDocument :: Maybe (Value Text)
status :: Maybe (Value Text)
..}
    = S3AccessProperty {ipv4Addresses :: Maybe (ValueList Text)
ipv4Addresses = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Ipv4Addresses" S3AccessProperty
ValueList Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
domainName :: Maybe (Value Text)
s3PolicyDocument :: Maybe (Value Text)
status :: Maybe (Value Text)
haddock_workaround_ :: ()
domainName :: Maybe (Value Text)
s3PolicyDocument :: Maybe (Value Text)
status :: Maybe (Value Text)
..}
instance Property "S3PolicyDocument" S3AccessProperty where
  type PropertyType "S3PolicyDocument" S3AccessProperty = Value Prelude.Text
  set :: PropertyType "S3PolicyDocument" S3AccessProperty
-> S3AccessProperty -> S3AccessProperty
set PropertyType "S3PolicyDocument" S3AccessProperty
newValue S3AccessProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: S3AccessProperty -> ()
domainName :: S3AccessProperty -> Maybe (Value Text)
ipv4Addresses :: S3AccessProperty -> Maybe (ValueList Text)
s3PolicyDocument :: S3AccessProperty -> Maybe (Value Text)
status :: S3AccessProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
domainName :: Maybe (Value Text)
ipv4Addresses :: Maybe (ValueList Text)
s3PolicyDocument :: Maybe (Value Text)
status :: Maybe (Value Text)
..}
    = S3AccessProperty {s3PolicyDocument :: Maybe (Value Text)
s3PolicyDocument = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "S3PolicyDocument" S3AccessProperty
Value Text
newValue, Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ()
domainName :: Maybe (Value Text)
ipv4Addresses :: Maybe (ValueList Text)
status :: Maybe (Value Text)
haddock_workaround_ :: ()
domainName :: Maybe (Value Text)
ipv4Addresses :: Maybe (ValueList Text)
status :: Maybe (Value Text)
..}
instance Property "Status" S3AccessProperty where
  type PropertyType "Status" S3AccessProperty = Value Prelude.Text
  set :: PropertyType "Status" S3AccessProperty
-> S3AccessProperty -> S3AccessProperty
set PropertyType "Status" S3AccessProperty
newValue S3AccessProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: S3AccessProperty -> ()
domainName :: S3AccessProperty -> Maybe (Value Text)
ipv4Addresses :: S3AccessProperty -> Maybe (ValueList Text)
s3PolicyDocument :: S3AccessProperty -> Maybe (Value Text)
status :: S3AccessProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
domainName :: Maybe (Value Text)
ipv4Addresses :: Maybe (ValueList Text)
s3PolicyDocument :: Maybe (Value Text)
status :: Maybe (Value Text)
..}
    = S3AccessProperty {status :: Maybe (Value Text)
status = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Status" S3AccessProperty
Value Text
newValue, Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ()
domainName :: Maybe (Value Text)
ipv4Addresses :: Maybe (ValueList Text)
s3PolicyDocument :: Maybe (Value Text)
haddock_workaround_ :: ()
domainName :: Maybe (Value Text)
ipv4Addresses :: Maybe (ValueList Text)
s3PolicyDocument :: Maybe (Value Text)
..}