{-# 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.GetVerifiedAccessEndpointPolicy
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Get the Verified Access policy associated with the endpoint.
module Amazonka.EC2.GetVerifiedAccessEndpointPolicy
  ( -- * Creating a Request
    GetVerifiedAccessEndpointPolicy (..),
    newGetVerifiedAccessEndpointPolicy,

    -- * Request Lenses
    getVerifiedAccessEndpointPolicy_dryRun,
    getVerifiedAccessEndpointPolicy_verifiedAccessEndpointId,

    -- * Destructuring the Response
    GetVerifiedAccessEndpointPolicyResponse (..),
    newGetVerifiedAccessEndpointPolicyResponse,

    -- * Response Lenses
    getVerifiedAccessEndpointPolicyResponse_policyDocument,
    getVerifiedAccessEndpointPolicyResponse_policyEnabled,
    getVerifiedAccessEndpointPolicyResponse_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:/ 'newGetVerifiedAccessEndpointPolicy' smart constructor.
data GetVerifiedAccessEndpointPolicy = GetVerifiedAccessEndpointPolicy'
  { -- | 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@.
    GetVerifiedAccessEndpointPolicy -> Maybe Bool
dryRun :: Prelude.Maybe Prelude.Bool,
    -- | The ID of the Amazon Web Services Verified Access endpoint.
    GetVerifiedAccessEndpointPolicy -> Text
verifiedAccessEndpointId :: Prelude.Text
  }
  deriving (GetVerifiedAccessEndpointPolicy
-> GetVerifiedAccessEndpointPolicy -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetVerifiedAccessEndpointPolicy
-> GetVerifiedAccessEndpointPolicy -> Bool
$c/= :: GetVerifiedAccessEndpointPolicy
-> GetVerifiedAccessEndpointPolicy -> Bool
== :: GetVerifiedAccessEndpointPolicy
-> GetVerifiedAccessEndpointPolicy -> Bool
$c== :: GetVerifiedAccessEndpointPolicy
-> GetVerifiedAccessEndpointPolicy -> Bool
Prelude.Eq, ReadPrec [GetVerifiedAccessEndpointPolicy]
ReadPrec GetVerifiedAccessEndpointPolicy
Int -> ReadS GetVerifiedAccessEndpointPolicy
ReadS [GetVerifiedAccessEndpointPolicy]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetVerifiedAccessEndpointPolicy]
$creadListPrec :: ReadPrec [GetVerifiedAccessEndpointPolicy]
readPrec :: ReadPrec GetVerifiedAccessEndpointPolicy
$creadPrec :: ReadPrec GetVerifiedAccessEndpointPolicy
readList :: ReadS [GetVerifiedAccessEndpointPolicy]
$creadList :: ReadS [GetVerifiedAccessEndpointPolicy]
readsPrec :: Int -> ReadS GetVerifiedAccessEndpointPolicy
$creadsPrec :: Int -> ReadS GetVerifiedAccessEndpointPolicy
Prelude.Read, Int -> GetVerifiedAccessEndpointPolicy -> ShowS
[GetVerifiedAccessEndpointPolicy] -> ShowS
GetVerifiedAccessEndpointPolicy -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetVerifiedAccessEndpointPolicy] -> ShowS
$cshowList :: [GetVerifiedAccessEndpointPolicy] -> ShowS
show :: GetVerifiedAccessEndpointPolicy -> String
$cshow :: GetVerifiedAccessEndpointPolicy -> String
showsPrec :: Int -> GetVerifiedAccessEndpointPolicy -> ShowS
$cshowsPrec :: Int -> GetVerifiedAccessEndpointPolicy -> ShowS
Prelude.Show, forall x.
Rep GetVerifiedAccessEndpointPolicy x
-> GetVerifiedAccessEndpointPolicy
forall x.
GetVerifiedAccessEndpointPolicy
-> Rep GetVerifiedAccessEndpointPolicy x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetVerifiedAccessEndpointPolicy x
-> GetVerifiedAccessEndpointPolicy
$cfrom :: forall x.
GetVerifiedAccessEndpointPolicy
-> Rep GetVerifiedAccessEndpointPolicy x
Prelude.Generic)

-- |
-- Create a value of 'GetVerifiedAccessEndpointPolicy' 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', 'getVerifiedAccessEndpointPolicy_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@.
--
-- 'verifiedAccessEndpointId', 'getVerifiedAccessEndpointPolicy_verifiedAccessEndpointId' - The ID of the Amazon Web Services Verified Access endpoint.
newGetVerifiedAccessEndpointPolicy ::
  -- | 'verifiedAccessEndpointId'
  Prelude.Text ->
  GetVerifiedAccessEndpointPolicy
