{-# 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 #-}

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

-- |
-- Module      : Amazonka.ApiGatewayV2.GetVpcLink
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Gets a VPC link.
module Amazonka.ApiGatewayV2.GetVpcLink
  ( -- * Creating a Request
    GetVpcLink (..),
    newGetVpcLink,

    -- * Request Lenses
    getVpcLink_vpcLinkId,

    -- * Destructuring the Response
    GetVpcLinkResponse (..),
    newGetVpcLinkResponse,

    -- * Response Lenses
    getVpcLinkResponse_createdDate,
    getVpcLinkResponse_name,
    getVpcLinkResponse_securityGroupIds,
    getVpcLinkResponse_subnetIds,
    getVpcLinkResponse_tags,
    getVpcLinkResponse_vpcLinkId,
    getVpcLinkResponse_vpcLinkStatus,
    getVpcLinkResponse_vpcLinkStatusMessage,
    getVpcLinkResponse_vpcLinkVersion,
    getVpcLinkResponse_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

-- | /See:/ 'newGetVpcLink' smart constructor.
data GetVpcLink = GetVpcLink'
  { -- | The ID of the VPC link.
    GetVpcLink -> Text
vpcLinkId :: Prelude.Text
  }
  deriving (GetVpcLink -> GetVpcLink -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetVpcLink -> GetVpcLink -> Bool
$c/= :: GetVpcLink -> GetVpcLink -> Bool
== :: GetVpcLink -> GetVpcLink -> Bool
$c== :: GetVpcLink -> GetVpcLink -> Bool
Prelude.Eq, ReadPrec [GetVpcLink]
ReadPrec GetVpcLink
Int -> ReadS GetVpcLink
ReadS [GetVpcLink]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetVpcLink]
$creadListPrec :: ReadPrec [GetVpcLink]
readPrec :: ReadPrec GetVpcLink
$creadPrec :: ReadPrec GetVpcLink
readList :: ReadS [GetVpcLink]
$creadList :: ReadS [GetVpcLink]
readsPrec :: Int -> ReadS GetVpcLink
$creadsPrec :: Int -> ReadS GetVpcLink
Prelude.Read, Int -> GetVpcLink -> ShowS
[GetVpcLink] -> ShowS
GetVpcLink -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetVpcLink] -> ShowS
$cshowList :: [GetVpcLink] -> ShowS
show :: GetVpcLink -> String
$cshow :: GetVpcLink -> String
showsPrec :: Int -> GetVpcLink -> ShowS
$cshowsPrec :: Int -> GetVpcLink -> ShowS
Prelude.Show, forall x. Rep GetVpcLink x -> GetVpcLink
forall x. GetVpcLink -> Rep GetVpcLink x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetVpcLink x -> GetVpcLink
$cfrom :: forall x. GetVpcLink -> Rep GetVpcLink x
Prelude.Generic)

-- |
-- Create a value of 'GetVpcLink' 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:
--
-- 'vpcLinkId', 'getVpcLink_vpcLinkId' - The ID of the VPC link.
newGetVpcLink ::
  -- | 'vpcLinkId'
  Prelude.Text ->
  GetVpcLink
newGetVpcLink :: Text -> GetVpcLink
newGetVpcLink Text
pVpcLinkId_ =
  GetVpcLink' {$sel:vpcLinkId:GetVpcLink' :: Text
vpcLinkId = Text
pVpcLinkId_}

-- | The ID of the VPC link.
getVpcLink_vpcLinkId :: Lens.Lens' GetVpcLink Prelude.Text
getVpcLink_vpcLinkId :: Lens' GetVpcLink Text
getVpcLink_vpcLinkId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetVpcLink' {Text
vpcLinkId :: Text
$sel:vpcLinkId:GetVpcLink' :: GetVpcLink -> Text
vpcLinkId} -> Text
vpcLinkId) (\s :: GetVpcLink
s@GetVpcLink' {} Text
a -> GetVpcLink
s {$sel:vpcLinkId:GetVpcLink' :: Text
vpcLinkId = Text
a} :: GetVpcLink)

instance Core.AWSRequest GetVpcLink where
  type AWSResponse GetVpcLink = GetVpcLinkResponse
  request :: (Service -> Service) -> GetVpcLink -> Request GetVpcLink
request Service -> Service
overrides =
    forall a. ToRequest a => Service -> a -> Request a
