module Stratosphere.SecurityLake.SubscriberNotification.HttpsNotificationConfigurationProperty (
        HttpsNotificationConfigurationProperty(..),
        mkHttpsNotificationConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data HttpsNotificationConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securitylake-subscribernotification-httpsnotificationconfiguration.html>
    HttpsNotificationConfigurationProperty {HttpsNotificationConfigurationProperty -> ()
haddock_workaround_ :: (),
                                            -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securitylake-subscribernotification-httpsnotificationconfiguration.html#cfn-securitylake-subscribernotification-httpsnotificationconfiguration-authorizationapikeyname>
                                            HttpsNotificationConfigurationProperty -> Maybe (Value Text)
authorizationApiKeyName :: (Prelude.Maybe (Value Prelude.Text)),
                                            -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securitylake-subscribernotification-httpsnotificationconfiguration.html#cfn-securitylake-subscribernotification-httpsnotificationconfiguration-authorizationapikeyvalue>
                                            HttpsNotificationConfigurationProperty -> Maybe (Value Text)
authorizationApiKeyValue :: (Prelude.Maybe (Value Prelude.Text)),
                                            -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securitylake-subscribernotification-httpsnotificationconfiguration.html#cfn-securitylake-subscribernotification-httpsnotificationconfiguration-endpoint>
                                            HttpsNotificationConfigurationProperty -> Value Text
endpoint :: (Value Prelude.Text),
                                            -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securitylake-subscribernotification-httpsnotificationconfiguration.html#cfn-securitylake-subscribernotification-httpsnotificationconfiguration-httpmethod>
                                            HttpsNotificationConfigurationProperty -> Maybe (Value Text)
httpMethod :: (Prelude.Maybe (Value Prelude.Text)),
                                            -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-securitylake-subscribernotification-httpsnotificationconfiguration.html#cfn-securitylake-subscribernotification-httpsnotificationconfiguration-targetrolearn>
                                            HttpsNotificationConfigurationProperty -> Value Text
targetRoleArn :: (Value Prelude.Text)}
  deriving stock (HttpsNotificationConfigurationProperty
-> HttpsNotificationConfigurationProperty -> Bool
(HttpsNotificationConfigurationProperty
 -> HttpsNotificationConfigurationProperty -> Bool)
-> (HttpsNotificationConfigurationProperty
    -> HttpsNotificationConfigurationProperty -> Bool)
-> Eq HttpsNotificationConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: HttpsNotificationConfigurationProperty
-> HttpsNotificationConfigurationProperty -> Bool
== :: HttpsNotificationConfigurationProperty
-> HttpsNotificationConfigurationProperty -> Bool
$c/= :: HttpsNotificationConfigurationProperty
-> HttpsNotificationConfigurationProperty -> Bool
/= :: HttpsNotificationConfigurationProperty
-> HttpsNotificationConfigurationProperty -> Bool
Prelude.Eq, Int -> HttpsNotificationConfigurationProperty -> ShowS
[HttpsNotificationConfigurationProperty] -> ShowS
HttpsNotificationConfigurationProperty -> String
(Int -> HttpsNotificationConfigurationProperty -> ShowS)
-> (HttpsNotificationConfigurationProperty -> String)
-> ([HttpsNotificationConfigurationProperty] -> ShowS)
-> Show HttpsNotificationConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> HttpsNotificationConfigurationProperty -> ShowS
showsPrec :: Int -> HttpsNotificationConfigurationProperty -> ShowS
$cshow :: HttpsNotificationConfigurationProperty -> String
show :: HttpsNotificationConfigurationProperty -> String
$cshowList :: [HttpsNotificationConfigurationProperty] -> ShowS
showList :: [HttpsNotificationConfigurationProperty] -> ShowS
Prelude.Show)
mkHttpsNotificationConfigurationProperty ::
  Value Prelude.Text
  -> Value Prelude.Text -> HttpsNotificationConfigurationProperty
mkHttpsNotificationConfigurationProperty :: Value Text -> Value Text -> HttpsNotificationConfigurationProperty
mkHttpsNotificationConfigurationProperty Value Text
endpoint Value Text
targetRoleArn
  = HttpsNotificationConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), endpoint :: Value Text
