{-# 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.EC2.DescribeVpcClassicLink
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Describes the ClassicLink status of one or more VPCs.
--
-- We are retiring EC2-Classic. We recommend that you migrate from
-- EC2-Classic to a VPC. For more information, see
-- <https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-migrate.html Migrate from EC2-Classic to a VPC>
-- in the /Amazon Elastic Compute Cloud User Guide/.
module Amazonka.EC2.DescribeVpcClassicLink
  ( -- * Creating a Request
    DescribeVpcClassicLink (..),
    newDescribeVpcClassicLink,

    -- * Request Lenses
    describeVpcClassicLink_dryRun,
    describeVpcClassicLink_filters,
    describeVpcClassicLink_vpcIds,

    -- * Destructuring the Response
    DescribeVpcClassicLinkResponse (..),
    newDescribeVpcClassicLinkResponse,

    -- * Response Lenses
    describeVpcClassicLinkResponse_vpcs,
    describeVpcClassicLinkResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.EC2.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response

-- | /See:/ 'newDescribeVpcClassicLink' smart constructor.
data DescribeVpcClassicLink = DescribeVpcClassicLink'
  { -- | Checks whether you have the required permissions for the action, without
    -- actually making the request, and provides an error response. If you have
    -- the required permissions, the error response is @DryRunOperation@.
    -- Otherwise, it is @UnauthorizedOperation@.
    DescribeVpcClassicLink -> Maybe Bool
dryRun :: Prelude.Maybe Prelude.Bool,
    -- | One or more filters.
    --
    -- -   @is-classic-link-enabled@ - Whether the VPC is enabled for
    --     ClassicLink (@true@ | @false@).
    --
    -- -   @tag@:\<key> - The key\/value combination of a tag assigned to the
    --     resource. Use the tag key in the filter name and the tag value as
    --     the filter value. For example, to find all resources that have a tag
    --     with the key @Owner@ and the value @TeamA@, specify @tag:Owner@ for
    --     the filter name and @TeamA@ for the filter value.
    --
    -- -   @tag-key@ - The key of a tag assigned to the resource. Use this
    --     filter to find all resources assigned a tag with a specific key,
    --     regardless of the tag value.
    DescribeVpcClassicLink -> Maybe [Filter]
filters :: Prelude.Maybe [Filter],
    -- | One or more VPCs for which you want to describe the ClassicLink status.
    DescribeVpcClassicLink -> Maybe [Text]
vpcIds :: Prelude.Maybe [Prelude.Text]
  }
  deriving (DescribeVpcClassicLink -> DescribeVpcClassicLink -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeVpcClassicLink -> DescribeVpcClassicLink -> Bool
$c/= :: DescribeVpcClassicLink -> DescribeVpcClassicLink -> Bool
== :: DescribeVpcClassicLink -> DescribeVpcClassicLink -> Bool
$c== :: DescribeVpcClassicLink -> DescribeVpcClassicLink -> Bool
Prelude.Eq, ReadPrec [DescribeVpcClassicLink]
ReadPrec DescribeVpcClassicLink
Int -> ReadS DescribeVpcClassicLink
ReadS [DescribeVpcClassicLink]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeVpcClassicLink]
$creadListPrec :: ReadPrec [DescribeVpcClassicLink]
readPrec :: ReadPrec DescribeVpcClassicLink
$creadPrec :: ReadPrec DescribeVpcClassicLink
readList :: ReadS [DescribeVpcClassicLink]
$creadList :: ReadS [DescribeVpcClassicLink]
readsPrec :: Int -> ReadS DescribeVpcClassicLink
$creadsPrec :: Int -> ReadS DescribeVpcClassicLink
Prelude.Read, Int -> DescribeVpcClassicLink -> ShowS
[DescribeVpcClassicLink] -> ShowS
DescribeVpcClassicLink -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeVpcClassicLink] -> ShowS
$cshowList :: [DescribeVpcClassicLink] -> ShowS
show :: DescribeVpcClassicLink -> String
$cshow :: DescribeVpcClassicLink -> String
showsPrec :: Int -> DescribeVpcClassicLink -> ShowS
$cshowsPrec :: Int -> DescribeVpcClassicLink -> ShowS
Prelude.Show, forall x. Rep DescribeVpcClassicLink x -> DescribeVpcClassicLink
forall x. DescribeVpcClassicLink -> Rep DescribeVpcClassicLink x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeVpcClassicLink x -> DescribeVpcClassicLink
$cfrom :: forall x. DescribeVpcClassicLink -> Rep DescribeVpcClassicLink x
Prelude.Generic)

