module Stratosphere.ECS.Service.VpcLatticeConfigurationProperty (
        VpcLatticeConfigurationProperty(..),
        mkVpcLatticeConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data VpcLatticeConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-vpclatticeconfiguration.html>
    VpcLatticeConfigurationProperty {VpcLatticeConfigurationProperty -> ()
haddock_workaround_ :: (),
                                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-vpclatticeconfiguration.html#cfn-ecs-service-vpclatticeconfiguration-portname>
                                     VpcLatticeConfigurationProperty -> Value Text
portName :: (Value Prelude.Text),
                                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-vpclatticeconfiguration.html#cfn-ecs-service-vpclatticeconfiguration-rolearn>
                                     VpcLatticeConfigurationProperty -> Value Text
roleArn :: (Value Prelude.Text),
                                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-vpclatticeconfiguration.html#cfn-ecs-service-vpclatticeconfiguration-targetgrouparn>
                                     VpcLatticeConfigurationProperty -> Value Text
targetGroupArn :: (Value Prelude.Text)}
  deriving stock (VpcLatticeConfigurationProperty
-> VpcLatticeConfigurationProperty -> Bool
(VpcLatticeConfigurationProperty
 -> VpcLatticeConfigurationProperty -> Bool)
-> (VpcLatticeConfigurationProperty
    -> VpcLatticeConfigurationProperty -> Bool)
-> Eq VpcLatticeConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: VpcLatticeConfigurationProperty
-> VpcLatticeConfigurationProperty -> Bool
== :: VpcLatticeConfigurationProperty
-> VpcLatticeConfigurationProperty -> Bool
$c/= :: VpcLatticeConfigurationProperty
-> VpcLatticeConfigurationProperty -> Bool
/= :: VpcLatticeConfigurationProperty
-> VpcLatticeConfigurationProperty -> Bool
Prelude.Eq, Int -> VpcLatticeConfigurationProperty -> ShowS
[VpcLatticeConfigurationProperty] -> ShowS
VpcLatticeConfigurationProperty -> String
(Int -> VpcLatticeConfigurationProperty -> ShowS)
-> (VpcLatticeConfigurationProperty -> String)
-> ([VpcLatticeConfigurationProperty] -> ShowS)
-> Show VpcLatticeConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> VpcLatticeConfigurationProperty -> ShowS
showsPrec :: Int -> VpcLatticeConfigurationProperty -> ShowS
$cshow :: VpcLatticeConfigurationProperty -> String
show :: VpcLatticeConfigurationProperty -> String
$cshowList :: [VpcLatticeConfigurationProperty] -> ShowS
showList :: [VpcLatticeConfigurationProperty] -> ShowS
Prelude.Show)
mkVpcLatticeConfigurationProperty ::
  Value Prelude.Text
  -> Value Prelude.Text
     -> Value Prelude.Text -> VpcLatticeConfigurationProperty
mkVpcLatticeConfigurationProperty :: Value Text
-> Value Text -> Value Text -> VpcLatticeConfigurationProperty
mkVpcLatticeConfigurationProperty Value Text
portName Value Text
roleArn Value Text
targetGroupArn
  = VpcLatticeConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), portName :: Value Text
portName = Value Text
portName, roleArn :: Value Text
roleArn = Value Text
roleArn,
       targetGroupArn :: Value Text
targetGroupArn = Value Text
targetGroupArn}
instance ToResourceProperties VpcLatticeConfigurationProperty where
  toResourceProperties :: VpcLatticeConfigurationProperty -> ResourceProperties
toResourceProperties VpcLatticeConfigurationProperty {()
Value Text
haddock_workaround_ :: VpcLatticeConfigurationProperty -> ()
portName :: VpcLatticeConfigurationProperty -> Value Text
roleArn :: VpcLatticeConfigurationProperty -> Value Text
targetGroupArn :: VpcLatticeConfigurationProperty -> Value Text
haddock_workaround_ :: ()
portName :: Value Text
roleArn :: Value Text
targetGroupArn :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::ECS::Service.VpcLatticeConfiguration",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"PortName" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
portName,
                       Key
"RoleArn" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
roleArn,
                       Key
"TargetGroupArn" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
targetGroupArn]}
instance JSON.ToJSON VpcLatticeConfigurationProperty where
  toJSON :: VpcLatticeConfigurationProperty -> Value
