module Stratosphere.CloudFront.AnycastIpList (
module Exports, AnycastIpList(..), mkAnycastIpList
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.CloudFront.AnycastIpList.TagsProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data AnycastIpList
=
AnycastIpList {AnycastIpList -> ()
haddock_workaround_ :: (),
AnycastIpList -> Maybe (Value Text)
ipAddressType :: (Prelude.Maybe (Value Prelude.Text)),
AnycastIpList -> Value Integer
ipCount :: (Value Prelude.Integer),
AnycastIpList -> Value Text
name :: (Value Prelude.Text),
AnycastIpList -> Maybe TagsProperty
tags :: (Prelude.Maybe TagsProperty)}
deriving stock (AnycastIpList -> AnycastIpList -> Bool
(AnycastIpList -> AnycastIpList -> Bool)
-> (AnycastIpList -> AnycastIpList -> Bool) -> Eq AnycastIpList
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: AnycastIpList -> AnycastIpList -> Bool
== :: AnycastIpList -> AnycastIpList -> Bool
$c/= :: AnycastIpList -> AnycastIpList -> Bool
/= :: AnycastIpList -> AnycastIpList -> Bool
Prelude.Eq, Int -> AnycastIpList -> ShowS
[AnycastIpList] -> ShowS
AnycastIpList -> String
(Int -> AnycastIpList -> ShowS)
-> (AnycastIpList -> String)
-> ([AnycastIpList] -> ShowS)
-> Show AnycastIpList
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> AnycastIpList -> ShowS
showsPrec :: Int -> AnycastIpList -> ShowS
$cshow :: AnycastIpList -> String
show :: AnycastIpList -> String
$cshowList :: [AnycastIpList] -> ShowS
showList :: [AnycastIpList] -> ShowS
Prelude.Show)
mkAnycastIpList ::
Value Prelude.Integer -> Value Prelude.Text -> AnycastIpList
mkAnycastIpList :: Value Integer -> Value Text -> AnycastIpList
mkAnycastIpList Value Integer
ipCount Value Text
name
= AnycastIpList
{haddock_workaround_ :: ()
haddock_workaround_ = (), ipCount :: Value Integer
ipCount = Value Integer
ipCount, name :: Value Text
name = Value Text
name,
ipAddressType :: Maybe (Value Text)
ipAddressType = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, tags :: Maybe TagsProperty
tags = Maybe TagsProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties AnycastIpList where
toResourceProperties :: AnycastIpList -> ResourceProperties
toResourceProperties AnycastIpList {Maybe (Value Text)
Maybe TagsProperty
()
Value Integer
Value Text
haddock_workaround_ :: AnycastIpList -> ()
ipAddressType :: AnycastIpList -> Maybe (Value Text)
ipCount :: AnycastIpList -> Value Integer
name :: AnycastIpList -> Value Text
tags :: AnycastIpList -> Maybe TagsProperty
haddock_workaround_ :: ()
ipAddressType :: Maybe (Value Text)
ipCount :: Value Integer
name :: Value Text
tags :: Maybe TagsProperty
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::CloudFront::AnycastIpList",
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
"IpCount" Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Integer
ipCount, 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 -> 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
"IpAddressType" (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)
ipAddressType,
Key -> TagsProperty -> (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" (TagsProperty -> (Key, Value))
-> Maybe TagsProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe TagsProperty
tags]))}
instance JSON.ToJSON AnycastIpList where
toJSON :: AnycastIpList -> Value
toJSON AnycastIpList {Maybe (Value Text)
Maybe TagsProperty
()
Value Integer
Value Text
haddock_workaround_ :: AnycastIpList -> ()
ipAddressType :: AnycastIpList -> Maybe (Value Text)
ipCount :: AnycastIpList -> Value Integer
name :: AnycastIpList -> Value Text
tags :: AnycastIpList -> Maybe TagsProperty
haddock_workaround_ :: ()
ipAddressType :: Maybe (Value Text)
ipCount :: Value Integer
name :: Value Text
tags :: Maybe TagsProperty
..}
= [(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
"IpCount" Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Integer
ipCount, 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 -> 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
"IpAddressType" (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)
ipAddressType,
Key -> TagsProperty -> (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" (TagsProperty -> (Key, Value))
-> Maybe TagsProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe TagsProperty
tags])))
instance Property "IpAddressType" AnycastIpList where
type PropertyType "IpAddressType" AnycastIpList = Value Prelude.Text
set :: PropertyType "IpAddressType" AnycastIpList
-> AnycastIpList -> AnycastIpList
set PropertyType "IpAddressType" AnycastIpList
newValue AnycastIpList {Maybe (Value Text)
Maybe TagsProperty
()
Value Integer
Value Text
haddock_workaround_ :: AnycastIpList -> ()
ipAddressType :: AnycastIpList -> Maybe (Value Text)
ipCount :: AnycastIpList -> Value Integer
name :: AnycastIpList -> Value Text
tags :: AnycastIpList -> Maybe TagsProperty
haddock_workaround_ :: ()
ipAddressType :: Maybe (Value Text)
ipCount :: Value Integer
name :: Value Text
tags :: Maybe TagsProperty
..}
= AnycastIpList {ipAddressType :: Maybe (Value Text)
ipAddressType = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "IpAddressType" AnycastIpList
Value Text
newValue, Maybe TagsProperty
()
Value Integer
Value Text
haddock_workaround_ :: ()
ipCount :: Value Integer
name :: Value Text
tags :: Maybe TagsProperty
haddock_workaround_ :: ()
ipCount :: Value Integer
name :: Value Text
tags :: Maybe TagsProperty
..}
instance Property "IpCount" AnycastIpList where
type PropertyType "IpCount" AnycastIpList = Value Prelude.Integer
set :: PropertyType "IpCount" AnycastIpList
-> AnycastIpList -> AnycastIpList
set PropertyType "IpCount" AnycastIpList
newValue AnycastIpList {Maybe (Value Text)
Maybe TagsProperty
()
Value Integer
Value Text
haddock_workaround_ :: AnycastIpList -> ()
ipAddressType :: AnycastIpList -> Maybe (Value Text)
ipCount :: AnycastIpList -> Value Integer
name :: AnycastIpList -> Value Text
tags :: AnycastIpList -> Maybe TagsProperty
haddock_workaround_ :: ()
ipAddressType :: Maybe (Value Text)
ipCount :: Value Integer
name :: Value Text
tags :: Maybe TagsProperty
..}
= AnycastIpList {ipCount :: Value Integer
ipCount = PropertyType "IpCount" AnycastIpList
Value Integer
newValue, Maybe (Value Text)
Maybe TagsProperty
()
Value Text
haddock_workaround_ :: ()
ipAddressType :: Maybe (Value Text)
name :: Value Text
tags :: Maybe TagsProperty
haddock_workaround_ :: ()
ipAddressType :: Maybe (Value Text)
name :: Value Text
tags :: Maybe TagsProperty
..}
instance Property "Name" AnycastIpList where
type PropertyType "Name" AnycastIpList = Value Prelude.Text
set :: PropertyType "Name" AnycastIpList -> AnycastIpList -> AnycastIpList
set PropertyType "Name" AnycastIpList
newValue AnycastIpList {Maybe (Value Text)
Maybe TagsProperty
()
Value Integer
Value Text
haddock_workaround_ :: AnycastIpList -> ()
ipAddressType :: AnycastIpList -> Maybe (Value Text)
ipCount :: AnycastIpList -> Value Integer
name :: AnycastIpList -> Value Text
tags :: AnycastIpList -> Maybe TagsProperty
haddock_workaround_ :: ()
ipAddressType :: Maybe (Value Text)
ipCount :: Value Integer
name :: Value Text
tags :: Maybe TagsProperty
..}
= AnycastIpList {name :: Value Text
name = PropertyType "Name" AnycastIpList
Value Text
newValue, Maybe (Value Text)
Maybe TagsProperty
()
Value Integer
haddock_workaround_ :: ()
ipAddressType :: Maybe (Value Text)
ipCount :: Value Integer
tags :: Maybe TagsProperty
haddock_workaround_ :: ()
ipAddressType :: Maybe (Value Text)
ipCount :: Value Integer
tags :: Maybe TagsProperty
..}
instance Property "Tags" AnycastIpList where
type PropertyType "Tags" AnycastIpList = TagsProperty
set :: PropertyType "Tags" AnycastIpList -> AnycastIpList -> AnycastIpList
set PropertyType "Tags" AnycastIpList
newValue AnycastIpList {Maybe (Value Text)
Maybe TagsProperty
()
Value Integer
Value Text
haddock_workaround_ :: AnycastIpList -> ()
ipAddressType :: AnycastIpList -> Maybe (Value Text)
ipCount :: AnycastIpList -> Value Integer
name :: AnycastIpList -> Value Text
tags :: AnycastIpList -> Maybe TagsProperty
haddock_workaround_ :: ()
ipAddressType :: Maybe (Value Text)
ipCount :: Value Integer
name :: Value Text
tags :: Maybe TagsProperty
..}
= AnycastIpList {tags :: Maybe TagsProperty
tags = TagsProperty -> Maybe TagsProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Tags" AnycastIpList
TagsProperty
newValue, Maybe (Value Text)
()
Value Integer
Value Text
haddock_workaround_ :: ()
ipAddressType :: Maybe (Value Text)
ipCount :: Value Integer
name :: Value Text
haddock_workaround_ :: ()
ipAddressType :: Maybe (Value Text)
ipCount :: Value Integer
name :: Value Text
..}