{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.Greengrass.Types.GroupVersion
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.Greengrass.Types.GroupVersion where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude

-- | Information about a group version.
--
-- /See:/ 'newGroupVersion' smart constructor.
data GroupVersion = GroupVersion'
  { -- | The ARN of the resource definition version for this group.
    GroupVersion -> Maybe Text
resourceDefinitionVersionArn :: Prelude.Maybe Prelude.Text,
    -- | The ARN of the subscription definition version for this group.
    GroupVersion -> Maybe Text
subscriptionDefinitionVersionArn :: Prelude.Maybe Prelude.Text,
    -- | The ARN of the core definition version for this group.
    GroupVersion -> Maybe Text
coreDefinitionVersionArn :: Prelude.Maybe Prelude.Text,
    -- | The ARN of the device definition version for this group.
    GroupVersion -> Maybe Text
deviceDefinitionVersionArn :: Prelude.Maybe Prelude.Text,
    -- | The ARN of the function definition version for this group.
    GroupVersion -> Maybe Text
functionDefinitionVersionArn :: Prelude.Maybe Prelude.Text,
    -- | The ARN of the logger definition version for this group.
    GroupVersion -> Maybe Text
loggerDefinitionVersionArn :: Prelude.Maybe Prelude.Text,
    -- | The ARN of the connector definition version for this group.
    GroupVersion -> Maybe Text
connectorDefinitionVersionArn :: Prelude.Maybe Prelude.Text
  }
  deriving (GroupVersion -> GroupVersion -> Bool
(GroupVersion -> GroupVersion -> Bool)
-> (GroupVersion -> GroupVersion -> Bool) -> Eq GroupVersion
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GroupVersion -> GroupVersion -> Bool
$c/= :: GroupVersion -> GroupVersion -> Bool
== :: GroupVersion -> GroupVersion -> Bool
$c== :: GroupVersion -> GroupVersion -> Bool
Prelude.Eq, ReadPrec [GroupVersion]
ReadPrec GroupVersion
Int -> ReadS GroupVersion
ReadS [GroupVersion]
(Int -> ReadS GroupVersion)
-> ReadS [GroupVersion]
-> ReadPrec GroupVersion
-> ReadPrec [GroupVersion]
-> Read GroupVersion
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GroupVersion]
$creadListPrec :: ReadPrec [GroupVersion]
readPrec :: ReadPrec GroupVersion
$creadPrec :: ReadPrec GroupVersion
readList :: ReadS [GroupVersion]
$creadList :: ReadS [GroupVersion]
readsPrec :: Int -> ReadS GroupVersion
$creadsPrec :: Int -> ReadS GroupVersion
Prelude.Read, Int -> GroupVersion -> ShowS
[GroupVersion] -> ShowS
GroupVersion -> String
(Int -> GroupVersion -> ShowS)
-> (GroupVersion -> String)
-> ([GroupVersion] -> ShowS)
-> Show GroupVersion
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GroupVersion] -> ShowS
$cshowList :: [GroupVersion] -> ShowS
show :: GroupVersion -> String
$cshow :: GroupVersion -> String
showsPrec :: Int -> GroupVersion -> ShowS
$cshowsPrec :: Int -> GroupVersion -> ShowS
Prelude.Show, (forall x. GroupVersion -> Rep GroupVersion x)
-> (forall x. Rep GroupVersion x -> GroupVersion)
-> Generic GroupVersion
forall x. Rep GroupVersion x -> GroupVersion
forall x. GroupVersion -> Rep GroupVersion x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GroupVersion x -> GroupVersion
$cfrom :: forall x. GroupVersion -> Rep GroupVersion x
Prelude.Generic)

-- |
-- Create a value of 'GroupVersion' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'resourceDefinitionVersionArn', 'groupVersion_resourceDefinitionVersionArn' - The ARN of the resource definition version for this group.
--
-- 'subscriptionDefinitionVersionArn', 'groupVersion_subscriptionDefinitionVersionArn' - The ARN of the subscription definition version for this group.
--
-- 'coreDefinitionVersionArn', 'groupVersion_coreDefinitionVersionArn' - The ARN of the core definition version for this group.
--
-- 'deviceDefinitionVersionArn', 'groupVersion_deviceDefinitionVersionArn' - The ARN of the device definition version for this group.
--
-- 'functionDefinitionVersionArn', 'groupVersion_functionDefinitionVersionArn' - The ARN of the function definition version for this group.
--
-- 'loggerDefinitionVersionArn', 'groupVersion_loggerDefinitionVersionArn' - The ARN of the logger definition version for this group.
--
-- 'connectorDefinitionVersionArn', 'groupVersion_connectorDefinitionVersionArn' - The ARN of the connector definition version for this group.
newGroupVersion ::
  GroupVersion