endpoint = Value Text
endpoint,
       targetRoleArn :: Value Text
targetRoleArn = Value Text
targetRoleArn,
       authorizationApiKeyName :: Maybe (Value Text)
authorizationApiKeyName = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       authorizationApiKeyValue :: Maybe (Value Text)
authorizationApiKeyValue = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       httpMethod :: Maybe (Value Text)
httpMethod = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties HttpsNotificationConfigurationProperty where
  toResourceProperties :: HttpsNotificationConfigurationProperty -> ResourceProperties
toResourceProperties HttpsNotificationConfigurationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: HttpsNotificationConfigurationProperty -> ()
authorizationApiKeyName :: HttpsNotificationConfigurationProperty -> Maybe (Value Text)
authorizationApiKeyValue :: HttpsNotificationConfigurationProperty -> Maybe (Value Text)
endpoint :: HttpsNotificationConfigurationProperty -> Value Text
httpMethod :: HttpsNotificationConfigurationProperty -> Maybe (Value Text)
targetRoleArn :: HttpsNotificationConfigurationProperty -> Value Text
haddock_workaround_ :: ()
authorizationApiKeyName :: Maybe (Value Text)
authorizationApiKeyValue :: Maybe (Value Text)
endpoint :: Value Text
httpMethod :: Maybe (Value Text)
targetRoleArn :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::SecurityLake::SubscriberNotification.HttpsNotificationConfiguration",
         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
"Endpoint" 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
endpoint,
                            Key
"TargetRoleArn" 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
targetRoleArn]
                           ([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
"AuthorizationApiKeyName"
                                 (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)
authorizationApiKeyName,
                               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
"AuthorizationApiKeyValue"
                                 (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)
authorizationApiKeyValue,
                               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
"HttpMethod" (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)
httpMethod]))}
instance JSON.ToJSON HttpsNotificationConfigurationProperty where
  toJSON :: HttpsNotificationConfigurationProperty -> Value
toJSON HttpsNotificationConfigurationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: HttpsNotificationConfigurationProperty -> ()
authorizationApiKeyName :: HttpsNotificationConfigurationProperty -> Maybe (Value Text)
authorizationApiKeyValue :: HttpsNotificationConfigurationProperty -> Maybe (Value Text)
endpoint :: HttpsNotificationConfigurationProperty -> Value Text
httpMethod :: HttpsNotificationConfigurationProperty -> Maybe (Value Text)
targetRoleArn :: HttpsNotificationConfigurationProperty -> Value Text
haddock_workaround_ :: ()
authorizationApiKeyName :: Maybe (Value Text)
authorizationApiKeyValue :: Maybe (Value Text)
endpoint :: Value Text
httpMethod :: Maybe (Value Text)
targetRoleArn :: 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
"Endpoint" 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
endpoint,
               Key
"TargetRoleArn" 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
targetRoleArn]
              ([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
"AuthorizationApiKeyName"
                    (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)
authorizationApiKeyName,
                  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
"AuthorizationApiKeyValue"
                    (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)
authorizationApiKeyValue,
                  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
"HttpMethod" (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)
httpMethod])))
instance Property "AuthorizationApiKeyName" HttpsNotificationConfigurationProperty where
  type PropertyType "AuthorizationApiKeyName" HttpsNotificationConfigurationProperty = Value Prelude.Text
  set :: PropertyType
  "AuthorizationApiKeyName" HttpsNotificationConfigurationProperty
-> HttpsNotificationConfigurationProperty
-> HttpsNotificationConfigurationProperty
set PropertyType
  "AuthorizationApiKeyName" HttpsNotificationConfigurationProperty
newValue HttpsNotificationConfigurationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: HttpsNotificationConfigurationProperty -> ()
authorizationApiKeyName :: HttpsNotificationConfigurationProperty -> Maybe (Value Text)
authorizationApiKeyValue :: HttpsNotificationConfigurationProperty -> Maybe (Value Text)
endpoint :: HttpsNotificationConfigurationProperty -> Value Text
httpMethod :: HttpsNotificationConfigurationProperty -> Maybe (Value Text)
targetRoleArn :: HttpsNotificationConfigurationProperty -> Value Text
haddock_workaround_ :: ()
authorizationApiKeyName :: Maybe (Value Text)
authorizationApiKeyValue :: Maybe (Value Text)
endpoint :: Value Text
httpMethod :: Maybe (Value Text)
targetRoleArn :: Value Text
..}
    = HttpsNotificationConfigurationProperty
        {authorizationApiKeyName :: Maybe (Value Text)
authorizationApiKeyName = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "AuthorizationApiKeyName" HttpsNotificationConfigurationProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
authorizationApiKeyValue :: Maybe (Value Text)
endpoint :: Value Text
httpMethod :: Maybe (Value Text)
targetRoleArn :: Value Text
haddock_workaround_ :: ()
authorizationApiKeyValue :: Maybe (Value Text)
endpoint :: Value Text
httpMethod :: Maybe (Value Text)
targetRoleArn :: Value Text
..}
instance Property "AuthorizationApiKeyValue" HttpsNotificationConfigurationProperty where
  type PropertyType "AuthorizationApiKeyValue" HttpsNotificationConfigurationProperty = Value Prelude.Text
  set :: PropertyType
  "AuthorizationApiKeyValue" HttpsNotificationConfigurationProperty
-> HttpsNotificationConfigurationProperty
-> HttpsNotificationConfigurationProperty
set PropertyType
  "AuthorizationApiKeyValue" HttpsNotificationConfigurationProperty
newValue HttpsNotificationConfigurationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: HttpsNotificationConfigurationProperty -> ()
authorizationApiKeyName :: HttpsNotificationConfigurationProperty -> Maybe (Value Text)
authorizationApiKeyValue :: HttpsNotificationConfigurationProperty -> Maybe (Value Text)
endpoint :: HttpsNotificationConfigurationProperty -> Value Text
httpMethod :: HttpsNotificationConfigurationProperty -> Maybe (Value Text)
targetRoleArn :: HttpsNotificationConfigurationProperty -> Value Text
haddock_workaround_ :: ()
authorizationApiKeyName :: Maybe (Value Text)
authorizationApiKeyValue :: Maybe (Value Text)
endpoint :: Value Text
httpMethod :: Maybe (Value Text)
targetRoleArn :: Value Text
..}
    = HttpsNotificationConfigurationProperty
        {authorizationApiKeyValue :: Maybe (Value Text)
authorizationApiKeyValue = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "AuthorizationApiKeyValue" HttpsNotificationConfigurationProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
authorizationApiKeyName :: Maybe (Value Text)
endpoint :: Value Text
httpMethod :: Maybe (Value Text)
targetRoleArn :: Value Text
haddock_workaround_ :: ()
authorizationApiKeyName :: Maybe (Value Text)
endpoint :: Value Text
httpMethod :: Maybe (Value Text)
targetRoleArn :: Value Text
..}
instance Property "Endpoint" HttpsNotificationConfigurationProperty where
  type PropertyType "Endpoint" HttpsNotificationConfigurationProperty = Value Prelude.Text
  set :: PropertyType "Endpoint" HttpsNotificationConfigurationProperty
-> HttpsNotificationConfigurationProperty
-> HttpsNotificationConfigurationProperty
set PropertyType "Endpoint" HttpsNotificationConfigurationProperty
newValue HttpsNotificationConfigurationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: HttpsNotificationConfigurationProperty -> ()
authorizationApiKeyName :: HttpsNotificationConfigurationProperty -> Maybe (Value Text)
authorizationApiKeyValue :: HttpsNotificationConfigurationProperty -> Maybe (Value Text)
endpoint :: HttpsNotificationConfigurationProperty -> Value Text
httpMethod :: HttpsNotificationConfigurationProperty -> Maybe (Value Text)
targetRoleArn :: HttpsNotificationConfigurationProperty -> Value Text
haddock_workaround_ :: ()
authorizationApiKeyName :: Maybe (Value Text)
authorizationApiKeyValue :: Maybe (Value Text)
endpoint :: Value Text
httpMethod :: Maybe (Value Text)
targetRoleArn :: Value Text
..}
    = HttpsNotificationConfigurationProperty {endpoint :: Value Text
endpoint = PropertyType "Endpoint" HttpsNotificationConfigurationProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
authorizationApiKeyName :: Maybe (Value Text)
authorizationApiKeyValue :: Maybe (Value Text)
httpMethod :: Maybe (Value Text)
targetRoleArn :: Value Text
haddock_workaround_ :: ()
authorizationApiKeyName :: Maybe (Value Text)
authorizationApiKeyValue :: Maybe (Value Text)
httpMethod :: Maybe (Value Text)
targetRoleArn :: Value Text
..}
instance Property "HttpMethod" HttpsNotificationConfigurationProperty where
  type PropertyType "HttpMethod" HttpsNotificationConfigurationProperty = Value Prelude.Text
  set :: PropertyType "HttpMethod" HttpsNotificationConfigurationProperty
