module Stratosphere.ElasticLoadBalancing.LoadBalancer.PoliciesProperty (
PoliciesProperty(..), mkPoliciesProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data PoliciesProperty
=
PoliciesProperty {PoliciesProperty -> ()
haddock_workaround_ :: (),
PoliciesProperty -> Object
attributes :: JSON.Object,
PoliciesProperty -> Maybe (ValueList Text)
instancePorts :: (Prelude.Maybe (ValueList Prelude.Text)),
PoliciesProperty -> Maybe (ValueList Text)
loadBalancerPorts :: (Prelude.Maybe (ValueList Prelude.Text)),
PoliciesProperty -> Value Text
policyName :: (Value Prelude.Text),
PoliciesProperty -> Value Text
policyType :: (Value Prelude.Text)}
deriving stock (PoliciesProperty -> PoliciesProperty -> Bool
(PoliciesProperty -> PoliciesProperty -> Bool)
-> (PoliciesProperty -> PoliciesProperty -> Bool)
-> Eq PoliciesProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: PoliciesProperty -> PoliciesProperty -> Bool
== :: PoliciesProperty -> PoliciesProperty -> Bool
$c/= :: PoliciesProperty -> PoliciesProperty -> Bool
/= :: PoliciesProperty -> PoliciesProperty -> Bool
Prelude.Eq, Int -> PoliciesProperty -> ShowS
[PoliciesProperty] -> ShowS
PoliciesProperty -> String
(Int -> PoliciesProperty -> ShowS)
-> (PoliciesProperty -> String)
-> ([PoliciesProperty] -> ShowS)
-> Show PoliciesProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> PoliciesProperty -> ShowS
showsPrec :: Int -> PoliciesProperty -> ShowS
$cshow :: PoliciesProperty -> String
show :: PoliciesProperty -> String
$cshowList :: [PoliciesProperty] -> ShowS
showList :: [PoliciesProperty] -> ShowS
Prelude.Show)
mkPoliciesProperty ::
JSON.Object
-> Value Prelude.Text -> Value Prelude.Text -> PoliciesProperty
mkPoliciesProperty :: Object -> Value Text -> Value Text -> PoliciesProperty
mkPoliciesProperty Object
attributes Value Text
policyName Value Text
policyType
= PoliciesProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), attributes :: Object
attributes = Object
attributes,
policyName :: Value Text
policyName = Value Text
policyName, policyType :: Value Text
policyType = Value Text
policyType,
instancePorts :: Maybe (ValueList Text)
instancePorts = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing,
loadBalancerPorts :: Maybe (ValueList Text)
loadBalancerPorts = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties PoliciesProperty where
toResourceProperties :: PoliciesProperty -> ResourceProperties
toResourceProperties PoliciesProperty {Maybe (ValueList Text)
()
Object
Value Text
haddock_workaround_ :: PoliciesProperty -> ()
attributes :: PoliciesProperty -> Object
instancePorts :: PoliciesProperty -> Maybe (ValueList Text)
loadBalancerPorts :: PoliciesProperty -> Maybe (ValueList Text)
policyName :: PoliciesProperty -> Value Text
policyType :: PoliciesProperty -> Value Text
haddock_workaround_ :: ()
attributes :: Object
instancePorts :: Maybe (ValueList Text)
loadBalancerPorts :: Maybe (ValueList Text)
policyName :: Value Text
policyType :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::ElasticLoadBalancing::LoadBalancer.Policies",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"Attributes" Key -> Object -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Object
attributes, Key
"PolicyName" 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
policyName,
Key
"PolicyType" 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
policyType]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> ValueList Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"InstancePorts" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
instancePorts,
Key -> ValueList Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"LoadBalancerPorts" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
loadBalancerPorts]))}
instance JSON.ToJSON PoliciesProperty where
toJSON :: PoliciesProperty -> Value
toJSON PoliciesProperty {Maybe (ValueList Text)
()
Object
Value Text
haddock_workaround_ :: PoliciesProperty -> ()
attributes :: PoliciesProperty -> Object
instancePorts :: PoliciesProperty -> Maybe (ValueList Text)
loadBalancerPorts :: PoliciesProperty -> Maybe (ValueList Text)
policyName :: PoliciesProperty -> Value Text
policyType :: PoliciesProperty -> Value Text
haddock_workaround_ :: ()
attributes :: Object
instancePorts :: Maybe (ValueList Text)
loadBalancerPorts :: Maybe (ValueList Text)
policyName :: Value Text
policyType :: Value Text
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"Attributes" Key -> Object -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Object
attributes, Key
"PolicyName" 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
policyName,
Key
"PolicyType" 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
policyType]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> ValueList Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"InstancePorts" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
instancePorts,
Key -> ValueList Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"LoadBalancerPorts" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
loadBalancerPorts])))
instance Property "Attributes" PoliciesProperty where
type PropertyType "Attributes" PoliciesProperty = JSON.Object
set :: PropertyType "Attributes" PoliciesProperty
-> PoliciesProperty -> PoliciesProperty
set PropertyType "Attributes" PoliciesProperty
newValue PoliciesProperty {Maybe (ValueList Text)
()
Object
Value Text
haddock_workaround_ :: PoliciesProperty -> ()
attributes :: PoliciesProperty -> Object
instancePorts :: PoliciesProperty -> Maybe (ValueList Text)
loadBalancerPorts :: PoliciesProperty -> Maybe (ValueList Text)
policyName :: PoliciesProperty -> Value Text
policyType :: PoliciesProperty -> Value Text
haddock_workaround_ :: ()
attributes :: Object
instancePorts :: Maybe (ValueList Text)
loadBalancerPorts :: Maybe (ValueList Text)
policyName :: Value Text
policyType :: Value Text
..}
= PoliciesProperty {attributes :: Object
attributes = Object
PropertyType "Attributes" PoliciesProperty
newValue, Maybe (ValueList Text)
()
Value Text
haddock_workaround_ :: ()
instancePorts :: Maybe (ValueList Text)
loadBalancerPorts :: Maybe (ValueList Text)
policyName :: Value Text
policyType :: Value Text
haddock_workaround_ :: ()
instancePorts :: Maybe (ValueList Text)
loadBalancerPorts :: Maybe (ValueList Text)
policyName :: Value Text
policyType :: Value Text
..}
instance Property "InstancePorts" PoliciesProperty where
type PropertyType "InstancePorts" PoliciesProperty = ValueList Prelude.Text
set :: PropertyType "InstancePorts" PoliciesProperty
-> PoliciesProperty -> PoliciesProperty
set PropertyType "InstancePorts" PoliciesProperty
newValue PoliciesProperty {Maybe (ValueList Text)
()
Object
Value Text
haddock_workaround_ :: PoliciesProperty -> ()
attributes :: PoliciesProperty -> Object
instancePorts :: PoliciesProperty -> Maybe (ValueList Text)
loadBalancerPorts :: PoliciesProperty -> Maybe (ValueList Text)
policyName :: PoliciesProperty -> Value Text
policyType :: PoliciesProperty -> Value Text
haddock_workaround_ :: ()
attributes :: Object
instancePorts :: Maybe (ValueList Text)
loadBalancerPorts :: Maybe (ValueList Text)
policyName :: Value Text
policyType :: Value Text
..}
= PoliciesProperty {instancePorts :: Maybe (ValueList Text)
instancePorts = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "InstancePorts" PoliciesProperty
ValueList Text
newValue, Maybe (ValueList Text)
()
Object
Value Text
haddock_workaround_ :: ()
attributes :: Object
loadBalancerPorts :: Maybe (ValueList Text)
policyName :: Value Text
policyType :: Value Text
haddock_workaround_ :: ()
attributes :: Object
loadBalancerPorts :: Maybe (ValueList Text)
policyName :: Value Text
policyType :: Value Text
..}
instance Property "LoadBalancerPorts" PoliciesProperty where
type PropertyType "LoadBalancerPorts" PoliciesProperty = ValueList Prelude.Text
set :: PropertyType "LoadBalancerPorts" PoliciesProperty
-> PoliciesProperty -> PoliciesProperty
set PropertyType "LoadBalancerPorts" PoliciesProperty
newValue PoliciesProperty {Maybe (ValueList Text)
()
Object
Value Text
haddock_workaround_ :: PoliciesProperty -> ()
attributes :: PoliciesProperty -> Object
instancePorts :: PoliciesProperty -> Maybe (ValueList Text)
loadBalancerPorts :: PoliciesProperty -> Maybe (ValueList Text)
policyName :: PoliciesProperty -> Value Text
policyType :: PoliciesProperty -> Value Text
haddock_workaround_ :: ()
attributes :: Object
instancePorts :: Maybe (ValueList Text)
loadBalancerPorts :: Maybe (ValueList Text)
policyName :: Value Text
policyType :: Value Text
..}
= PoliciesProperty {loadBalancerPorts :: Maybe (ValueList Text)
loadBalancerPorts = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "LoadBalancerPorts" PoliciesProperty
ValueList Text
newValue, Maybe (ValueList Text)
()
Object
Value Text
haddock_workaround_ :: ()
attributes :: Object
instancePorts :: Maybe (ValueList Text)
policyName :: Value Text
policyType :: Value Text
haddock_workaround_ :: ()
attributes :: Object
instancePorts :: Maybe (ValueList Text)
policyName :: Value Text
policyType :: Value Text
..}
instance Property "PolicyName" PoliciesProperty where
type PropertyType "PolicyName" PoliciesProperty = Value Prelude.Text
set :: PropertyType "PolicyName" PoliciesProperty
-> PoliciesProperty -> PoliciesProperty
set PropertyType "PolicyName" PoliciesProperty
newValue PoliciesProperty {Maybe (ValueList Text)
()
Object
Value Text
haddock_workaround_ :: PoliciesProperty -> ()
attributes :: PoliciesProperty -> Object
instancePorts :: PoliciesProperty -> Maybe (ValueList Text)
loadBalancerPorts :: PoliciesProperty -> Maybe (ValueList Text)
policyName :: PoliciesProperty -> Value Text
policyType :: PoliciesProperty -> Value Text
haddock_workaround_ :: ()
attributes :: Object
instancePorts :: Maybe (ValueList Text)
loadBalancerPorts :: Maybe (ValueList Text)
policyName :: Value Text
policyType :: Value Text
..}
= PoliciesProperty {policyName :: Value Text
policyName = PropertyType "PolicyName" PoliciesProperty
Value Text
newValue, Maybe (ValueList Text)
()
Object
Value Text
haddock_workaround_ :: ()
attributes :: Object
instancePorts :: Maybe (ValueList Text)
loadBalancerPorts :: Maybe (ValueList Text)
policyType :: Value Text
haddock_workaround_ :: ()
attributes :: Object
instancePorts :: Maybe (ValueList Text)
loadBalancerPorts :: Maybe (ValueList Text)
policyType :: Value Text
..}
instance Property "PolicyType" PoliciesProperty where
type PropertyType "PolicyType" PoliciesProperty = Value Prelude.Text
set :: PropertyType "PolicyType" PoliciesProperty
-> PoliciesProperty -> PoliciesProperty
set PropertyType "PolicyType" PoliciesProperty
newValue PoliciesProperty {Maybe (ValueList Text)
()
Object
Value Text
haddock_workaround_ :: PoliciesProperty -> ()
attributes :: PoliciesProperty -> Object
instancePorts :: PoliciesProperty -> Maybe (ValueList Text)
loadBalancerPorts :: PoliciesProperty -> Maybe (ValueList Text)
policyName :: PoliciesProperty -> Value Text
policyType :: PoliciesProperty -> Value Text
haddock_workaround_ :: ()
attributes :: Object
instancePorts :: Maybe (ValueList Text)
loadBalancerPorts :: Maybe (ValueList Text)
policyName :: Value Text
policyType :: Value Text
..}
= PoliciesProperty {policyType :: Value Text
policyType = PropertyType "PolicyType" PoliciesProperty
Value Text
newValue, Maybe (ValueList Text)
()
Object
Value Text
haddock_workaround_ :: ()
attributes :: Object
instancePorts :: Maybe (ValueList Text)
loadBalancerPorts :: Maybe (ValueList Text)
policyName :: Value Text
haddock_workaround_ :: ()
attributes :: Object
instancePorts :: Maybe (ValueList Text)
loadBalancerPorts :: Maybe (ValueList Text)
policyName :: Value Text
..}