-- |
-- Create a value of 'DescribeVpcClassicLink' 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:
--
-- 'dryRun', 'describeVpcClassicLink_dryRun' - Checks whether you have the required permissions for the action, without
-- actually making the request, and provides an error response. If you have
-- the required permissions, the error response is @DryRunOperation@.
-- Otherwise, it is @UnauthorizedOperation@.
--
-- 'filters', 'describeVpcClassicLink_filters' - One or more filters.
--
-- -   @is-classic-link-enabled@ - Whether the VPC is enabled for
--     ClassicLink (@true@ | @false@).
--
-- -   @tag@:\<key> - The key\/value combination of a tag assigned to the
--     resource. Use the tag key in the filter name and the tag value as
--     the filter value. For example, to find all resources that have a tag
--     with the key @Owner@ and the value @TeamA@, specify @tag:Owner@ for
--     the filter name and @TeamA@ for the filter value.
--
-- -   @tag-key@ - The key of a tag assigned to the resource. Use this
--     filter to find all resources assigned a tag with a specific key,
--     regardless of the tag value.
--
-- 'vpcIds', 'describeVpcClassicLink_vpcIds' - One or more VPCs for which you want to describe the ClassicLink status.
newDescribeVpcClassicLink ::
  DescribeVpcClassicLink
newDescribeVpcClassicLink :: DescribeVpcClassicLink
newDescribeVpcClassicLink =
  DescribeVpcClassicLink'
    { $sel:dryRun:DescribeVpcClassicLink' :: Maybe Bool
dryRun = forall a. Maybe a
Prelude.Nothing,
      $sel:filters:DescribeVpcClassicLink' :: Maybe [Filter]
filters = forall a. Maybe a
Prelude.Nothing,
      $sel:vpcIds:DescribeVpcClassicLink' :: Maybe [Text]
vpcIds = forall a. Maybe a
Prelude.Nothing
    }

-- | Checks whether you have the required permissions for the action, without
-- actually making the request, and provides an error response. If you have
-- the required permissions, the error response is @DryRunOperation@.
-- Otherwise, it is @UnauthorizedOperation@.
describeVpcClassicLink_dryRun :: Lens.Lens' DescribeVpcClassicLink (Prelude.Maybe Prelude.Bool)
describeVpcClassicLink_dryRun :: Lens' DescribeVpcClassicLink (Maybe Bool)
describeVpcClassicLink_dryRun = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeVpcClassicLink' {Maybe Bool
dryRun :: Maybe Bool
$sel:dryRun:DescribeVpcClassicLink' :: DescribeVpcClassicLink -> Maybe Bool
dryRun} -> Maybe Bool
dryRun) (\s :: DescribeVpcClassicLink
s@DescribeVpcClassicLink' {} Maybe Bool
a -> DescribeVpcClassicLink
s {$sel:dryRun:DescribeVpcClassicLink' :: Maybe Bool
dryRun = Maybe Bool
a} :: DescribeVpcClassicLink)

