module Stratosphere.PCS.ComputeNodeGroup.ErrorInfoProperty ( ErrorInfoProperty(..), mkErrorInfoProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Stratosphere.Value data ErrorInfoProperty = -- | See: ErrorInfoProperty {haddock_workaround_ :: (), -- | See: code :: (Prelude.Maybe (Value Prelude.Text)), -- | See: message :: (Prelude.Maybe (Value Prelude.Text))} deriving stock (Prelude.Eq, Prelude.Show) mkErrorInfoProperty :: ErrorInfoProperty mkErrorInfoProperty = ErrorInfoProperty {haddock_workaround_ = (), code = Prelude.Nothing, message = Prelude.Nothing} instance ToResourceProperties ErrorInfoProperty where toResourceProperties ErrorInfoProperty {..} = ResourceProperties {awsType = "AWS::PCS::ComputeNodeGroup.ErrorInfo", supportsTags = Prelude.False, properties = Prelude.fromList (Prelude.catMaybes [(JSON..=) "Code" Prelude.<$> code, (JSON..=) "Message" Prelude.<$> message])} instance JSON.ToJSON ErrorInfoProperty where toJSON ErrorInfoProperty {..} = JSON.object (Prelude.fromList (Prelude.catMaybes [(JSON..=) "Code" Prelude.<$> code, (JSON..=) "Message" Prelude.<$> message])) instance Property "Code" ErrorInfoProperty where type PropertyType "Code" ErrorInfoProperty = Value Prelude.Text set newValue ErrorInfoProperty {..} = ErrorInfoProperty {code = Prelude.pure newValue, ..} instance Property "Message" ErrorInfoProperty where type PropertyType "Message" ErrorInfoProperty = Value Prelude.Text set newValue ErrorInfoProperty {..} = ErrorInfoProperty {message = Prelude.pure newValue, ..}