module Stratosphere.ECS.Service.ServiceConnectTestTrafficRulesHeaderProperty ( module Exports, ServiceConnectTestTrafficRulesHeaderProperty(..), mkServiceConnectTestTrafficRulesHeaderProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import {-# SOURCE #-} Stratosphere.ECS.Service.ServiceConnectTestTrafficRulesHeaderValueProperty as Exports import Stratosphere.ResourceProperties import Stratosphere.Value data ServiceConnectTestTrafficRulesHeaderProperty = -- | See: ServiceConnectTestTrafficRulesHeaderProperty {haddock_workaround_ :: (), -- | See: name :: (Value Prelude.Text), -- | See: value :: (Prelude.Maybe ServiceConnectTestTrafficRulesHeaderValueProperty)} deriving stock (Prelude.Eq, Prelude.Show) mkServiceConnectTestTrafficRulesHeaderProperty :: Value Prelude.Text -> ServiceConnectTestTrafficRulesHeaderProperty mkServiceConnectTestTrafficRulesHeaderProperty name = ServiceConnectTestTrafficRulesHeaderProperty {haddock_workaround_ = (), name = name, value = Prelude.Nothing} instance ToResourceProperties ServiceConnectTestTrafficRulesHeaderProperty where toResourceProperties ServiceConnectTestTrafficRulesHeaderProperty {..} = ResourceProperties {awsType = "AWS::ECS::Service.ServiceConnectTestTrafficRulesHeader", supportsTags = Prelude.False, properties = Prelude.fromList ((Prelude.<>) ["Name" JSON..= name] (Prelude.catMaybes [(JSON..=) "Value" Prelude.<$> value]))} instance JSON.ToJSON ServiceConnectTestTrafficRulesHeaderProperty where toJSON ServiceConnectTestTrafficRulesHeaderProperty {..} = JSON.object (Prelude.fromList ((Prelude.<>) ["Name" JSON..= name] (Prelude.catMaybes [(JSON..=) "Value" Prelude.<$> value]))) instance Property "Name" ServiceConnectTestTrafficRulesHeaderProperty where type PropertyType "Name" ServiceConnectTestTrafficRulesHeaderProperty = Value Prelude.Text set newValue ServiceConnectTestTrafficRulesHeaderProperty {..} = ServiceConnectTestTrafficRulesHeaderProperty {name = newValue, ..} instance Property "Value" ServiceConnectTestTrafficRulesHeaderProperty where type PropertyType "Value" ServiceConnectTestTrafficRulesHeaderProperty = ServiceConnectTestTrafficRulesHeaderValueProperty set newValue ServiceConnectTestTrafficRulesHeaderProperty {..} = ServiceConnectTestTrafficRulesHeaderProperty {value = Prelude.pure newValue, ..}