module Stratosphere.OpenSearchService.Domain.DomainEndpointOptionsProperty (
DomainEndpointOptionsProperty(..), mkDomainEndpointOptionsProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data DomainEndpointOptionsProperty
=
DomainEndpointOptionsProperty {DomainEndpointOptionsProperty -> ()
haddock_workaround_ :: (),
DomainEndpointOptionsProperty -> Maybe (Value Text)
customEndpoint :: (Prelude.Maybe (Value Prelude.Text)),
DomainEndpointOptionsProperty -> Maybe (Value Text)
customEndpointCertificateArn :: (Prelude.Maybe (Value Prelude.Text)),
DomainEndpointOptionsProperty -> Maybe (Value Bool)
customEndpointEnabled :: (Prelude.Maybe (Value Prelude.Bool)),
DomainEndpointOptionsProperty -> Maybe (Value Bool)
enforceHTTPS :: (Prelude.Maybe (Value Prelude.Bool)),
DomainEndpointOptionsProperty -> Maybe (Value Text)
tLSSecurityPolicy :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (DomainEndpointOptionsProperty
-> DomainEndpointOptionsProperty -> Bool
(DomainEndpointOptionsProperty
-> DomainEndpointOptionsProperty -> Bool)
-> (DomainEndpointOptionsProperty
-> DomainEndpointOptionsProperty -> Bool)
-> Eq DomainEndpointOptionsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DomainEndpointOptionsProperty
-> DomainEndpointOptionsProperty -> Bool
== :: DomainEndpointOptionsProperty
-> DomainEndpointOptionsProperty -> Bool
$c/= :: DomainEndpointOptionsProperty
-> DomainEndpointOptionsProperty -> Bool
/= :: DomainEndpointOptionsProperty
-> DomainEndpointOptionsProperty -> Bool
Prelude.Eq, Int -> DomainEndpointOptionsProperty -> ShowS
[DomainEndpointOptionsProperty] -> ShowS
DomainEndpointOptionsProperty -> String
(Int -> DomainEndpointOptionsProperty -> ShowS)
-> (DomainEndpointOptionsProperty -> String)
-> ([DomainEndpointOptionsProperty] -> ShowS)
-> Show DomainEndpointOptionsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> DomainEndpointOptionsProperty -> ShowS
showsPrec :: Int -> DomainEndpointOptionsProperty -> ShowS
$cshow :: DomainEndpointOptionsProperty -> String
show :: DomainEndpointOptionsProperty -> String
$cshowList :: [DomainEndpointOptionsProperty] -> ShowS
showList :: [DomainEndpointOptionsProperty] -> ShowS
Prelude.Show)
mkDomainEndpointOptionsProperty :: DomainEndpointOptionsProperty
mkDomainEndpointOptionsProperty :: DomainEndpointOptionsProperty
mkDomainEndpointOptionsProperty
= DomainEndpointOptionsProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), customEndpoint :: Maybe (Value Text)
customEndpoint = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
customEndpointCertificateArn :: Maybe (Value Text)
customEndpointCertificateArn = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
customEndpointEnabled :: Maybe (Value Bool)
customEndpointEnabled = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing,
enforceHTTPS :: Maybe (Value Bool)
enforceHTTPS = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing,
tLSSecurityPolicy :: Maybe (Value Text)
tLSSecurityPolicy = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties DomainEndpointOptionsProperty where
toResourceProperties :: DomainEndpointOptionsProperty -> ResourceProperties
toResourceProperties DomainEndpointOptionsProperty {Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: DomainEndpointOptionsProperty -> ()
customEndpoint :: DomainEndpointOptionsProperty -> Maybe (Value Text)
customEndpointCertificateArn :: DomainEndpointOptionsProperty -> Maybe (Value Text)
customEndpointEnabled :: DomainEndpointOptionsProperty -> Maybe (Value Bool)
enforceHTTPS :: DomainEndpointOptionsProperty -> Maybe (Value Bool)
tLSSecurityPolicy :: DomainEndpointOptionsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
customEndpoint :: Maybe (Value Text)
customEndpointCertificateArn :: Maybe (Value Text)
customEndpointEnabled :: Maybe (Value Bool)
enforceHTTPS :: Maybe (Value Bool)
tLSSecurityPolicy :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::OpenSearchService::Domain.DomainEndpointOptions",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([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
"CustomEndpoint" (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)
customEndpoint,
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
"CustomEndpointCertificateArn"
(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)
customEndpointCertificateArn,
Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"CustomEndpointEnabled"
(Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
customEndpointEnabled,
Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"EnforceHTTPS" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
enforceHTTPS,
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
"TLSSecurityPolicy" (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)
tLSSecurityPolicy])}
instance JSON.ToJSON DomainEndpointOptionsProperty where
toJSON :: DomainEndpointOptionsProperty -> Value
toJSON DomainEndpointOptionsProperty {Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: DomainEndpointOptionsProperty -> ()
customEndpoint :: DomainEndpointOptionsProperty -> Maybe (Value Text)
customEndpointCertificateArn :: DomainEndpointOptionsProperty -> Maybe (Value Text)
customEndpointEnabled :: DomainEndpointOptionsProperty -> Maybe (Value Bool)
enforceHTTPS :: DomainEndpointOptionsProperty -> Maybe (Value Bool)
tLSSecurityPolicy :: DomainEndpointOptionsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
customEndpoint :: Maybe (Value Text)
customEndpointCertificateArn :: Maybe (Value Text)
customEndpointEnabled :: Maybe (Value Bool)
enforceHTTPS :: Maybe (Value Bool)
tLSSecurityPolicy :: Maybe (Value Text)
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([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
"CustomEndpoint" (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)
customEndpoint,
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
"CustomEndpointCertificateArn"
(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)
customEndpointCertificateArn,
Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"CustomEndpointEnabled"
(Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
customEndpointEnabled,
Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"EnforceHTTPS" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
enforceHTTPS,
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
"TLSSecurityPolicy" (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)
tLSSecurityPolicy]))
instance Property "CustomEndpoint" DomainEndpointOptionsProperty where
type PropertyType "CustomEndpoint" DomainEndpointOptionsProperty = Value Prelude.Text
set :: PropertyType "CustomEndpoint" DomainEndpointOptionsProperty
-> DomainEndpointOptionsProperty -> DomainEndpointOptionsProperty
set PropertyType "CustomEndpoint" DomainEndpointOptionsProperty
newValue DomainEndpointOptionsProperty {Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: DomainEndpointOptionsProperty -> ()
customEndpoint :: DomainEndpointOptionsProperty -> Maybe (Value Text)
customEndpointCertificateArn :: DomainEndpointOptionsProperty -> Maybe (Value Text)
customEndpointEnabled :: DomainEndpointOptionsProperty -> Maybe (Value Bool)
enforceHTTPS :: DomainEndpointOptionsProperty -> Maybe (Value Bool)
tLSSecurityPolicy :: DomainEndpointOptionsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
customEndpoint :: Maybe (Value Text)
customEndpointCertificateArn :: Maybe (Value Text)
customEndpointEnabled :: Maybe (Value Bool)
enforceHTTPS :: Maybe (Value Bool)
tLSSecurityPolicy :: Maybe (Value Text)
..}
= DomainEndpointOptionsProperty
{customEndpoint :: Maybe (Value Text)
customEndpoint = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "CustomEndpoint" DomainEndpointOptionsProperty
Value Text
newValue, Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: ()
customEndpointCertificateArn :: Maybe (Value Text)
customEndpointEnabled :: Maybe (Value Bool)
enforceHTTPS :: Maybe (Value Bool)
tLSSecurityPolicy :: Maybe (Value Text)
haddock_workaround_ :: ()
customEndpointCertificateArn :: Maybe (Value Text)
customEndpointEnabled :: Maybe (Value Bool)
enforceHTTPS :: Maybe (Value Bool)
tLSSecurityPolicy :: Maybe (Value Text)
..}
instance Property "CustomEndpointCertificateArn" DomainEndpointOptionsProperty where
type PropertyType "CustomEndpointCertificateArn" DomainEndpointOptionsProperty = Value Prelude.Text
set :: PropertyType
"CustomEndpointCertificateArn" DomainEndpointOptionsProperty
-> DomainEndpointOptionsProperty -> DomainEndpointOptionsProperty
set PropertyType
"CustomEndpointCertificateArn" DomainEndpointOptionsProperty
newValue DomainEndpointOptionsProperty {Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: DomainEndpointOptionsProperty -> ()
customEndpoint :: DomainEndpointOptionsProperty -> Maybe (Value Text)
customEndpointCertificateArn :: DomainEndpointOptionsProperty -> Maybe (Value Text)
customEndpointEnabled :: DomainEndpointOptionsProperty -> Maybe (Value Bool)
enforceHTTPS :: DomainEndpointOptionsProperty -> Maybe (Value Bool)
tLSSecurityPolicy :: DomainEndpointOptionsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
customEndpoint :: Maybe (Value Text)
customEndpointCertificateArn :: Maybe (Value Text)
customEndpointEnabled :: Maybe (Value Bool)
enforceHTTPS :: Maybe (Value Bool)
tLSSecurityPolicy :: Maybe (Value Text)
..}
= DomainEndpointOptionsProperty
{customEndpointCertificateArn :: Maybe (Value Text)
customEndpointCertificateArn = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"CustomEndpointCertificateArn" DomainEndpointOptionsProperty
Value Text
newValue, Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: ()
customEndpoint :: Maybe (Value Text)
customEndpointEnabled :: Maybe (Value Bool)
enforceHTTPS :: Maybe (Value Bool)
tLSSecurityPolicy :: Maybe (Value Text)
haddock_workaround_ :: ()
customEndpoint :: Maybe (Value Text)
customEndpointEnabled :: Maybe (Value Bool)
enforceHTTPS :: Maybe (Value Bool)
tLSSecurityPolicy :: Maybe (Value Text)
..}
instance Property "CustomEndpointEnabled" DomainEndpointOptionsProperty where
type PropertyType "CustomEndpointEnabled" DomainEndpointOptionsProperty = Value Prelude.Bool
set :: PropertyType "CustomEndpointEnabled" DomainEndpointOptionsProperty
-> DomainEndpointOptionsProperty -> DomainEndpointOptionsProperty
set PropertyType "CustomEndpointEnabled" DomainEndpointOptionsProperty
newValue DomainEndpointOptionsProperty {Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: DomainEndpointOptionsProperty -> ()
customEndpoint :: DomainEndpointOptionsProperty -> Maybe (Value Text)
customEndpointCertificateArn :: DomainEndpointOptionsProperty -> Maybe (Value Text)
customEndpointEnabled :: DomainEndpointOptionsProperty -> Maybe (Value Bool)
enforceHTTPS :: DomainEndpointOptionsProperty -> Maybe (Value Bool)
tLSSecurityPolicy :: DomainEndpointOptionsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
customEndpoint :: Maybe (Value Text)
customEndpointCertificateArn :: Maybe (Value Text)
customEndpointEnabled :: Maybe (Value Bool)
enforceHTTPS :: Maybe (Value Bool)
tLSSecurityPolicy :: Maybe (Value Text)
..}
= DomainEndpointOptionsProperty
{customEndpointEnabled :: Maybe (Value Bool)
customEndpointEnabled = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "CustomEndpointEnabled" DomainEndpointOptionsProperty
Value Bool
newValue, Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: ()
customEndpoint :: Maybe (Value Text)
customEndpointCertificateArn :: Maybe (Value Text)
enforceHTTPS :: Maybe (Value Bool)
tLSSecurityPolicy :: Maybe (Value Text)
haddock_workaround_ :: ()
customEndpoint :: Maybe (Value Text)
customEndpointCertificateArn :: Maybe (Value Text)
enforceHTTPS :: Maybe (Value Bool)
tLSSecurityPolicy :: Maybe (Value Text)
..}
instance Property "EnforceHTTPS" DomainEndpointOptionsProperty where
type PropertyType "EnforceHTTPS" DomainEndpointOptionsProperty = Value Prelude.Bool
set :: PropertyType "EnforceHTTPS" DomainEndpointOptionsProperty
-> DomainEndpointOptionsProperty -> DomainEndpointOptionsProperty
set PropertyType "EnforceHTTPS" DomainEndpointOptionsProperty
newValue DomainEndpointOptionsProperty {Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: DomainEndpointOptionsProperty -> ()
customEndpoint :: DomainEndpointOptionsProperty -> Maybe (Value Text)
customEndpointCertificateArn :: DomainEndpointOptionsProperty -> Maybe (Value Text)
customEndpointEnabled :: DomainEndpointOptionsProperty -> Maybe (Value Bool)
enforceHTTPS :: DomainEndpointOptionsProperty -> Maybe (Value Bool)
tLSSecurityPolicy :: DomainEndpointOptionsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
customEndpoint :: Maybe (Value Text)
customEndpointCertificateArn :: Maybe (Value Text)
customEndpointEnabled :: Maybe (Value Bool)
enforceHTTPS :: Maybe (Value Bool)
tLSSecurityPolicy :: Maybe (Value Text)
..}
= DomainEndpointOptionsProperty
{enforceHTTPS :: Maybe (Value Bool)
enforceHTTPS = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "EnforceHTTPS" DomainEndpointOptionsProperty
Value Bool
newValue, Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: ()
customEndpoint :: Maybe (Value Text)
customEndpointCertificateArn :: Maybe (Value Text)
customEndpointEnabled :: Maybe (Value Bool)
tLSSecurityPolicy :: Maybe (Value Text)
haddock_workaround_ :: ()
customEndpoint :: Maybe (Value Text)
customEndpointCertificateArn :: Maybe (Value Text)
customEndpointEnabled :: Maybe (Value Bool)
tLSSecurityPolicy :: Maybe (Value Text)
..}
instance Property "TLSSecurityPolicy" DomainEndpointOptionsProperty where
type PropertyType "TLSSecurityPolicy" DomainEndpointOptionsProperty = Value Prelude.Text
set :: PropertyType "TLSSecurityPolicy" DomainEndpointOptionsProperty
-> DomainEndpointOptionsProperty -> DomainEndpointOptionsProperty
set PropertyType "TLSSecurityPolicy" DomainEndpointOptionsProperty
newValue DomainEndpointOptionsProperty {Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: DomainEndpointOptionsProperty -> ()
customEndpoint :: DomainEndpointOptionsProperty -> Maybe (Value Text)
customEndpointCertificateArn :: DomainEndpointOptionsProperty -> Maybe (Value Text)
customEndpointEnabled :: DomainEndpointOptionsProperty -> Maybe (Value Bool)
enforceHTTPS :: DomainEndpointOptionsProperty -> Maybe (Value Bool)
tLSSecurityPolicy :: DomainEndpointOptionsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
customEndpoint :: Maybe (Value Text)
customEndpointCertificateArn :: Maybe (Value Text)
customEndpointEnabled :: Maybe (Value Bool)
enforceHTTPS :: Maybe (Value Bool)
tLSSecurityPolicy :: Maybe (Value Text)
..}
= DomainEndpointOptionsProperty
{tLSSecurityPolicy :: Maybe (Value Text)
tLSSecurityPolicy = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "TLSSecurityPolicy" DomainEndpointOptionsProperty
Value Text
newValue, Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: ()
customEndpoint :: Maybe (Value Text)
customEndpointCertificateArn :: Maybe (Value Text)
customEndpointEnabled :: Maybe (Value Bool)
enforceHTTPS :: Maybe (Value Bool)
haddock_workaround_ :: ()
customEndpoint :: Maybe (Value Text)
customEndpointCertificateArn :: Maybe (Value Text)
customEndpointEnabled :: Maybe (Value Bool)
enforceHTTPS :: Maybe (Value Bool)
..}