module Stratosphere.ECS.Service.LoadBalancerProperty ( module Exports, LoadBalancerProperty(..), mkLoadBalancerProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import {-# SOURCE #-} Stratosphere.ECS.Service.AdvancedConfigurationProperty as Exports import Stratosphere.ResourceProperties import Stratosphere.Value data LoadBalancerProperty = -- | See: LoadBalancerProperty {haddock_workaround_ :: (), -- | See: advancedConfiguration :: (Prelude.Maybe AdvancedConfigurationProperty), -- | See: containerName :: (Prelude.Maybe (Value Prelude.Text)), -- | See: containerPort :: (Prelude.Maybe (Value Prelude.Integer)), -- | See: loadBalancerName :: (Prelude.Maybe (Value Prelude.Text)), -- | See: targetGroupArn :: (Prelude.Maybe (Value Prelude.Text))} deriving stock (Prelude.Eq, Prelude.Show) mkLoadBalancerProperty :: LoadBalancerProperty mkLoadBalancerProperty = LoadBalancerProperty {haddock_workaround_ = (), advancedConfiguration = Prelude.Nothing, containerName = Prelude.Nothing, containerPort = Prelude.Nothing, loadBalancerName = Prelude.Nothing, targetGroupArn = Prelude.Nothing} instance ToResourceProperties LoadBalancerProperty where toResourceProperties LoadBalancerProperty {..} = ResourceProperties {awsType = "AWS::ECS::Service.LoadBalancer", supportsTags = Prelude.False, properties = Prelude.fromList (Prelude.catMaybes [(JSON..=) "AdvancedConfiguration" Prelude.<$> advancedConfiguration, (JSON..=) "ContainerName" Prelude.<$> containerName, (JSON..=) "ContainerPort" Prelude.<$> containerPort, (JSON..=) "LoadBalancerName" Prelude.<$> loadBalancerName, (JSON..=) "TargetGroupArn" Prelude.<$> targetGroupArn])} instance JSON.ToJSON LoadBalancerProperty where toJSON LoadBalancerProperty {..} = JSON.object (Prelude.fromList (Prelude.catMaybes [(JSON..=) "AdvancedConfiguration" Prelude.<$> advancedConfiguration, (JSON..=) "ContainerName" Prelude.<$> containerName, (JSON..=) "ContainerPort" Prelude.<$> containerPort, (JSON..=) "LoadBalancerName" Prelude.<$> loadBalancerName, (JSON..=) "TargetGroupArn" Prelude.<$> targetGroupArn])) instance Property "AdvancedConfiguration" LoadBalancerProperty where type PropertyType "AdvancedConfiguration" LoadBalancerProperty = AdvancedConfigurationProperty set newValue LoadBalancerProperty {..} = LoadBalancerProperty {advancedConfiguration = Prelude.pure newValue, ..} instance Property "ContainerName" LoadBalancerProperty where type PropertyType "ContainerName" LoadBalancerProperty = Value Prelude.Text set newValue LoadBalancerProperty {..} = LoadBalancerProperty {containerName = Prelude.pure newValue, ..} instance Property "ContainerPort" LoadBalancerProperty where type PropertyType "ContainerPort" LoadBalancerProperty = Value Prelude.Integer set newValue LoadBalancerProperty {..} = LoadBalancerProperty {containerPort = Prelude.pure newValue, ..} instance Property "LoadBalancerName" LoadBalancerProperty where type PropertyType "LoadBalancerName" LoadBalancerProperty = Value Prelude.Text set newValue LoadBalancerProperty {..} = LoadBalancerProperty {loadBalancerName = Prelude.pure newValue, ..} instance Property "TargetGroupArn" LoadBalancerProperty where type PropertyType "TargetGroupArn" LoadBalancerProperty = Value Prelude.Text set newValue LoadBalancerProperty {..} = LoadBalancerProperty {targetGroupArn = Prelude.pure newValue, ..}