module Stratosphere.ApplicationSignals.ServiceLevelObjective (
module Exports, ServiceLevelObjective(..), mkServiceLevelObjective
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.ApplicationSignals.ServiceLevelObjective.BurnRateConfigurationProperty as Exports
import {-# SOURCE #-} Stratosphere.ApplicationSignals.ServiceLevelObjective.ExclusionWindowProperty as Exports
import {-# SOURCE #-} Stratosphere.ApplicationSignals.ServiceLevelObjective.GoalProperty as Exports
import {-# SOURCE #-} Stratosphere.ApplicationSignals.ServiceLevelObjective.RequestBasedSliProperty as Exports
import {-# SOURCE #-} Stratosphere.ApplicationSignals.ServiceLevelObjective.SliProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Tag
import Stratosphere.Value
data ServiceLevelObjective
=
ServiceLevelObjective {ServiceLevelObjective -> ()
haddock_workaround_ :: (),
ServiceLevelObjective -> Maybe [BurnRateConfigurationProperty]
burnRateConfigurations :: (Prelude.Maybe [BurnRateConfigurationProperty]),
ServiceLevelObjective -> Maybe (Value Text)
description :: (Prelude.Maybe (Value Prelude.Text)),
ServiceLevelObjective -> Maybe [ExclusionWindowProperty]
exclusionWindows :: (Prelude.Maybe [ExclusionWindowProperty]),
ServiceLevelObjective -> Maybe GoalProperty
goal :: (Prelude.Maybe GoalProperty),
ServiceLevelObjective -> Value Text
name :: (Value Prelude.Text),
ServiceLevelObjective -> Maybe RequestBasedSliProperty
requestBasedSli :: (Prelude.Maybe RequestBasedSliProperty),
ServiceLevelObjective -> Maybe SliProperty
sli :: (Prelude.Maybe SliProperty),
ServiceLevelObjective -> Maybe [Tag]
tags :: (Prelude.Maybe [Tag])}
deriving stock (ServiceLevelObjective -> ServiceLevelObjective -> Bool
(ServiceLevelObjective -> ServiceLevelObjective -> Bool)
-> (ServiceLevelObjective -> ServiceLevelObjective -> Bool)
-> Eq ServiceLevelObjective
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ServiceLevelObjective -> ServiceLevelObjective -> Bool
== :: ServiceLevelObjective -> ServiceLevelObjective -> Bool
$c/= :: ServiceLevelObjective -> ServiceLevelObjective -> Bool
/= :: ServiceLevelObjective -> ServiceLevelObjective -> Bool
Prelude.Eq, Int -> ServiceLevelObjective -> ShowS
[ServiceLevelObjective] -> ShowS
ServiceLevelObjective -> String
(Int -> ServiceLevelObjective -> ShowS)
-> (ServiceLevelObjective -> String)
-> ([ServiceLevelObjective] -> ShowS)
-> Show ServiceLevelObjective
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ServiceLevelObjective -> ShowS
showsPrec :: Int -> ServiceLevelObjective -> ShowS
$cshow :: ServiceLevelObjective -> String
show :: ServiceLevelObjective -> String
$cshowList :: [ServiceLevelObjective] -> ShowS
showList :: [ServiceLevelObjective] -> ShowS
Prelude.Show)
mkServiceLevelObjective ::
Value Prelude.Text -> ServiceLevelObjective
mkServiceLevelObjective :: Value Text -> ServiceLevelObjective
mkServiceLevelObjective Value Text
name
= ServiceLevelObjective
{haddock_workaround_ :: ()
haddock_workaround_ = (), name :: Value Text
name = Value Text
name,
burnRateConfigurations :: Maybe [BurnRateConfigurationProperty]
burnRateConfigurations = Maybe [BurnRateConfigurationProperty]
forall a. Maybe a
Prelude.Nothing,
description :: Maybe (Value Text)
description = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, exclusionWindows :: Maybe [ExclusionWindowProperty]
exclusionWindows = Maybe [ExclusionWindowProperty]
forall a. Maybe a
Prelude.Nothing,
goal :: Maybe GoalProperty
goal = Maybe GoalProperty
forall a. Maybe a
Prelude.Nothing, requestBasedSli :: Maybe RequestBasedSliProperty
requestBasedSli = Maybe RequestBasedSliProperty
forall a. Maybe a
Prelude.Nothing,
sli :: Maybe SliProperty
sli = Maybe SliProperty
forall a. Maybe a
Prelude.Nothing, tags :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ServiceLevelObjective where
toResourceProperties :: ServiceLevelObjective -> ResourceProperties
toResourceProperties ServiceLevelObjective {Maybe [Tag]
Maybe [BurnRateConfigurationProperty]
Maybe [ExclusionWindowProperty]
Maybe (Value Text)
Maybe RequestBasedSliProperty
Maybe GoalProperty
Maybe SliProperty
()
Value Text
haddock_workaround_ :: ServiceLevelObjective -> ()
burnRateConfigurations :: ServiceLevelObjective -> Maybe [BurnRateConfigurationProperty]
description :: ServiceLevelObjective -> Maybe (Value Text)
exclusionWindows :: ServiceLevelObjective -> Maybe [ExclusionWindowProperty]
goal :: ServiceLevelObjective -> Maybe GoalProperty
name :: ServiceLevelObjective -> Value Text
requestBasedSli :: ServiceLevelObjective -> Maybe RequestBasedSliProperty
sli :: ServiceLevelObjective -> Maybe SliProperty
tags :: ServiceLevelObjective -> Maybe [Tag]
haddock_workaround_ :: ()
burnRateConfigurations :: Maybe [BurnRateConfigurationProperty]
description :: Maybe (Value Text)
exclusionWindows :: Maybe [ExclusionWindowProperty]
goal :: Maybe GoalProperty
name :: Value Text
requestBasedSli :: Maybe RequestBasedSliProperty
sli :: Maybe SliProperty
tags :: Maybe [Tag]
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::ApplicationSignals::ServiceLevelObjective",
supportsTags :: Bool
supportsTags = Bool
Prelude.True,
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
"Name" 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
name]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> [BurnRateConfigurationProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"BurnRateConfigurations"
([BurnRateConfigurationProperty] -> (Key, Value))
-> Maybe [BurnRateConfigurationProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [BurnRateConfigurationProperty]
burnRateConfigurations,
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..=) Key
"Description" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
description,
Key -> [ExclusionWindowProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ExclusionWindows" ([ExclusionWindowProperty] -> (Key, Value))
-> Maybe [ExclusionWindowProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [ExclusionWindowProperty]
exclusionWindows,
Key -> GoalProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Goal" (GoalProperty -> (Key, Value))
-> Maybe GoalProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe GoalProperty
goal,
Key -> RequestBasedSliProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"RequestBasedSli" (RequestBasedSliProperty -> (Key, Value))
-> Maybe RequestBasedSliProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe RequestBasedSliProperty
requestBasedSli,
Key -> SliProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Sli" (SliProperty -> (Key, Value))
-> Maybe SliProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe SliProperty
sli,
Key -> [Tag] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" ([Tag] -> (Key, Value)) -> Maybe [Tag] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags]))}
instance JSON.ToJSON ServiceLevelObjective where
toJSON :: ServiceLevelObjective -> Value
toJSON ServiceLevelObjective {Maybe [Tag]
Maybe [BurnRateConfigurationProperty]
Maybe [ExclusionWindowProperty]
Maybe (Value Text)
Maybe RequestBasedSliProperty
Maybe GoalProperty
Maybe SliProperty
()
Value Text
haddock_workaround_ :: ServiceLevelObjective -> ()
burnRateConfigurations :: ServiceLevelObjective -> Maybe [BurnRateConfigurationProperty]
description :: ServiceLevelObjective -> Maybe (Value Text)
exclusionWindows :: ServiceLevelObjective -> Maybe [ExclusionWindowProperty]
goal :: ServiceLevelObjective -> Maybe GoalProperty
name :: ServiceLevelObjective -> Value Text
requestBasedSli :: ServiceLevelObjective -> Maybe RequestBasedSliProperty
sli :: ServiceLevelObjective -> Maybe SliProperty
tags :: ServiceLevelObjective -> Maybe [Tag]
haddock_workaround_ :: ()
burnRateConfigurations :: Maybe [BurnRateConfigurationProperty]
description :: Maybe (Value Text)
exclusionWindows :: Maybe [ExclusionWindowProperty]
goal :: Maybe GoalProperty
name :: Value Text
requestBasedSli :: Maybe RequestBasedSliProperty
sli :: Maybe SliProperty
tags :: Maybe [Tag]
..}
= [(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
"Name" 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
name]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> [BurnRateConfigurationProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"BurnRateConfigurations"
([BurnRateConfigurationProperty] -> (Key, Value))
-> Maybe [BurnRateConfigurationProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [BurnRateConfigurationProperty]
burnRateConfigurations,
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..=) Key
"Description" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
description,
Key -> [ExclusionWindowProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ExclusionWindows" ([ExclusionWindowProperty] -> (Key, Value))
-> Maybe [ExclusionWindowProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [ExclusionWindowProperty]
exclusionWindows,
Key -> GoalProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Goal" (GoalProperty -> (Key, Value))
-> Maybe GoalProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe GoalProperty
goal,
Key -> RequestBasedSliProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"RequestBasedSli" (RequestBasedSliProperty -> (Key, Value))
-> Maybe RequestBasedSliProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe RequestBasedSliProperty
requestBasedSli,
Key -> SliProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Sli" (SliProperty -> (Key, Value))
-> Maybe SliProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe SliProperty
sli,
Key -> [Tag] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" ([Tag] -> (Key, Value)) -> Maybe [Tag] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags])))
instance Property "BurnRateConfigurations" ServiceLevelObjective where
type PropertyType "BurnRateConfigurations" ServiceLevelObjective = [BurnRateConfigurationProperty]
set :: PropertyType "BurnRateConfigurations" ServiceLevelObjective
-> ServiceLevelObjective -> ServiceLevelObjective
set PropertyType "BurnRateConfigurations" ServiceLevelObjective
newValue ServiceLevelObjective {Maybe [Tag]
Maybe [BurnRateConfigurationProperty]
Maybe [ExclusionWindowProperty]
Maybe (Value Text)
Maybe RequestBasedSliProperty
Maybe GoalProperty
Maybe SliProperty
()
Value Text
haddock_workaround_ :: ServiceLevelObjective -> ()
burnRateConfigurations :: ServiceLevelObjective -> Maybe [BurnRateConfigurationProperty]
description :: ServiceLevelObjective -> Maybe (Value Text)
exclusionWindows :: ServiceLevelObjective -> Maybe [ExclusionWindowProperty]
goal :: ServiceLevelObjective -> Maybe GoalProperty
name :: ServiceLevelObjective -> Value Text
requestBasedSli :: ServiceLevelObjective -> Maybe RequestBasedSliProperty
sli :: ServiceLevelObjective -> Maybe SliProperty
tags :: ServiceLevelObjective -> Maybe [Tag]
haddock_workaround_ :: ()
burnRateConfigurations :: Maybe [BurnRateConfigurationProperty]
description :: Maybe (Value Text)
exclusionWindows :: Maybe [ExclusionWindowProperty]
goal :: Maybe GoalProperty
name :: Value Text
requestBasedSli :: Maybe RequestBasedSliProperty
sli :: Maybe SliProperty
tags :: Maybe [Tag]
..}
= ServiceLevelObjective
{burnRateConfigurations :: Maybe [BurnRateConfigurationProperty]
burnRateConfigurations = [BurnRateConfigurationProperty]
-> Maybe [BurnRateConfigurationProperty]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [BurnRateConfigurationProperty]
PropertyType "BurnRateConfigurations" ServiceLevelObjective
newValue, Maybe [Tag]
Maybe [ExclusionWindowProperty]
Maybe (Value Text)
Maybe RequestBasedSliProperty
Maybe GoalProperty
Maybe SliProperty
()
Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
exclusionWindows :: Maybe [ExclusionWindowProperty]
goal :: Maybe GoalProperty
name :: Value Text
requestBasedSli :: Maybe RequestBasedSliProperty
sli :: Maybe SliProperty
tags :: Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
exclusionWindows :: Maybe [ExclusionWindowProperty]
goal :: Maybe GoalProperty
name :: Value Text
requestBasedSli :: Maybe RequestBasedSliProperty
sli :: Maybe SliProperty
tags :: Maybe [Tag]
..}
instance Property "Description" ServiceLevelObjective where
type PropertyType "Description" ServiceLevelObjective = Value Prelude.Text
set :: PropertyType "Description" ServiceLevelObjective
-> ServiceLevelObjective -> ServiceLevelObjective
set PropertyType "Description" ServiceLevelObjective
newValue ServiceLevelObjective {Maybe [Tag]
Maybe [BurnRateConfigurationProperty]
Maybe [ExclusionWindowProperty]
Maybe (Value Text)
Maybe RequestBasedSliProperty
Maybe GoalProperty
Maybe SliProperty
()
Value Text
haddock_workaround_ :: ServiceLevelObjective -> ()
burnRateConfigurations :: ServiceLevelObjective -> Maybe [BurnRateConfigurationProperty]
description :: ServiceLevelObjective -> Maybe (Value Text)
exclusionWindows :: ServiceLevelObjective -> Maybe [ExclusionWindowProperty]
goal :: ServiceLevelObjective -> Maybe GoalProperty
name :: ServiceLevelObjective -> Value Text
requestBasedSli :: ServiceLevelObjective -> Maybe RequestBasedSliProperty
sli :: ServiceLevelObjective -> Maybe SliProperty
tags :: ServiceLevelObjective -> Maybe [Tag]
haddock_workaround_ :: ()
burnRateConfigurations :: Maybe [BurnRateConfigurationProperty]
description :: Maybe (Value Text)
exclusionWindows :: Maybe [ExclusionWindowProperty]
goal :: Maybe GoalProperty
name :: Value Text
requestBasedSli :: Maybe RequestBasedSliProperty
sli :: Maybe SliProperty
tags :: Maybe [Tag]
..}
= ServiceLevelObjective {description :: Maybe (Value Text)
description = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Description" ServiceLevelObjective
Value Text
newValue, Maybe [Tag]
Maybe [BurnRateConfigurationProperty]
Maybe [ExclusionWindowProperty]
Maybe RequestBasedSliProperty
Maybe GoalProperty
Maybe SliProperty
()
Value Text
haddock_workaround_ :: ()
burnRateConfigurations :: Maybe [BurnRateConfigurationProperty]
exclusionWindows :: Maybe [ExclusionWindowProperty]
goal :: Maybe GoalProperty
name :: Value Text
requestBasedSli :: Maybe RequestBasedSliProperty
sli :: Maybe SliProperty
tags :: Maybe [Tag]
haddock_workaround_ :: ()
burnRateConfigurations :: Maybe [BurnRateConfigurationProperty]
exclusionWindows :: Maybe [ExclusionWindowProperty]
goal :: Maybe GoalProperty
name :: Value Text
requestBasedSli :: Maybe RequestBasedSliProperty
sli :: Maybe SliProperty
tags :: Maybe [Tag]
..}
instance Property "ExclusionWindows" ServiceLevelObjective where
type PropertyType "ExclusionWindows" ServiceLevelObjective = [ExclusionWindowProperty]
set :: PropertyType "ExclusionWindows" ServiceLevelObjective
-> ServiceLevelObjective -> ServiceLevelObjective
set PropertyType "ExclusionWindows" ServiceLevelObjective
newValue ServiceLevelObjective {Maybe [Tag]
Maybe [BurnRateConfigurationProperty]
Maybe [ExclusionWindowProperty]
Maybe (Value Text)
Maybe RequestBasedSliProperty
Maybe GoalProperty
Maybe SliProperty
()
Value Text
haddock_workaround_ :: ServiceLevelObjective -> ()
burnRateConfigurations :: ServiceLevelObjective -> Maybe [BurnRateConfigurationProperty]
description :: ServiceLevelObjective -> Maybe (Value Text)
exclusionWindows :: ServiceLevelObjective -> Maybe [ExclusionWindowProperty]
goal :: ServiceLevelObjective -> Maybe GoalProperty
name :: ServiceLevelObjective -> Value Text
requestBasedSli :: ServiceLevelObjective -> Maybe RequestBasedSliProperty
sli :: ServiceLevelObjective -> Maybe SliProperty
tags :: ServiceLevelObjective -> Maybe [Tag]
haddock_workaround_ :: ()
burnRateConfigurations :: Maybe [BurnRateConfigurationProperty]
description :: Maybe (Value Text)
exclusionWindows :: Maybe [ExclusionWindowProperty]
goal :: Maybe GoalProperty
name :: Value Text
requestBasedSli :: Maybe RequestBasedSliProperty
sli :: Maybe SliProperty
tags :: Maybe [Tag]
..}
= ServiceLevelObjective
{exclusionWindows :: Maybe [ExclusionWindowProperty]
exclusionWindows = [ExclusionWindowProperty] -> Maybe [ExclusionWindowProperty]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [ExclusionWindowProperty]
PropertyType "ExclusionWindows" ServiceLevelObjective
newValue, Maybe [Tag]
Maybe [BurnRateConfigurationProperty]
Maybe (Value Text)
Maybe RequestBasedSliProperty
Maybe GoalProperty
Maybe SliProperty
()
Value Text
haddock_workaround_ :: ()
burnRateConfigurations :: Maybe [BurnRateConfigurationProperty]
description :: Maybe (Value Text)
goal :: Maybe GoalProperty
name :: Value Text
requestBasedSli :: Maybe RequestBasedSliProperty
sli :: Maybe SliProperty
tags :: Maybe [Tag]
haddock_workaround_ :: ()
burnRateConfigurations :: Maybe [BurnRateConfigurationProperty]
description :: Maybe (Value Text)
goal :: Maybe GoalProperty
name :: Value Text
requestBasedSli :: Maybe RequestBasedSliProperty
sli :: Maybe SliProperty
tags :: Maybe [Tag]
..}
instance Property "Goal" ServiceLevelObjective where
type PropertyType "Goal" ServiceLevelObjective = GoalProperty
set :: PropertyType "Goal" ServiceLevelObjective
-> ServiceLevelObjective -> ServiceLevelObjective
set PropertyType "Goal" ServiceLevelObjective
newValue ServiceLevelObjective {Maybe [Tag]
Maybe [BurnRateConfigurationProperty]
Maybe [ExclusionWindowProperty]
Maybe (Value Text)
Maybe RequestBasedSliProperty
Maybe GoalProperty
Maybe SliProperty
()
Value Text
haddock_workaround_ :: ServiceLevelObjective -> ()
burnRateConfigurations :: ServiceLevelObjective -> Maybe [BurnRateConfigurationProperty]
description :: ServiceLevelObjective -> Maybe (Value Text)
exclusionWindows :: ServiceLevelObjective -> Maybe [ExclusionWindowProperty]
goal :: ServiceLevelObjective -> Maybe GoalProperty
name :: ServiceLevelObjective -> Value Text
requestBasedSli :: ServiceLevelObjective -> Maybe RequestBasedSliProperty
sli :: ServiceLevelObjective -> Maybe SliProperty
tags :: ServiceLevelObjective -> Maybe [Tag]
haddock_workaround_ :: ()
burnRateConfigurations :: Maybe [BurnRateConfigurationProperty]
description :: Maybe (Value Text)
exclusionWindows :: Maybe [ExclusionWindowProperty]
goal :: Maybe GoalProperty
name :: Value Text
requestBasedSli :: Maybe RequestBasedSliProperty
sli :: Maybe SliProperty
tags :: Maybe [Tag]
..}
= ServiceLevelObjective {goal :: Maybe GoalProperty
goal = GoalProperty -> Maybe GoalProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Goal" ServiceLevelObjective
GoalProperty
newValue, Maybe [Tag]
Maybe [BurnRateConfigurationProperty]
Maybe [ExclusionWindowProperty]
Maybe (Value Text)
Maybe RequestBasedSliProperty
Maybe SliProperty
()
Value Text
haddock_workaround_ :: ()
burnRateConfigurations :: Maybe [BurnRateConfigurationProperty]
description :: Maybe (Value Text)
exclusionWindows :: Maybe [ExclusionWindowProperty]
name :: Value Text
requestBasedSli :: Maybe RequestBasedSliProperty
sli :: Maybe SliProperty
tags :: Maybe [Tag]
haddock_workaround_ :: ()
burnRateConfigurations :: Maybe [BurnRateConfigurationProperty]
description :: Maybe (Value Text)
exclusionWindows :: Maybe [ExclusionWindowProperty]
name :: Value Text
requestBasedSli :: Maybe RequestBasedSliProperty
sli :: Maybe SliProperty
tags :: Maybe [Tag]
..}
instance Property "Name" ServiceLevelObjective where
type PropertyType "Name" ServiceLevelObjective = Value Prelude.Text
set :: PropertyType "Name" ServiceLevelObjective
-> ServiceLevelObjective -> ServiceLevelObjective
set PropertyType "Name" ServiceLevelObjective
newValue ServiceLevelObjective {Maybe [Tag]
Maybe [BurnRateConfigurationProperty]
Maybe [ExclusionWindowProperty]
Maybe (Value Text)
Maybe RequestBasedSliProperty
Maybe GoalProperty
Maybe SliProperty
()
Value Text
haddock_workaround_ :: ServiceLevelObjective -> ()
burnRateConfigurations :: ServiceLevelObjective -> Maybe [BurnRateConfigurationProperty]
description :: ServiceLevelObjective -> Maybe (Value Text)
exclusionWindows :: ServiceLevelObjective -> Maybe [ExclusionWindowProperty]
goal :: ServiceLevelObjective -> Maybe GoalProperty
name :: ServiceLevelObjective -> Value Text
requestBasedSli :: ServiceLevelObjective -> Maybe RequestBasedSliProperty
sli :: ServiceLevelObjective -> Maybe SliProperty
tags :: ServiceLevelObjective -> Maybe [Tag]
haddock_workaround_ :: ()
burnRateConfigurations :: Maybe [BurnRateConfigurationProperty]
description :: Maybe (Value Text)
exclusionWindows :: Maybe [ExclusionWindowProperty]
goal :: Maybe GoalProperty
name :: Value Text
requestBasedSli :: Maybe RequestBasedSliProperty
sli :: Maybe SliProperty
tags :: Maybe [Tag]
..}
= ServiceLevelObjective {name :: Value Text
name = PropertyType "Name" ServiceLevelObjective
Value Text
newValue, Maybe [Tag]
Maybe [BurnRateConfigurationProperty]
Maybe [ExclusionWindowProperty]
Maybe (Value Text)
Maybe RequestBasedSliProperty
Maybe GoalProperty
Maybe SliProperty
()
haddock_workaround_ :: ()
burnRateConfigurations :: Maybe [BurnRateConfigurationProperty]
description :: Maybe (Value Text)
exclusionWindows :: Maybe [ExclusionWindowProperty]
goal :: Maybe GoalProperty
requestBasedSli :: Maybe RequestBasedSliProperty
sli :: Maybe SliProperty
tags :: Maybe [Tag]
haddock_workaround_ :: ()
burnRateConfigurations :: Maybe [BurnRateConfigurationProperty]
description :: Maybe (Value Text)
exclusionWindows :: Maybe [ExclusionWindowProperty]
goal :: Maybe GoalProperty
requestBasedSli :: Maybe RequestBasedSliProperty
sli :: Maybe SliProperty
tags :: Maybe [Tag]
..}
instance Property "RequestBasedSli" ServiceLevelObjective where
type PropertyType "RequestBasedSli" ServiceLevelObjective = RequestBasedSliProperty
set :: PropertyType "RequestBasedSli" ServiceLevelObjective
-> ServiceLevelObjective -> ServiceLevelObjective
set PropertyType "RequestBasedSli" ServiceLevelObjective
newValue ServiceLevelObjective {Maybe [Tag]
Maybe [BurnRateConfigurationProperty]
Maybe [ExclusionWindowProperty]
Maybe (Value Text)
Maybe RequestBasedSliProperty
Maybe GoalProperty
Maybe SliProperty
()
Value Text
haddock_workaround_ :: ServiceLevelObjective -> ()
burnRateConfigurations :: ServiceLevelObjective -> Maybe [BurnRateConfigurationProperty]
description :: ServiceLevelObjective -> Maybe (Value Text)
exclusionWindows :: ServiceLevelObjective -> Maybe [ExclusionWindowProperty]
goal :: ServiceLevelObjective -> Maybe GoalProperty
name :: ServiceLevelObjective -> Value Text
requestBasedSli :: ServiceLevelObjective -> Maybe RequestBasedSliProperty
sli :: ServiceLevelObjective -> Maybe SliProperty
tags :: ServiceLevelObjective -> Maybe [Tag]
haddock_workaround_ :: ()
burnRateConfigurations :: Maybe [BurnRateConfigurationProperty]
description :: Maybe (Value Text)
exclusionWindows :: Maybe [ExclusionWindowProperty]
goal :: Maybe GoalProperty
name :: Value Text
requestBasedSli :: Maybe RequestBasedSliProperty
sli :: Maybe SliProperty
tags :: Maybe [Tag]
..}
= ServiceLevelObjective
{requestBasedSli :: Maybe RequestBasedSliProperty
requestBasedSli = RequestBasedSliProperty -> Maybe RequestBasedSliProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "RequestBasedSli" ServiceLevelObjective
RequestBasedSliProperty
newValue, Maybe [Tag]
Maybe [BurnRateConfigurationProperty]
Maybe [ExclusionWindowProperty]
Maybe (Value Text)
Maybe GoalProperty
Maybe SliProperty
()
Value Text
haddock_workaround_ :: ()
burnRateConfigurations :: Maybe [BurnRateConfigurationProperty]
description :: Maybe (Value Text)
exclusionWindows :: Maybe [ExclusionWindowProperty]
goal :: Maybe GoalProperty
name :: Value Text
sli :: Maybe SliProperty
tags :: Maybe [Tag]
haddock_workaround_ :: ()
burnRateConfigurations :: Maybe [BurnRateConfigurationProperty]
description :: Maybe (Value Text)
exclusionWindows :: Maybe [ExclusionWindowProperty]
goal :: Maybe GoalProperty
name :: Value Text
sli :: Maybe SliProperty
tags :: Maybe [Tag]
..}
instance Property "Sli" ServiceLevelObjective where
type PropertyType "Sli" ServiceLevelObjective = SliProperty
set :: PropertyType "Sli" ServiceLevelObjective
-> ServiceLevelObjective -> ServiceLevelObjective
set PropertyType "Sli" ServiceLevelObjective
newValue ServiceLevelObjective {Maybe [Tag]
Maybe [BurnRateConfigurationProperty]
Maybe [ExclusionWindowProperty]
Maybe (Value Text)
Maybe RequestBasedSliProperty
Maybe GoalProperty
Maybe SliProperty
()
Value Text
haddock_workaround_ :: ServiceLevelObjective -> ()
burnRateConfigurations :: ServiceLevelObjective -> Maybe [BurnRateConfigurationProperty]
description :: ServiceLevelObjective -> Maybe (Value Text)
exclusionWindows :: ServiceLevelObjective -> Maybe [ExclusionWindowProperty]
goal :: ServiceLevelObjective -> Maybe GoalProperty
name :: ServiceLevelObjective -> Value Text
requestBasedSli :: ServiceLevelObjective -> Maybe RequestBasedSliProperty
sli :: ServiceLevelObjective -> Maybe SliProperty
tags :: ServiceLevelObjective -> Maybe [Tag]
haddock_workaround_ :: ()
burnRateConfigurations :: Maybe [BurnRateConfigurationProperty]
description :: Maybe (Value Text)
exclusionWindows :: Maybe [ExclusionWindowProperty]
goal :: Maybe GoalProperty
name :: Value Text
requestBasedSli :: Maybe RequestBasedSliProperty
sli :: Maybe SliProperty
tags :: Maybe [Tag]
..}
= ServiceLevelObjective {sli :: Maybe SliProperty
sli = SliProperty -> Maybe SliProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Sli" ServiceLevelObjective
SliProperty
newValue, Maybe [Tag]
Maybe [BurnRateConfigurationProperty]
Maybe [ExclusionWindowProperty]
Maybe (Value Text)
Maybe RequestBasedSliProperty
Maybe GoalProperty
()
Value Text
haddock_workaround_ :: ()
burnRateConfigurations :: Maybe [BurnRateConfigurationProperty]
description :: Maybe (Value Text)
exclusionWindows :: Maybe [ExclusionWindowProperty]
goal :: Maybe GoalProperty
name :: Value Text
requestBasedSli :: Maybe RequestBasedSliProperty
tags :: Maybe [Tag]
haddock_workaround_ :: ()
burnRateConfigurations :: Maybe [BurnRateConfigurationProperty]
description :: Maybe (Value Text)
exclusionWindows :: Maybe [ExclusionWindowProperty]
goal :: Maybe GoalProperty
name :: Value Text
requestBasedSli :: Maybe RequestBasedSliProperty
tags :: Maybe [Tag]
..}
instance Property "Tags" ServiceLevelObjective where
type PropertyType "Tags" ServiceLevelObjective = [Tag]
set :: PropertyType "Tags" ServiceLevelObjective
-> ServiceLevelObjective -> ServiceLevelObjective
set PropertyType "Tags" ServiceLevelObjective
newValue ServiceLevelObjective {Maybe [Tag]
Maybe [BurnRateConfigurationProperty]
Maybe [ExclusionWindowProperty]
Maybe (Value Text)
Maybe RequestBasedSliProperty
Maybe GoalProperty
Maybe SliProperty
()
Value Text
haddock_workaround_ :: ServiceLevelObjective -> ()
burnRateConfigurations :: ServiceLevelObjective -> Maybe [BurnRateConfigurationProperty]
description :: ServiceLevelObjective -> Maybe (Value Text)
exclusionWindows :: ServiceLevelObjective -> Maybe [ExclusionWindowProperty]
goal :: ServiceLevelObjective -> Maybe GoalProperty
name :: ServiceLevelObjective -> Value Text
requestBasedSli :: ServiceLevelObjective -> Maybe RequestBasedSliProperty
sli :: ServiceLevelObjective -> Maybe SliProperty
tags :: ServiceLevelObjective -> Maybe [Tag]
haddock_workaround_ :: ()
burnRateConfigurations :: Maybe [BurnRateConfigurationProperty]
description :: Maybe (Value Text)
exclusionWindows :: Maybe [ExclusionWindowProperty]
goal :: Maybe GoalProperty
name :: Value Text
requestBasedSli :: Maybe RequestBasedSliProperty
sli :: Maybe SliProperty
tags :: Maybe [Tag]
..}
= ServiceLevelObjective {tags :: Maybe [Tag]
tags = [Tag] -> Maybe [Tag]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [Tag]
PropertyType "Tags" ServiceLevelObjective
newValue, Maybe [BurnRateConfigurationProperty]
Maybe [ExclusionWindowProperty]
Maybe (Value Text)
Maybe RequestBasedSliProperty
Maybe GoalProperty
Maybe SliProperty
()
Value Text
haddock_workaround_ :: ()
burnRateConfigurations :: Maybe [BurnRateConfigurationProperty]
description :: Maybe (Value Text)
exclusionWindows :: Maybe [ExclusionWindowProperty]
goal :: Maybe GoalProperty
name :: Value Text
requestBasedSli :: Maybe RequestBasedSliProperty
sli :: Maybe SliProperty
haddock_workaround_ :: ()
burnRateConfigurations :: Maybe [BurnRateConfigurationProperty]
description :: Maybe (Value Text)
exclusionWindows :: Maybe [ExclusionWindowProperty]
goal :: Maybe GoalProperty
name :: Value Text
requestBasedSli :: Maybe RequestBasedSliProperty
sli :: Maybe SliProperty
..}