{-# 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.ApiGatewayV2.UpdateVpcLink
(
UpdateVpcLink (..),
newUpdateVpcLink,
updateVpcLink_name,
updateVpcLink_vpcLinkId,
UpdateVpcLinkResponse (..),
newUpdateVpcLinkResponse,
updateVpcLinkResponse_createdDate,
updateVpcLinkResponse_name,
updateVpcLinkResponse_securityGroupIds,
updateVpcLinkResponse_subnetIds,
updateVpcLinkResponse_tags,
updateVpcLinkResponse_vpcLinkId,
updateVpcLinkResponse_vpcLinkStatus,
updateVpcLinkResponse_vpcLinkStatusMessage,
updateVpcLinkResponse_vpcLinkVersion,
updateVpcLinkResponse_httpStatus,
)
where
import Amazonka.ApiGatewayV2.Types
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data UpdateVpcLink = UpdateVpcLink'
{
UpdateVpcLink -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
UpdateVpcLink -> Text
vpcLinkId :: Prelude.Text
}
deriving (UpdateVpcLink -> UpdateVpcLink -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateVpcLink -> UpdateVpcLink -> Bool
$c/= :: UpdateVpcLink -> UpdateVpcLink -> Bool
== :: UpdateVpcLink -> UpdateVpcLink -> Bool
$c== :: UpdateVpcLink -> UpdateVpcLink -> Bool
Prelude.Eq, ReadPrec [UpdateVpcLink]
ReadPrec UpdateVpcLink
Int -> ReadS UpdateVpcLink
ReadS [UpdateVpcLink]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateVpcLink]
$creadListPrec :: ReadPrec [UpdateVpcLink]
readPrec :: ReadPrec UpdateVpcLink
$creadPrec :: ReadPrec UpdateVpcLink
readList :: ReadS [UpdateVpcLink]
$creadList :: ReadS [UpdateVpcLink]
readsPrec :: Int -> ReadS UpdateVpcLink
$creadsPrec :: Int -> ReadS UpdateVpcLink
Prelude.Read, Int -> UpdateVpcLink -> ShowS
[UpdateVpcLink] -> ShowS
UpdateVpcLink -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateVpcLink] -> ShowS
$cshowList :: [UpdateVpcLink] -> ShowS
show :: UpdateVpcLink -> String
$cshow :: UpdateVpcLink -> String
showsPrec :: Int -> UpdateVpcLink -> ShowS
$cshowsPrec :: Int -> UpdateVpcLink -> ShowS
Prelude.Show, forall x. Rep UpdateVpcLink x -> UpdateVpcLink
forall x. UpdateVpcLink -> Rep UpdateVpcLink x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep UpdateVpcLink x -> UpdateVpcLink
$cfrom :: forall x. UpdateVpcLink -> Rep UpdateVpcLink x
Prelude.Generic)
newUpdateVpcLink ::
Prelude.Text ->
UpdateVpcLink
newUpdateVpcLink :: Text -> UpdateVpcLink
newUpdateVpcLink Text
pVpcLinkId_ =
UpdateVpcLink'
{ $sel:name:UpdateVpcLink' :: Maybe Text
name = forall a. Maybe a
Prelude.Nothing,
$sel:vpcLinkId:UpdateVpcLink' :: Text
vpcLinkId = Text
pVpcLinkId_
}
updateVpcLink_name :: Lens.Lens' UpdateVpcLink (Prelude.Maybe Prelude.Text)
updateVpcLink_name :: Lens' UpdateVpcLink (Maybe Text)
updateVpcLink_name = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateVpcLink' {Maybe Text
name :: Maybe Text
$sel:name:UpdateVpcLink' :: UpdateVpcLink -> Maybe Text
name} -> Maybe Text
name) (\s :: UpdateVpcLink
s@UpdateVpcLink' {} Maybe Text
a -> UpdateVpcLink
s {$sel:name:UpdateVpcLink' :: Maybe Text
name = Maybe Text
a} :: UpdateVpcLink)
updateVpcLink_vpcLinkId :: Lens.Lens' UpdateVpcLink Prelude.Text
updateVpcLink_vpcLinkId :: Lens' UpdateVpcLink Text
updateVpcLink_vpcLinkId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateVpcLink' {Text
vpcLinkId :: Text
$sel:vpcLinkId:UpdateVpcLink' :: UpdateVpcLink -> Text
vpcLinkId} -> Text
vpcLinkId) (\s :: UpdateVpcLink
s@UpdateVpcLink' {} Text
a -> UpdateVpcLink
s {$sel:vpcLinkId:UpdateVpcLink' :: Text
vpcLinkId = Text
a} :: UpdateVpcLink)
instance Core.AWSRequest UpdateVpcLink where
type
AWSResponse UpdateVpcLink =
UpdateVpcLinkResponse
request :: (Service -> Service) -> UpdateVpcLink -> Request UpdateVpcLink
request Service -> Service
overrides =
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.patchJSON (Service -> Service
overrides Service
defaultService)
response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy UpdateVpcLink
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse UpdateVpcLink)))
response =
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe ISO8601
-> Maybe Text
-> Maybe [Text]
-> Maybe [Text]
-> Maybe (HashMap Text Text)
-> Maybe Text
-> Maybe VpcLinkStatus
-> Maybe Text
-> Maybe VpcLinkVersion
-> Int
-> UpdateVpcLinkResponse
UpdateVpcLinkResponse'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"createdDate")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"name")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"securityGroupIds"
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty
)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"subnetIds" forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"tags" forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"vpcLinkId")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"vpcLinkStatus")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"vpcLinkStatusMessage")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"vpcLinkVersion")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance Prelude.Hashable UpdateVpcLink where
hashWithSalt :: Int -> UpdateVpcLink -> Int
hashWithSalt Int
_salt UpdateVpcLink' {Maybe Text
Text
vpcLinkId :: Text
name :: Maybe Text
$sel:vpcLinkId:UpdateVpcLink' :: UpdateVpcLink -> Text
$sel:name:UpdateVpcLink' :: UpdateVpcLink -> Maybe Text
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
name
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
vpcLinkId
instance Prelude.NFData UpdateVpcLink where
rnf :: UpdateVpcLink -> ()
rnf UpdateVpcLink' {Maybe Text
Text
vpcLinkId :: Text
name :: Maybe Text
$sel:vpcLinkId:UpdateVpcLink' :: UpdateVpcLink -> Text
$sel:name:UpdateVpcLink' :: UpdateVpcLink -> Maybe Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
name
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
vpcLinkId
instance Data.ToHeaders UpdateVpcLink where
toHeaders :: UpdateVpcLink -> ResponseHeaders
toHeaders =
forall a b. a -> b -> a
Prelude.const
( forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"Content-Type"
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Data.ToJSON UpdateVpcLink where
toJSON :: UpdateVpcLink -> Value
toJSON UpdateVpcLink' {Maybe Text
Text
vpcLinkId :: Text
name :: Maybe Text
$sel:vpcLinkId:UpdateVpcLink' :: UpdateVpcLink -> Text
$sel:name:UpdateVpcLink' :: UpdateVpcLink -> Maybe Text
..} =
[Pair] -> Value
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[(Key
"name" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
name]
)
instance Data.ToPath UpdateVpcLink where
toPath :: UpdateVpcLink -> ByteString
toPath UpdateVpcLink' {Maybe Text
Text
vpcLinkId :: Text
name :: Maybe Text
$sel:vpcLinkId:UpdateVpcLink' :: UpdateVpcLink -> Text
$sel:name:UpdateVpcLink' :: UpdateVpcLink -> Maybe Text
..} =
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ByteString
"/v2/vpclinks/", forall a. ToByteString a => a -> ByteString
Data.toBS Text
vpcLinkId]
instance Data.ToQuery UpdateVpcLink where
toQuery :: UpdateVpcLink -> QueryString
toQuery = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty
data UpdateVpcLinkResponse = UpdateVpcLinkResponse'
{
UpdateVpcLinkResponse -> Maybe ISO8601
createdDate :: Prelude.Maybe Data.ISO8601,
UpdateVpcLinkResponse -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
UpdateVpcLinkResponse -> Maybe [Text]
securityGroupIds :: Prelude.Maybe [Prelude.Text],
UpdateVpcLinkResponse -> Maybe [Text]
subnetIds :: Prelude.Maybe [Prelude.Text],
UpdateVpcLinkResponse -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
UpdateVpcLinkResponse -> Maybe Text
vpcLinkId :: Prelude.Maybe Prelude.Text,
UpdateVpcLinkResponse -> Maybe VpcLinkStatus
vpcLinkStatus :: Prelude.Maybe VpcLinkStatus,
UpdateVpcLinkResponse -> Maybe Text
vpcLinkStatusMessage :: Prelude.Maybe Prelude.Text,
UpdateVpcLinkResponse -> Maybe VpcLinkVersion
vpcLinkVersion :: Prelude.Maybe VpcLinkVersion,
UpdateVpcLinkResponse -> Int
httpStatus :: Prelude.Int
}
deriving (UpdateVpcLinkResponse -> UpdateVpcLinkResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateVpcLinkResponse -> UpdateVpcLinkResponse -> Bool
$c/= :: UpdateVpcLinkResponse -> UpdateVpcLinkResponse -> Bool
== :: UpdateVpcLinkResponse -> UpdateVpcLinkResponse -> Bool
$c== :: UpdateVpcLinkResponse -> UpdateVpcLinkResponse -> Bool
Prelude.Eq, ReadPrec [UpdateVpcLinkResponse]
ReadPrec UpdateVpcLinkResponse
Int -> ReadS UpdateVpcLinkResponse
ReadS [UpdateVpcLinkResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateVpcLinkResponse]
$creadListPrec :: ReadPrec [UpdateVpcLinkResponse]
readPrec :: ReadPrec UpdateVpcLinkResponse
$creadPrec :: ReadPrec UpdateVpcLinkResponse
readList :: ReadS [UpdateVpcLinkResponse]
$creadList :: ReadS [UpdateVpcLinkResponse]
readsPrec :: Int -> ReadS UpdateVpcLinkResponse
$creadsPrec :: Int -> ReadS UpdateVpcLinkResponse
Prelude.Read, Int -> UpdateVpcLinkResponse -> ShowS
[UpdateVpcLinkResponse] -> ShowS
UpdateVpcLinkResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateVpcLinkResponse] -> ShowS
$cshowList :: [UpdateVpcLinkResponse] -> ShowS
show :: UpdateVpcLinkResponse -> String
$cshow :: UpdateVpcLinkResponse -> String
showsPrec :: Int -> UpdateVpcLinkResponse -> ShowS
$cshowsPrec :: Int -> UpdateVpcLinkResponse -> ShowS
Prelude.Show, forall x. Rep UpdateVpcLinkResponse x -> UpdateVpcLinkResponse
forall x. UpdateVpcLinkResponse -> Rep UpdateVpcLinkResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep UpdateVpcLinkResponse x -> UpdateVpcLinkResponse
$cfrom :: forall x. UpdateVpcLinkResponse -> Rep UpdateVpcLinkResponse x
Prelude.Generic)
newUpdateVpcLinkResponse ::
Prelude.Int ->
UpdateVpcLinkResponse
newUpdateVpcLinkResponse :: Int -> UpdateVpcLinkResponse
newUpdateVpcLinkResponse Int
pHttpStatus_ =
UpdateVpcLinkResponse'
{ $sel:createdDate:UpdateVpcLinkResponse' :: Maybe ISO8601
createdDate =
forall a. Maybe a
Prelude.Nothing,
$sel:name:UpdateVpcLinkResponse' :: Maybe Text
name = forall a. Maybe a
Prelude.Nothing,
$sel:securityGroupIds:UpdateVpcLinkResponse' :: Maybe [Text]
securityGroupIds = forall a. Maybe a
Prelude.Nothing,
$sel:subnetIds:UpdateVpcLinkResponse' :: Maybe [Text]
subnetIds = forall a. Maybe a
Prelude.Nothing,
$sel:tags:UpdateVpcLinkResponse' :: Maybe (HashMap Text Text)
tags = forall a. Maybe a
Prelude.Nothing,
$sel:vpcLinkId:UpdateVpcLinkResponse' :: Maybe Text
vpcLinkId = forall a. Maybe a
Prelude.Nothing,
$sel:vpcLinkStatus:UpdateVpcLinkResponse' :: Maybe VpcLinkStatus
vpcLinkStatus = forall a. Maybe a
Prelude.Nothing,
$sel:vpcLinkStatusMessage:UpdateVpcLinkResponse' :: Maybe Text
vpcLinkStatusMessage = forall a. Maybe a
Prelude.Nothing,
$sel:vpcLinkVersion:UpdateVpcLinkResponse' :: Maybe VpcLinkVersion
vpcLinkVersion = forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:UpdateVpcLinkResponse' :: Int
httpStatus = Int
pHttpStatus_
}
updateVpcLinkResponse_createdDate :: Lens.Lens' UpdateVpcLinkResponse (Prelude.Maybe Prelude.UTCTime)
updateVpcLinkResponse_createdDate :: Lens' UpdateVpcLinkResponse (Maybe UTCTime)
updateVpcLinkResponse_createdDate = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateVpcLinkResponse' {Maybe ISO8601
createdDate :: Maybe ISO8601
$sel:createdDate:UpdateVpcLinkResponse' :: UpdateVpcLinkResponse -> Maybe ISO8601
createdDate} -> Maybe ISO8601
createdDate) (\s :: UpdateVpcLinkResponse
s@UpdateVpcLinkResponse' {} Maybe ISO8601
a -> UpdateVpcLinkResponse
s {$sel:createdDate:UpdateVpcLinkResponse' :: Maybe ISO8601
createdDate = Maybe ISO8601
a} :: UpdateVpcLinkResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall (a :: Format). Iso' (Time a) UTCTime
Data._Time
updateVpcLinkResponse_name :: Lens.Lens' UpdateVpcLinkResponse (Prelude.Maybe Prelude.Text)
updateVpcLinkResponse_name :: Lens' UpdateVpcLinkResponse (Maybe Text)
updateVpcLinkResponse_name = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateVpcLinkResponse' {Maybe Text
name :: Maybe Text
$sel:name:UpdateVpcLinkResponse' :: UpdateVpcLinkResponse -> Maybe Text
name} -> Maybe Text
name) (\s :: UpdateVpcLinkResponse
s@UpdateVpcLinkResponse' {} Maybe Text
a -> UpdateVpcLinkResponse
s {$sel:name:UpdateVpcLinkResponse' :: Maybe Text
name = Maybe Text
a} :: UpdateVpcLinkResponse)
updateVpcLinkResponse_securityGroupIds :: Lens.Lens' UpdateVpcLinkResponse (Prelude.Maybe [Prelude.Text])
updateVpcLinkResponse_securityGroupIds :: Lens' UpdateVpcLinkResponse (Maybe [Text])
updateVpcLinkResponse_securityGroupIds = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateVpcLinkResponse' {Maybe [Text]
securityGroupIds :: Maybe [Text]
$sel:securityGroupIds:UpdateVpcLinkResponse' :: UpdateVpcLinkResponse -> Maybe [Text]
securityGroupIds} -> Maybe [Text]
securityGroupIds) (\s :: UpdateVpcLinkResponse
s@UpdateVpcLinkResponse' {} Maybe [Text]
a -> UpdateVpcLinkResponse
s {$sel:securityGroupIds:UpdateVpcLinkResponse' :: Maybe [Text]
securityGroupIds = Maybe [Text]
a} :: UpdateVpcLinkResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
updateVpcLinkResponse_subnetIds :: Lens.Lens' UpdateVpcLinkResponse (Prelude.Maybe [Prelude.Text])
updateVpcLinkResponse_subnetIds :: Lens' UpdateVpcLinkResponse (Maybe [Text])
updateVpcLinkResponse_subnetIds = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateVpcLinkResponse' {Maybe [Text]
subnetIds :: Maybe [Text]
$sel:subnetIds:UpdateVpcLinkResponse' :: UpdateVpcLinkResponse -> Maybe [Text]
subnetIds} -> Maybe [Text]
subnetIds) (\s :: UpdateVpcLinkResponse
s@UpdateVpcLinkResponse' {} Maybe [Text]
a -> UpdateVpcLinkResponse
s {$sel:subnetIds:UpdateVpcLinkResponse' :: Maybe [Text]
subnetIds = Maybe [Text]
a} :: UpdateVpcLinkResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
updateVpcLinkResponse_tags :: Lens.Lens' UpdateVpcLinkResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
updateVpcLinkResponse_tags :: Lens' UpdateVpcLinkResponse (Maybe (HashMap Text Text))
updateVpcLinkResponse_tags = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateVpcLinkResponse' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:UpdateVpcLinkResponse' :: UpdateVpcLinkResponse -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: UpdateVpcLinkResponse
s@UpdateVpcLinkResponse' {} Maybe (HashMap Text Text)
a -> UpdateVpcLinkResponse
s {$sel:tags:UpdateVpcLinkResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: UpdateVpcLinkResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
updateVpcLinkResponse_vpcLinkId :: Lens.Lens' UpdateVpcLinkResponse (Prelude.Maybe Prelude.Text)
updateVpcLinkResponse_vpcLinkId :: Lens' UpdateVpcLinkResponse (Maybe Text)
updateVpcLinkResponse_vpcLinkId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateVpcLinkResponse' {Maybe Text
vpcLinkId :: Maybe Text
$sel:vpcLinkId:UpdateVpcLinkResponse' :: UpdateVpcLinkResponse -> Maybe Text
vpcLinkId} -> Maybe Text
vpcLinkId) (\s :: UpdateVpcLinkResponse
s@UpdateVpcLinkResponse' {} Maybe Text
a -> UpdateVpcLinkResponse
s {$sel:vpcLinkId:UpdateVpcLinkResponse' :: Maybe Text
vpcLinkId = Maybe Text
a} :: UpdateVpcLinkResponse)
updateVpcLinkResponse_vpcLinkStatus :: Lens.Lens' UpdateVpcLinkResponse (Prelude.Maybe VpcLinkStatus)
updateVpcLinkResponse_vpcLinkStatus :: Lens' UpdateVpcLinkResponse (Maybe VpcLinkStatus)
updateVpcLinkResponse_vpcLinkStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateVpcLinkResponse' {Maybe VpcLinkStatus
vpcLinkStatus :: Maybe VpcLinkStatus
$sel:vpcLinkStatus:UpdateVpcLinkResponse' :: UpdateVpcLinkResponse -> Maybe VpcLinkStatus
vpcLinkStatus} -> Maybe VpcLinkStatus
vpcLinkStatus) (\s :: UpdateVpcLinkResponse
s@UpdateVpcLinkResponse' {} Maybe VpcLinkStatus
a -> UpdateVpcLinkResponse
s {$sel:vpcLinkStatus:UpdateVpcLinkResponse' :: Maybe VpcLinkStatus
vpcLinkStatus = Maybe VpcLinkStatus
a} :: UpdateVpcLinkResponse)
updateVpcLinkResponse_vpcLinkStatusMessage :: Lens.Lens' UpdateVpcLinkResponse (Prelude.Maybe Prelude.Text)
updateVpcLinkResponse_vpcLinkStatusMessage :: Lens' UpdateVpcLinkResponse (Maybe Text)
updateVpcLinkResponse_vpcLinkStatusMessage = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateVpcLinkResponse' {Maybe Text
vpcLinkStatusMessage :: Maybe Text
$sel:vpcLinkStatusMessage:UpdateVpcLinkResponse' :: UpdateVpcLinkResponse -> Maybe Text
vpcLinkStatusMessage} -> Maybe Text
vpcLinkStatusMessage) (\s :: UpdateVpcLinkResponse
s@UpdateVpcLinkResponse' {} Maybe Text
a -> UpdateVpcLinkResponse
s {$sel:vpcLinkStatusMessage:UpdateVpcLinkResponse' :: Maybe Text
vpcLinkStatusMessage = Maybe Text
a} :: UpdateVpcLinkResponse)
updateVpcLinkResponse_vpcLinkVersion :: Lens.Lens' UpdateVpcLinkResponse (Prelude.Maybe VpcLinkVersion)
updateVpcLinkResponse_vpcLinkVersion :: Lens' UpdateVpcLinkResponse (Maybe VpcLinkVersion)
updateVpcLinkResponse_vpcLinkVersion = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateVpcLinkResponse' {Maybe VpcLinkVersion
vpcLinkVersion :: Maybe VpcLinkVersion
$sel:vpcLinkVersion:UpdateVpcLinkResponse' :: UpdateVpcLinkResponse -> Maybe VpcLinkVersion
vpcLinkVersion} -> Maybe VpcLinkVersion
vpcLinkVersion) (\s :: UpdateVpcLinkResponse
s@UpdateVpcLinkResponse' {} Maybe VpcLinkVersion
a -> UpdateVpcLinkResponse
s {$sel:vpcLinkVersion:UpdateVpcLinkResponse' :: Maybe VpcLinkVersion
vpcLinkVersion = Maybe VpcLinkVersion
a} :: UpdateVpcLinkResponse)
updateVpcLinkResponse_httpStatus :: Lens.Lens' UpdateVpcLinkResponse Prelude.Int
updateVpcLinkResponse_httpStatus :: Lens' UpdateVpcLinkResponse Int
updateVpcLinkResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateVpcLinkResponse' {Int
httpStatus :: Int
$sel:httpStatus:UpdateVpcLinkResponse' :: UpdateVpcLinkResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: UpdateVpcLinkResponse
s@UpdateVpcLinkResponse' {} Int
a -> UpdateVpcLinkResponse
s {$sel:httpStatus:UpdateVpcLinkResponse' :: Int
httpStatus = Int
a} :: UpdateVpcLinkResponse)
instance Prelude.NFData UpdateVpcLinkResponse where
rnf :: UpdateVpcLinkResponse -> ()
rnf UpdateVpcLinkResponse' {Int
Maybe [Text]
Maybe Text
Maybe (HashMap Text Text)
Maybe ISO8601
Maybe VpcLinkStatus
Maybe VpcLinkVersion
httpStatus :: Int
vpcLinkVersion :: Maybe VpcLinkVersion
vpcLinkStatusMessage :: Maybe Text
vpcLinkStatus :: Maybe VpcLinkStatus
vpcLinkId :: Maybe Text
tags :: Maybe (HashMap Text Text)
subnetIds :: Maybe [Text]
securityGroupIds :: Maybe [Text]
name :: Maybe Text
createdDate :: Maybe ISO8601
$sel:httpStatus:UpdateVpcLinkResponse' :: UpdateVpcLinkResponse -> Int
$sel:vpcLinkVersion:UpdateVpcLinkResponse' :: UpdateVpcLinkResponse -> Maybe VpcLinkVersion
$sel:vpcLinkStatusMessage:UpdateVpcLinkResponse' :: UpdateVpcLinkResponse -> Maybe Text
$sel:vpcLinkStatus:UpdateVpcLinkResponse' :: UpdateVpcLinkResponse -> Maybe VpcLinkStatus
$sel:vpcLinkId:UpdateVpcLinkResponse' :: UpdateVpcLinkResponse -> Maybe Text
$sel:tags:UpdateVpcLinkResponse' :: UpdateVpcLinkResponse -> Maybe (HashMap Text Text)
$sel:subnetIds:UpdateVpcLinkResponse' :: UpdateVpcLinkResponse -> Maybe [Text]
$sel:securityGroupIds:UpdateVpcLinkResponse' :: UpdateVpcLinkResponse -> Maybe [Text]
$sel:name:UpdateVpcLinkResponse' :: UpdateVpcLinkResponse -> Maybe Text
$sel:createdDate:UpdateVpcLinkResponse' :: UpdateVpcLinkResponse -> Maybe ISO8601
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe ISO8601
createdDate
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
name
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Text]
securityGroupIds
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Text]
subnetIds
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (HashMap Text Text)
tags
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
vpcLinkId
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe VpcLinkStatus
vpcLinkStatus
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
vpcLinkStatusMessage
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe VpcLinkVersion
vpcLinkVersion
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus