packages feed

stratosphere-appmesh-1.0.0: gen/Stratosphere/AppMesh/VirtualNode/BackendDefaultsProperty.hs

module Stratosphere.AppMesh.VirtualNode.BackendDefaultsProperty (
        module Exports, BackendDefaultsProperty(..),
        mkBackendDefaultsProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.AppMesh.VirtualNode.ClientPolicyProperty as Exports
import Stratosphere.ResourceProperties
data BackendDefaultsProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-backenddefaults.html>
    BackendDefaultsProperty {haddock_workaround_ :: (),
                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-backenddefaults.html#cfn-appmesh-virtualnode-backenddefaults-clientpolicy>
                             clientPolicy :: (Prelude.Maybe ClientPolicyProperty)}
  deriving stock (Prelude.Eq, Prelude.Show)
mkBackendDefaultsProperty :: BackendDefaultsProperty
mkBackendDefaultsProperty
  = BackendDefaultsProperty
      {haddock_workaround_ = (), clientPolicy = Prelude.Nothing}
instance ToResourceProperties BackendDefaultsProperty where
  toResourceProperties BackendDefaultsProperty {..}
    = ResourceProperties
        {awsType = "AWS::AppMesh::VirtualNode.BackendDefaults",
         supportsTags = Prelude.False,
         properties = Prelude.fromList
                        (Prelude.catMaybes
                           [(JSON..=) "ClientPolicy" Prelude.<$> clientPolicy])}
instance JSON.ToJSON BackendDefaultsProperty where
  toJSON BackendDefaultsProperty {..}
    = JSON.object
        (Prelude.fromList
           (Prelude.catMaybes
              [(JSON..=) "ClientPolicy" Prelude.<$> clientPolicy]))
instance Property "ClientPolicy" BackendDefaultsProperty where
  type PropertyType "ClientPolicy" BackendDefaultsProperty = ClientPolicyProperty
  set newValue BackendDefaultsProperty {..}
    = BackendDefaultsProperty
        {clientPolicy = Prelude.pure newValue, ..}