{-# 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.DescribeVpcClassicLinkDnsSupport
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- 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/.
--
-- Describes the ClassicLink DNS support status of one or more VPCs. If
-- enabled, the DNS hostname of a linked EC2-Classic instance resolves to
-- its private IP address when addressed from an instance in the VPC to
-- which it\'s linked. Similarly, the DNS hostname of an instance in a VPC
-- resolves to its private IP address when addressed from a linked
-- EC2-Classic instance. For more information, see
-- <https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-classiclink.html ClassicLink>
-- in the /Amazon Elastic Compute Cloud User Guide/.
--
-- This operation returns paginated results.
module Amazonka.EC2.DescribeVpcClassicLinkDnsSupport
  ( -- * Creating a Request
    DescribeVpcClassicLinkDnsSupport (..),
    newDescribeVpcClassicLinkDnsSupport,

    -- * Request Lenses
    describeVpcClassicLinkDnsSupport_maxResults,
    describeVpcClassicLinkDnsSupport_nextToken,
    describeVpcClassicLinkDnsSupport_vpcIds,

    -- * Destructuring the Response
    DescribeVpcClassicLinkDnsSupportResponse (..),
    newDescribeVpcClassicLinkDnsSupportResponse,

    -- * Response Lenses
    describeVpcClassicLinkDnsSupportResponse_nextToken,
    describeVpcClassicLinkDnsSupportResponse_vpcs,
    describeVpcClassicLinkDnsSupportResponse_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:/ 'newDescribeVpcClassicLinkDnsSupport' smart constructor.
data DescribeVpcClassicLinkDnsSupport = DescribeVpcClassicLinkDnsSupport'
  { -- | The maximum number of results to return with a single call. To retrieve
    -- the remaining results, make another call with the returned @nextToken@
    -- value.
    DescribeVpcClassicLinkDnsSupport -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
    -- | The token for the next page of results.
    DescribeVpcClassicLinkDnsSupport -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | One or more VPC IDs.
    DescribeVpcClassicLinkDnsSupport -> Maybe [Text]
vpcIds :: Prelude.Maybe [Prelude.Text]
  }
  deriving (DescribeVpcClassicLinkDnsSupport
-> DescribeVpcClassicLinkDnsSupport -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeVpcClassicLinkDnsSupport
-> DescribeVpcClassicLinkDnsSupport -> Bool
$c/= :: DescribeVpcClassicLinkDnsSupport
-> DescribeVpcClassicLinkDnsSupport -> Bool
== :: DescribeVpcClassicLinkDnsSupport
-> DescribeVpcClassicLinkDnsSupport -> Bool
$c== :: DescribeVpcClassicLinkDnsSupport
-> DescribeVpcClassicLinkDnsSupport -> Bool
Prelude.Eq, ReadPrec [DescribeVpcClassicLinkDnsSupport]
ReadPrec DescribeVpcClassicLinkDnsSupport
Int -> ReadS DescribeVpcClassicLinkDnsSupport
ReadS [DescribeVpcClassicLinkDnsSupport]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeVpcClassicLinkDnsSupport]
$creadListPrec :: ReadPrec [DescribeVpcClassicLinkDnsSupport]
readPrec :: ReadPrec DescribeVpcClassicLinkDnsSupport
$creadPrec :: ReadPrec DescribeVpcClassicLinkDnsSupport
readList :: ReadS [DescribeVpcClassicLinkDnsSupport]
$creadList :: ReadS [DescribeVpcClassicLinkDnsSupport]
readsPrec :: Int -> ReadS DescribeVpcClassicLinkDnsSupport
$creadsPrec :: Int -> ReadS DescribeVpcClassicLinkDnsSupport
Prelude.Read, Int -> DescribeVpcClassicLinkDnsSupport -> ShowS
[DescribeVpcClassicLinkDnsSupport] -> ShowS
DescribeVpcClassicLinkDnsSupport -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeVpcClassicLinkDnsSupport] -> ShowS
$cshowList :: [DescribeVpcClassicLinkDnsSupport] -> ShowS
show :: DescribeVpcClassicLinkDnsSupport -> String
$cshow :: DescribeVpcClassicLinkDnsSupport -> String
showsPrec :: Int -> DescribeVpcClassicLinkDnsSupport -> ShowS
$cshowsPrec :: Int -> DescribeVpcClassicLinkDnsSupport -> ShowS
Prelude.Show, forall x.
Rep DescribeVpcClassicLinkDnsSupport x
-> DescribeVpcClassicLinkDnsSupport
forall x.
DescribeVpcClassicLinkDnsSupport
-> Rep DescribeVpcClassicLinkDnsSupport x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeVpcClassicLinkDnsSupport x
-> DescribeVpcClassicLinkDnsSupport
$cfrom :: forall x.
DescribeVpcClassicLinkDnsSupport
-> Rep DescribeVpcClassicLinkDnsSupport x
Prelude.Generic)