-> HttpsNotificationConfigurationProperty
-> HttpsNotificationConfigurationProperty
set PropertyType "HttpMethod" HttpsNotificationConfigurationProperty
newValue HttpsNotificationConfigurationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: HttpsNotificationConfigurationProperty -> ()
authorizationApiKeyName :: HttpsNotificationConfigurationProperty -> Maybe (Value Text)
authorizationApiKeyValue :: HttpsNotificationConfigurationProperty -> Maybe (Value Text)
endpoint :: HttpsNotificationConfigurationProperty -> Value Text
httpMethod :: HttpsNotificationConfigurationProperty -> Maybe (Value Text)
targetRoleArn :: HttpsNotificationConfigurationProperty -> Value Text
haddock_workaround_ :: ()
authorizationApiKeyName :: Maybe (Value Text)
authorizationApiKeyValue :: Maybe (Value Text)
endpoint :: Value Text
httpMethod :: Maybe (Value Text)
targetRoleArn :: Value Text
..}
    = HttpsNotificationConfigurationProperty
        {httpMethod :: Maybe (Value Text)
httpMethod = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "HttpMethod" HttpsNotificationConfigurationProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
authorizationApiKeyName :: Maybe (Value Text)
authorizationApiKeyValue :: Maybe (Value Text)
endpoint :: Value Text
targetRoleArn :: Value Text
haddock_workaround_ :: ()
authorizationApiKeyName :: Maybe (Value Text)
authorizationApiKeyValue :: Maybe (Value Text)
endpoint :: Value Text
targetRoleArn :: Value Text
..}
instance Property "TargetRoleArn" HttpsNotificationConfigurationProperty where
  type PropertyType "TargetRoleArn" HttpsNotificationConfigurationProperty = Value Prelude.Text
  set :: PropertyType "TargetRoleArn" HttpsNotificationConfigurationProperty
-> HttpsNotificationConfigurationProperty
-> HttpsNotificationConfigurationProperty
set PropertyType "TargetRoleArn" HttpsNotificationConfigurationProperty
newValue HttpsNotificationConfigurationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: HttpsNotificationConfigurationProperty -> ()
authorizationApiKeyName :: HttpsNotificationConfigurationProperty -> Maybe (Value Text)
authorizationApiKeyValue :: HttpsNotificationConfigurationProperty -> Maybe (Value Text)
endpoint :: HttpsNotificationConfigurationProperty -> Value Text
httpMethod :: HttpsNotificationConfigurationProperty -> Maybe (Value Text)
targetRoleArn :: HttpsNotificationConfigurationProperty -> Value Text
haddock_workaround_ :: ()
authorizationApiKeyName :: Maybe (Value Text)
authorizationApiKeyValue :: Maybe (Value Text)
endpoint :: Value Text
httpMethod :: Maybe (Value Text)
targetRoleArn :: Value Text
..}
    = HttpsNotificationConfigurationProperty
        {targetRoleArn :: Value Text
targetRoleArn = PropertyType "TargetRoleArn" HttpsNotificationConfigurationProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
authorizationApiKeyName :: Maybe (Value Text)
authorizationApiKeyValue :: Maybe (Value Text)
endpoint :: Value Text
httpMethod :: Maybe (Value Text)
haddock_workaround_ :: ()
authorizationApiKeyName :: Maybe (Value Text)
authorizationApiKeyValue :: Maybe (Value Text)
endpoint :: Value Text
httpMethod :: Maybe (Value Text)
..}