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