Request.get (Service -> Service
overrides Service
defaultService)
  response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy GetVpcLink
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse GetVpcLink)))
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
-> GetVpcLinkResponse
GetVpcLinkResponse'
            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 GetVpcLink where
  hashWithSalt :: Int -> GetVpcLink -> Int
hashWithSalt Int
_salt GetVpcLink' {Text
vpcLinkId :: Text
$sel:vpcLinkId:GetVpcLink' :: GetVpcLink -> Text
..} =
    Int
_salt forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
vpcLinkId

instance Prelude.NFData GetVpcLink where
  rnf :: GetVpcLink -> ()
rnf GetVpcLink' {Text
vpcLinkId :: Text
$sel:vpcLinkId:GetVpcLink' :: GetVpcLink -> Text
..} = forall a. NFData a => a -> ()
Prelude.rnf Text
vpcLinkId

instance Data.ToHeaders GetVpcLink where
  toHeaders :: GetVpcLink -> 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.ToPath GetVpcLink where
  toPath :: GetVpcLink -> ByteString
toPath GetVpcLink' {Text
vpcLinkId :: Text
$sel:vpcLinkId:GetVpcLink' :: GetVpcLink -> 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 GetVpcLink where
  toQuery :: GetVpcLink -> QueryString
toQuery = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty

-- | /See:/ 'newGetVpcLinkResponse' smart constructor.
data GetVpcLinkResponse = GetVpcLinkResponse'
  { -- | The timestamp when the VPC link was created.
    GetVpcLinkResponse -> Maybe ISO8601
createdDate :: Prelude.Maybe Data.ISO8601,
    -- | The name of the VPC link.
    GetVpcLinkResponse -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
    -- | A list of security group IDs for the VPC link.
    GetVpcLinkResponse -> Maybe [Text]
securityGroupIds :: Prelude.Maybe [Prelude.Text],
    -- | A list of subnet IDs to include in the VPC link.
    GetVpcLinkResponse -> Maybe [Text]
subnetIds :: Prelude.Maybe [Prelude.Text],
    -- | Tags for the VPC link.
    GetVpcLinkResponse -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
    -- | The ID of the VPC link.
    GetVpcLinkResponse -> Maybe Text
vpcLinkId :: Prelude.Maybe Prelude.Text,
    -- | The status of the VPC link.
    GetVpcLinkResponse -> Maybe VpcLinkStatus
vpcLinkStatus :: Prelude.Maybe VpcLinkStatus,
    -- | A message summarizing the cause of the status of the VPC link.
    GetVpcLinkResponse -> Maybe Text
vpcLinkStatusMessage :: Prelude.Maybe Prelude.Text,
    -- | The version of the VPC link.
    GetVpcLinkResponse -> Maybe VpcLinkVersion
vpcLinkVersion :: Prelude.Maybe VpcLinkVersion,
    -- | The response's http status code.
    GetVpcLinkResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (GetVpcLinkResponse -> GetVpcLinkResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetVpcLinkResponse -> GetVpcLinkResponse -> Bool
$c/= :: GetVpcLinkResponse -> GetVpcLinkResponse -> Bool
== :: GetVpcLinkResponse -> GetVpcLinkResponse -> Bool
$c== :: GetVpcLinkResponse -> GetVpcLinkResponse -> Bool
Prelude.Eq, ReadPrec [GetVpcLinkResponse]
ReadPrec GetVpcLinkResponse
Int -> ReadS GetVpcLinkResponse
ReadS [GetVpcLinkResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetVpcLinkResponse]
$creadListPrec :: ReadPrec [GetVpcLinkResponse]
readPrec :: ReadPrec GetVpcLinkResponse
$creadPrec :: ReadPrec GetVpcLinkResponse
readList :: ReadS [GetVpcLinkResponse]
$creadList :: ReadS [GetVpcLinkResponse]
readsPrec :: Int -> ReadS GetVpcLinkResponse
$creadsPrec :: Int -> ReadS GetVpcLinkResponse
Prelude.Read, Int -> GetVpcLinkResponse -> ShowS
[GetVpcLinkResponse] -> ShowS
GetVpcLinkResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetVpcLinkResponse] -> ShowS
$cshowList :: [GetVpcLinkResponse] -> ShowS
show :: GetVpcLinkResponse -> String
$cshow :: GetVpcLinkResponse -> String
showsPrec :: Int -> GetVpcLinkResponse -> ShowS
$cshowsPrec :: Int -> GetVpcLinkResponse -> ShowS
Prelude.Show, forall x. Rep GetVpcLinkResponse x -> GetVpcLinkResponse
forall x. GetVpcLinkResponse -> Rep GetVpcLinkResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetVpcLinkResponse x -> GetVpcLinkResponse
$cfrom :: forall x. GetVpcLinkResponse -> Rep GetVpcLinkResponse x
Prelude.Generic)