-- | One or more filters.
--
-- -   @is-classic-link-enabled@ - Whether the VPC is enabled for
--     ClassicLink (@true@ | @false@).
--
-- -   @tag@:\<key> - The key\/value combination of a tag assigned to the
--     resource. Use the tag key in the filter name and the tag value as
--     the filter value. For example, to find all resources that have a tag
--     with the key @Owner@ and the value @TeamA@, specify @tag:Owner@ for
--     the filter name and @TeamA@ for the filter value.
--
-- -   @tag-key@ - The key of a tag assigned to the resource. Use this
--     filter to find all resources assigned a tag with a specific key,
--     regardless of the tag value.
describeVpcClassicLink_filters :: Lens.Lens' DescribeVpcClassicLink (Prelude.Maybe [Filter])
describeVpcClassicLink_filters :: Lens' DescribeVpcClassicLink (Maybe [Filter])
describeVpcClassicLink_filters = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeVpcClassicLink' {Maybe [Filter]
filters :: Maybe [Filter]
$sel:filters:DescribeVpcClassicLink' :: DescribeVpcClassicLink -> Maybe [Filter]
filters} -> Maybe [Filter]
filters) (\s :: DescribeVpcClassicLink
s@DescribeVpcClassicLink' {} Maybe [Filter]
a -> DescribeVpcClassicLink
s {$sel:filters:DescribeVpcClassicLink' :: Maybe [Filter]
filters = Maybe [Filter]
a} :: DescribeVpcClassicLink) 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

-- | One or more VPCs for which you want to describe the ClassicLink status.
describeVpcClassicLink_vpcIds :: Lens.Lens' DescribeVpcClassicLink (Prelude.Maybe [Prelude.Text])
describeVpcClassicLink_vpcIds :: Lens' DescribeVpcClassicLink (Maybe [Text])
describeVpcClassicLink_vpcIds = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeVpcClassicLink' {Maybe [Text]
vpcIds :: Maybe [Text]
$sel:vpcIds:DescribeVpcClassicLink' :: DescribeVpcClassicLink -> Maybe [Text]
vpcIds} -> Maybe [Text]
vpcIds) (\s :: DescribeVpcClassicLink
s@DescribeVpcClassicLink' {} Maybe [Text]
a -> DescribeVpcClassicLink
s {$sel:vpcIds:DescribeVpcClassicLink' :: Maybe [Text]
vpcIds = Maybe [Text]
a} :: DescribeVpcClassicLink) 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

instance Core.AWSRequest DescribeVpcClassicLink where
  type
    AWSResponse DescribeVpcClassicLink =
      DescribeVpcClassicLinkResponse
  request :: (Service -> Service)
-> DescribeVpcClassicLink -> Request DescribeVpcClassicLink
request Service -> Service
overrides =
    forall a. ToRequest a => Service -> a -> Request a
Request.postQuery (Service -> Service
overrides Service
defaultService)
  response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy DescribeVpcClassicLink
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DescribeVpcClassicLink)))
response =
    forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> [Node] -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveXML
      ( \Int
s ResponseHeaders
h [Node]
x ->
          Maybe [VpcClassicLink] -> Int -> DescribeVpcClassicLinkResponse
DescribeVpcClassicLinkResponse'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( [Node]
x
                            forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"vpcSet"
                            forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty
                            forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
Prelude.>>= forall (f :: * -> *) a b.
Applicative f =>
([a] -> f b) -> [a] -> f (Maybe b)
Core.may (forall a. FromXML a => Text -> [Node] -> Either String [a]
Data.parseXMLList Text
"item")
                        )
            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 DescribeVpcClassicLink where
  hashWithSalt :: Int -> DescribeVpcClassicLink -> Int
hashWithSalt Int
_salt DescribeVpcClassicLink' {Maybe Bool
Maybe [Text]
Maybe [Filter]
vpcIds :: Maybe [Text]
filters :: Maybe [Filter]
dryRun :: Maybe Bool
$sel:vpcIds:DescribeVpcClassicLink' :: DescribeVpcClassicLink -> Maybe [Text]
$sel:filters:DescribeVpcClassicLink' :: DescribeVpcClassicLink -> Maybe [Filter]
$sel:dryRun:DescribeVpcClassicLink' :: DescribeVpcClassicLink -> Maybe Bool
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
dryRun
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Filter]
filters
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Text]
vpcIds

instance Prelude.NFData DescribeVpcClassicLink where
  rnf :: DescribeVpcClassicLink -> ()
rnf DescribeVpcClassicLink' {Maybe Bool
Maybe [Text]
Maybe [Filter]
vpcIds :: Maybe [Text]
filters :: Maybe [Filter]
dryRun :: Maybe Bool
$sel:vpcIds:DescribeVpcClassicLink' :: DescribeVpcClassicLink -> Maybe [Text]
$sel:filters:DescribeVpcClassicLink' :: DescribeVpcClassicLink -> Maybe [Filter]
$sel:dryRun:DescribeVpcClassicLink' :: DescribeVpcClassicLink -> Maybe Bool
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
dryRun
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Filter]
filters
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Text]
vpcIds

instance Data.ToHeaders DescribeVpcClassicLink where
  toHeaders :: DescribeVpcClassicLink -> ResponseHeaders
toHeaders = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty

instance Data.ToPath DescribeVpcClassicLink where
  toPath :: DescribeVpcClassicLink -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/"

instance Data.ToQuery DescribeVpcClassicLink where
  toQuery :: DescribeVpcClassicLink -> QueryString
toQuery DescribeVpcClassicLink' {Maybe Bool
Maybe [Text]
Maybe [Filter]
vpcIds :: Maybe [Text]
filters :: Maybe [Filter]
dryRun :: Maybe Bool
$sel:vpcIds:DescribeVpcClassicLink' :: DescribeVpcClassicLink -> Maybe [Text]
$sel:filters:DescribeVpcClassicLink' :: DescribeVpcClassicLink -> Maybe [Filter]
$sel:dryRun:DescribeVpcClassicLink' :: DescribeVpcClassicLink -> Maybe Bool
..} =
    forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"Action"
          forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: (ByteString
"DescribeVpcClassicLink" :: Prelude.ByteString),
        ByteString
"Version"
          forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: (ByteString
"2016-11-15" :: Prelude.ByteString),
        ByteString
"DryRun" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Bool
dryRun,
        forall a. ToQuery a => a -> QueryString
Data.toQuery
          (forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Data.toQueryList ByteString
"Filter" forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Filter]
filters),
        forall a. ToQuery a => a -> QueryString
Data.toQuery
          (forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Data.toQueryList ByteString
"VpcId" forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Text]
vpcIds)
      ]

-- | /See:/ 'newDescribeVpcClassicLinkResponse' smart constructor.
data DescribeVpcClassicLinkResponse = DescribeVpcClassicLinkResponse'
  { -- | The ClassicLink status of one or more VPCs.
    DescribeVpcClassicLinkResponse -> Maybe [VpcClassicLink]
vpcs :: Prelude.Maybe [VpcClassicLink],
    -- | The response's http status code.
    DescribeVpcClassicLinkResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (DescribeVpcClassicLinkResponse
-> DescribeVpcClassicLinkResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeVpcClassicLinkResponse
-> DescribeVpcClassicLinkResponse -> Bool
$c/= :: DescribeVpcClassicLinkResponse
-> DescribeVpcClassicLinkResponse -> Bool
== :: DescribeVpcClassicLinkResponse
-> DescribeVpcClassicLinkResponse -> Bool
$c== :: DescribeVpcClassicLinkResponse
-> DescribeVpcClassicLinkResponse -> Bool
Prelude.Eq, ReadPrec [DescribeVpcClassicLinkResponse]
ReadPrec DescribeVpcClassicLinkResponse
Int -> ReadS DescribeVpcClassicLinkResponse
ReadS [DescribeVpcClassicLinkResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeVpcClassicLinkResponse]
$creadListPrec :: ReadPrec [DescribeVpcClassicLinkResponse]
readPrec :: ReadPrec DescribeVpcClassicLinkResponse
$creadPrec :: ReadPrec DescribeVpcClassicLinkResponse
readList :: ReadS [DescribeVpcClassicLinkResponse]
$creadList :: ReadS [DescribeVpcClassicLinkResponse]
readsPrec :: Int -> ReadS DescribeVpcClassicLinkResponse
$creadsPrec :: Int -> ReadS DescribeVpcClassicLinkResponse
Prelude.Read, Int -> DescribeVpcClassicLinkResponse -> ShowS
[DescribeVpcClassicLinkResponse] -> ShowS
DescribeVpcClassicLinkResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeVpcClassicLinkResponse] -> ShowS
$cshowList :: [DescribeVpcClassicLinkResponse] -> ShowS
show :: DescribeVpcClassicLinkResponse -> String
$cshow :: DescribeVpcClassicLinkResponse -> String
showsPrec :: Int -> DescribeVpcClassicLinkResponse -> ShowS
$cshowsPrec :: Int -> DescribeVpcClassicLinkResponse -> ShowS
Prelude.Show, forall x.
Rep DescribeVpcClassicLinkResponse x
-> DescribeVpcClassicLinkResponse
forall x.
DescribeVpcClassicLinkResponse
-> Rep DescribeVpcClassicLinkResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeVpcClassicLinkResponse x
-> DescribeVpcClassicLinkResponse
$cfrom :: forall x.
DescribeVpcClassicLinkResponse
-> Rep DescribeVpcClassicLinkResponse x
Prelude.Generic)