newGroupVersion :: GroupVersion
newGroupVersion =
  GroupVersion' :: Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> GroupVersion
GroupVersion'
    { $sel:resourceDefinitionVersionArn:GroupVersion' :: Maybe Text
resourceDefinitionVersionArn =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:subscriptionDefinitionVersionArn:GroupVersion' :: Maybe Text
subscriptionDefinitionVersionArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:coreDefinitionVersionArn:GroupVersion' :: Maybe Text
coreDefinitionVersionArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:deviceDefinitionVersionArn:GroupVersion' :: Maybe Text
deviceDefinitionVersionArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:functionDefinitionVersionArn:GroupVersion' :: Maybe Text
functionDefinitionVersionArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:loggerDefinitionVersionArn:GroupVersion' :: Maybe Text
loggerDefinitionVersionArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:connectorDefinitionVersionArn:GroupVersion' :: Maybe Text
connectorDefinitionVersionArn = Maybe Text
forall a. Maybe a
Prelude.Nothing
    }

-- | The ARN of the resource definition version for this group.
groupVersion_resourceDefinitionVersionArn :: Lens.Lens' GroupVersion (Prelude.Maybe Prelude.Text)
groupVersion_resourceDefinitionVersionArn :: (Maybe Text -> f (Maybe Text)) -> GroupVersion -> f GroupVersion
groupVersion_resourceDefinitionVersionArn = (GroupVersion -> Maybe Text)
-> (GroupVersion -> Maybe Text -> GroupVersion)
-> Lens GroupVersion GroupVersion (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GroupVersion' {Maybe Text
resourceDefinitionVersionArn :: Maybe Text
$sel:resourceDefinitionVersionArn:GroupVersion' :: GroupVersion -> Maybe Text
resourceDefinitionVersionArn} -> Maybe Text
resourceDefinitionVersionArn) (\s :: GroupVersion
s@GroupVersion' {} Maybe Text
a -> GroupVersion
s {$sel:resourceDefinitionVersionArn:GroupVersion' :: Maybe Text
resourceDefinitionVersionArn = Maybe Text
a} :: GroupVersion)

-- | The ARN of the subscription definition version for this group.
groupVersion_subscriptionDefinitionVersionArn :: Lens.Lens' GroupVersion (Prelude.Maybe Prelude.Text)
groupVersion_subscriptionDefinitionVersionArn :: (Maybe Text -> f (Maybe Text)) -> GroupVersion -> f GroupVersion
groupVersion_subscriptionDefinitionVersionArn = (GroupVersion -> Maybe Text)
-> (GroupVersion -> Maybe Text -> GroupVersion)
-> Lens GroupVersion GroupVersion (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GroupVersion' {Maybe Text
subscriptionDefinitionVersionArn :: Maybe Text
$sel:subscriptionDefinitionVersionArn:GroupVersion' :: GroupVersion -> Maybe Text
subscriptionDefinitionVersionArn} -> Maybe Text
subscriptionDefinitionVersionArn) (\s :: GroupVersion
s@GroupVersion' {} Maybe Text
a -> GroupVersion
s {$sel:subscriptionDefinitionVersionArn:GroupVersion' :: Maybe Text
subscriptionDefinitionVersionArn = Maybe Text
a} :: GroupVersion)

