module Stratosphere.AppMesh.VirtualGateway.VirtualGatewayConnectionPoolProperty ( module Exports, VirtualGatewayConnectionPoolProperty(..), mkVirtualGatewayConnectionPoolProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import {-# SOURCE #-} Stratosphere.AppMesh.VirtualGateway.VirtualGatewayGrpcConnectionPoolProperty as Exports import {-# SOURCE #-} Stratosphere.AppMesh.VirtualGateway.VirtualGatewayHttp2ConnectionPoolProperty as Exports import {-# SOURCE #-} Stratosphere.AppMesh.VirtualGateway.VirtualGatewayHttpConnectionPoolProperty as Exports import Stratosphere.ResourceProperties data VirtualGatewayConnectionPoolProperty = -- | See: VirtualGatewayConnectionPoolProperty {haddock_workaround_ :: (), -- | See: gRPC :: (Prelude.Maybe VirtualGatewayGrpcConnectionPoolProperty), -- | See: hTTP :: (Prelude.Maybe VirtualGatewayHttpConnectionPoolProperty), -- | See: hTTP2 :: (Prelude.Maybe VirtualGatewayHttp2ConnectionPoolProperty)} deriving stock (Prelude.Eq, Prelude.Show) mkVirtualGatewayConnectionPoolProperty :: VirtualGatewayConnectionPoolProperty mkVirtualGatewayConnectionPoolProperty = VirtualGatewayConnectionPoolProperty {haddock_workaround_ = (), gRPC = Prelude.Nothing, hTTP = Prelude.Nothing, hTTP2 = Prelude.Nothing} instance ToResourceProperties VirtualGatewayConnectionPoolProperty where toResourceProperties VirtualGatewayConnectionPoolProperty {..} = ResourceProperties {awsType = "AWS::AppMesh::VirtualGateway.VirtualGatewayConnectionPool", supportsTags = Prelude.False, properties = Prelude.fromList (Prelude.catMaybes [(JSON..=) "GRPC" Prelude.<$> gRPC, (JSON..=) "HTTP" Prelude.<$> hTTP, (JSON..=) "HTTP2" Prelude.<$> hTTP2])} instance JSON.ToJSON VirtualGatewayConnectionPoolProperty where toJSON VirtualGatewayConnectionPoolProperty {..} = JSON.object (Prelude.fromList (Prelude.catMaybes [(JSON..=) "GRPC" Prelude.<$> gRPC, (JSON..=) "HTTP" Prelude.<$> hTTP, (JSON..=) "HTTP2" Prelude.<$> hTTP2])) instance Property "GRPC" VirtualGatewayConnectionPoolProperty where type PropertyType "GRPC" VirtualGatewayConnectionPoolProperty = VirtualGatewayGrpcConnectionPoolProperty set newValue VirtualGatewayConnectionPoolProperty {..} = VirtualGatewayConnectionPoolProperty {gRPC = Prelude.pure newValue, ..} instance Property "HTTP" VirtualGatewayConnectionPoolProperty where type PropertyType "HTTP" VirtualGatewayConnectionPoolProperty = VirtualGatewayHttpConnectionPoolProperty set newValue VirtualGatewayConnectionPoolProperty {..} = VirtualGatewayConnectionPoolProperty {hTTP = Prelude.pure newValue, ..} instance Property "HTTP2" VirtualGatewayConnectionPoolProperty where type PropertyType "HTTP2" VirtualGatewayConnectionPoolProperty = VirtualGatewayHttp2ConnectionPoolProperty set newValue VirtualGatewayConnectionPoolProperty {..} = VirtualGatewayConnectionPoolProperty {hTTP2 = Prelude.pure newValue, ..}