content: module Stratosphere.DataZone.Domain.SingleSignOnProperty (
          SingleSignOnProperty(..), mkSingleSignOnProperty
      ) where
  import qualified Data.Aeson as JSON
  import qualified Stratosphere.Prelude as Prelude
  import Stratosphere.Property
  import Stratosphere.ResourceProperties
  import Stratosphere.Value
  data SingleSignOnProperty
    = SingleSignOnProperty {type' :: (Prelude.Maybe (Value Prelude.Text)),
                            userAssignment :: (Prelude.Maybe (Value Prelude.Text))}
    deriving stock (Prelude.Eq, Prelude.Show)
  mkSingleSignOnProperty :: SingleSignOnProperty
  mkSingleSignOnProperty
    = SingleSignOnProperty
        {type' = Prelude.Nothing, userAssignment = Prelude.Nothing}
  instance ToResourceProperties SingleSignOnProperty where
    toResourceProperties SingleSignOnProperty {..}
      = ResourceProperties
          {awsType = "AWS::DataZone::Domain.SingleSignOn",
           supportsTags = Prelude.False,
           properties = Prelude.fromList
                          (Prelude.catMaybes
                             [(JSON..=) "Type" Prelude.<$> type',
                              (JSON..=) "UserAssignment" Prelude.<$> userAssignment])}
  instance JSON.ToJSON SingleSignOnProperty where
    toJSON SingleSignOnProperty {..}
      = JSON.object
          (Prelude.fromList
             (Prelude.catMaybes
                [(JSON..=) "Type" Prelude.<$> type',
                 (JSON..=) "UserAssignment" Prelude.<$> userAssignment]))
  instance Property "Type" SingleSignOnProperty where
    type PropertyType "Type" SingleSignOnProperty = Value Prelude.Text
    set newValue SingleSignOnProperty {..}
      = SingleSignOnProperty {type' = Prelude.pure newValue, ..}
  instance Property "UserAssignment" SingleSignOnProperty where
    type PropertyType "UserAssignment" SingleSignOnProperty = Value Prelude.Text
    set newValue SingleSignOnProperty {..}
      = SingleSignOnProperty {userAssignment = Prelude.pure newValue, ..}