{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.Greengrass.CreateConnectorDefinition
(
CreateConnectorDefinition (..),
newCreateConnectorDefinition,
createConnectorDefinition_amznClientToken,
createConnectorDefinition_initialVersion,
createConnectorDefinition_name,
createConnectorDefinition_tags,
CreateConnectorDefinitionResponse (..),
newCreateConnectorDefinitionResponse,
createConnectorDefinitionResponse_latestVersionArn,
createConnectorDefinitionResponse_arn,
createConnectorDefinitionResponse_name,
createConnectorDefinitionResponse_creationTimestamp,
createConnectorDefinitionResponse_id,
createConnectorDefinitionResponse_latestVersion,
createConnectorDefinitionResponse_lastUpdatedTimestamp,
createConnectorDefinitionResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.Greengrass.Types
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data CreateConnectorDefinition = CreateConnectorDefinition'
{
CreateConnectorDefinition -> Maybe Text
amznClientToken :: Prelude.Maybe Prelude.Text,
CreateConnectorDefinition -> Maybe ConnectorDefinitionVersion
initialVersion :: Prelude.Maybe ConnectorDefinitionVersion,
CreateConnectorDefinition -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
CreateConnectorDefinition -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text)
}
deriving (CreateConnectorDefinition -> CreateConnectorDefinition -> Bool
(CreateConnectorDefinition -> CreateConnectorDefinition -> Bool)
-> (CreateConnectorDefinition -> CreateConnectorDefinition -> Bool)
-> Eq CreateConnectorDefinition
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateConnectorDefinition -> CreateConnectorDefinition -> Bool
$c/= :: CreateConnectorDefinition -> CreateConnectorDefinition -> Bool
== :: CreateConnectorDefinition -> CreateConnectorDefinition -> Bool
$c== :: CreateConnectorDefinition -> CreateConnectorDefinition -> Bool
Prelude.Eq, ReadPrec [CreateConnectorDefinition]
ReadPrec CreateConnectorDefinition
Int -> ReadS CreateConnectorDefinition
ReadS [CreateConnectorDefinition]
(Int -> ReadS CreateConnectorDefinition)
-> ReadS [CreateConnectorDefinition]
-> ReadPrec CreateConnectorDefinition
-> ReadPrec [CreateConnectorDefinition]
-> Read CreateConnectorDefinition
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateConnectorDefinition]
$creadListPrec :: ReadPrec [CreateConnectorDefinition]
readPrec :: ReadPrec CreateConnectorDefinition
$creadPrec :: ReadPrec CreateConnectorDefinition
readList :: ReadS [CreateConnectorDefinition]
$creadList :: ReadS [CreateConnectorDefinition]
readsPrec :: Int -> ReadS CreateConnectorDefinition
$creadsPrec :: Int -> ReadS CreateConnectorDefinition
Prelude.Read, Int -> CreateConnectorDefinition -> ShowS
[CreateConnectorDefinition] -> ShowS
CreateConnectorDefinition -> String
(Int -> CreateConnectorDefinition -> ShowS)
-> (CreateConnectorDefinition -> String)
-> ([CreateConnectorDefinition] -> ShowS)
-> Show CreateConnectorDefinition
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateConnectorDefinition] -> ShowS
$cshowList :: [CreateConnectorDefinition] -> ShowS
show :: CreateConnectorDefinition -> String
$cshow :: CreateConnectorDefinition -> String
showsPrec :: Int -> CreateConnectorDefinition -> ShowS
$cshowsPrec :: Int -> CreateConnectorDefinition -> ShowS
Prelude.Show, (forall x.
CreateConnectorDefinition -> Rep CreateConnectorDefinition x)
-> (forall x.
Rep CreateConnectorDefinition x -> CreateConnectorDefinition)
-> Generic CreateConnectorDefinition
forall x.
Rep CreateConnectorDefinition x -> CreateConnectorDefinition
forall x.
CreateConnectorDefinition -> Rep CreateConnectorDefinition x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateConnectorDefinition x -> CreateConnectorDefinition
$cfrom :: forall x.
CreateConnectorDefinition -> Rep CreateConnectorDefinition x
Prelude.Generic)
newCreateConnectorDefinition ::
CreateConnectorDefinition
newCreateConnectorDefinition :: CreateConnectorDefinition
newCreateConnectorDefinition =
CreateConnectorDefinition' :: Maybe Text
-> Maybe ConnectorDefinitionVersion
-> Maybe Text
-> Maybe (HashMap Text Text)
-> CreateConnectorDefinition
CreateConnectorDefinition'
{ $sel:amznClientToken:CreateConnectorDefinition' :: Maybe Text
amznClientToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:initialVersion:CreateConnectorDefinition' :: Maybe ConnectorDefinitionVersion
initialVersion = Maybe ConnectorDefinitionVersion
forall a. Maybe a
Prelude.Nothing,
$sel:name:CreateConnectorDefinition' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:tags:CreateConnectorDefinition' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing
}
createConnectorDefinition_amznClientToken :: Lens.Lens' CreateConnectorDefinition (Prelude.Maybe Prelude.Text)
createConnectorDefinition_amznClientToken :: (Maybe Text -> f (Maybe Text))
-> CreateConnectorDefinition -> f CreateConnectorDefinition
createConnectorDefinition_amznClientToken = (CreateConnectorDefinition -> Maybe Text)
-> (CreateConnectorDefinition
-> Maybe Text -> CreateConnectorDefinition)
-> Lens
CreateConnectorDefinition
CreateConnectorDefinition
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateConnectorDefinition' {Maybe Text
amznClientToken :: Maybe Text
$sel:amznClientToken:CreateConnectorDefinition' :: CreateConnectorDefinition -> Maybe Text
amznClientToken} -> Maybe Text
amznClientToken) (\s :: CreateConnectorDefinition
s@CreateConnectorDefinition' {} Maybe Text
a -> CreateConnectorDefinition
s {$sel:amznClientToken:CreateConnectorDefinition' :: Maybe Text
amznClientToken = Maybe Text
a} :: CreateConnectorDefinition)
createConnectorDefinition_initialVersion :: Lens.Lens' CreateConnectorDefinition (Prelude.Maybe ConnectorDefinitionVersion)
createConnectorDefinition_initialVersion :: (Maybe ConnectorDefinitionVersion
-> f (Maybe ConnectorDefinitionVersion))
-> CreateConnectorDefinition -> f CreateConnectorDefinition
createConnectorDefinition_initialVersion = (CreateConnectorDefinition -> Maybe ConnectorDefinitionVersion)
-> (CreateConnectorDefinition
-> Maybe ConnectorDefinitionVersion -> CreateConnectorDefinition)
-> Lens
CreateConnectorDefinition
CreateConnectorDefinition
(Maybe ConnectorDefinitionVersion)
(Maybe ConnectorDefinitionVersion)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateConnectorDefinition' {Maybe ConnectorDefinitionVersion
initialVersion :: Maybe ConnectorDefinitionVersion
$sel:initialVersion:CreateConnectorDefinition' :: CreateConnectorDefinition -> Maybe ConnectorDefinitionVersion
initialVersion} -> Maybe ConnectorDefinitionVersion
initialVersion) (\s :: CreateConnectorDefinition
s@CreateConnectorDefinition' {} Maybe ConnectorDefinitionVersion
a -> CreateConnectorDefinition
s {$sel:initialVersion:CreateConnectorDefinition' :: Maybe ConnectorDefinitionVersion
initialVersion = Maybe ConnectorDefinitionVersion
a} :: CreateConnectorDefinition)
createConnectorDefinition_name :: Lens.Lens' CreateConnectorDefinition (Prelude.Maybe Prelude.Text)
createConnectorDefinition_name :: (Maybe Text -> f (Maybe Text))
-> CreateConnectorDefinition -> f CreateConnectorDefinition
createConnectorDefinition_name = (CreateConnectorDefinition -> Maybe Text)
-> (CreateConnectorDefinition
-> Maybe Text -> CreateConnectorDefinition)
-> Lens
CreateConnectorDefinition
CreateConnectorDefinition
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateConnectorDefinition' {Maybe Text
name :: Maybe Text
$sel:name:CreateConnectorDefinition' :: CreateConnectorDefinition -> Maybe Text
name} -> Maybe Text
name) (\s :: CreateConnectorDefinition
s@CreateConnectorDefinition' {} Maybe Text
a -> CreateConnectorDefinition
s {$sel:name:CreateConnectorDefinition' :: Maybe Text
name = Maybe Text
a} :: CreateConnectorDefinition)
createConnectorDefinition_tags :: Lens.Lens' CreateConnectorDefinition (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
createConnectorDefinition_tags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> CreateConnectorDefinition -> f CreateConnectorDefinition
createConnectorDefinition_tags = (CreateConnectorDefinition -> Maybe (HashMap Text Text))
-> (CreateConnectorDefinition
-> Maybe (HashMap Text Text) -> CreateConnectorDefinition)
-> Lens
CreateConnectorDefinition
CreateConnectorDefinition
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateConnectorDefinition' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:CreateConnectorDefinition' :: CreateConnectorDefinition -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: CreateConnectorDefinition
s@CreateConnectorDefinition' {} Maybe (HashMap Text Text)
a -> CreateConnectorDefinition
s {$sel:tags:CreateConnectorDefinition' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: CreateConnectorDefinition) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> CreateConnectorDefinition -> f CreateConnectorDefinition)
-> ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> CreateConnectorDefinition
-> f CreateConnectorDefinition
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
-> Iso
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instance Core.AWSRequest CreateConnectorDefinition where
type
AWSResponse CreateConnectorDefinition =
CreateConnectorDefinitionResponse
request :: CreateConnectorDefinition -> Request CreateConnectorDefinition
request = Service
-> CreateConnectorDefinition -> Request CreateConnectorDefinition
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy CreateConnectorDefinition
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreateConnectorDefinition)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse CreateConnectorDefinition))
-> Logger
-> Service
-> Proxy CreateConnectorDefinition
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreateConnectorDefinition)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> CreateConnectorDefinitionResponse
CreateConnectorDefinitionResponse'
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> CreateConnectorDefinitionResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> CreateConnectorDefinitionResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"LatestVersionArn")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> CreateConnectorDefinitionResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> CreateConnectorDefinitionResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Arn")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> CreateConnectorDefinitionResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> CreateConnectorDefinitionResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Name")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> CreateConnectorDefinitionResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> CreateConnectorDefinitionResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"CreationTimestamp")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> CreateConnectorDefinitionResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text -> Int -> CreateConnectorDefinitionResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Id")
Either
String
(Maybe Text
-> Maybe Text -> Int -> CreateConnectorDefinitionResponse)
-> Either String (Maybe Text)
-> Either
String (Maybe Text -> Int -> CreateConnectorDefinitionResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"LatestVersion")
Either
String (Maybe Text -> Int -> CreateConnectorDefinitionResponse)
-> Either String (Maybe Text)
-> Either String (Int -> CreateConnectorDefinitionResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"LastUpdatedTimestamp")
Either String (Int -> CreateConnectorDefinitionResponse)
-> Either String Int
-> Either String CreateConnectorDefinitionResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance Prelude.Hashable CreateConnectorDefinition
instance Prelude.NFData CreateConnectorDefinition
instance Core.ToHeaders CreateConnectorDefinition where
toHeaders :: CreateConnectorDefinition -> ResponseHeaders
toHeaders CreateConnectorDefinition' {Maybe Text
Maybe (HashMap Text Text)
Maybe ConnectorDefinitionVersion
tags :: Maybe (HashMap Text Text)
name :: Maybe Text
initialVersion :: Maybe ConnectorDefinitionVersion
amznClientToken :: Maybe Text
$sel:tags:CreateConnectorDefinition' :: CreateConnectorDefinition -> Maybe (HashMap Text Text)
$sel:name:CreateConnectorDefinition' :: CreateConnectorDefinition -> Maybe Text
$sel:initialVersion:CreateConnectorDefinition' :: CreateConnectorDefinition -> Maybe ConnectorDefinitionVersion
$sel:amznClientToken:CreateConnectorDefinition' :: CreateConnectorDefinition -> Maybe Text
..} =
[ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"X-Amzn-Client-Token" HeaderName -> Maybe Text -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# Maybe Text
amznClientToken,
HeaderName
"Content-Type"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# (ByteString
"application/x-amz-json-1.1" :: Prelude.ByteString)
]
instance Core.ToJSON CreateConnectorDefinition where
toJSON :: CreateConnectorDefinition -> Value
toJSON CreateConnectorDefinition' {Maybe Text
Maybe (HashMap Text Text)
Maybe ConnectorDefinitionVersion
tags :: Maybe (HashMap Text Text)
name :: Maybe Text
initialVersion :: Maybe ConnectorDefinitionVersion
amznClientToken :: Maybe Text
$sel:tags:CreateConnectorDefinition' :: CreateConnectorDefinition -> Maybe (HashMap Text Text)
$sel:name:CreateConnectorDefinition' :: CreateConnectorDefinition -> Maybe Text
$sel:initialVersion:CreateConnectorDefinition' :: CreateConnectorDefinition -> Maybe ConnectorDefinitionVersion
$sel:amznClientToken:CreateConnectorDefinition' :: CreateConnectorDefinition -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"InitialVersion" Text -> ConnectorDefinitionVersion -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(ConnectorDefinitionVersion -> Pair)
-> Maybe ConnectorDefinitionVersion -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ConnectorDefinitionVersion
initialVersion,
(Text
"Name" 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
name,
(Text
"tags" Text -> HashMap Text Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (HashMap Text Text -> Pair)
-> Maybe (HashMap Text Text) -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (HashMap Text Text)
tags
]
)
instance Core.ToPath CreateConnectorDefinition where
toPath :: CreateConnectorDefinition -> ByteString
toPath =
ByteString -> CreateConnectorDefinition -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/greengrass/definition/connectors"
instance Core.ToQuery CreateConnectorDefinition where
toQuery :: CreateConnectorDefinition -> QueryString
toQuery = QueryString -> CreateConnectorDefinition -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data CreateConnectorDefinitionResponse = CreateConnectorDefinitionResponse'
{
CreateConnectorDefinitionResponse -> Maybe Text
latestVersionArn :: Prelude.Maybe Prelude.Text,
CreateConnectorDefinitionResponse -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
CreateConnectorDefinitionResponse -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
CreateConnectorDefinitionResponse -> Maybe Text
creationTimestamp :: Prelude.Maybe Prelude.Text,
CreateConnectorDefinitionResponse -> Maybe Text
id :: Prelude.Maybe Prelude.Text,
CreateConnectorDefinitionResponse -> Maybe Text
latestVersion :: Prelude.Maybe Prelude.Text,
CreateConnectorDefinitionResponse -> Maybe Text
lastUpdatedTimestamp :: Prelude.Maybe Prelude.Text,
CreateConnectorDefinitionResponse -> Int
httpStatus :: Prelude.Int
}
deriving (CreateConnectorDefinitionResponse
-> CreateConnectorDefinitionResponse -> Bool
(CreateConnectorDefinitionResponse
-> CreateConnectorDefinitionResponse -> Bool)
-> (CreateConnectorDefinitionResponse
-> CreateConnectorDefinitionResponse -> Bool)
-> Eq CreateConnectorDefinitionResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateConnectorDefinitionResponse
-> CreateConnectorDefinitionResponse -> Bool
$c/= :: CreateConnectorDefinitionResponse
-> CreateConnectorDefinitionResponse -> Bool
== :: CreateConnectorDefinitionResponse
-> CreateConnectorDefinitionResponse -> Bool
$c== :: CreateConnectorDefinitionResponse
-> CreateConnectorDefinitionResponse -> Bool
Prelude.Eq, ReadPrec [CreateConnectorDefinitionResponse]
ReadPrec CreateConnectorDefinitionResponse
Int -> ReadS CreateConnectorDefinitionResponse
ReadS [CreateConnectorDefinitionResponse]
(Int -> ReadS CreateConnectorDefinitionResponse)
-> ReadS [CreateConnectorDefinitionResponse]
-> ReadPrec CreateConnectorDefinitionResponse
-> ReadPrec [CreateConnectorDefinitionResponse]
-> Read CreateConnectorDefinitionResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateConnectorDefinitionResponse]
$creadListPrec :: ReadPrec [CreateConnectorDefinitionResponse]
readPrec :: ReadPrec CreateConnectorDefinitionResponse
$creadPrec :: ReadPrec CreateConnectorDefinitionResponse
readList :: ReadS [CreateConnectorDefinitionResponse]
$creadList :: ReadS [CreateConnectorDefinitionResponse]
readsPrec :: Int -> ReadS CreateConnectorDefinitionResponse
$creadsPrec :: Int -> ReadS CreateConnectorDefinitionResponse
Prelude.Read, Int -> CreateConnectorDefinitionResponse -> ShowS
[CreateConnectorDefinitionResponse] -> ShowS
CreateConnectorDefinitionResponse -> String
(Int -> CreateConnectorDefinitionResponse -> ShowS)
-> (CreateConnectorDefinitionResponse -> String)
-> ([CreateConnectorDefinitionResponse] -> ShowS)
-> Show CreateConnectorDefinitionResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateConnectorDefinitionResponse] -> ShowS
$cshowList :: [CreateConnectorDefinitionResponse] -> ShowS
show :: CreateConnectorDefinitionResponse -> String
$cshow :: CreateConnectorDefinitionResponse -> String
showsPrec :: Int -> CreateConnectorDefinitionResponse -> ShowS
$cshowsPrec :: Int -> CreateConnectorDefinitionResponse -> ShowS
Prelude.Show, (forall x.
CreateConnectorDefinitionResponse
-> Rep CreateConnectorDefinitionResponse x)
-> (forall x.
Rep CreateConnectorDefinitionResponse x
-> CreateConnectorDefinitionResponse)
-> Generic CreateConnectorDefinitionResponse
forall x.
Rep CreateConnectorDefinitionResponse x
-> CreateConnectorDefinitionResponse
forall x.
CreateConnectorDefinitionResponse
-> Rep CreateConnectorDefinitionResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateConnectorDefinitionResponse x
-> CreateConnectorDefinitionResponse
$cfrom :: forall x.
CreateConnectorDefinitionResponse
-> Rep CreateConnectorDefinitionResponse x
Prelude.Generic)
newCreateConnectorDefinitionResponse ::
Prelude.Int ->
CreateConnectorDefinitionResponse
newCreateConnectorDefinitionResponse :: Int -> CreateConnectorDefinitionResponse
newCreateConnectorDefinitionResponse Int
pHttpStatus_ =
CreateConnectorDefinitionResponse' :: Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> CreateConnectorDefinitionResponse
CreateConnectorDefinitionResponse'
{ $sel:latestVersionArn:CreateConnectorDefinitionResponse' :: Maybe Text
latestVersionArn =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:arn:CreateConnectorDefinitionResponse' :: Maybe Text
arn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:name:CreateConnectorDefinitionResponse' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:creationTimestamp:CreateConnectorDefinitionResponse' :: Maybe Text
creationTimestamp = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:id:CreateConnectorDefinitionResponse' :: Maybe Text
id = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:latestVersion:CreateConnectorDefinitionResponse' :: Maybe Text
latestVersion = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:lastUpdatedTimestamp:CreateConnectorDefinitionResponse' :: Maybe Text
lastUpdatedTimestamp = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:CreateConnectorDefinitionResponse' :: Int
httpStatus = Int
pHttpStatus_
}
createConnectorDefinitionResponse_latestVersionArn :: Lens.Lens' CreateConnectorDefinitionResponse (Prelude.Maybe Prelude.Text)
createConnectorDefinitionResponse_latestVersionArn :: (Maybe Text -> f (Maybe Text))
-> CreateConnectorDefinitionResponse
-> f CreateConnectorDefinitionResponse
createConnectorDefinitionResponse_latestVersionArn = (CreateConnectorDefinitionResponse -> Maybe Text)
-> (CreateConnectorDefinitionResponse
-> Maybe Text -> CreateConnectorDefinitionResponse)
-> Lens
CreateConnectorDefinitionResponse
CreateConnectorDefinitionResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateConnectorDefinitionResponse' {Maybe Text
latestVersionArn :: Maybe Text
$sel:latestVersionArn:CreateConnectorDefinitionResponse' :: CreateConnectorDefinitionResponse -> Maybe Text
latestVersionArn} -> Maybe Text
latestVersionArn) (\s :: CreateConnectorDefinitionResponse
s@CreateConnectorDefinitionResponse' {} Maybe Text
a -> CreateConnectorDefinitionResponse
s {$sel:latestVersionArn:CreateConnectorDefinitionResponse' :: Maybe Text
latestVersionArn = Maybe Text
a} :: CreateConnectorDefinitionResponse)
createConnectorDefinitionResponse_arn :: Lens.Lens' CreateConnectorDefinitionResponse (Prelude.Maybe Prelude.Text)
createConnectorDefinitionResponse_arn :: (Maybe Text -> f (Maybe Text))
-> CreateConnectorDefinitionResponse
-> f CreateConnectorDefinitionResponse
createConnectorDefinitionResponse_arn = (CreateConnectorDefinitionResponse -> Maybe Text)
-> (CreateConnectorDefinitionResponse
-> Maybe Text -> CreateConnectorDefinitionResponse)
-> Lens
CreateConnectorDefinitionResponse
CreateConnectorDefinitionResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateConnectorDefinitionResponse' {Maybe Text
arn :: Maybe Text
$sel:arn:CreateConnectorDefinitionResponse' :: CreateConnectorDefinitionResponse -> Maybe Text
arn} -> Maybe Text
arn) (\s :: CreateConnectorDefinitionResponse
s@CreateConnectorDefinitionResponse' {} Maybe Text
a -> CreateConnectorDefinitionResponse
s {$sel:arn:CreateConnectorDefinitionResponse' :: Maybe Text
arn = Maybe Text
a} :: CreateConnectorDefinitionResponse)
createConnectorDefinitionResponse_name :: Lens.Lens' CreateConnectorDefinitionResponse (Prelude.Maybe Prelude.Text)
createConnectorDefinitionResponse_name :: (Maybe Text -> f (Maybe Text))
-> CreateConnectorDefinitionResponse
-> f CreateConnectorDefinitionResponse
createConnectorDefinitionResponse_name = (CreateConnectorDefinitionResponse -> Maybe Text)
-> (CreateConnectorDefinitionResponse
-> Maybe Text -> CreateConnectorDefinitionResponse)
-> Lens
CreateConnectorDefinitionResponse
CreateConnectorDefinitionResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateConnectorDefinitionResponse' {Maybe Text
name :: Maybe Text
$sel:name:CreateConnectorDefinitionResponse' :: CreateConnectorDefinitionResponse -> Maybe Text
name} -> Maybe Text
name) (\s :: CreateConnectorDefinitionResponse
s@CreateConnectorDefinitionResponse' {} Maybe Text
a -> CreateConnectorDefinitionResponse
s {$sel:name:CreateConnectorDefinitionResponse' :: Maybe Text
name = Maybe Text
a} :: CreateConnectorDefinitionResponse)
createConnectorDefinitionResponse_creationTimestamp :: Lens.Lens' CreateConnectorDefinitionResponse (Prelude.Maybe Prelude.Text)
createConnectorDefinitionResponse_creationTimestamp :: (Maybe Text -> f (Maybe Text))
-> CreateConnectorDefinitionResponse
-> f CreateConnectorDefinitionResponse
createConnectorDefinitionResponse_creationTimestamp = (CreateConnectorDefinitionResponse -> Maybe Text)
-> (CreateConnectorDefinitionResponse
-> Maybe Text -> CreateConnectorDefinitionResponse)
-> Lens
CreateConnectorDefinitionResponse
CreateConnectorDefinitionResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateConnectorDefinitionResponse' {Maybe Text
creationTimestamp :: Maybe Text
$sel:creationTimestamp:CreateConnectorDefinitionResponse' :: CreateConnectorDefinitionResponse -> Maybe Text
creationTimestamp} -> Maybe Text
creationTimestamp) (\s :: CreateConnectorDefinitionResponse
s@CreateConnectorDefinitionResponse' {} Maybe Text
a -> CreateConnectorDefinitionResponse
s {$sel:creationTimestamp:CreateConnectorDefinitionResponse' :: Maybe Text
creationTimestamp = Maybe Text
a} :: CreateConnectorDefinitionResponse)
createConnectorDefinitionResponse_id :: Lens.Lens' CreateConnectorDefinitionResponse (Prelude.Maybe Prelude.Text)
createConnectorDefinitionResponse_id :: (Maybe Text -> f (Maybe Text))
-> CreateConnectorDefinitionResponse
-> f CreateConnectorDefinitionResponse
createConnectorDefinitionResponse_id = (CreateConnectorDefinitionResponse -> Maybe Text)
-> (CreateConnectorDefinitionResponse
-> Maybe Text -> CreateConnectorDefinitionResponse)
-> Lens
CreateConnectorDefinitionResponse
CreateConnectorDefinitionResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateConnectorDefinitionResponse' {Maybe Text
id :: Maybe Text
$sel:id:CreateConnectorDefinitionResponse' :: CreateConnectorDefinitionResponse -> Maybe Text
id} -> Maybe Text
id) (\s :: CreateConnectorDefinitionResponse
s@CreateConnectorDefinitionResponse' {} Maybe Text
a -> CreateConnectorDefinitionResponse
s {$sel:id:CreateConnectorDefinitionResponse' :: Maybe Text
id = Maybe Text
a} :: CreateConnectorDefinitionResponse)
createConnectorDefinitionResponse_latestVersion :: Lens.Lens' CreateConnectorDefinitionResponse (Prelude.Maybe Prelude.Text)
createConnectorDefinitionResponse_latestVersion :: (Maybe Text -> f (Maybe Text))
-> CreateConnectorDefinitionResponse
-> f CreateConnectorDefinitionResponse
createConnectorDefinitionResponse_latestVersion = (CreateConnectorDefinitionResponse -> Maybe Text)
-> (CreateConnectorDefinitionResponse
-> Maybe Text -> CreateConnectorDefinitionResponse)
-> Lens
CreateConnectorDefinitionResponse
CreateConnectorDefinitionResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateConnectorDefinitionResponse' {Maybe Text
latestVersion :: Maybe Text
$sel:latestVersion:CreateConnectorDefinitionResponse' :: CreateConnectorDefinitionResponse -> Maybe Text
latestVersion} -> Maybe Text
latestVersion) (\s :: CreateConnectorDefinitionResponse
s@CreateConnectorDefinitionResponse' {} Maybe Text
a -> CreateConnectorDefinitionResponse
s {$sel:latestVersion:CreateConnectorDefinitionResponse' :: Maybe Text
latestVersion = Maybe Text
a} :: CreateConnectorDefinitionResponse)
createConnectorDefinitionResponse_lastUpdatedTimestamp :: Lens.Lens' CreateConnectorDefinitionResponse (Prelude.Maybe Prelude.Text)
createConnectorDefinitionResponse_lastUpdatedTimestamp :: (Maybe Text -> f (Maybe Text))
-> CreateConnectorDefinitionResponse
-> f CreateConnectorDefinitionResponse
createConnectorDefinitionResponse_lastUpdatedTimestamp = (CreateConnectorDefinitionResponse -> Maybe Text)
-> (CreateConnectorDefinitionResponse
-> Maybe Text -> CreateConnectorDefinitionResponse)
-> Lens
CreateConnectorDefinitionResponse
CreateConnectorDefinitionResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateConnectorDefinitionResponse' {Maybe Text
lastUpdatedTimestamp :: Maybe Text
$sel:lastUpdatedTimestamp:CreateConnectorDefinitionResponse' :: CreateConnectorDefinitionResponse -> Maybe Text
lastUpdatedTimestamp} -> Maybe Text
lastUpdatedTimestamp) (\s :: CreateConnectorDefinitionResponse
s@CreateConnectorDefinitionResponse' {} Maybe Text
a -> CreateConnectorDefinitionResponse
s {$sel:lastUpdatedTimestamp:CreateConnectorDefinitionResponse' :: Maybe Text
lastUpdatedTimestamp = Maybe Text
a} :: CreateConnectorDefinitionResponse)
createConnectorDefinitionResponse_httpStatus :: Lens.Lens' CreateConnectorDefinitionResponse Prelude.Int
createConnectorDefinitionResponse_httpStatus :: (Int -> f Int)
-> CreateConnectorDefinitionResponse
-> f CreateConnectorDefinitionResponse
createConnectorDefinitionResponse_httpStatus = (CreateConnectorDefinitionResponse -> Int)
-> (CreateConnectorDefinitionResponse
-> Int -> CreateConnectorDefinitionResponse)
-> Lens
CreateConnectorDefinitionResponse
CreateConnectorDefinitionResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateConnectorDefinitionResponse' {Int
httpStatus :: Int
$sel:httpStatus:CreateConnectorDefinitionResponse' :: CreateConnectorDefinitionResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: CreateConnectorDefinitionResponse
s@CreateConnectorDefinitionResponse' {} Int
a -> CreateConnectorDefinitionResponse
s {$sel:httpStatus:CreateConnectorDefinitionResponse' :: Int
httpStatus = Int
a} :: CreateConnectorDefinitionResponse)
instance
Prelude.NFData
CreateConnectorDefinitionResponse