newGetVerifiedAccessEndpointPolicy :: Text -> GetVerifiedAccessEndpointPolicy
newGetVerifiedAccessEndpointPolicy
  Text
pVerifiedAccessEndpointId_ =
    GetVerifiedAccessEndpointPolicy'
      { $sel:dryRun:GetVerifiedAccessEndpointPolicy' :: Maybe Bool
dryRun =
          forall a. Maybe a
Prelude.Nothing,
        $sel:verifiedAccessEndpointId:GetVerifiedAccessEndpointPolicy' :: Text
verifiedAccessEndpointId =
          Text
pVerifiedAccessEndpointId_
      }

-- | 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@.
getVerifiedAccessEndpointPolicy_dryRun :: Lens.Lens' GetVerifiedAccessEndpointPolicy (Prelude.Maybe Prelude.Bool)
getVerifiedAccessEndpointPolicy_dryRun :: Lens' GetVerifiedAccessEndpointPolicy (Maybe Bool)
getVerifiedAccessEndpointPolicy_dryRun = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetVerifiedAccessEndpointPolicy' {Maybe Bool
dryRun :: Maybe Bool
$sel:dryRun:GetVerifiedAccessEndpointPolicy' :: GetVerifiedAccessEndpointPolicy -> Maybe Bool
dryRun} -> Maybe Bool
dryRun) (\s :: GetVerifiedAccessEndpointPolicy
s@GetVerifiedAccessEndpointPolicy' {} Maybe Bool
a -> GetVerifiedAccessEndpointPolicy
s {$sel:dryRun:GetVerifiedAccessEndpointPolicy' :: Maybe Bool
dryRun = Maybe Bool
a} :: GetVerifiedAccessEndpointPolicy)

-- | The ID of the Amazon Web Services Verified Access endpoint.
getVerifiedAccessEndpointPolicy_verifiedAccessEndpointId :: Lens.Lens' GetVerifiedAccessEndpointPolicy Prelude.Text
getVerifiedAccessEndpointPolicy_verifiedAccessEndpointId :: Lens' GetVerifiedAccessEndpointPolicy Text
getVerifiedAccessEndpointPolicy_verifiedAccessEndpointId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetVerifiedAccessEndpointPolicy' {Text
verifiedAccessEndpointId :: Text
$sel:verifiedAccessEndpointId:GetVerifiedAccessEndpointPolicy' :: GetVerifiedAccessEndpointPolicy -> Text
verifiedAccessEndpointId} -> Text
verifiedAccessEndpointId) (\s :: GetVerifiedAccessEndpointPolicy
s@GetVerifiedAccessEndpointPolicy' {} Text
a -> GetVerifiedAccessEndpointPolicy
s {$sel:verifiedAccessEndpointId:GetVerifiedAccessEndpointPolicy' :: Text
verifiedAccessEndpointId = Text
a} :: GetVerifiedAccessEndpointPolicy)

instance
  Core.AWSRequest
    GetVerifiedAccessEndpointPolicy
  where
  type
    AWSResponse GetVerifiedAccessEndpointPolicy =
      GetVerifiedAccessEndpointPolicyResponse
  request :: (Service -> Service)
-> GetVerifiedAccessEndpointPolicy
-> Request GetVerifiedAccessEndpointPolicy
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 GetVerifiedAccessEndpointPolicy
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse (AWSResponse GetVerifiedAccessEndpointPolicy)))
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 Bool -> Int -> GetVerifiedAccessEndpointPolicyResponse
GetVerifiedAccessEndpointPolicyResponse'
            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
"policyDocument")
            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
"policyEnabled")
            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
    GetVerifiedAccessEndpointPolicy
  where
  hashWithSalt :: Int -> GetVerifiedAccessEndpointPolicy -> Int
hashWithSalt
    Int
_salt
    GetVerifiedAccessEndpointPolicy' {Maybe Bool
Text
verifiedAccessEndpointId :: Text
dryRun :: Maybe Bool
$sel:verifiedAccessEndpointId:GetVerifiedAccessEndpointPolicy' :: GetVerifiedAccessEndpointPolicy -> Text
$sel:dryRun:GetVerifiedAccessEndpointPolicy' :: GetVerifiedAccessEndpointPolicy -> 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` Text
verifiedAccessEndpointId

instance
  Prelude.NFData
    GetVerifiedAccessEndpointPolicy
  where
  rnf :: GetVerifiedAccessEndpointPolicy -> ()
rnf GetVerifiedAccessEndpointPolicy' {Maybe Bool
Text
verifiedAccessEndpointId :: Text
dryRun :: Maybe Bool
$sel:verifiedAccessEndpointId:GetVerifiedAccessEndpointPolicy' :: GetVerifiedAccessEndpointPolicy -> Text
$sel:dryRun:GetVerifiedAccessEndpointPolicy' :: GetVerifiedAccessEndpointPolicy -> 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 Text
verifiedAccessEndpointId

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

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

