module Stratosphere.Panorama.Package.StorageLocationProperty (
        StorageLocationProperty(..), mkStorageLocationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data StorageLocationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-panorama-package-storagelocation.html>
    StorageLocationProperty {StorageLocationProperty -> ()
haddock_workaround_ :: (),
                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-panorama-package-storagelocation.html#cfn-panorama-package-storagelocation-binaryprefixlocation>
                             StorageLocationProperty -> Maybe (Value Text)
binaryPrefixLocation :: (Prelude.Maybe (Value Prelude.Text)),
                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-panorama-package-storagelocation.html#cfn-panorama-package-storagelocation-bucket>
                             StorageLocationProperty -> Maybe (Value Text)
bucket :: (Prelude.Maybe (Value Prelude.Text)),
                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-panorama-package-storagelocation.html#cfn-panorama-package-storagelocation-generatedprefixlocation>
                             StorageLocationProperty -> Maybe (Value Text)
generatedPrefixLocation :: (Prelude.Maybe (Value Prelude.Text)),
                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-panorama-package-storagelocation.html#cfn-panorama-package-storagelocation-manifestprefixlocation>
                             StorageLocationProperty -> Maybe (Value Text)
manifestPrefixLocation :: (Prelude.Maybe (Value Prelude.Text)),
                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-panorama-package-storagelocation.html#cfn-panorama-package-storagelocation-repoprefixlocation>
                             StorageLocationProperty -> Maybe (Value Text)
repoPrefixLocation :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (StorageLocationProperty -> StorageLocationProperty -> Bool
(StorageLocationProperty -> StorageLocationProperty -> Bool)
-> (StorageLocationProperty -> StorageLocationProperty -> Bool)
-> Eq StorageLocationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: StorageLocationProperty -> StorageLocationProperty -> Bool
== :: StorageLocationProperty -> StorageLocationProperty -> Bool
$c/= :: StorageLocationProperty -> StorageLocationProperty -> Bool
/= :: StorageLocationProperty -> StorageLocationProperty -> Bool
Prelude.Eq, Int -> StorageLocationProperty -> ShowS
[StorageLocationProperty] -> ShowS
StorageLocationProperty -> String
(Int -> StorageLocationProperty -> ShowS)
-> (StorageLocationProperty -> String)
-> ([StorageLocationProperty] -> ShowS)
-> Show StorageLocationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> StorageLocationProperty -> ShowS
showsPrec :: Int -> StorageLocationProperty -> ShowS
$cshow :: StorageLocationProperty -> String
show :: StorageLocationProperty -> String
$cshowList :: [StorageLocationProperty] -> ShowS
showList :: [StorageLocationProperty] -> ShowS
Prelude.Show)
mkStorageLocationProperty :: StorageLocationProperty
mkStorageLocationProperty :: StorageLocationProperty
mkStorageLocationProperty
  = StorageLocationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), binaryPrefixLocation :: Maybe (Value Text)
binaryPrefixLocation = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       bucket :: Maybe (Value Text)
bucket = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       generatedPrefixLocation :: Maybe (Value Text)
generatedPrefixLocation = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       manifestPrefixLocation :: Maybe (Value Text)
manifestPrefixLocation = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       repoPrefixLocation :: Maybe (Value Text)
repoPrefixLocation = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties StorageLocationProperty where
  toResourceProperties :: StorageLocationProperty -> ResourceProperties
toResourceProperties StorageLocationProperty {Maybe (Value Text)
()
haddock_workaround_ :: StorageLocationProperty -> ()
binaryPrefixLocation :: StorageLocationProperty -> Maybe (Value Text)
bucket :: StorageLocationProperty -> Maybe (Value Text)
generatedPrefixLocation :: StorageLocationProperty -> Maybe (Value Text)
manifestPrefixLocation :: StorageLocationProperty -> Maybe (Value Text)
repoPrefixLocation :: StorageLocationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
binaryPrefixLocation :: Maybe (Value Text)
bucket :: Maybe (Value Text)
generatedPrefixLocation :: Maybe (Value Text)
manifestPrefixLocation :: Maybe (Value Text)
repoPrefixLocation :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Panorama::Package.StorageLocation",
         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
"BinaryPrefixLocation" (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)
binaryPrefixLocation,
                            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
"Bucket" (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)
bucket,
                            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
"GeneratedPrefixLocation"
                              (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)
generatedPrefixLocation,
                            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
"ManifestPrefixLocation"
                              (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)
manifestPrefixLocation,
                            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
"RepoPrefixLocation" (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)
repoPrefixLocation])}
instance JSON.ToJSON StorageLocationProperty where
  toJSON :: StorageLocationProperty -> Value
toJSON StorageLocationProperty {Maybe (Value Text)
()
haddock_workaround_ :: StorageLocationProperty -> ()
binaryPrefixLocation :: StorageLocationProperty -> Maybe (Value Text)
bucket :: StorageLocationProperty -> Maybe (Value Text)
generatedPrefixLocation :: StorageLocationProperty -> Maybe (Value Text)
manifestPrefixLocation :: StorageLocationProperty -> Maybe (Value Text)
repoPrefixLocation :: StorageLocationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
binaryPrefixLocation :: Maybe (Value Text)
bucket :: Maybe (Value Text)
generatedPrefixLocation :: Maybe (Value Text)
manifestPrefixLocation :: Maybe (Value Text)
repoPrefixLocation :: 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
"BinaryPrefixLocation" (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)
binaryPrefixLocation,
               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
"Bucket" (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)
bucket,
               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
"GeneratedPrefixLocation"
                 (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)
generatedPrefixLocation,
               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
"ManifestPrefixLocation"
                 (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)
manifestPrefixLocation,
               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
"RepoPrefixLocation" (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)
repoPrefixLocation]))
instance Property "BinaryPrefixLocation" StorageLocationProperty where
  type PropertyType "BinaryPrefixLocation" StorageLocationProperty = Value Prelude.Text
  set :: PropertyType "BinaryPrefixLocation" StorageLocationProperty
-> StorageLocationProperty -> StorageLocationProperty
set PropertyType "BinaryPrefixLocation" StorageLocationProperty
newValue StorageLocationProperty {Maybe (Value Text)
()
haddock_workaround_ :: StorageLocationProperty -> ()
binaryPrefixLocation :: StorageLocationProperty -> Maybe (Value Text)
bucket :: StorageLocationProperty -> Maybe (Value Text)
generatedPrefixLocation :: StorageLocationProperty -> Maybe (Value Text)
manifestPrefixLocation :: StorageLocationProperty -> Maybe (Value Text)
repoPrefixLocation :: StorageLocationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
binaryPrefixLocation :: Maybe (Value Text)
bucket :: Maybe (Value Text)
generatedPrefixLocation :: Maybe (Value Text)
manifestPrefixLocation :: Maybe (Value Text)
repoPrefixLocation :: Maybe (Value Text)
..}
    = StorageLocationProperty
        {binaryPrefixLocation :: Maybe (Value Text)
binaryPrefixLocation = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "BinaryPrefixLocation" StorageLocationProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
bucket :: Maybe (Value Text)
generatedPrefixLocation :: Maybe (Value Text)
manifestPrefixLocation :: Maybe (Value Text)
repoPrefixLocation :: Maybe (Value Text)
haddock_workaround_ :: ()
bucket :: Maybe (Value Text)
generatedPrefixLocation :: Maybe (Value Text)
manifestPrefixLocation :: Maybe (Value Text)
repoPrefixLocation :: Maybe (Value Text)
..}
instance Property "Bucket" StorageLocationProperty where
  type PropertyType "Bucket" StorageLocationProperty = Value Prelude.Text
  set :: PropertyType "Bucket" StorageLocationProperty
-> StorageLocationProperty -> StorageLocationProperty
set PropertyType "Bucket" StorageLocationProperty
newValue StorageLocationProperty {Maybe (Value Text)
()
haddock_workaround_ :: StorageLocationProperty -> ()
binaryPrefixLocation :: StorageLocationProperty -> Maybe (Value Text)
bucket :: StorageLocationProperty -> Maybe (Value Text)
generatedPrefixLocation :: StorageLocationProperty -> Maybe (Value Text)
manifestPrefixLocation :: StorageLocationProperty -> Maybe (Value Text)
repoPrefixLocation :: StorageLocationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
binaryPrefixLocation :: Maybe (Value Text)
bucket :: Maybe (Value Text)
generatedPrefixLocation :: Maybe (Value Text)
manifestPrefixLocation :: Maybe (Value Text)
repoPrefixLocation :: Maybe (Value Text)
..}
    = StorageLocationProperty {bucket :: Maybe (Value Text)
bucket = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Bucket" StorageLocationProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
binaryPrefixLocation :: Maybe (Value Text)
generatedPrefixLocation :: Maybe (Value Text)
manifestPrefixLocation :: Maybe (Value Text)
repoPrefixLocation :: Maybe (Value Text)
haddock_workaround_ :: ()
binaryPrefixLocation :: Maybe (Value Text)
generatedPrefixLocation :: Maybe (Value Text)
manifestPrefixLocation :: Maybe (Value Text)
repoPrefixLocation :: Maybe (Value Text)
..}
instance Property "GeneratedPrefixLocation" StorageLocationProperty where
  type PropertyType "GeneratedPrefixLocation" StorageLocationProperty = Value Prelude.Text
  set :: PropertyType "GeneratedPrefixLocation" StorageLocationProperty
-> StorageLocationProperty -> StorageLocationProperty
set PropertyType "GeneratedPrefixLocation" StorageLocationProperty
newValue StorageLocationProperty {Maybe (Value Text)
()
haddock_workaround_ :: StorageLocationProperty -> ()
binaryPrefixLocation :: StorageLocationProperty -> Maybe (Value Text)
bucket :: StorageLocationProperty -> Maybe (Value Text)
generatedPrefixLocation :: StorageLocationProperty -> Maybe (Value Text)
manifestPrefixLocation :: StorageLocationProperty -> Maybe (Value Text)
repoPrefixLocation :: StorageLocationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
binaryPrefixLocation :: Maybe (Value Text)
bucket :: Maybe (Value Text)
generatedPrefixLocation :: Maybe (Value Text)
manifestPrefixLocation :: Maybe (Value Text)
repoPrefixLocation :: Maybe (Value Text)
..}
    = StorageLocationProperty
        {generatedPrefixLocation :: Maybe (Value Text)
generatedPrefixLocation = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "GeneratedPrefixLocation" StorageLocationProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
binaryPrefixLocation :: Maybe (Value Text)
bucket :: Maybe (Value Text)
manifestPrefixLocation :: Maybe (Value Text)
repoPrefixLocation :: Maybe (Value Text)
haddock_workaround_ :: ()
binaryPrefixLocation :: Maybe (Value Text)
bucket :: Maybe (Value Text)
manifestPrefixLocation :: Maybe (Value Text)
repoPrefixLocation :: Maybe (Value Text)
..}
instance Property "ManifestPrefixLocation" StorageLocationProperty where
  type PropertyType "ManifestPrefixLocation" StorageLocationProperty = Value Prelude.Text
  set :: PropertyType "ManifestPrefixLocation" StorageLocationProperty
-> StorageLocationProperty -> StorageLocationProperty
set PropertyType "ManifestPrefixLocation" StorageLocationProperty
newValue StorageLocationProperty {Maybe (Value Text)
()
haddock_workaround_ :: StorageLocationProperty -> ()
binaryPrefixLocation :: StorageLocationProperty -> Maybe (Value Text)
bucket :: StorageLocationProperty -> Maybe (Value Text)
generatedPrefixLocation :: StorageLocationProperty -> Maybe (Value Text)
manifestPrefixLocation :: StorageLocationProperty -> Maybe (Value Text)
repoPrefixLocation :: StorageLocationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
binaryPrefixLocation :: Maybe (Value Text)
bucket :: Maybe (Value Text)
generatedPrefixLocation :: Maybe (Value Text)
manifestPrefixLocation :: Maybe (Value Text)
repoPrefixLocation :: Maybe (Value Text)
..}
    = StorageLocationProperty
        {manifestPrefixLocation :: Maybe (Value Text)
manifestPrefixLocation = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ManifestPrefixLocation" StorageLocationProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
binaryPrefixLocation :: Maybe (Value Text)
bucket :: Maybe (Value Text)
generatedPrefixLocation :: Maybe (Value Text)
repoPrefixLocation :: Maybe (Value Text)
haddock_workaround_ :: ()
binaryPrefixLocation :: Maybe (Value Text)
bucket :: Maybe (Value Text)
generatedPrefixLocation :: Maybe (Value Text)
repoPrefixLocation :: Maybe (Value Text)
..}
instance Property "RepoPrefixLocation" StorageLocationProperty where
  type PropertyType "RepoPrefixLocation" StorageLocationProperty = Value Prelude.Text
  set :: PropertyType "RepoPrefixLocation" StorageLocationProperty
-> StorageLocationProperty -> StorageLocationProperty
set PropertyType "RepoPrefixLocation" StorageLocationProperty
newValue StorageLocationProperty {Maybe (Value Text)
()
haddock_workaround_ :: StorageLocationProperty -> ()
binaryPrefixLocation :: StorageLocationProperty -> Maybe (Value Text)
bucket :: StorageLocationProperty -> Maybe (Value Text)
generatedPrefixLocation :: StorageLocationProperty -> Maybe (Value Text)
manifestPrefixLocation :: StorageLocationProperty -> Maybe (Value Text)
repoPrefixLocation :: StorageLocationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
binaryPrefixLocation :: Maybe (Value Text)
bucket :: Maybe (Value Text)
generatedPrefixLocation :: Maybe (Value Text)
manifestPrefixLocation :: Maybe (Value Text)
repoPrefixLocation :: Maybe (Value Text)
..}
    = StorageLocationProperty
        {repoPrefixLocation :: Maybe (Value Text)
repoPrefixLocation = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "RepoPrefixLocation" StorageLocationProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
binaryPrefixLocation :: Maybe (Value Text)
bucket :: Maybe (Value Text)
generatedPrefixLocation :: Maybe (Value Text)
manifestPrefixLocation :: Maybe (Value Text)
haddock_workaround_ :: ()
binaryPrefixLocation :: Maybe (Value Text)
bucket :: Maybe (Value Text)
generatedPrefixLocation :: Maybe (Value Text)
manifestPrefixLocation :: Maybe (Value Text)
..}