-- | The ARN of the core definition version for this group.
groupVersion_coreDefinitionVersionArn :: Lens.Lens' GroupVersion (Prelude.Maybe Prelude.Text)
groupVersion_coreDefinitionVersionArn :: (Maybe Text -> f (Maybe Text)) -> GroupVersion -> f GroupVersion
groupVersion_coreDefinitionVersionArn = (GroupVersion -> Maybe Text)
-> (GroupVersion -> Maybe Text -> GroupVersion)
-> Lens GroupVersion GroupVersion (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GroupVersion' {Maybe Text
coreDefinitionVersionArn :: Maybe Text
$sel:coreDefinitionVersionArn:GroupVersion' :: GroupVersion -> Maybe Text
coreDefinitionVersionArn} -> Maybe Text
coreDefinitionVersionArn) (\s :: GroupVersion
s@GroupVersion' {} Maybe Text
a -> GroupVersion
s {$sel:coreDefinitionVersionArn:GroupVersion' :: Maybe Text
coreDefinitionVersionArn = Maybe Text
a} :: GroupVersion)

-- | The ARN of the device definition version for this group.
groupVersion_deviceDefinitionVersionArn :: Lens.Lens' GroupVersion (Prelude.Maybe Prelude.Text)
groupVersion_deviceDefinitionVersionArn :: (Maybe Text -> f (Maybe Text)) -> GroupVersion -> f GroupVersion
groupVersion_deviceDefinitionVersionArn = (GroupVersion -> Maybe Text)
-> (GroupVersion -> Maybe Text -> GroupVersion)
-> Lens GroupVersion GroupVersion (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GroupVersion' {Maybe Text
deviceDefinitionVersionArn :: Maybe Text
$sel:deviceDefinitionVersionArn:GroupVersion' :: GroupVersion -> Maybe Text
deviceDefinitionVersionArn} -> Maybe Text
deviceDefinitionVersionArn) (\s :: GroupVersion
s@GroupVersion' {} Maybe Text
a -> GroupVersion
s {$sel:deviceDefinitionVersionArn:GroupVersion' :: Maybe Text
deviceDefinitionVersionArn = Maybe Text
a} :: GroupVersion)

-- | The ARN of the function definition version for this group.
groupVersion_functionDefinitionVersionArn :: Lens.Lens' GroupVersion (Prelude.Maybe Prelude.Text)
groupVersion_functionDefinitionVersionArn :: (Maybe Text -> f (Maybe Text)) -> GroupVersion -> f GroupVersion
groupVersion_functionDefinitionVersionArn = (GroupVersion -> Maybe Text)
-> (GroupVersion -> Maybe Text -> GroupVersion)
-> Lens GroupVersion GroupVersion (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GroupVersion' {Maybe Text
functionDefinitionVersionArn :: Maybe Text
$sel:functionDefinitionVersionArn:GroupVersion' :: GroupVersion -> Maybe Text
functionDefinitionVersionArn} -> Maybe Text
functionDefinitionVersionArn) (\s :: GroupVersion
s@GroupVersion' {} Maybe Text
a -> GroupVersion
s {$sel:functionDefinitionVersionArn:GroupVersion' :: Maybe Text
functionDefinitionVersionArn = Maybe Text
a} :: GroupVersion)

-- | The ARN of the logger definition version for this group.
groupVersion_loggerDefinitionVersionArn :: Lens.Lens' GroupVersion (Prelude.Maybe Prelude.Text)
groupVersion_loggerDefinitionVersionArn :: (Maybe Text -> f (Maybe Text)) -> GroupVersion -> f GroupVersion
groupVersion_loggerDefinitionVersionArn = (GroupVersion -> Maybe Text)
-> (GroupVersion -> Maybe Text -> GroupVersion)
-> Lens GroupVersion GroupVersion (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GroupVersion' {Maybe Text
loggerDefinitionVersionArn :: Maybe Text
$sel:loggerDefinitionVersionArn:GroupVersion' :: GroupVersion -> Maybe Text
loggerDefinitionVersionArn} -> Maybe Text
loggerDefinitionVersionArn) (\s :: GroupVersion
s@GroupVersion' {} Maybe Text
a -> GroupVersion
s {$sel:loggerDefinitionVersionArn:GroupVersion' :: Maybe Text
loggerDefinitionVersionArn = Maybe Text
a} :: GroupVersion)

-- | The ARN of the connector definition version for this group.
groupVersion_connectorDefinitionVersionArn :: Lens.Lens' GroupVersion (Prelude.Maybe Prelude.Text)
groupVersion_connectorDefinitionVersionArn :: (Maybe Text -> f (Maybe Text)) -> GroupVersion -> f GroupVersion
groupVersion_connectorDefinitionVersionArn = (GroupVersion -> Maybe Text)
-> (GroupVersion -> Maybe Text -> GroupVersion)
-> Lens GroupVersion GroupVersion (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GroupVersion' {Maybe Text
connectorDefinitionVersionArn :: Maybe Text
$sel:connectorDefinitionVersionArn:GroupVersion' :: GroupVersion -> Maybe Text
connectorDefinitionVersionArn} -> Maybe Text
connectorDefinitionVersionArn) (\s :: GroupVersion
s@GroupVersion' {} Maybe Text
a -> GroupVersion
s {$sel:connectorDefinitionVersionArn:GroupVersion' :: Maybe Text
connectorDefinitionVersionArn = Maybe Text
a} :: GroupVersion)

instance Core.FromJSON GroupVersion where
  parseJSON :: Value -> Parser GroupVersion
parseJSON =
    String
-> (Object -> Parser GroupVersion) -> Value -> Parser GroupVersion
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"GroupVersion"
      ( \Object
x ->
          Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> GroupVersion
GroupVersion'
            (Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> GroupVersion)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> GroupVersion)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ResourceDefinitionVersionArn")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> GroupVersion)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> GroupVersion)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"SubscriptionDefinitionVersionArn")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> GroupVersion)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Text -> Maybe Text -> Maybe Text -> GroupVersion)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"CoreDefinitionVersionArn")
            Parser
  (Maybe Text
   -> Maybe Text -> Maybe Text -> Maybe Text -> GroupVersion)
-> Parser (Maybe Text)
-> Parser (Maybe Text -> Maybe Text -> Maybe Text -> GroupVersion)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"DeviceDefinitionVersionArn")
            Parser (Maybe Text -> Maybe Text -> Maybe Text -> GroupVersion)
-> Parser (Maybe Text)
-> Parser (Maybe Text -> Maybe Text -> GroupVersion)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"FunctionDefinitionVersionArn")
            Parser (Maybe Text -> Maybe Text -> GroupVersion)
-> Parser (Maybe Text) -> Parser (Maybe Text -> GroupVersion)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"LoggerDefinitionVersionArn")
            Parser (Maybe Text -> GroupVersion)
-> Parser (Maybe Text) -> Parser GroupVersion
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ConnectorDefinitionVersionArn")
      )

instance Prelude.Hashable GroupVersion

instance Prelude.NFData GroupVersion

instance Core.ToJSON GroupVersion where
  toJSON :: GroupVersion -> Value
toJSON GroupVersion' {Maybe Text
connectorDefinitionVersionArn :: Maybe Text
loggerDefinitionVersionArn :: Maybe Text
functionDefinitionVersionArn :: Maybe Text
deviceDefinitionVersionArn :: Maybe Text
coreDefinitionVersionArn :: Maybe Text
subscriptionDefinitionVersionArn :: Maybe Text
resourceDefinitionVersionArn :: Maybe Text
$sel:connectorDefinitionVersionArn:GroupVersion' :: GroupVersion -> Maybe Text
$sel:loggerDefinitionVersionArn:GroupVersion' :: GroupVersion -> Maybe Text
$sel:functionDefinitionVersionArn:GroupVersion' :: GroupVersion -> Maybe Text
$sel:deviceDefinitionVersionArn:GroupVersion' :: GroupVersion -> Maybe Text
$sel:coreDefinitionVersionArn:GroupVersion' :: GroupVersion -> Maybe Text
$sel:subscriptionDefinitionVersionArn:GroupVersion' :: GroupVersion -> Maybe Text
$sel:resourceDefinitionVersionArn:GroupVersion' :: GroupVersion -> Maybe Text
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Text
"ResourceDefinitionVersionArn" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
resourceDefinitionVersionArn,
            (Text
"SubscriptionDefinitionVersionArn" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
subscriptionDefinitionVersionArn,
            (Text
"CoreDefinitionVersionArn" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
coreDefinitionVersionArn,
            (Text
"DeviceDefinitionVersionArn" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
deviceDefinitionVersionArn,
            (Text
"FunctionDefinitionVersionArn" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
functionDefinitionVersionArn,
            (Text
"LoggerDefinitionVersionArn" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
loggerDefinitionVersionArn,
            (Text
"ConnectorDefinitionVersionArn" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
connectorDefinitionVersionArn
          ]
      )