instance Data.ToQuery GetVerifiedAccessEndpointPolicy where
  toQuery :: GetVerifiedAccessEndpointPolicy -> QueryString
toQuery GetVerifiedAccessEndpointPolicy' {Maybe Bool
Text
verifiedAccessEndpointId :: Text
dryRun :: Maybe Bool
$sel:verifiedAccessEndpointId:GetVerifiedAccessEndpointPolicy' :: GetVerifiedAccessEndpointPolicy -> Text
$sel:dryRun:GetVerifiedAccessEndpointPolicy' :: GetVerifiedAccessEndpointPolicy -> Maybe Bool
..} =
    forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"Action"
          forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: ( ByteString
"GetVerifiedAccessEndpointPolicy" ::
                      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,
        ByteString
"VerifiedAccessEndpointId"
          forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Text
verifiedAccessEndpointId
      ]

-- | /See:/ 'newGetVerifiedAccessEndpointPolicyResponse' smart constructor.
data GetVerifiedAccessEndpointPolicyResponse = GetVerifiedAccessEndpointPolicyResponse'
  { -- | The Amazon Web Services Verified Access policy document.
    GetVerifiedAccessEndpointPolicyResponse -> Maybe Text
policyDocument :: Prelude.Maybe Prelude.Text,
    -- | The status of the Verified Access policy.
    GetVerifiedAccessEndpointPolicyResponse -> Maybe Bool
policyEnabled :: Prelude.Maybe Prelude.Bool,
    -- | The response's http status code.
    GetVerifiedAccessEndpointPolicyResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (GetVerifiedAccessEndpointPolicyResponse
-> GetVerifiedAccessEndpointPolicyResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetVerifiedAccessEndpointPolicyResponse
-> GetVerifiedAccessEndpointPolicyResponse -> Bool
$c/= :: GetVerifiedAccessEndpointPolicyResponse
-> GetVerifiedAccessEndpointPolicyResponse -> Bool
== :: GetVerifiedAccessEndpointPolicyResponse
-> GetVerifiedAccessEndpointPolicyResponse -> Bool
$c== :: GetVerifiedAccessEndpointPolicyResponse
-> GetVerifiedAccessEndpointPolicyResponse -> Bool
Prelude.Eq, ReadPrec [GetVerifiedAccessEndpointPolicyResponse]
ReadPrec GetVerifiedAccessEndpointPolicyResponse
Int -> ReadS GetVerifiedAccessEndpointPolicyResponse
ReadS [GetVerifiedAccessEndpointPolicyResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetVerifiedAccessEndpointPolicyResponse]
$creadListPrec :: ReadPrec [GetVerifiedAccessEndpointPolicyResponse]
readPrec :: ReadPrec GetVerifiedAccessEndpointPolicyResponse
$creadPrec :: ReadPrec GetVerifiedAccessEndpointPolicyResponse
readList :: ReadS [GetVerifiedAccessEndpointPolicyResponse]
$creadList :: ReadS [GetVerifiedAccessEndpointPolicyResponse]
readsPrec :: Int -> ReadS GetVerifiedAccessEndpointPolicyResponse
$creadsPrec :: Int -> ReadS GetVerifiedAccessEndpointPolicyResponse
Prelude.Read, Int -> GetVerifiedAccessEndpointPolicyResponse -> ShowS
[GetVerifiedAccessEndpointPolicyResponse] -> ShowS
GetVerifiedAccessEndpointPolicyResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetVerifiedAccessEndpointPolicyResponse] -> ShowS
$cshowList :: [GetVerifiedAccessEndpointPolicyResponse] -> ShowS
show :: GetVerifiedAccessEndpointPolicyResponse -> String
$cshow :: GetVerifiedAccessEndpointPolicyResponse -> String
showsPrec :: Int -> GetVerifiedAccessEndpointPolicyResponse -> ShowS
$cshowsPrec :: Int -> GetVerifiedAccessEndpointPolicyResponse -> ShowS
Prelude.Show, forall x.
Rep GetVerifiedAccessEndpointPolicyResponse x
-> GetVerifiedAccessEndpointPolicyResponse
forall x.
GetVerifiedAccessEndpointPolicyResponse
-> Rep GetVerifiedAccessEndpointPolicyResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetVerifiedAccessEndpointPolicyResponse x
-> GetVerifiedAccessEndpointPolicyResponse
$cfrom :: forall x.
GetVerifiedAccessEndpointPolicyResponse
-> Rep GetVerifiedAccessEndpointPolicyResponse x
Prelude.Generic)

-- |
-- Create a value of 'GetVerifiedAccessEndpointPolicyResponse' 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:
--
-- 'policyDocument', 'getVerifiedAccessEndpointPolicyResponse_policyDocument' - The Amazon Web Services Verified Access policy document.
--
-- 'policyEnabled', 'getVerifiedAccessEndpointPolicyResponse_policyEnabled' - The status of the Verified Access policy.
--
-- 'httpStatus', 'getVerifiedAccessEndpointPolicyResponse_httpStatus' - The response's http status code.
newGetVerifiedAccessEndpointPolicyResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  GetVerifiedAccessEndpointPolicyResponse
newGetVerifiedAccessEndpointPolicyResponse :: Int -> GetVerifiedAccessEndpointPolicyResponse
newGetVerifiedAccessEndpointPolicyResponse
  Int
pHttpStatus_ =
    GetVerifiedAccessEndpointPolicyResponse'
      { $sel:policyDocument:GetVerifiedAccessEndpointPolicyResponse' :: Maybe Text
policyDocument =
          forall a. Maybe a
Prelude.Nothing,
        $sel:policyEnabled:GetVerifiedAccessEndpointPolicyResponse' :: Maybe Bool
policyEnabled = forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:GetVerifiedAccessEndpointPolicyResponse' :: Int
httpStatus = Int
pHttpStatus_
      }

-- | The Amazon Web Services Verified Access policy document.
getVerifiedAccessEndpointPolicyResponse_policyDocument :: Lens.Lens' GetVerifiedAccessEndpointPolicyResponse (Prelude.Maybe Prelude.Text)
getVerifiedAccessEndpointPolicyResponse_policyDocument :: Lens' GetVerifiedAccessEndpointPolicyResponse (Maybe Text)
getVerifiedAccessEndpointPolicyResponse_policyDocument = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetVerifiedAccessEndpointPolicyResponse' {Maybe Text
policyDocument :: Maybe Text
$sel:policyDocument:GetVerifiedAccessEndpointPolicyResponse' :: GetVerifiedAccessEndpointPolicyResponse -> Maybe Text
policyDocument} -> Maybe Text
policyDocument) (\s :: GetVerifiedAccessEndpointPolicyResponse
s@GetVerifiedAccessEndpointPolicyResponse' {} Maybe Text
a -> GetVerifiedAccessEndpointPolicyResponse
s {$sel:policyDocument:GetVerifiedAccessEndpointPolicyResponse' :: Maybe Text
policyDocument = Maybe Text
a} :: GetVerifiedAccessEndpointPolicyResponse)

-- | The status of the Verified Access policy.
getVerifiedAccessEndpointPolicyResponse_policyEnabled :: Lens.Lens' GetVerifiedAccessEndpointPolicyResponse (Prelude.Maybe Prelude.Bool)
getVerifiedAccessEndpointPolicyResponse_policyEnabled :: Lens' GetVerifiedAccessEndpointPolicyResponse (Maybe Bool)
getVerifiedAccessEndpointPolicyResponse_policyEnabled = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetVerifiedAccessEndpointPolicyResponse' {Maybe Bool
policyEnabled :: Maybe Bool
$sel:policyEnabled:GetVerifiedAccessEndpointPolicyResponse' :: GetVerifiedAccessEndpointPolicyResponse -> Maybe Bool
policyEnabled} -> Maybe Bool
policyEnabled) (\s :: GetVerifiedAccessEndpointPolicyResponse
s@GetVerifiedAccessEndpointPolicyResponse' {} Maybe Bool
a -> GetVerifiedAccessEndpointPolicyResponse
s {$sel:policyEnabled:GetVerifiedAccessEndpointPolicyResponse' :: Maybe Bool
policyEnabled = Maybe Bool
a} :: GetVerifiedAccessEndpointPolicyResponse)

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

instance
  Prelude.NFData
    GetVerifiedAccessEndpointPolicyResponse
  where
  rnf :: GetVerifiedAccessEndpointPolicyResponse -> ()
rnf GetVerifiedAccessEndpointPolicyResponse' {Int
Maybe Bool
Maybe Text
httpStatus :: Int
policyEnabled :: Maybe Bool
policyDocument :: Maybe Text
$sel:httpStatus:GetVerifiedAccessEndpointPolicyResponse' :: GetVerifiedAccessEndpointPolicyResponse -> Int
$sel:policyEnabled:GetVerifiedAccessEndpointPolicyResponse' :: GetVerifiedAccessEndpointPolicyResponse -> Maybe Bool
$sel:policyDocument:GetVerifiedAccessEndpointPolicyResponse' :: GetVerifiedAccessEndpointPolicyResponse -> Maybe Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
policyDocument
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
policyEnabled
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus