module Stratosphere.CodePipeline.Pipeline.ArtifactStoreProperty (
        module Exports, ArtifactStoreProperty(..), mkArtifactStoreProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.CodePipeline.Pipeline.EncryptionKeyProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ArtifactStoreProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-artifactstore.html>
    ArtifactStoreProperty {ArtifactStoreProperty -> ()
haddock_workaround_ :: (),
                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-artifactstore.html#cfn-codepipeline-pipeline-artifactstore-encryptionkey>
                           ArtifactStoreProperty -> Maybe EncryptionKeyProperty
encryptionKey :: (Prelude.Maybe EncryptionKeyProperty),
                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-artifactstore.html#cfn-codepipeline-pipeline-artifactstore-location>
                           ArtifactStoreProperty -> Value Text
location :: (Value Prelude.Text),
                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-artifactstore.html#cfn-codepipeline-pipeline-artifactstore-type>
                           ArtifactStoreProperty -> Value Text
type' :: (Value Prelude.Text)}
  deriving stock (ArtifactStoreProperty -> ArtifactStoreProperty -> Bool
(ArtifactStoreProperty -> ArtifactStoreProperty -> Bool)
-> (ArtifactStoreProperty -> ArtifactStoreProperty -> Bool)
-> Eq ArtifactStoreProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ArtifactStoreProperty -> ArtifactStoreProperty -> Bool
== :: ArtifactStoreProperty -> ArtifactStoreProperty -> Bool
$c/= :: ArtifactStoreProperty -> ArtifactStoreProperty -> Bool
/= :: ArtifactStoreProperty -> ArtifactStoreProperty -> Bool
Prelude.Eq, Int -> ArtifactStoreProperty -> ShowS
[ArtifactStoreProperty] -> ShowS
ArtifactStoreProperty -> String
(Int -> ArtifactStoreProperty -> ShowS)
-> (ArtifactStoreProperty -> String)
-> ([ArtifactStoreProperty] -> ShowS)
-> Show ArtifactStoreProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ArtifactStoreProperty -> ShowS
showsPrec :: Int -> ArtifactStoreProperty -> ShowS
$cshow :: ArtifactStoreProperty -> String
show :: ArtifactStoreProperty -> String
$cshowList :: [ArtifactStoreProperty] -> ShowS
showList :: [ArtifactStoreProperty] -> ShowS
Prelude.Show)
mkArtifactStoreProperty ::
  Value Prelude.Text -> Value Prelude.Text -> ArtifactStoreProperty
mkArtifactStoreProperty :: Value Text -> Value Text -> ArtifactStoreProperty
mkArtifactStoreProperty Value Text
location Value Text
type'
  = ArtifactStoreProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), location :: Value Text
location = Value Text
location, type' :: Value Text
type' = Value Text
type',
       encryptionKey :: Maybe EncryptionKeyProperty
encryptionKey = Maybe EncryptionKeyProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ArtifactStoreProperty where
  toResourceProperties :: ArtifactStoreProperty -> ResourceProperties
toResourceProperties ArtifactStoreProperty {Maybe EncryptionKeyProperty
()
Value Text
haddock_workaround_ :: ArtifactStoreProperty -> ()
encryptionKey :: ArtifactStoreProperty -> Maybe EncryptionKeyProperty
location :: ArtifactStoreProperty -> Value Text
type' :: ArtifactStoreProperty -> Value Text
haddock_workaround_ :: ()
encryptionKey :: Maybe EncryptionKeyProperty
location :: Value Text
type' :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::CodePipeline::Pipeline.ArtifactStore",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
                        ([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
                           [Key
"Location" 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
location, Key
"Type" 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
type']
                           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                              [Key -> EncryptionKeyProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"EncryptionKey" (EncryptionKeyProperty -> (Key, Value))
-> Maybe EncryptionKeyProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe EncryptionKeyProperty
encryptionKey]))}
instance JSON.ToJSON ArtifactStoreProperty where
  toJSON :: ArtifactStoreProperty -> Value
toJSON ArtifactStoreProperty {Maybe EncryptionKeyProperty
()
Value Text
haddock_workaround_ :: ArtifactStoreProperty -> ()
encryptionKey :: ArtifactStoreProperty -> Maybe EncryptionKeyProperty
location :: ArtifactStoreProperty -> Value Text
type' :: ArtifactStoreProperty -> Value Text
haddock_workaround_ :: ()
encryptionKey :: Maybe EncryptionKeyProperty
location :: Value Text
type' :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object
        ([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
           ([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
              [Key
"Location" 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
location, Key
"Type" 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
type']
              ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                 [Key -> EncryptionKeyProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"EncryptionKey" (EncryptionKeyProperty -> (Key, Value))
-> Maybe EncryptionKeyProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe EncryptionKeyProperty
encryptionKey])))
instance Property "EncryptionKey" ArtifactStoreProperty where
  type PropertyType "EncryptionKey" ArtifactStoreProperty = EncryptionKeyProperty
  set :: PropertyType "EncryptionKey" ArtifactStoreProperty
-> ArtifactStoreProperty -> ArtifactStoreProperty
set PropertyType "EncryptionKey" ArtifactStoreProperty
newValue ArtifactStoreProperty {Maybe EncryptionKeyProperty
()
Value Text
haddock_workaround_ :: ArtifactStoreProperty -> ()
encryptionKey :: ArtifactStoreProperty -> Maybe EncryptionKeyProperty
location :: ArtifactStoreProperty -> Value Text
type' :: ArtifactStoreProperty -> Value Text
haddock_workaround_ :: ()
encryptionKey :: Maybe EncryptionKeyProperty
location :: Value Text
type' :: Value Text
..}
    = ArtifactStoreProperty {encryptionKey :: Maybe EncryptionKeyProperty
encryptionKey = EncryptionKeyProperty -> Maybe EncryptionKeyProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "EncryptionKey" ArtifactStoreProperty
EncryptionKeyProperty
newValue, ()
Value Text
haddock_workaround_ :: ()
location :: Value Text
type' :: Value Text
haddock_workaround_ :: ()
location :: Value Text
type' :: Value Text
..}
instance Property "Location" ArtifactStoreProperty where
  type PropertyType "Location" ArtifactStoreProperty = Value Prelude.Text
  set :: PropertyType "Location" ArtifactStoreProperty
-> ArtifactStoreProperty -> ArtifactStoreProperty
set PropertyType "Location" ArtifactStoreProperty
newValue ArtifactStoreProperty {Maybe EncryptionKeyProperty
()
Value Text
haddock_workaround_ :: ArtifactStoreProperty -> ()
encryptionKey :: ArtifactStoreProperty -> Maybe EncryptionKeyProperty
location :: ArtifactStoreProperty -> Value Text
type' :: ArtifactStoreProperty -> Value Text
haddock_workaround_ :: ()
encryptionKey :: Maybe EncryptionKeyProperty
location :: Value Text
type' :: Value Text
..}
    = ArtifactStoreProperty {location :: Value Text
location = PropertyType "Location" ArtifactStoreProperty
Value Text
newValue, Maybe EncryptionKeyProperty
()
Value Text
haddock_workaround_ :: ()
encryptionKey :: Maybe EncryptionKeyProperty
type' :: Value Text
haddock_workaround_ :: ()
encryptionKey :: Maybe EncryptionKeyProperty
type' :: Value Text
..}
instance Property "Type" ArtifactStoreProperty where
  type PropertyType "Type" ArtifactStoreProperty = Value Prelude.Text
  set :: PropertyType "Type" ArtifactStoreProperty
-> ArtifactStoreProperty -> ArtifactStoreProperty
set PropertyType "Type" ArtifactStoreProperty
newValue ArtifactStoreProperty {Maybe EncryptionKeyProperty
()
Value Text
haddock_workaround_ :: ArtifactStoreProperty -> ()
encryptionKey :: ArtifactStoreProperty -> Maybe EncryptionKeyProperty
location :: ArtifactStoreProperty -> Value Text
type' :: ArtifactStoreProperty -> Value Text
haddock_workaround_ :: ()
encryptionKey :: Maybe EncryptionKeyProperty
location :: Value Text
type' :: Value Text
..}
    = ArtifactStoreProperty {type' :: Value Text
type' = PropertyType "Type" ArtifactStoreProperty
Value Text
newValue, Maybe EncryptionKeyProperty
()
Value Text
haddock_workaround_ :: ()
encryptionKey :: Maybe EncryptionKeyProperty
location :: Value Text
haddock_workaround_ :: ()
encryptionKey :: Maybe EncryptionKeyProperty
location :: Value Text
..}