-- |
-- Create a value of 'DescribeVpcClassicLinkDnsSupport' 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:
--
-- 'maxResults', 'describeVpcClassicLinkDnsSupport_maxResults' - The maximum number of results to return with a single call. To retrieve
-- the remaining results, make another call with the returned @nextToken@
-- value.
--
-- 'nextToken', 'describeVpcClassicLinkDnsSupport_nextToken' - The token for the next page of results.
--
-- 'vpcIds', 'describeVpcClassicLinkDnsSupport_vpcIds' - One or more VPC IDs.
newDescribeVpcClassicLinkDnsSupport ::
  DescribeVpcClassicLinkDnsSupport
newDescribeVpcClassicLinkDnsSupport :: DescribeVpcClassicLinkDnsSupport
newDescribeVpcClassicLinkDnsSupport =
  DescribeVpcClassicLinkDnsSupport'
    { $sel:maxResults:DescribeVpcClassicLinkDnsSupport' :: Maybe Natural
maxResults =
        forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:DescribeVpcClassicLinkDnsSupport' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
      $sel:vpcIds:DescribeVpcClassicLinkDnsSupport' :: Maybe [Text]
vpcIds = forall a. Maybe a
Prelude.Nothing
    }

-- | The maximum number of results to return with a single call. To retrieve
-- the remaining results, make another call with the returned @nextToken@
-- value.
describeVpcClassicLinkDnsSupport_maxResults :: Lens.Lens' DescribeVpcClassicLinkDnsSupport (Prelude.Maybe Prelude.Natural)
describeVpcClassicLinkDnsSupport_maxResults :: Lens' DescribeVpcClassicLinkDnsSupport (Maybe Natural)
describeVpcClassicLinkDnsSupport_maxResults = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeVpcClassicLinkDnsSupport' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:DescribeVpcClassicLinkDnsSupport' :: DescribeVpcClassicLinkDnsSupport -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: DescribeVpcClassicLinkDnsSupport
s@DescribeVpcClassicLinkDnsSupport' {} Maybe Natural
a -> DescribeVpcClassicLinkDnsSupport
s {$sel:maxResults:DescribeVpcClassicLinkDnsSupport' :: Maybe Natural
maxResults = Maybe Natural
a} :: DescribeVpcClassicLinkDnsSupport)

-- | The token for the next page of results.
describeVpcClassicLinkDnsSupport_nextToken :: Lens.Lens' DescribeVpcClassicLinkDnsSupport (Prelude.Maybe Prelude.Text)
describeVpcClassicLinkDnsSupport_nextToken :: Lens' DescribeVpcClassicLinkDnsSupport (Maybe Text)
describeVpcClassicLinkDnsSupport_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeVpcClassicLinkDnsSupport' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:DescribeVpcClassicLinkDnsSupport' :: DescribeVpcClassicLinkDnsSupport -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: DescribeVpcClassicLinkDnsSupport
s@DescribeVpcClassicLinkDnsSupport' {} Maybe Text
a -> DescribeVpcClassicLinkDnsSupport
s {$sel:nextToken:DescribeVpcClassicLinkDnsSupport' :: Maybe Text
nextToken = Maybe Text
a} :: DescribeVpcClassicLinkDnsSupport)

-- | One or more VPC IDs.
describeVpcClassicLinkDnsSupport_vpcIds :: Lens.Lens' DescribeVpcClassicLinkDnsSupport (Prelude.Maybe [Prelude.Text])
describeVpcClassicLinkDnsSupport_vpcIds :: Lens' DescribeVpcClassicLinkDnsSupport (Maybe [Text])
describeVpcClassicLinkDnsSupport_vpcIds = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeVpcClassicLinkDnsSupport' {Maybe [Text]
vpcIds :: Maybe [Text]
$sel:vpcIds:DescribeVpcClassicLinkDnsSupport' :: DescribeVpcClassicLinkDnsSupport -> Maybe [Text]
vpcIds} -> Maybe [Text]
vpcIds) (\s :: DescribeVpcClassicLinkDnsSupport
s@DescribeVpcClassicLinkDnsSupport' {} Maybe [Text]
a -> DescribeVpcClassicLinkDnsSupport
s {$sel:vpcIds:DescribeVpcClassicLinkDnsSupport' :: Maybe [Text]
vpcIds = Maybe [Text]
a} :: DescribeVpcClassicLinkDnsSupport) 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.AWSPager
    DescribeVpcClassicLinkDnsSupport
  where
  page :: DescribeVpcClassicLinkDnsSupport
-> AWSResponse DescribeVpcClassicLinkDnsSupport
-> Maybe DescribeVpcClassicLinkDnsSupport
page DescribeVpcClassicLinkDnsSupport
rq AWSResponse DescribeVpcClassicLinkDnsSupport
rs
    | forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse DescribeVpcClassicLinkDnsSupport
rs
            forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' DescribeVpcClassicLinkDnsSupportResponse (Maybe Text)
describeVpcClassicLinkDnsSupportResponse_nextToken
            forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
        ) =
        forall a. Maybe a
Prelude.Nothing
    | forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse DescribeVpcClassicLinkDnsSupport
rs
            forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens'
  DescribeVpcClassicLinkDnsSupportResponse
  (Maybe [ClassicLinkDnsSupport])
describeVpcClassicLinkDnsSupportResponse_vpcs
            forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
        ) =
        forall a. Maybe a
Prelude.Nothing
    | Bool
Prelude.otherwise =
        forall a. a -> Maybe a
Prelude.Just
          forall a b. (a -> b) -> a -> b
Prelude.$ DescribeVpcClassicLinkDnsSupport
rq
          forall a b. a -> (a -> b) -> b
Prelude.& Lens' DescribeVpcClassicLinkDnsSupport (Maybe Text)
describeVpcClassicLinkDnsSupport_nextToken
          forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse DescribeVpcClassicLinkDnsSupport
rs
          forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' DescribeVpcClassicLinkDnsSupportResponse (Maybe Text)
describeVpcClassicLinkDnsSupportResponse_nextToken
          forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just

instance
  Core.AWSRequest
    DescribeVpcClassicLinkDnsSupport
  where
  type
    AWSResponse DescribeVpcClassicLinkDnsSupport =
      DescribeVpcClassicLinkDnsSupportResponse
  request :: (Service -> Service)
-> DescribeVpcClassicLinkDnsSupport
-> Request DescribeVpcClassicLinkDnsSupport
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 DescribeVpcClassicLinkDnsSupport
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse (AWSResponse DescribeVpcClassicLinkDnsSupport)))
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 Text
-> Maybe [ClassicLinkDnsSupport]
-> Int
-> DescribeVpcClassicLinkDnsSupportResponse
DescribeVpcClassicLinkDnsSupportResponse'
            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
"nextToken")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( [Node]
x
                            forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"vpcs"
                            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
    DescribeVpcClassicLinkDnsSupport
  where
  hashWithSalt :: Int -> DescribeVpcClassicLinkDnsSupport -> Int
hashWithSalt
    Int
_salt
    DescribeVpcClassicLinkDnsSupport' {Maybe Natural
Maybe [Text]
Maybe Text
vpcIds :: Maybe [Text]
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:vpcIds:DescribeVpcClassicLinkDnsSupport' :: DescribeVpcClassicLinkDnsSupport -> Maybe [Text]
$sel:nextToken:DescribeVpcClassicLinkDnsSupport' :: DescribeVpcClassicLinkDnsSupport -> Maybe Text
$sel:maxResults:DescribeVpcClassicLinkDnsSupport' :: DescribeVpcClassicLinkDnsSupport -> Maybe Natural
..} =
      Int
_salt
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
maxResults
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
nextToken
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Text]
vpcIds

instance
  Prelude.NFData
    DescribeVpcClassicLinkDnsSupport
  where
  rnf :: DescribeVpcClassicLinkDnsSupport -> ()
rnf DescribeVpcClassicLinkDnsSupport' {Maybe Natural
Maybe [Text]
Maybe Text
vpcIds :: Maybe [Text]
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:vpcIds:DescribeVpcClassicLinkDnsSupport' :: DescribeVpcClassicLinkDnsSupport -> Maybe [Text]
$sel:nextToken:DescribeVpcClassicLinkDnsSupport' :: DescribeVpcClassicLinkDnsSupport -> Maybe Text
$sel:maxResults:DescribeVpcClassicLinkDnsSupport' :: DescribeVpcClassicLinkDnsSupport -> Maybe Natural
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
maxResults
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextToken
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Text]
vpcIds

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

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

instance
  Data.ToQuery
    DescribeVpcClassicLinkDnsSupport
  where
  toQuery :: DescribeVpcClassicLinkDnsSupport -> QueryString
toQuery DescribeVpcClassicLinkDnsSupport' {Maybe Natural
Maybe [Text]
Maybe Text
vpcIds :: Maybe [Text]
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:vpcIds:DescribeVpcClassicLinkDnsSupport' :: DescribeVpcClassicLinkDnsSupport -> Maybe [Text]
$sel:nextToken:DescribeVpcClassicLinkDnsSupport' :: DescribeVpcClassicLinkDnsSupport -> Maybe Text
$sel:maxResults:DescribeVpcClassicLinkDnsSupport' :: DescribeVpcClassicLinkDnsSupport -> Maybe Natural
..} =
    forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"Action"
          forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: ( ByteString
"DescribeVpcClassicLinkDnsSupport" ::
                      Prelude.ByteString
                  ),
        ByteString
"Version"
          forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: (ByteString
"2016-11-15" :: Prelude.ByteString),
        ByteString
"MaxResults" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Natural
maxResults,
        ByteString
"NextToken" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
nextToken,
        forall a. ToQuery a => a -> QueryString
Data.toQuery
          (forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Data.toQueryList ByteString
"VpcIds" forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Text]
vpcIds)
      ]

-- | /See:/ 'newDescribeVpcClassicLinkDnsSupportResponse' smart constructor.
data DescribeVpcClassicLinkDnsSupportResponse = DescribeVpcClassicLinkDnsSupportResponse'
  { -- | The token to use to retrieve the next page of results. This value is
    -- @null@ when there are no more results to return.
    DescribeVpcClassicLinkDnsSupportResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | Information about the ClassicLink DNS support status of the VPCs.
    DescribeVpcClassicLinkDnsSupportResponse
-> Maybe [ClassicLinkDnsSupport]
vpcs :: Prelude.Maybe [ClassicLinkDnsSupport],
    -- | The response's http status code.
    DescribeVpcClassicLinkDnsSupportResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (DescribeVpcClassicLinkDnsSupportResponse
-> DescribeVpcClassicLinkDnsSupportResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeVpcClassicLinkDnsSupportResponse
-> DescribeVpcClassicLinkDnsSupportResponse -> Bool
$c/= :: DescribeVpcClassicLinkDnsSupportResponse
-> DescribeVpcClassicLinkDnsSupportResponse -> Bool
== :: DescribeVpcClassicLinkDnsSupportResponse
-> DescribeVpcClassicLinkDnsSupportResponse -> Bool
$c== :: DescribeVpcClassicLinkDnsSupportResponse
-> DescribeVpcClassicLinkDnsSupportResponse -> Bool
Prelude.Eq, ReadPrec [DescribeVpcClassicLinkDnsSupportResponse]
ReadPrec DescribeVpcClassicLinkDnsSupportResponse
Int -> ReadS DescribeVpcClassicLinkDnsSupportResponse
ReadS [DescribeVpcClassicLinkDnsSupportResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeVpcClassicLinkDnsSupportResponse]
$creadListPrec :: ReadPrec [DescribeVpcClassicLinkDnsSupportResponse]
readPrec :: ReadPrec DescribeVpcClassicLinkDnsSupportResponse
$creadPrec :: ReadPrec DescribeVpcClassicLinkDnsSupportResponse
readList :: ReadS [DescribeVpcClassicLinkDnsSupportResponse]
$creadList :: ReadS [DescribeVpcClassicLinkDnsSupportResponse]
readsPrec :: Int -> ReadS DescribeVpcClassicLinkDnsSupportResponse
$creadsPrec :: Int -> ReadS DescribeVpcClassicLinkDnsSupportResponse
Prelude.Read, Int -> DescribeVpcClassicLinkDnsSupportResponse -> ShowS
[DescribeVpcClassicLinkDnsSupportResponse] -> ShowS
DescribeVpcClassicLinkDnsSupportResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeVpcClassicLinkDnsSupportResponse] -> ShowS
$cshowList :: [DescribeVpcClassicLinkDnsSupportResponse] -> ShowS
show :: DescribeVpcClassicLinkDnsSupportResponse -> String
$cshow :: DescribeVpcClassicLinkDnsSupportResponse -> String
showsPrec :: Int -> DescribeVpcClassicLinkDnsSupportResponse -> ShowS
$cshowsPrec :: Int -> DescribeVpcClassicLinkDnsSupportResponse -> ShowS
Prelude.Show, forall x.
Rep DescribeVpcClassicLinkDnsSupportResponse x
-> DescribeVpcClassicLinkDnsSupportResponse
forall x.
DescribeVpcClassicLinkDnsSupportResponse
-> Rep DescribeVpcClassicLinkDnsSupportResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeVpcClassicLinkDnsSupportResponse x
-> DescribeVpcClassicLinkDnsSupportResponse
$cfrom :: forall x.
DescribeVpcClassicLinkDnsSupportResponse
-> Rep DescribeVpcClassicLinkDnsSupportResponse x
Prelude.Generic)

-- |
-- Create a value of 'DescribeVpcClassicLinkDnsSupportResponse' 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:
--
-- 'nextToken', 'describeVpcClassicLinkDnsSupportResponse_nextToken' - The token to use to retrieve the next page of results. This value is
-- @null@ when there are no more results to return.
--
-- 'vpcs', 'describeVpcClassicLinkDnsSupportResponse_vpcs' - Information about the ClassicLink DNS support status of the VPCs.
--
-- 'httpStatus', 'describeVpcClassicLinkDnsSupportResponse_httpStatus' - The response's http status code.
newDescribeVpcClassicLinkDnsSupportResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  DescribeVpcClassicLinkDnsSupportResponse
newDescribeVpcClassicLinkDnsSupportResponse :: Int -> DescribeVpcClassicLinkDnsSupportResponse
newDescribeVpcClassicLinkDnsSupportResponse
  Int
pHttpStatus_ =
    DescribeVpcClassicLinkDnsSupportResponse'
      { $sel:nextToken:DescribeVpcClassicLinkDnsSupportResponse' :: Maybe Text
nextToken =
          forall a. Maybe a
Prelude.Nothing,
        $sel:vpcs:DescribeVpcClassicLinkDnsSupportResponse' :: Maybe [ClassicLinkDnsSupport]
vpcs = forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:DescribeVpcClassicLinkDnsSupportResponse' :: Int
httpStatus = Int
pHttpStatus_
      }

-- | The token to use to retrieve the next page of results. This value is
-- @null@ when there are no more results to return.
describeVpcClassicLinkDnsSupportResponse_nextToken :: Lens.Lens' DescribeVpcClassicLinkDnsSupportResponse (Prelude.Maybe Prelude.Text)
describeVpcClassicLinkDnsSupportResponse_nextToken :: Lens' DescribeVpcClassicLinkDnsSupportResponse (Maybe Text)
describeVpcClassicLinkDnsSupportResponse_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeVpcClassicLinkDnsSupportResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:DescribeVpcClassicLinkDnsSupportResponse' :: DescribeVpcClassicLinkDnsSupportResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: DescribeVpcClassicLinkDnsSupportResponse
s@DescribeVpcClassicLinkDnsSupportResponse' {} Maybe Text
a -> DescribeVpcClassicLinkDnsSupportResponse
s {$sel:nextToken:DescribeVpcClassicLinkDnsSupportResponse' :: Maybe Text
nextToken = Maybe Text
a} :: DescribeVpcClassicLinkDnsSupportResponse)

-- | Information about the ClassicLink DNS support status of the VPCs.
describeVpcClassicLinkDnsSupportResponse_vpcs :: Lens.Lens' DescribeVpcClassicLinkDnsSupportResponse (Prelude.Maybe [ClassicLinkDnsSupport])
describeVpcClassicLinkDnsSupportResponse_vpcs :: Lens'
  DescribeVpcClassicLinkDnsSupportResponse
  (Maybe [ClassicLinkDnsSupport])
describeVpcClassicLinkDnsSupportResponse_vpcs = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeVpcClassicLinkDnsSupportResponse' {Maybe [ClassicLinkDnsSupport]
vpcs :: Maybe [ClassicLinkDnsSupport]
$sel:vpcs:DescribeVpcClassicLinkDnsSupportResponse' :: DescribeVpcClassicLinkDnsSupportResponse
-> Maybe [ClassicLinkDnsSupport]
vpcs} -> Maybe [ClassicLinkDnsSupport]
vpcs) (\s :: DescribeVpcClassicLinkDnsSupportResponse
s@DescribeVpcClassicLinkDnsSupportResponse' {} Maybe [ClassicLinkDnsSupport]
a -> DescribeVpcClassicLinkDnsSupportResponse
s {$sel:vpcs:DescribeVpcClassicLinkDnsSupportResponse' :: Maybe [ClassicLinkDnsSupport]
vpcs = Maybe [ClassicLinkDnsSupport]
a} :: DescribeVpcClassicLinkDnsSupportResponse) 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.
describeVpcClassicLinkDnsSupportResponse_httpStatus :: Lens.Lens' DescribeVpcClassicLinkDnsSupportResponse Prelude.Int
describeVpcClassicLinkDnsSupportResponse_httpStatus :: Lens' DescribeVpcClassicLinkDnsSupportResponse Int
describeVpcClassicLinkDnsSupportResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeVpcClassicLinkDnsSupportResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeVpcClassicLinkDnsSupportResponse' :: DescribeVpcClassicLinkDnsSupportResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeVpcClassicLinkDnsSupportResponse
s@DescribeVpcClassicLinkDnsSupportResponse' {} Int
a -> DescribeVpcClassicLinkDnsSupportResponse
s {$sel:httpStatus:DescribeVpcClassicLinkDnsSupportResponse' :: Int
httpStatus = Int
a} :: DescribeVpcClassicLinkDnsSupportResponse)

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