-- |
-- Create a value of 'GetVpcLinkResponse' 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:
--
-- 'createdDate', 'getVpcLinkResponse_createdDate' - The timestamp when the VPC link was created.
--
-- 'name', 'getVpcLinkResponse_name' - The name of the VPC link.
--
-- 'securityGroupIds', 'getVpcLinkResponse_securityGroupIds' - A list of security group IDs for the VPC link.
--
-- 'subnetIds', 'getVpcLinkResponse_subnetIds' - A list of subnet IDs to include in the VPC link.
--
-- 'tags', 'getVpcLinkResponse_tags' - Tags for the VPC link.
--
-- 'vpcLinkId', 'getVpcLinkResponse_vpcLinkId' - The ID of the VPC link.
--
-- 'vpcLinkStatus', 'getVpcLinkResponse_vpcLinkStatus' - The status of the VPC link.
--
-- 'vpcLinkStatusMessage', 'getVpcLinkResponse_vpcLinkStatusMessage' - A message summarizing the cause of the status of the VPC link.
--
-- 'vpcLinkVersion', 'getVpcLinkResponse_vpcLinkVersion' - The version of the VPC link.
--
-- 'httpStatus', 'getVpcLinkResponse_httpStatus' - The response's http status code.
newGetVpcLinkResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  GetVpcLinkResponse
newGetVpcLinkResponse :: Int -> GetVpcLinkResponse
newGetVpcLinkResponse Int
pHttpStatus_ =
  GetVpcLinkResponse'
    { $sel:createdDate:GetVpcLinkResponse' :: Maybe ISO8601
createdDate = forall a. Maybe a
Prelude.Nothing,
      $sel:name:GetVpcLinkResponse' :: Maybe Text
name = forall a. Maybe a
Prelude.Nothing,
      $sel:securityGroupIds:GetVpcLinkResponse' :: Maybe [Text]
securityGroupIds = forall a. Maybe a
Prelude.Nothing,
      $sel:subnetIds:GetVpcLinkResponse' :: Maybe [Text]
subnetIds = forall a. Maybe a
Prelude.Nothing,
      $sel:tags:GetVpcLinkResponse' :: Maybe (HashMap Text Text)
tags = forall a. Maybe a
Prelude.Nothing,
      $sel:vpcLinkId:GetVpcLinkResponse' :: Maybe Text
vpcLinkId = forall a. Maybe a
Prelude.Nothing,
      $sel:vpcLinkStatus:GetVpcLinkResponse' :: Maybe VpcLinkStatus
vpcLinkStatus = forall a. Maybe a
Prelude.Nothing,
      $sel:vpcLinkStatusMessage:GetVpcLinkResponse' :: Maybe Text
vpcLinkStatusMessage = forall a. Maybe a
Prelude.Nothing,
      $sel:vpcLinkVersion:GetVpcLinkResponse' :: Maybe VpcLinkVersion
vpcLinkVersion = forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:GetVpcLinkResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The timestamp when the VPC link was created.
getVpcLinkResponse_createdDate :: Lens.Lens' GetVpcLinkResponse (Prelude.Maybe Prelude.UTCTime)
getVpcLinkResponse_createdDate :: Lens' GetVpcLinkResponse (Maybe UTCTime)
getVpcLinkResponse_createdDate = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetVpcLinkResponse' {Maybe ISO8601
createdDate :: Maybe ISO8601
$sel:createdDate:GetVpcLinkResponse' :: GetVpcLinkResponse -> Maybe ISO8601
createdDate} -> Maybe ISO8601
createdDate) (\s :: GetVpcLinkResponse
s@GetVpcLinkResponse' {} Maybe ISO8601
a -> GetVpcLinkResponse
s {$sel:createdDate:GetVpcLinkResponse' :: Maybe ISO8601
createdDate = Maybe ISO8601
a} :: GetVpcLinkResponse) 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

