{-# 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.CreateConnectorDefinitionVersion
(
CreateConnectorDefinitionVersion (..),
newCreateConnectorDefinitionVersion,
createConnectorDefinitionVersion_amznClientToken,
createConnectorDefinitionVersion_connectors,
createConnectorDefinitionVersion_connectorDefinitionId,
CreateConnectorDefinitionVersionResponse (..),
newCreateConnectorDefinitionVersionResponse,
createConnectorDefinitionVersionResponse_arn,
createConnectorDefinitionVersionResponse_creationTimestamp,
createConnectorDefinitionVersionResponse_version,
createConnectorDefinitionVersionResponse_id,
createConnectorDefinitionVersionResponse_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 CreateConnectorDefinitionVersion = CreateConnectorDefinitionVersion'
{
CreateConnectorDefinitionVersion -> Maybe Text
amznClientToken :: Prelude.Maybe Prelude.Text,
CreateConnectorDefinitionVersion -> Maybe [Connector]
connectors :: Prelude.Maybe [Connector],
CreateConnectorDefinitionVersion -> Text
connectorDefinitionId :: Prelude.Text
}
deriving (CreateConnectorDefinitionVersion
-> CreateConnectorDefinitionVersion -> Bool
(CreateConnectorDefinitionVersion
-> CreateConnectorDefinitionVersion -> Bool)
-> (CreateConnectorDefinitionVersion
-> CreateConnectorDefinitionVersion -> Bool)
-> Eq CreateConnectorDefinitionVersion
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateConnectorDefinitionVersion
-> CreateConnectorDefinitionVersion -> Bool
$c/= :: CreateConnectorDefinitionVersion
-> CreateConnectorDefinitionVersion -> Bool
== :: CreateConnectorDefinitionVersion
-> CreateConnectorDefinitionVersion -> Bool
$c== :: CreateConnectorDefinitionVersion
-> CreateConnectorDefinitionVersion -> Bool
Prelude.Eq, ReadPrec [CreateConnectorDefinitionVersion]
ReadPrec CreateConnectorDefinitionVersion
Int -> ReadS CreateConnectorDefinitionVersion
ReadS [CreateConnectorDefinitionVersion]
(Int -> ReadS CreateConnectorDefinitionVersion)
-> ReadS [CreateConnectorDefinitionVersion]
-> ReadPrec CreateConnectorDefinitionVersion
-> ReadPrec [CreateConnectorDefinitionVersion]
-> Read CreateConnectorDefinitionVersion
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateConnectorDefinitionVersion]
$creadListPrec :: ReadPrec [CreateConnectorDefinitionVersion]
readPrec :: ReadPrec CreateConnectorDefinitionVersion
$creadPrec :: ReadPrec CreateConnectorDefinitionVersion
readList :: ReadS [CreateConnectorDefinitionVersion]
$creadList :: ReadS [CreateConnectorDefinitionVersion]
readsPrec :: Int -> ReadS CreateConnectorDefinitionVersion
$creadsPrec :: Int -> ReadS CreateConnectorDefinitionVersion
Prelude.Read, Int -> CreateConnectorDefinitionVersion -> ShowS
[CreateConnectorDefinitionVersion] -> ShowS
CreateConnectorDefinitionVersion -> String
(Int -> CreateConnectorDefinitionVersion -> ShowS)
-> (CreateConnectorDefinitionVersion -> String)
-> ([CreateConnectorDefinitionVersion] -> ShowS)
-> Show CreateConnectorDefinitionVersion
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateConnectorDefinitionVersion] -> ShowS
$cshowList :: [CreateConnectorDefinitionVersion] -> ShowS
show :: CreateConnectorDefinitionVersion -> String
$cshow :: CreateConnectorDefinitionVersion -> String
showsPrec :: Int -> CreateConnectorDefinitionVersion -> ShowS
$cshowsPrec :: Int -> CreateConnectorDefinitionVersion -> ShowS
Prelude.Show, (forall x.
CreateConnectorDefinitionVersion
-> Rep CreateConnectorDefinitionVersion x)
-> (forall x.
Rep CreateConnectorDefinitionVersion x
-> CreateConnectorDefinitionVersion)
-> Generic CreateConnectorDefinitionVersion
forall x.
Rep CreateConnectorDefinitionVersion x
-> CreateConnectorDefinitionVersion
forall x.
CreateConnectorDefinitionVersion
-> Rep CreateConnectorDefinitionVersion x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateConnectorDefinitionVersion x
-> CreateConnectorDefinitionVersion
$cfrom :: forall x.
CreateConnectorDefinitionVersion
-> Rep CreateConnectorDefinitionVersion x
Prelude.Generic)
newCreateConnectorDefinitionVersion ::
Prelude.Text ->
CreateConnectorDefinitionVersion
newCreateConnectorDefinitionVersion :: Text -> CreateConnectorDefinitionVersion
newCreateConnectorDefinitionVersion
Text
pConnectorDefinitionId_ =
CreateConnectorDefinitionVersion' :: Maybe Text
-> Maybe [Connector] -> Text -> CreateConnectorDefinitionVersion
CreateConnectorDefinitionVersion'
{ $sel:amznClientToken:CreateConnectorDefinitionVersion' :: Maybe Text
amznClientToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:connectors:CreateConnectorDefinitionVersion' :: Maybe [Connector]
connectors = Maybe [Connector]
forall a. Maybe a
Prelude.Nothing,
$sel:connectorDefinitionId:CreateConnectorDefinitionVersion' :: Text
connectorDefinitionId =
Text
pConnectorDefinitionId_
}
createConnectorDefinitionVersion_amznClientToken :: Lens.Lens' CreateConnectorDefinitionVersion (Prelude.Maybe Prelude.Text)
createConnectorDefinitionVersion_amznClientToken :: (Maybe Text -> f (Maybe Text))
-> CreateConnectorDefinitionVersion
-> f CreateConnectorDefinitionVersion
createConnectorDefinitionVersion_amznClientToken = (CreateConnectorDefinitionVersion -> Maybe Text)
-> (CreateConnectorDefinitionVersion
-> Maybe Text -> CreateConnectorDefinitionVersion)
-> Lens
CreateConnectorDefinitionVersion
CreateConnectorDefinitionVersion
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateConnectorDefinitionVersion' {Maybe Text
amznClientToken :: Maybe Text
$sel:amznClientToken:CreateConnectorDefinitionVersion' :: CreateConnectorDefinitionVersion -> Maybe Text
amznClientToken} -> Maybe Text
amznClientToken) (\s :: CreateConnectorDefinitionVersion
s@CreateConnectorDefinitionVersion' {} Maybe Text
a -> CreateConnectorDefinitionVersion
s {$sel:amznClientToken:CreateConnectorDefinitionVersion' :: Maybe Text
amznClientToken = Maybe Text
a} :: CreateConnectorDefinitionVersion)
createConnectorDefinitionVersion_connectors :: Lens.Lens' CreateConnectorDefinitionVersion (Prelude.Maybe [Connector])
createConnectorDefinitionVersion_connectors :: (Maybe [Connector] -> f (Maybe [Connector]))
-> CreateConnectorDefinitionVersion
-> f CreateConnectorDefinitionVersion
createConnectorDefinitionVersion_connectors = (CreateConnectorDefinitionVersion -> Maybe [Connector])
-> (CreateConnectorDefinitionVersion
-> Maybe [Connector] -> CreateConnectorDefinitionVersion)
-> Lens
CreateConnectorDefinitionVersion
CreateConnectorDefinitionVersion
(Maybe [Connector])
(Maybe [Connector])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateConnectorDefinitionVersion' {Maybe [Connector]
connectors :: Maybe [Connector]
$sel:connectors:CreateConnectorDefinitionVersion' :: CreateConnectorDefinitionVersion -> Maybe [Connector]
connectors} -> Maybe [Connector]
connectors) (\s :: CreateConnectorDefinitionVersion
s@CreateConnectorDefinitionVersion' {} Maybe [Connector]
a -> CreateConnectorDefinitionVersion
s {$sel:connectors:CreateConnectorDefinitionVersion' :: Maybe [Connector]
connectors = Maybe [Connector]
a} :: CreateConnectorDefinitionVersion) ((Maybe [Connector] -> f (Maybe [Connector]))
-> CreateConnectorDefinitionVersion
-> f CreateConnectorDefinitionVersion)
-> ((Maybe [Connector] -> f (Maybe [Connector]))
-> Maybe [Connector] -> f (Maybe [Connector]))
-> (Maybe [Connector] -> f (Maybe [Connector]))
-> CreateConnectorDefinitionVersion
-> f CreateConnectorDefinitionVersion
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Connector] [Connector] [Connector] [Connector]
-> Iso
(Maybe [Connector])
(Maybe [Connector])
(Maybe [Connector])
(Maybe [Connector])
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 [Connector] [Connector] [Connector] [Connector]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
createConnectorDefinitionVersion_connectorDefinitionId :: Lens.Lens' CreateConnectorDefinitionVersion Prelude.Text
createConnectorDefinitionVersion_connectorDefinitionId :: (Text -> f Text)
-> CreateConnectorDefinitionVersion
-> f CreateConnectorDefinitionVersion
createConnectorDefinitionVersion_connectorDefinitionId = (CreateConnectorDefinitionVersion -> Text)
-> (CreateConnectorDefinitionVersion
-> Text -> CreateConnectorDefinitionVersion)
-> Lens
CreateConnectorDefinitionVersion
CreateConnectorDefinitionVersion
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateConnectorDefinitionVersion' {Text
connectorDefinitionId :: Text
$sel:connectorDefinitionId:CreateConnectorDefinitionVersion' :: CreateConnectorDefinitionVersion -> Text
connectorDefinitionId} -> Text
connectorDefinitionId) (\s :: CreateConnectorDefinitionVersion
s@CreateConnectorDefinitionVersion' {} Text
a -> CreateConnectorDefinitionVersion
s {$sel:connectorDefinitionId:CreateConnectorDefinitionVersion' :: Text
connectorDefinitionId = Text
a} :: CreateConnectorDefinitionVersion)
instance
Core.AWSRequest
CreateConnectorDefinitionVersion
where
type
AWSResponse CreateConnectorDefinitionVersion =
CreateConnectorDefinitionVersionResponse
request :: CreateConnectorDefinitionVersion
-> Request CreateConnectorDefinitionVersion
request = Service
-> CreateConnectorDefinitionVersion
-> Request CreateConnectorDefinitionVersion
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy CreateConnectorDefinitionVersion
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse CreateConnectorDefinitionVersion)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse CreateConnectorDefinitionVersion))
-> Logger
-> Service
-> Proxy CreateConnectorDefinitionVersion
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse CreateConnectorDefinitionVersion)))
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
-> Int
-> CreateConnectorDefinitionVersionResponse
CreateConnectorDefinitionVersionResponse'
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> CreateConnectorDefinitionVersionResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> CreateConnectorDefinitionVersionResponse)
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
"Arn")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> CreateConnectorDefinitionVersionResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text -> Int -> CreateConnectorDefinitionVersionResponse)
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 -> Int -> CreateConnectorDefinitionVersionResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text -> Int -> CreateConnectorDefinitionVersionResponse)
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
"Version")
Either
String
(Maybe Text -> Int -> CreateConnectorDefinitionVersionResponse)
-> Either String (Maybe Text)
-> Either String (Int -> CreateConnectorDefinitionVersionResponse)
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 (Int -> CreateConnectorDefinitionVersionResponse)
-> Either String Int
-> Either String CreateConnectorDefinitionVersionResponse
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
CreateConnectorDefinitionVersion
instance
Prelude.NFData
CreateConnectorDefinitionVersion
instance
Core.ToHeaders
CreateConnectorDefinitionVersion
where
toHeaders :: CreateConnectorDefinitionVersion -> ResponseHeaders
toHeaders CreateConnectorDefinitionVersion' {Maybe [Connector]
Maybe Text
Text
connectorDefinitionId :: Text
connectors :: Maybe [Connector]
amznClientToken :: Maybe Text
$sel:connectorDefinitionId:CreateConnectorDefinitionVersion' :: CreateConnectorDefinitionVersion -> Text
$sel:connectors:CreateConnectorDefinitionVersion' :: CreateConnectorDefinitionVersion -> Maybe [Connector]
$sel:amznClientToken:CreateConnectorDefinitionVersion' :: CreateConnectorDefinitionVersion -> 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 CreateConnectorDefinitionVersion where
toJSON :: CreateConnectorDefinitionVersion -> Value
toJSON CreateConnectorDefinitionVersion' {Maybe [Connector]
Maybe Text
Text
connectorDefinitionId :: Text
connectors :: Maybe [Connector]
amznClientToken :: Maybe Text
$sel:connectorDefinitionId:CreateConnectorDefinitionVersion' :: CreateConnectorDefinitionVersion -> Text
$sel:connectors:CreateConnectorDefinitionVersion' :: CreateConnectorDefinitionVersion -> Maybe [Connector]
$sel:amznClientToken:CreateConnectorDefinitionVersion' :: CreateConnectorDefinitionVersion -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[(Text
"Connectors" Text -> [Connector] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) ([Connector] -> Pair) -> Maybe [Connector] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Connector]
connectors]
)
instance Core.ToPath CreateConnectorDefinitionVersion where
toPath :: CreateConnectorDefinitionVersion -> ByteString
toPath CreateConnectorDefinitionVersion' {Maybe [Connector]
Maybe Text
Text
connectorDefinitionId :: Text
connectors :: Maybe [Connector]
amznClientToken :: Maybe Text
$sel:connectorDefinitionId:CreateConnectorDefinitionVersion' :: CreateConnectorDefinitionVersion -> Text
$sel:connectors:CreateConnectorDefinitionVersion' :: CreateConnectorDefinitionVersion -> Maybe [Connector]
$sel:amznClientToken:CreateConnectorDefinitionVersion' :: CreateConnectorDefinitionVersion -> Maybe Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"/greengrass/definition/connectors/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
connectorDefinitionId,
ByteString
"/versions"
]
instance
Core.ToQuery
CreateConnectorDefinitionVersion
where
toQuery :: CreateConnectorDefinitionVersion -> QueryString
toQuery = QueryString -> CreateConnectorDefinitionVersion -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data CreateConnectorDefinitionVersionResponse = CreateConnectorDefinitionVersionResponse'
{
CreateConnectorDefinitionVersionResponse -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
CreateConnectorDefinitionVersionResponse -> Maybe Text
creationTimestamp :: Prelude.Maybe Prelude.Text,
CreateConnectorDefinitionVersionResponse -> Maybe Text
version :: Prelude.Maybe Prelude.Text,
CreateConnectorDefinitionVersionResponse -> Maybe Text
id :: Prelude.Maybe Prelude.Text,
CreateConnectorDefinitionVersionResponse -> Int
httpStatus :: Prelude.Int
}
deriving (CreateConnectorDefinitionVersionResponse
-> CreateConnectorDefinitionVersionResponse -> Bool
(CreateConnectorDefinitionVersionResponse
-> CreateConnectorDefinitionVersionResponse -> Bool)
-> (CreateConnectorDefinitionVersionResponse
-> CreateConnectorDefinitionVersionResponse -> Bool)
-> Eq CreateConnectorDefinitionVersionResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateConnectorDefinitionVersionResponse
-> CreateConnectorDefinitionVersionResponse -> Bool
$c/= :: CreateConnectorDefinitionVersionResponse
-> CreateConnectorDefinitionVersionResponse -> Bool
== :: CreateConnectorDefinitionVersionResponse
-> CreateConnectorDefinitionVersionResponse -> Bool
$c== :: CreateConnectorDefinitionVersionResponse
-> CreateConnectorDefinitionVersionResponse -> Bool
Prelude.Eq, ReadPrec [CreateConnectorDefinitionVersionResponse]
ReadPrec CreateConnectorDefinitionVersionResponse
Int -> ReadS CreateConnectorDefinitionVersionResponse
ReadS [CreateConnectorDefinitionVersionResponse]
(Int -> ReadS CreateConnectorDefinitionVersionResponse)
-> ReadS [CreateConnectorDefinitionVersionResponse]
-> ReadPrec CreateConnectorDefinitionVersionResponse
-> ReadPrec [CreateConnectorDefinitionVersionResponse]
-> Read CreateConnectorDefinitionVersionResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateConnectorDefinitionVersionResponse]
$creadListPrec :: ReadPrec [CreateConnectorDefinitionVersionResponse]
readPrec :: ReadPrec CreateConnectorDefinitionVersionResponse
$creadPrec :: ReadPrec CreateConnectorDefinitionVersionResponse
readList :: ReadS [CreateConnectorDefinitionVersionResponse]
$creadList :: ReadS [CreateConnectorDefinitionVersionResponse]
readsPrec :: Int -> ReadS CreateConnectorDefinitionVersionResponse
$creadsPrec :: Int -> ReadS CreateConnectorDefinitionVersionResponse
Prelude.Read, Int -> CreateConnectorDefinitionVersionResponse -> ShowS
[CreateConnectorDefinitionVersionResponse] -> ShowS
CreateConnectorDefinitionVersionResponse -> String
(Int -> CreateConnectorDefinitionVersionResponse -> ShowS)
-> (CreateConnectorDefinitionVersionResponse -> String)
-> ([CreateConnectorDefinitionVersionResponse] -> ShowS)
-> Show CreateConnectorDefinitionVersionResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateConnectorDefinitionVersionResponse] -> ShowS
$cshowList :: [CreateConnectorDefinitionVersionResponse] -> ShowS
show :: CreateConnectorDefinitionVersionResponse -> String
$cshow :: CreateConnectorDefinitionVersionResponse -> String
showsPrec :: Int -> CreateConnectorDefinitionVersionResponse -> ShowS
$cshowsPrec :: Int -> CreateConnectorDefinitionVersionResponse -> ShowS
Prelude.Show, (forall x.
CreateConnectorDefinitionVersionResponse
-> Rep CreateConnectorDefinitionVersionResponse x)
-> (forall x.
Rep CreateConnectorDefinitionVersionResponse x
-> CreateConnectorDefinitionVersionResponse)
-> Generic CreateConnectorDefinitionVersionResponse
forall x.
Rep CreateConnectorDefinitionVersionResponse x
-> CreateConnectorDefinitionVersionResponse
forall x.
CreateConnectorDefinitionVersionResponse
-> Rep CreateConnectorDefinitionVersionResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateConnectorDefinitionVersionResponse x
-> CreateConnectorDefinitionVersionResponse
$cfrom :: forall x.
CreateConnectorDefinitionVersionResponse
-> Rep CreateConnectorDefinitionVersionResponse x
Prelude.Generic)
newCreateConnectorDefinitionVersionResponse ::
Prelude.Int ->
CreateConnectorDefinitionVersionResponse
newCreateConnectorDefinitionVersionResponse :: Int -> CreateConnectorDefinitionVersionResponse
newCreateConnectorDefinitionVersionResponse
Int
pHttpStatus_ =
CreateConnectorDefinitionVersionResponse' :: Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> CreateConnectorDefinitionVersionResponse
CreateConnectorDefinitionVersionResponse'
{ $sel:arn:CreateConnectorDefinitionVersionResponse' :: Maybe Text
arn =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:creationTimestamp:CreateConnectorDefinitionVersionResponse' :: Maybe Text
creationTimestamp =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:version:CreateConnectorDefinitionVersionResponse' :: Maybe Text
version = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:id:CreateConnectorDefinitionVersionResponse' :: Maybe Text
id = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:CreateConnectorDefinitionVersionResponse' :: Int
httpStatus = Int
pHttpStatus_
}
createConnectorDefinitionVersionResponse_arn :: Lens.Lens' CreateConnectorDefinitionVersionResponse (Prelude.Maybe Prelude.Text)
createConnectorDefinitionVersionResponse_arn :: (Maybe Text -> f (Maybe Text))
-> CreateConnectorDefinitionVersionResponse
-> f CreateConnectorDefinitionVersionResponse
createConnectorDefinitionVersionResponse_arn = (CreateConnectorDefinitionVersionResponse -> Maybe Text)
-> (CreateConnectorDefinitionVersionResponse
-> Maybe Text -> CreateConnectorDefinitionVersionResponse)
-> Lens
CreateConnectorDefinitionVersionResponse
CreateConnectorDefinitionVersionResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateConnectorDefinitionVersionResponse' {Maybe Text
arn :: Maybe Text
$sel:arn:CreateConnectorDefinitionVersionResponse' :: CreateConnectorDefinitionVersionResponse -> Maybe Text
arn} -> Maybe Text
arn) (\s :: CreateConnectorDefinitionVersionResponse
s@CreateConnectorDefinitionVersionResponse' {} Maybe Text
a -> CreateConnectorDefinitionVersionResponse
s {$sel:arn:CreateConnectorDefinitionVersionResponse' :: Maybe Text
arn = Maybe Text
a} :: CreateConnectorDefinitionVersionResponse)
createConnectorDefinitionVersionResponse_creationTimestamp :: Lens.Lens' CreateConnectorDefinitionVersionResponse (Prelude.Maybe Prelude.Text)
createConnectorDefinitionVersionResponse_creationTimestamp :: (Maybe Text -> f (Maybe Text))
-> CreateConnectorDefinitionVersionResponse
-> f CreateConnectorDefinitionVersionResponse
createConnectorDefinitionVersionResponse_creationTimestamp = (CreateConnectorDefinitionVersionResponse -> Maybe Text)
-> (CreateConnectorDefinitionVersionResponse
-> Maybe Text -> CreateConnectorDefinitionVersionResponse)
-> Lens
CreateConnectorDefinitionVersionResponse
CreateConnectorDefinitionVersionResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateConnectorDefinitionVersionResponse' {Maybe Text
creationTimestamp :: Maybe Text
$sel:creationTimestamp:CreateConnectorDefinitionVersionResponse' :: CreateConnectorDefinitionVersionResponse -> Maybe Text
creationTimestamp} -> Maybe Text
creationTimestamp) (\s :: CreateConnectorDefinitionVersionResponse
s@CreateConnectorDefinitionVersionResponse' {} Maybe Text
a -> CreateConnectorDefinitionVersionResponse
s {$sel:creationTimestamp:CreateConnectorDefinitionVersionResponse' :: Maybe Text
creationTimestamp = Maybe Text
a} :: CreateConnectorDefinitionVersionResponse)
createConnectorDefinitionVersionResponse_version :: Lens.Lens' CreateConnectorDefinitionVersionResponse (Prelude.Maybe Prelude.Text)
createConnectorDefinitionVersionResponse_version :: (Maybe Text -> f (Maybe Text))
-> CreateConnectorDefinitionVersionResponse
-> f CreateConnectorDefinitionVersionResponse
createConnectorDefinitionVersionResponse_version = (CreateConnectorDefinitionVersionResponse -> Maybe Text)
-> (CreateConnectorDefinitionVersionResponse
-> Maybe Text -> CreateConnectorDefinitionVersionResponse)
-> Lens
CreateConnectorDefinitionVersionResponse
CreateConnectorDefinitionVersionResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateConnectorDefinitionVersionResponse' {Maybe Text
version :: Maybe Text
$sel:version:CreateConnectorDefinitionVersionResponse' :: CreateConnectorDefinitionVersionResponse -> Maybe Text
version} -> Maybe Text
version) (\s :: CreateConnectorDefinitionVersionResponse
s@CreateConnectorDefinitionVersionResponse' {} Maybe Text
a -> CreateConnectorDefinitionVersionResponse
s {$sel:version:CreateConnectorDefinitionVersionResponse' :: Maybe Text
version = Maybe Text
a} :: CreateConnectorDefinitionVersionResponse)
createConnectorDefinitionVersionResponse_id :: Lens.Lens' CreateConnectorDefinitionVersionResponse (Prelude.Maybe Prelude.Text)
createConnectorDefinitionVersionResponse_id :: (Maybe Text -> f (Maybe Text))
-> CreateConnectorDefinitionVersionResponse
-> f CreateConnectorDefinitionVersionResponse
createConnectorDefinitionVersionResponse_id = (CreateConnectorDefinitionVersionResponse -> Maybe Text)
-> (CreateConnectorDefinitionVersionResponse
-> Maybe Text -> CreateConnectorDefinitionVersionResponse)
-> Lens
CreateConnectorDefinitionVersionResponse
CreateConnectorDefinitionVersionResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateConnectorDefinitionVersionResponse' {Maybe Text
id :: Maybe Text
$sel:id:CreateConnectorDefinitionVersionResponse' :: CreateConnectorDefinitionVersionResponse -> Maybe Text
id} -> Maybe Text
id) (\s :: CreateConnectorDefinitionVersionResponse
s@CreateConnectorDefinitionVersionResponse' {} Maybe Text
a -> CreateConnectorDefinitionVersionResponse
s {$sel:id:CreateConnectorDefinitionVersionResponse' :: Maybe Text
id = Maybe Text
a} :: CreateConnectorDefinitionVersionResponse)
createConnectorDefinitionVersionResponse_httpStatus :: Lens.Lens' CreateConnectorDefinitionVersionResponse Prelude.Int
createConnectorDefinitionVersionResponse_httpStatus :: (Int -> f Int)
-> CreateConnectorDefinitionVersionResponse
-> f CreateConnectorDefinitionVersionResponse
createConnectorDefinitionVersionResponse_httpStatus = (CreateConnectorDefinitionVersionResponse -> Int)
-> (CreateConnectorDefinitionVersionResponse
-> Int -> CreateConnectorDefinitionVersionResponse)
-> Lens
CreateConnectorDefinitionVersionResponse
CreateConnectorDefinitionVersionResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateConnectorDefinitionVersionResponse' {Int
httpStatus :: Int
$sel:httpStatus:CreateConnectorDefinitionVersionResponse' :: CreateConnectorDefinitionVersionResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: CreateConnectorDefinitionVersionResponse
s@CreateConnectorDefinitionVersionResponse' {} Int
a -> CreateConnectorDefinitionVersionResponse
s {$sel:httpStatus:CreateConnectorDefinitionVersionResponse' :: Int
httpStatus = Int
a} :: CreateConnectorDefinitionVersionResponse)
instance
Prelude.NFData
CreateConnectorDefinitionVersionResponse