module Stratosphere.SSO.Instance ( Instance(..), mkInstance ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Stratosphere.Tag import Stratosphere.Value data Instance = -- | See: Instance {haddock_workaround_ :: (), -- | See: name :: (Prelude.Maybe (Value Prelude.Text)), -- | See: tags :: (Prelude.Maybe [Tag])} deriving stock (Prelude.Eq, Prelude.Show) mkInstance :: Instance mkInstance = Instance {haddock_workaround_ = (), name = Prelude.Nothing, tags = Prelude.Nothing} instance ToResourceProperties Instance where toResourceProperties Instance {..} = ResourceProperties {awsType = "AWS::SSO::Instance", supportsTags = Prelude.True, properties = Prelude.fromList (Prelude.catMaybes [(JSON..=) "Name" Prelude.<$> name, (JSON..=) "Tags" Prelude.<$> tags])} instance JSON.ToJSON Instance where toJSON Instance {..} = JSON.object (Prelude.fromList (Prelude.catMaybes [(JSON..=) "Name" Prelude.<$> name, (JSON..=) "Tags" Prelude.<$> tags])) instance Property "Name" Instance where type PropertyType "Name" Instance = Value Prelude.Text set newValue Instance {..} = Instance {name = Prelude.pure newValue, ..} instance Property "Tags" Instance where type PropertyType "Tags" Instance = [Tag] set newValue Instance {..} = Instance {tags = Prelude.pure newValue, ..}