-- | The name of the VPC link.
getVpcLinkResponse_name :: Lens.Lens' GetVpcLinkResponse (Prelude.Maybe Prelude.Text)
getVpcLinkResponse_name :: Lens' GetVpcLinkResponse (Maybe Text)
getVpcLinkResponse_name = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetVpcLinkResponse' {Maybe Text
name :: Maybe Text
$sel:name:GetVpcLinkResponse' :: GetVpcLinkResponse -> Maybe Text
name} -> Maybe Text
name) (\s :: GetVpcLinkResponse
s@GetVpcLinkResponse' {} Maybe Text
a -> GetVpcLinkResponse
s {$sel:name:GetVpcLinkResponse' :: Maybe Text
name = Maybe Text
a} :: GetVpcLinkResponse)

-- | A list of security group IDs for the VPC link.
getVpcLinkResponse_securityGroupIds :: Lens.Lens' GetVpcLinkResponse (Prelude.Maybe [Prelude.Text])
getVpcLinkResponse_securityGroupIds :: Lens' GetVpcLinkResponse (Maybe [Text])
getVpcLinkResponse_securityGroupIds = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetVpcLinkResponse' {Maybe [Text]
securityGroupIds :: Maybe [Text]
$sel:securityGroupIds:GetVpcLinkResponse' :: GetVpcLinkResponse -> Maybe [Text]
securityGroupIds} -> Maybe [Text]
securityGroupIds) (\s :: GetVpcLinkResponse
s@GetVpcLinkResponse' {} Maybe [Text]
a -> GetVpcLinkResponse
s {$sel:securityGroupIds:GetVpcLinkResponse' :: Maybe [Text]
securityGroupIds = Maybe [Text]
a} :: GetVpcLinkResponse) 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

-- | A list of subnet IDs to include in the VPC link.
getVpcLinkResponse_subnetIds :: Lens.Lens' GetVpcLinkResponse (Prelude.Maybe [Prelude.Text])
getVpcLinkResponse_subnetIds :: Lens' GetVpcLinkResponse (Maybe [Text])
getVpcLinkResponse_subnetIds = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetVpcLinkResponse' {Maybe [Text]
subnetIds :: Maybe [Text]
$sel:subnetIds:GetVpcLinkResponse' :: GetVpcLinkResponse -> Maybe [Text]
subnetIds} -> Maybe [Text]
subnetIds) (\s :: GetVpcLinkResponse
s@GetVpcLinkResponse' {} Maybe [Text]
a -> GetVpcLinkResponse
s {$sel:subnetIds:GetVpcLinkResponse' :: Maybe [Text]
subnetIds = Maybe [Text]
a} :: GetVpcLinkResponse) 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

-- | Tags for the VPC link.
getVpcLinkResponse_tags :: Lens.Lens' GetVpcLinkResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
getVpcLinkResponse_tags :: Lens' GetVpcLinkResponse (Maybe (HashMap Text Text))
getVpcLinkResponse_tags = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetVpcLinkResponse' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:GetVpcLinkResponse' :: GetVpcLinkResponse -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: GetVpcLinkResponse
s@GetVpcLinkResponse' {} Maybe (HashMap Text Text)
a -> GetVpcLinkResponse
s {$sel:tags:GetVpcLinkResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: GetVpcLinkResponse) 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

-- | The ID of the VPC link.
getVpcLinkResponse_vpcLinkId :: Lens.Lens' GetVpcLinkResponse (Prelude.Maybe Prelude.Text)
getVpcLinkResponse_vpcLinkId :: Lens' GetVpcLinkResponse (Maybe Text)
getVpcLinkResponse_vpcLinkId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetVpcLinkResponse' {Maybe Text
vpcLinkId :: Maybe Text
$sel:vpcLinkId:GetVpcLinkResponse' :: GetVpcLinkResponse -> Maybe Text
vpcLinkId} -> Maybe Text
vpcLinkId) (\s :: GetVpcLinkResponse
s@GetVpcLinkResponse' {} Maybe Text
a -> GetVpcLinkResponse
s {$sel:vpcLinkId:GetVpcLinkResponse' :: Maybe Text
vpcLinkId = Maybe Text
a} :: GetVpcLinkResponse)

-- | The status of the VPC link.
getVpcLinkResponse_vpcLinkStatus :: Lens.Lens' GetVpcLinkResponse (Prelude.Maybe VpcLinkStatus)
getVpcLinkResponse_vpcLinkStatus :: Lens' GetVpcLinkResponse (Maybe VpcLinkStatus)
getVpcLinkResponse_vpcLinkStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetVpcLinkResponse' {Maybe VpcLinkStatus
vpcLinkStatus :: Maybe VpcLinkStatus
$sel:vpcLinkStatus:GetVpcLinkResponse' :: GetVpcLinkResponse -> Maybe VpcLinkStatus
vpcLinkStatus} -> Maybe VpcLinkStatus
vpcLinkStatus) (\s :: GetVpcLinkResponse
s@GetVpcLinkResponse' {} Maybe VpcLinkStatus
a -> GetVpcLinkResponse
s {$sel:vpcLinkStatus:GetVpcLinkResponse' :: Maybe VpcLinkStatus
vpcLinkStatus = Maybe VpcLinkStatus
a} :: GetVpcLinkResponse)