-- |
-- Create a value of 'DescribeVpcClassicLinkResponse' 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:
--
-- 'vpcs', 'describeVpcClassicLinkResponse_vpcs' - The ClassicLink status of one or more VPCs.
--
-- 'httpStatus', 'describeVpcClassicLinkResponse_httpStatus' - The response's http status code.
newDescribeVpcClassicLinkResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  DescribeVpcClassicLinkResponse
newDescribeVpcClassicLinkResponse :: Int -> DescribeVpcClassicLinkResponse
newDescribeVpcClassicLinkResponse Int
pHttpStatus_ =
  DescribeVpcClassicLinkResponse'
    { $sel:vpcs:DescribeVpcClassicLinkResponse' :: Maybe [VpcClassicLink]
vpcs =
        forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:DescribeVpcClassicLinkResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The ClassicLink status of one or more VPCs.
describeVpcClassicLinkResponse_vpcs :: Lens.Lens' DescribeVpcClassicLinkResponse (Prelude.Maybe [VpcClassicLink])
describeVpcClassicLinkResponse_vpcs :: Lens' DescribeVpcClassicLinkResponse (Maybe [VpcClassicLink])
describeVpcClassicLinkResponse_vpcs = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeVpcClassicLinkResponse' {Maybe [VpcClassicLink]
vpcs :: Maybe [VpcClassicLink]
$sel:vpcs:DescribeVpcClassicLinkResponse' :: DescribeVpcClassicLinkResponse -> Maybe [VpcClassicLink]
vpcs} -> Maybe [VpcClassicLink]
vpcs) (\s :: DescribeVpcClassicLinkResponse
s@DescribeVpcClassicLinkResponse' {} Maybe [VpcClassicLink]
a -> DescribeVpcClassicLinkResponse
s {$sel:vpcs:DescribeVpcClassicLinkResponse' :: Maybe [VpcClassicLink]
vpcs = Maybe [VpcClassicLink]
a} :: DescribeVpcClassicLinkResponse) 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 response's http status code.
describeVpcClassicLinkResponse_httpStatus :: Lens.Lens' DescribeVpcClassicLinkResponse Prelude.Int
describeVpcClassicLinkResponse_httpStatus :: Lens' DescribeVpcClassicLinkResponse Int
describeVpcClassicLinkResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeVpcClassicLinkResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeVpcClassicLinkResponse' :: DescribeVpcClassicLinkResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeVpcClassicLinkResponse
s@DescribeVpcClassicLinkResponse' {} Int
a -> DescribeVpcClassicLinkResponse
s {$sel:httpStatus:DescribeVpcClassicLinkResponse' :: Int
httpStatus = Int
a} :: DescribeVpcClassicLinkResponse)

instance
  Prelude.NFData
    DescribeVpcClassicLinkResponse
  where
  rnf :: DescribeVpcClassicLinkResponse -> ()
rnf DescribeVpcClassicLinkResponse' {Int
Maybe [VpcClassicLink]
httpStatus :: Int
vpcs :: Maybe [VpcClassicLink]
$sel:httpStatus:DescribeVpcClassicLinkResponse' :: DescribeVpcClassicLinkResponse -> Int
$sel:vpcs:DescribeVpcClassicLinkResponse' :: DescribeVpcClassicLinkResponse -> Maybe [VpcClassicLink]
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe [VpcClassicLink]
vpcs
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus