module Stratosphere.IoT.TopicRule.ElasticsearchActionProperty (
        ElasticsearchActionProperty(..), mkElasticsearchActionProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ElasticsearchActionProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-elasticsearchaction.html>
    ElasticsearchActionProperty {ElasticsearchActionProperty -> ()
haddock_workaround_ :: (),
                                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-elasticsearchaction.html#cfn-iot-topicrule-elasticsearchaction-endpoint>
                                 ElasticsearchActionProperty -> Value Text
endpoint :: (Value Prelude.Text),
                                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-elasticsearchaction.html#cfn-iot-topicrule-elasticsearchaction-id>
                                 ElasticsearchActionProperty -> Value Text
id :: (Value Prelude.Text),
                                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-elasticsearchaction.html#cfn-iot-topicrule-elasticsearchaction-index>
                                 ElasticsearchActionProperty -> Value Text
index :: (Value Prelude.Text),
                                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-elasticsearchaction.html#cfn-iot-topicrule-elasticsearchaction-rolearn>
                                 ElasticsearchActionProperty -> Value Text
roleArn :: (Value Prelude.Text),
                                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-elasticsearchaction.html#cfn-iot-topicrule-elasticsearchaction-type>
                                 ElasticsearchActionProperty -> Value Text
type' :: (Value Prelude.Text)}
  deriving stock (ElasticsearchActionProperty -> ElasticsearchActionProperty -> Bool
(ElasticsearchActionProperty
 -> ElasticsearchActionProperty -> Bool)
-> (ElasticsearchActionProperty
    -> ElasticsearchActionProperty -> Bool)
-> Eq ElasticsearchActionProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ElasticsearchActionProperty -> ElasticsearchActionProperty -> Bool
== :: ElasticsearchActionProperty -> ElasticsearchActionProperty -> Bool
$c/= :: ElasticsearchActionProperty -> ElasticsearchActionProperty -> Bool
/= :: ElasticsearchActionProperty -> ElasticsearchActionProperty -> Bool
Prelude.Eq, Int -> ElasticsearchActionProperty -> ShowS
[ElasticsearchActionProperty] -> ShowS
ElasticsearchActionProperty -> String
(Int -> ElasticsearchActionProperty -> ShowS)
-> (ElasticsearchActionProperty -> String)
-> ([ElasticsearchActionProperty] -> ShowS)
-> Show ElasticsearchActionProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ElasticsearchActionProperty -> ShowS
showsPrec :: Int -> ElasticsearchActionProperty -> ShowS
$cshow :: ElasticsearchActionProperty -> String
show :: ElasticsearchActionProperty -> String
$cshowList :: [ElasticsearchActionProperty] -> ShowS
showList :: [ElasticsearchActionProperty] -> ShowS
Prelude.Show)
mkElasticsearchActionProperty ::
  Value Prelude.Text
  -> Value Prelude.Text
     -> Value Prelude.Text
        -> Value Prelude.Text
           -> Value Prelude.Text -> ElasticsearchActionProperty
mkElasticsearchActionProperty :: Value Text
-> Value Text
-> Value Text
-> Value Text
-> Value Text
-> ElasticsearchActionProperty
mkElasticsearchActionProperty Value Text
endpoint Value Text
id Value Text
index Value Text
roleArn Value Text
type'
  = ElasticsearchActionProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), endpoint :: Value Text
endpoint = Value Text
endpoint, id :: Value Text
id = Value Text
id,
       index :: Value Text
index = Value Text
index, roleArn :: Value Text
roleArn = Value Text
roleArn, type' :: Value Text
type' = Value Text
type'}
instance ToResourceProperties ElasticsearchActionProperty where
  toResourceProperties :: ElasticsearchActionProperty -> ResourceProperties
toResourceProperties ElasticsearchActionProperty {()
Value Text
haddock_workaround_ :: ElasticsearchActionProperty -> ()
endpoint :: ElasticsearchActionProperty -> Value Text
id :: ElasticsearchActionProperty -> Value Text
index :: ElasticsearchActionProperty -> Value Text
roleArn :: ElasticsearchActionProperty -> Value Text
type' :: ElasticsearchActionProperty -> Value Text
haddock_workaround_ :: ()
endpoint :: Value Text
id :: Value Text
index :: Value Text
roleArn :: Value Text
type' :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::IoT::TopicRule.ElasticsearchAction",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [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
"Id" 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
id,
                       Key
"Index" 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
index, Key
"RoleArn" 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
roleArn,
                       Key
"Type" 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
type']}
instance JSON.ToJSON ElasticsearchActionProperty where
  toJSON :: ElasticsearchActionProperty -> Value
toJSON ElasticsearchActionProperty {()
Value Text
haddock_workaround_ :: ElasticsearchActionProperty -> ()
endpoint :: ElasticsearchActionProperty -> Value Text
id :: ElasticsearchActionProperty -> Value Text
index :: ElasticsearchActionProperty -> Value Text
roleArn :: ElasticsearchActionProperty -> Value Text
type' :: ElasticsearchActionProperty -> Value Text
haddock_workaround_ :: ()
endpoint :: Value Text
id :: Value Text
index :: Value Text
roleArn :: Value Text
type' :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object
        [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
"Id" 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
id,
         Key
"Index" 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
index, Key
"RoleArn" 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
roleArn,
         Key
"Type" 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
type']
instance Property "Endpoint" ElasticsearchActionProperty where
  type PropertyType "Endpoint" ElasticsearchActionProperty = Value Prelude.Text
  set :: PropertyType "Endpoint" ElasticsearchActionProperty
-> ElasticsearchActionProperty -> ElasticsearchActionProperty
set PropertyType "Endpoint" ElasticsearchActionProperty
newValue ElasticsearchActionProperty {()
Value Text
haddock_workaround_ :: ElasticsearchActionProperty -> ()
endpoint :: ElasticsearchActionProperty -> Value Text
id :: ElasticsearchActionProperty -> Value Text
index :: ElasticsearchActionProperty -> Value Text
roleArn :: ElasticsearchActionProperty -> Value Text
type' :: ElasticsearchActionProperty -> Value Text
haddock_workaround_ :: ()
endpoint :: Value Text
id :: Value Text
index :: Value Text
roleArn :: Value Text
type' :: Value Text
..}
    = ElasticsearchActionProperty {endpoint :: Value Text
endpoint = PropertyType "Endpoint" ElasticsearchActionProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
id :: Value Text
index :: Value Text
roleArn :: Value Text
type' :: Value Text
haddock_workaround_ :: ()
id :: Value Text
index :: Value Text
roleArn :: Value Text
type' :: Value Text
..}
instance Property "Id" ElasticsearchActionProperty where
  type PropertyType "Id" ElasticsearchActionProperty = Value Prelude.Text
  set :: PropertyType "Id" ElasticsearchActionProperty
-> ElasticsearchActionProperty -> ElasticsearchActionProperty
set PropertyType "Id" ElasticsearchActionProperty
newValue ElasticsearchActionProperty {()
Value Text
haddock_workaround_ :: ElasticsearchActionProperty -> ()
endpoint :: ElasticsearchActionProperty -> Value Text
id :: ElasticsearchActionProperty -> Value Text
index :: ElasticsearchActionProperty -> Value Text
roleArn :: ElasticsearchActionProperty -> Value Text
type' :: ElasticsearchActionProperty -> Value Text
haddock_workaround_ :: ()
endpoint :: Value Text
id :: Value Text
index :: Value Text
roleArn :: Value Text
type' :: Value Text
..}
    = ElasticsearchActionProperty {id :: Value Text
id = PropertyType "Id" ElasticsearchActionProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
endpoint :: Value Text
index :: Value Text
roleArn :: Value Text
type' :: Value Text
haddock_workaround_ :: ()
endpoint :: Value Text
index :: Value Text
roleArn :: Value Text
type' :: Value Text
..}
instance Property "Index" ElasticsearchActionProperty where
  type PropertyType "Index" ElasticsearchActionProperty = Value Prelude.Text
  set :: PropertyType "Index" ElasticsearchActionProperty
-> ElasticsearchActionProperty -> ElasticsearchActionProperty
set PropertyType "Index" ElasticsearchActionProperty
newValue ElasticsearchActionProperty {()
Value Text
haddock_workaround_ :: ElasticsearchActionProperty -> ()
endpoint :: ElasticsearchActionProperty -> Value Text
id :: ElasticsearchActionProperty -> Value Text
index :: ElasticsearchActionProperty -> Value Text
roleArn :: ElasticsearchActionProperty -> Value Text
type' :: ElasticsearchActionProperty -> Value Text
haddock_workaround_ :: ()
endpoint :: Value Text
id :: Value Text
index :: Value Text
roleArn :: Value Text
type' :: Value Text
..}
    = ElasticsearchActionProperty {index :: Value Text
index = PropertyType "Index" ElasticsearchActionProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
endpoint :: Value Text
id :: Value Text
roleArn :: Value Text
type' :: Value Text
haddock_workaround_ :: ()
endpoint :: Value Text
id :: Value Text
roleArn :: Value Text
type' :: Value Text
..}
instance Property "RoleArn" ElasticsearchActionProperty where
  type PropertyType "RoleArn" ElasticsearchActionProperty = Value Prelude.Text
  set :: PropertyType "RoleArn" ElasticsearchActionProperty
-> ElasticsearchActionProperty -> ElasticsearchActionProperty
set PropertyType "RoleArn" ElasticsearchActionProperty
newValue ElasticsearchActionProperty {()
Value Text
haddock_workaround_ :: ElasticsearchActionProperty -> ()
endpoint :: ElasticsearchActionProperty -> Value Text
id :: ElasticsearchActionProperty -> Value Text
index :: ElasticsearchActionProperty -> Value Text
roleArn :: ElasticsearchActionProperty -> Value Text
type' :: ElasticsearchActionProperty -> Value Text
haddock_workaround_ :: ()
endpoint :: Value Text
id :: Value Text
index :: Value Text
roleArn :: Value Text
type' :: Value Text
..}
    = ElasticsearchActionProperty {roleArn :: Value Text
roleArn = PropertyType "RoleArn" ElasticsearchActionProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
endpoint :: Value Text
id :: Value Text
index :: Value Text
type' :: Value Text
haddock_workaround_ :: ()
endpoint :: Value Text
id :: Value Text
index :: Value Text
type' :: Value Text
..}
instance Property "Type" ElasticsearchActionProperty where
  type PropertyType "Type" ElasticsearchActionProperty = Value Prelude.Text
  set :: PropertyType "Type" ElasticsearchActionProperty
-> ElasticsearchActionProperty -> ElasticsearchActionProperty
set PropertyType "Type" ElasticsearchActionProperty
newValue ElasticsearchActionProperty {()
Value Text
haddock_workaround_ :: ElasticsearchActionProperty -> ()
endpoint :: ElasticsearchActionProperty -> Value Text
id :: ElasticsearchActionProperty -> Value Text
index :: ElasticsearchActionProperty -> Value Text
roleArn :: ElasticsearchActionProperty -> Value Text
type' :: ElasticsearchActionProperty -> Value Text
haddock_workaround_ :: ()
endpoint :: Value Text
id :: Value Text
index :: Value Text
roleArn :: Value Text
type' :: Value Text
..}
    = ElasticsearchActionProperty {type' :: Value Text
type' = PropertyType "Type" ElasticsearchActionProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
endpoint :: Value Text
id :: Value Text
index :: Value Text
roleArn :: Value Text
haddock_workaround_ :: ()
endpoint :: Value Text
id :: Value Text
index :: Value Text
roleArn :: Value Text
..}