module Stratosphere.Elasticsearch.Domain.ColdStorageOptionsProperty ( ColdStorageOptionsProperty(..), mkColdStorageOptionsProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Stratosphere.Value data ColdStorageOptionsProperty = -- | See: ColdStorageOptionsProperty {haddock_workaround_ :: (), -- | See: enabled :: (Prelude.Maybe (Value Prelude.Bool))} deriving stock (Prelude.Eq, Prelude.Show) mkColdStorageOptionsProperty :: ColdStorageOptionsProperty mkColdStorageOptionsProperty = ColdStorageOptionsProperty {haddock_workaround_ = (), enabled = Prelude.Nothing} instance ToResourceProperties ColdStorageOptionsProperty where toResourceProperties ColdStorageOptionsProperty {..} = ResourceProperties {awsType = "AWS::Elasticsearch::Domain.ColdStorageOptions", supportsTags = Prelude.False, properties = Prelude.fromList (Prelude.catMaybes [(JSON..=) "Enabled" Prelude.<$> enabled])} instance JSON.ToJSON ColdStorageOptionsProperty where toJSON ColdStorageOptionsProperty {..} = JSON.object (Prelude.fromList (Prelude.catMaybes [(JSON..=) "Enabled" Prelude.<$> enabled])) instance Property "Enabled" ColdStorageOptionsProperty where type PropertyType "Enabled" ColdStorageOptionsProperty = Value Prelude.Bool set newValue ColdStorageOptionsProperty {..} = ColdStorageOptionsProperty {enabled = Prelude.pure newValue, ..}