content: module Stratosphere.AppMesh.VirtualNode.GrpcTimeoutProperty (
          module Exports, GrpcTimeoutProperty(..), mkGrpcTimeoutProperty
      ) where
  import qualified Data.Aeson as JSON
  import qualified Stratosphere.Prelude as Prelude
  import Stratosphere.Property
  import {-# SOURCE #-} Stratosphere.AppMesh.VirtualNode.DurationProperty as Exports
  import Stratosphere.ResourceProperties
  data GrpcTimeoutProperty
    = GrpcTimeoutProperty {idle :: (Prelude.Maybe DurationProperty),
                           perRequest :: (Prelude.Maybe DurationProperty)}
    deriving stock (Prelude.Eq, Prelude.Show)
  mkGrpcTimeoutProperty :: GrpcTimeoutProperty
  mkGrpcTimeoutProperty
    = GrpcTimeoutProperty
        {idle = Prelude.Nothing, perRequest = Prelude.Nothing}
  instance ToResourceProperties GrpcTimeoutProperty where
    toResourceProperties GrpcTimeoutProperty {..}
      = ResourceProperties
          {awsType = "AWS::AppMesh::VirtualNode.GrpcTimeout",
           supportsTags = Prelude.False,
           properties = Prelude.fromList
                          (Prelude.catMaybes
                             [(JSON..=) "Idle" Prelude.<$> idle,
                              (JSON..=) "PerRequest" Prelude.<$> perRequest])}
  instance JSON.ToJSON GrpcTimeoutProperty where
    toJSON GrpcTimeoutProperty {..}
      = JSON.object
          (Prelude.fromList
             (Prelude.catMaybes
                [(JSON..=) "Idle" Prelude.<$> idle,
                 (JSON..=) "PerRequest" Prelude.<$> perRequest]))
  instance Property "Idle" GrpcTimeoutProperty where
    type PropertyType "Idle" GrpcTimeoutProperty = DurationProperty
    set newValue GrpcTimeoutProperty {..}
      = GrpcTimeoutProperty {idle = Prelude.pure newValue, ..}
  instance Property "PerRequest" GrpcTimeoutProperty where
    type PropertyType "PerRequest" GrpcTimeoutProperty = DurationProperty
    set newValue GrpcTimeoutProperty {..}
      = GrpcTimeoutProperty {perRequest = Prelude.pure newValue, ..}