toJSON VpcLatticeConfigurationProperty {()
Value Text
haddock_workaround_ :: VpcLatticeConfigurationProperty -> ()
portName :: VpcLatticeConfigurationProperty -> Value Text
roleArn :: VpcLatticeConfigurationProperty -> Value Text
targetGroupArn :: VpcLatticeConfigurationProperty -> Value Text
haddock_workaround_ :: ()
portName :: Value Text
roleArn :: Value Text
targetGroupArn :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object
        [Key
"PortName" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
portName, Key
"RoleArn" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
roleArn,
         Key
"TargetGroupArn" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
targetGroupArn]
instance Property "PortName" VpcLatticeConfigurationProperty where
  type PropertyType "PortName" VpcLatticeConfigurationProperty = Value Prelude.Text
  set :: PropertyType "PortName" VpcLatticeConfigurationProperty
-> VpcLatticeConfigurationProperty
-> VpcLatticeConfigurationProperty
set PropertyType "PortName" VpcLatticeConfigurationProperty
newValue VpcLatticeConfigurationProperty {()
Value Text
haddock_workaround_ :: VpcLatticeConfigurationProperty -> ()
portName :: VpcLatticeConfigurationProperty -> Value Text
roleArn :: VpcLatticeConfigurationProperty -> Value Text
targetGroupArn :: VpcLatticeConfigurationProperty -> Value Text
haddock_workaround_ :: ()
portName :: Value Text
roleArn :: Value Text
targetGroupArn :: Value Text
..}
    = VpcLatticeConfigurationProperty {portName :: Value Text
portName = PropertyType "PortName" VpcLatticeConfigurationProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
roleArn :: Value Text
targetGroupArn :: Value Text
haddock_workaround_ :: ()
roleArn :: Value Text
targetGroupArn :: Value Text
..}
instance Property "RoleArn" VpcLatticeConfigurationProperty where
  type PropertyType "RoleArn" VpcLatticeConfigurationProperty = Value Prelude.Text
  set :: PropertyType "RoleArn" VpcLatticeConfigurationProperty
-> VpcLatticeConfigurationProperty
-> VpcLatticeConfigurationProperty
set PropertyType "RoleArn" VpcLatticeConfigurationProperty
newValue VpcLatticeConfigurationProperty {()
Value Text
haddock_workaround_ :: VpcLatticeConfigurationProperty -> ()
portName :: VpcLatticeConfigurationProperty -> Value Text
roleArn :: VpcLatticeConfigurationProperty -> Value Text
targetGroupArn :: VpcLatticeConfigurationProperty -> Value Text
haddock_workaround_ :: ()
portName :: Value Text
roleArn :: Value Text
targetGroupArn :: Value Text
..}
    = VpcLatticeConfigurationProperty {roleArn :: Value Text
roleArn = PropertyType "RoleArn" VpcLatticeConfigurationProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
portName :: Value Text
targetGroupArn :: Value Text
haddock_workaround_ :: ()
portName :: Value Text
targetGroupArn :: Value Text
..}
instance Property "TargetGroupArn" VpcLatticeConfigurationProperty where
  type PropertyType "TargetGroupArn" VpcLatticeConfigurationProperty = Value Prelude.Text
  set :: PropertyType "TargetGroupArn" VpcLatticeConfigurationProperty
-> VpcLatticeConfigurationProperty
-> VpcLatticeConfigurationProperty
set PropertyType "TargetGroupArn" VpcLatticeConfigurationProperty
newValue VpcLatticeConfigurationProperty {()
Value Text
haddock_workaround_ :: VpcLatticeConfigurationProperty -> ()
portName :: VpcLatticeConfigurationProperty -> Value Text
roleArn :: VpcLatticeConfigurationProperty -> Value Text
targetGroupArn :: VpcLatticeConfigurationProperty -> Value Text
haddock_workaround_ :: ()
portName :: Value Text
roleArn :: Value Text
targetGroupArn :: Value Text
..}
    = VpcLatticeConfigurationProperty {targetGroupArn :: Value Text
targetGroupArn = PropertyType "TargetGroupArn" VpcLatticeConfigurationProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
portName :: Value Text
roleArn :: Value Text
haddock_workaround_ :: ()
portName :: Value Text
roleArn :: Value Text
..}