packages feed

stratosphere-deadline-1.0.0: gen/Stratosphere/Deadline/Queue/WindowsUserProperty.hs

module Stratosphere.Deadline.Queue.WindowsUserProperty (
        WindowsUserProperty(..), mkWindowsUserProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data WindowsUserProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-deadline-queue-windowsuser.html>
    WindowsUserProperty {haddock_workaround_ :: (),
                         -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-deadline-queue-windowsuser.html#cfn-deadline-queue-windowsuser-passwordarn>
                         passwordArn :: (Value Prelude.Text),
                         -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-deadline-queue-windowsuser.html#cfn-deadline-queue-windowsuser-user>
                         user :: (Value Prelude.Text)}
  deriving stock (Prelude.Eq, Prelude.Show)
mkWindowsUserProperty ::
  Value Prelude.Text -> Value Prelude.Text -> WindowsUserProperty
mkWindowsUserProperty passwordArn user
  = WindowsUserProperty
      {haddock_workaround_ = (), passwordArn = passwordArn, user = user}
instance ToResourceProperties WindowsUserProperty where
  toResourceProperties WindowsUserProperty {..}
    = ResourceProperties
        {awsType = "AWS::Deadline::Queue.WindowsUser",
         supportsTags = Prelude.False,
         properties = ["PasswordArn" JSON..= passwordArn,
                       "User" JSON..= user]}
instance JSON.ToJSON WindowsUserProperty where
  toJSON WindowsUserProperty {..}
    = JSON.object
        ["PasswordArn" JSON..= passwordArn, "User" JSON..= user]
instance Property "PasswordArn" WindowsUserProperty where
  type PropertyType "PasswordArn" WindowsUserProperty = Value Prelude.Text
  set newValue WindowsUserProperty {..}
    = WindowsUserProperty {passwordArn = newValue, ..}
instance Property "User" WindowsUserProperty where
  type PropertyType "User" WindowsUserProperty = Value Prelude.Text
  set newValue WindowsUserProperty {..}
    = WindowsUserProperty {user = newValue, ..}