module Stratosphere.Batch.JobDefinition.RepositoryCredentialsProperty (
        RepositoryCredentialsProperty(..), mkRepositoryCredentialsProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data RepositoryCredentialsProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-repositorycredentials.html>
    RepositoryCredentialsProperty {RepositoryCredentialsProperty -> ()
haddock_workaround_ :: (),
                                   -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-repositorycredentials.html#cfn-batch-jobdefinition-repositorycredentials-credentialsparameter>
                                   RepositoryCredentialsProperty -> Value Text
credentialsParameter :: (Value Prelude.Text)}
  deriving stock (RepositoryCredentialsProperty
-> RepositoryCredentialsProperty -> Bool
(RepositoryCredentialsProperty
 -> RepositoryCredentialsProperty -> Bool)
-> (RepositoryCredentialsProperty
    -> RepositoryCredentialsProperty -> Bool)
-> Eq RepositoryCredentialsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: RepositoryCredentialsProperty
-> RepositoryCredentialsProperty -> Bool
== :: RepositoryCredentialsProperty
-> RepositoryCredentialsProperty -> Bool
$c/= :: RepositoryCredentialsProperty
-> RepositoryCredentialsProperty -> Bool
/= :: RepositoryCredentialsProperty
-> RepositoryCredentialsProperty -> Bool
Prelude.Eq, Int -> RepositoryCredentialsProperty -> ShowS
[RepositoryCredentialsProperty] -> ShowS
RepositoryCredentialsProperty -> String
(Int -> RepositoryCredentialsProperty -> ShowS)
-> (RepositoryCredentialsProperty -> String)
-> ([RepositoryCredentialsProperty] -> ShowS)
-> Show RepositoryCredentialsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> RepositoryCredentialsProperty -> ShowS
showsPrec :: Int -> RepositoryCredentialsProperty -> ShowS
$cshow :: RepositoryCredentialsProperty -> String
show :: RepositoryCredentialsProperty -> String
$cshowList :: [RepositoryCredentialsProperty] -> ShowS
showList :: [RepositoryCredentialsProperty] -> ShowS
Prelude.Show)
mkRepositoryCredentialsProperty ::
  Value Prelude.Text -> RepositoryCredentialsProperty
mkRepositoryCredentialsProperty :: Value Text -> RepositoryCredentialsProperty
mkRepositoryCredentialsProperty Value Text
credentialsParameter
  = RepositoryCredentialsProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (),
       credentialsParameter :: Value Text
credentialsParameter = Value Text
credentialsParameter}
instance ToResourceProperties RepositoryCredentialsProperty where
  toResourceProperties :: RepositoryCredentialsProperty -> ResourceProperties
toResourceProperties RepositoryCredentialsProperty {()
Value Text
haddock_workaround_ :: RepositoryCredentialsProperty -> ()
credentialsParameter :: RepositoryCredentialsProperty -> Value Text
haddock_workaround_ :: ()
credentialsParameter :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Batch::JobDefinition.RepositoryCredentials",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"CredentialsParameter" 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
credentialsParameter]}
instance JSON.ToJSON RepositoryCredentialsProperty where
  toJSON :: RepositoryCredentialsProperty -> Value
toJSON RepositoryCredentialsProperty {()
Value Text
haddock_workaround_ :: RepositoryCredentialsProperty -> ()
credentialsParameter :: RepositoryCredentialsProperty -> Value Text
haddock_workaround_ :: ()
credentialsParameter :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object [Key
"CredentialsParameter" 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
credentialsParameter]
instance Property "CredentialsParameter" RepositoryCredentialsProperty where
  type PropertyType "CredentialsParameter" RepositoryCredentialsProperty = Value Prelude.Text
  set :: PropertyType "CredentialsParameter" RepositoryCredentialsProperty
-> RepositoryCredentialsProperty -> RepositoryCredentialsProperty
set PropertyType "CredentialsParameter" RepositoryCredentialsProperty
newValue RepositoryCredentialsProperty {()
Value Text
haddock_workaround_ :: RepositoryCredentialsProperty -> ()
credentialsParameter :: RepositoryCredentialsProperty -> Value Text
haddock_workaround_ :: ()
credentialsParameter :: Value Text
..}
    = RepositoryCredentialsProperty
        {credentialsParameter :: Value Text
credentialsParameter = PropertyType "CredentialsParameter" RepositoryCredentialsProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}