-- | A message summarizing the cause of the status of the VPC link.
getVpcLinkResponse_vpcLinkStatusMessage :: Lens.Lens' GetVpcLinkResponse (Prelude.Maybe Prelude.Text)
getVpcLinkResponse_vpcLinkStatusMessage :: Lens' GetVpcLinkResponse (Maybe Text)
getVpcLinkResponse_vpcLinkStatusMessage = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetVpcLinkResponse' {Maybe Text
vpcLinkStatusMessage :: Maybe Text
$sel:vpcLinkStatusMessage:GetVpcLinkResponse' :: GetVpcLinkResponse -> Maybe Text
vpcLinkStatusMessage} -> Maybe Text
vpcLinkStatusMessage) (\s :: GetVpcLinkResponse
s@GetVpcLinkResponse' {} Maybe Text
a -> GetVpcLinkResponse
s {$sel:vpcLinkStatusMessage:GetVpcLinkResponse' :: Maybe Text
vpcLinkStatusMessage = Maybe Text
a} :: GetVpcLinkResponse)

-- | The version of the VPC link.
getVpcLinkResponse_vpcLinkVersion :: Lens.Lens' GetVpcLinkResponse (Prelude.Maybe VpcLinkVersion)
getVpcLinkResponse_vpcLinkVersion :: Lens' GetVpcLinkResponse (Maybe VpcLinkVersion)
getVpcLinkResponse_vpcLinkVersion = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetVpcLinkResponse' {Maybe VpcLinkVersion
vpcLinkVersion :: Maybe VpcLinkVersion
$sel:vpcLinkVersion:GetVpcLinkResponse' :: GetVpcLinkResponse -> Maybe VpcLinkVersion
vpcLinkVersion} -> Maybe VpcLinkVersion
vpcLinkVersion) (\s :: GetVpcLinkResponse
s@GetVpcLinkResponse' {} Maybe VpcLinkVersion
a -> GetVpcLinkResponse
s {$sel:vpcLinkVersion:GetVpcLinkResponse' :: Maybe VpcLinkVersion
vpcLinkVersion = Maybe VpcLinkVersion
a} :: GetVpcLinkResponse)

-- | The response's http status code.
getVpcLinkResponse_httpStatus :: Lens.Lens' GetVpcLinkResponse Prelude.Int
getVpcLinkResponse_httpStatus :: Lens' GetVpcLinkResponse Int
getVpcLinkResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetVpcLinkResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetVpcLinkResponse' :: GetVpcLinkResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetVpcLinkResponse
s@GetVpcLinkResponse' {} Int
a -> GetVpcLinkResponse
s {$sel:httpStatus:GetVpcLinkResponse' :: Int
httpStatus = Int
a} :: GetVpcLinkResponse)

instance Prelude.NFData GetVpcLinkResponse where
  rnf :: GetVpcLinkResponse -> ()
rnf GetVpcLinkResponse' {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:GetVpcLinkResponse' :: GetVpcLinkResponse -> Int
$sel:vpcLinkVersion:GetVpcLinkResponse' :: GetVpcLinkResponse -> Maybe VpcLinkVersion
$sel:vpcLinkStatusMessage:GetVpcLinkResponse' :: GetVpcLinkResponse -> Maybe Text
$sel:vpcLinkStatus:GetVpcLinkResponse' :: GetVpcLinkResponse -> Maybe VpcLinkStatus
$sel:vpcLinkId:GetVpcLinkResponse' :: GetVpcLinkResponse -> Maybe Text
$sel:tags:GetVpcLinkResponse' :: GetVpcLinkResponse -> Maybe (HashMap Text Text)
$sel:subnetIds:GetVpcLinkResponse' :: GetVpcLinkResponse -> Maybe [Text]
$sel:securityGroupIds:GetVpcLinkResponse' :: GetVpcLinkResponse -> Maybe [Text]
$sel:name:GetVpcLinkResponse' :: GetVpcLinkResponse -> Maybe Text
$sel:createdDate:GetVpcLinkResponse' :: GetVpcLinkResponse -> 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