{-# 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.GetDomainName
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Gets a domain name.
module Amazonka.ApiGatewayV2.GetDomainName
  ( -- * Creating a Request
    GetDomainName (..),
    newGetDomainName,

    -- * Request Lenses
    getDomainName_domainName,

    -- * Destructuring the Response
    GetDomainNameResponse (..),
    newGetDomainNameResponse,

    -- * Response Lenses
    getDomainNameResponse_domainNameConfigurations,
    getDomainNameResponse_domainName,
    getDomainNameResponse_mutualTlsAuthentication,
    getDomainNameResponse_apiMappingSelectionExpression,
    getDomainNameResponse_tags,
    getDomainNameResponse_httpStatus,
  )
where

import Amazonka.ApiGatewayV2.Types
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response

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

-- |
-- Create a value of 'GetDomainName' 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:
--
-- 'domainName', 'getDomainName_domainName' - The domain name.
newGetDomainName ::
  -- | 'domainName'
  Prelude.Text ->
  GetDomainName
newGetDomainName :: Text -> GetDomainName
newGetDomainName Text
pDomainName_ =
  GetDomainName' :: Text -> GetDomainName
GetDomainName' {$sel:domainName:GetDomainName' :: Text
domainName = Text
pDomainName_}

-- | The domain name.
getDomainName_domainName :: Lens.Lens' GetDomainName Prelude.Text
getDomainName_domainName :: (Text -> f Text) -> GetDomainName -> f GetDomainName
getDomainName_domainName = (GetDomainName -> Text)
-> (GetDomainName -> Text -> GetDomainName)
-> Lens GetDomainName GetDomainName Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetDomainName' {Text
domainName :: Text
$sel:domainName:GetDomainName' :: GetDomainName -> Text
domainName} -> Text
domainName) (\s :: GetDomainName
s@GetDomainName' {} Text
a -> GetDomainName
s {$sel:domainName:GetDomainName' :: Text
domainName = Text
a} :: GetDomainName)

instance Core.AWSRequest GetDomainName where
  type
    AWSResponse GetDomainName =
      GetDomainNameResponse
  request :: GetDomainName -> Request GetDomainName
request = Service -> GetDomainName -> Request GetDomainName
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
  response :: Logger
-> Service
-> Proxy GetDomainName
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse GetDomainName)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse GetDomainName))
-> Logger
-> Service
-> Proxy GetDomainName
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse GetDomainName)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
      ( \Int
s ResponseHeaders
h Object
x ->
          Maybe [DomainNameConfiguration]
-> Maybe Text
-> Maybe MutualTlsAuthentication
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetDomainNameResponse
GetDomainNameResponse'
            (Maybe [DomainNameConfiguration]
 -> Maybe Text
 -> Maybe MutualTlsAuthentication
 -> Maybe Text
 -> Maybe (HashMap Text Text)
 -> Int
 -> GetDomainNameResponse)
-> Either String (Maybe [DomainNameConfiguration])
-> Either
     String
     (Maybe Text
      -> Maybe MutualTlsAuthentication
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Int
      -> GetDomainNameResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( Object
x Object
-> Text -> Either String (Maybe (Maybe [DomainNameConfiguration]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"domainNameConfigurations"
                            Either String (Maybe (Maybe [DomainNameConfiguration]))
-> Maybe [DomainNameConfiguration]
-> Either String (Maybe [DomainNameConfiguration])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [DomainNameConfiguration]
forall a. Monoid a => a
Prelude.mempty
                        )
            Either
  String
  (Maybe Text
   -> Maybe MutualTlsAuthentication
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Int
   -> GetDomainNameResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe MutualTlsAuthentication
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Int
      -> GetDomainNameResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"domainName")
            Either
  String
  (Maybe MutualTlsAuthentication
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Int
   -> GetDomainNameResponse)
-> Either String (Maybe MutualTlsAuthentication)
-> Either
     String
     (Maybe Text
      -> Maybe (HashMap Text Text) -> Int -> GetDomainNameResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe MutualTlsAuthentication)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"mutualTlsAuthentication")
            Either
  String
  (Maybe Text
   -> Maybe (HashMap Text Text) -> Int -> GetDomainNameResponse)
-> Either String (Maybe Text)
-> Either
     String (Maybe (HashMap Text Text) -> Int -> GetDomainNameResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"apiMappingSelectionExpression")
            Either
  String (Maybe (HashMap Text Text) -> Int -> GetDomainNameResponse)
-> Either String (Maybe (HashMap Text Text))
-> Either String (Int -> GetDomainNameResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe (HashMap Text Text)))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"tags" Either String (Maybe (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text)
-> Either String (Maybe (HashMap Text Text))
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe (HashMap Text Text)
forall a. Monoid a => a
Prelude.mempty)
            Either String (Int -> GetDomainNameResponse)
-> Either String Int -> Either String GetDomainNameResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
      )

instance Prelude.Hashable GetDomainName

instance Prelude.NFData GetDomainName

instance Core.ToHeaders GetDomainName where
  toHeaders :: GetDomainName -> ResponseHeaders
toHeaders =
    ResponseHeaders -> GetDomainName -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
      ( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"Content-Type"
              HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
                          Prelude.ByteString
                      )
          ]
      )

instance Core.ToPath GetDomainName where
  toPath :: GetDomainName -> ByteString
toPath GetDomainName' {Text
domainName :: Text
$sel:domainName:GetDomainName' :: GetDomainName -> Text
..} =
    [ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ByteString
"/v2/domainnames/", Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
domainName]

instance Core.ToQuery GetDomainName where
  toQuery :: GetDomainName -> QueryString
toQuery = QueryString -> GetDomainName -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty

-- | /See:/ 'newGetDomainNameResponse' smart constructor.
data GetDomainNameResponse = GetDomainNameResponse'
  { -- | The domain name configurations.
    GetDomainNameResponse -> Maybe [DomainNameConfiguration]
domainNameConfigurations :: Prelude.Maybe [DomainNameConfiguration],
    -- | The name of the DomainName resource.
    GetDomainNameResponse -> Maybe Text
domainName :: Prelude.Maybe Prelude.Text,
    -- | The mutual TLS authentication configuration for a custom domain name.
    GetDomainNameResponse -> Maybe MutualTlsAuthentication
mutualTlsAuthentication :: Prelude.Maybe MutualTlsAuthentication,
    -- | The API mapping selection expression.
    GetDomainNameResponse -> Maybe Text
apiMappingSelectionExpression :: Prelude.Maybe Prelude.Text,
    -- | The collection of tags associated with a domain name.
    GetDomainNameResponse -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
    -- | The response's http status code.
    GetDomainNameResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (GetDomainNameResponse -> GetDomainNameResponse -> Bool
(GetDomainNameResponse -> GetDomainNameResponse -> Bool)
-> (GetDomainNameResponse -> GetDomainNameResponse -> Bool)
-> Eq GetDomainNameResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetDomainNameResponse -> GetDomainNameResponse -> Bool
$c/= :: GetDomainNameResponse -> GetDomainNameResponse -> Bool
== :: GetDomainNameResponse -> GetDomainNameResponse -> Bool
$c== :: GetDomainNameResponse -> GetDomainNameResponse -> Bool
Prelude.Eq, ReadPrec [GetDomainNameResponse]
ReadPrec GetDomainNameResponse
Int -> ReadS GetDomainNameResponse
ReadS [GetDomainNameResponse]
(Int -> ReadS GetDomainNameResponse)
-> ReadS [GetDomainNameResponse]
-> ReadPrec GetDomainNameResponse
-> ReadPrec [GetDomainNameResponse]
-> Read GetDomainNameResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetDomainNameResponse]
$creadListPrec :: ReadPrec [GetDomainNameResponse]
readPrec :: ReadPrec GetDomainNameResponse
$creadPrec :: ReadPrec GetDomainNameResponse
readList :: ReadS [GetDomainNameResponse]
$creadList :: ReadS [GetDomainNameResponse]
readsPrec :: Int -> ReadS GetDomainNameResponse
$creadsPrec :: Int -> ReadS GetDomainNameResponse
Prelude.Read, Int -> GetDomainNameResponse -> ShowS
[GetDomainNameResponse] -> ShowS
GetDomainNameResponse -> String
(Int -> GetDomainNameResponse -> ShowS)
-> (GetDomainNameResponse -> String)
-> ([GetDomainNameResponse] -> ShowS)
-> Show GetDomainNameResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetDomainNameResponse] -> ShowS
$cshowList :: [GetDomainNameResponse] -> ShowS
show :: GetDomainNameResponse -> String
$cshow :: GetDomainNameResponse -> String
showsPrec :: Int -> GetDomainNameResponse -> ShowS
$cshowsPrec :: Int -> GetDomainNameResponse -> ShowS
Prelude.Show, (forall x. GetDomainNameResponse -> Rep GetDomainNameResponse x)
-> (forall x. Rep GetDomainNameResponse x -> GetDomainNameResponse)
-> Generic GetDomainNameResponse
forall x. Rep GetDomainNameResponse x -> GetDomainNameResponse
forall x. GetDomainNameResponse -> Rep GetDomainNameResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetDomainNameResponse x -> GetDomainNameResponse
$cfrom :: forall x. GetDomainNameResponse -> Rep GetDomainNameResponse x
Prelude.Generic)

-- |
-- Create a value of 'GetDomainNameResponse' 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:
--
-- 'domainNameConfigurations', 'getDomainNameResponse_domainNameConfigurations' - The domain name configurations.
--
-- 'domainName', 'getDomainNameResponse_domainName' - The name of the DomainName resource.
--
-- 'mutualTlsAuthentication', 'getDomainNameResponse_mutualTlsAuthentication' - The mutual TLS authentication configuration for a custom domain name.
--
-- 'apiMappingSelectionExpression', 'getDomainNameResponse_apiMappingSelectionExpression' - The API mapping selection expression.
--
-- 'tags', 'getDomainNameResponse_tags' - The collection of tags associated with a domain name.
--
-- 'httpStatus', 'getDomainNameResponse_httpStatus' - The response's http status code.
newGetDomainNameResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  GetDomainNameResponse
newGetDomainNameResponse :: Int -> GetDomainNameResponse
newGetDomainNameResponse Int
pHttpStatus_ =
  GetDomainNameResponse' :: Maybe [DomainNameConfiguration]
-> Maybe Text
-> Maybe MutualTlsAuthentication
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetDomainNameResponse
GetDomainNameResponse'
    { $sel:domainNameConfigurations:GetDomainNameResponse' :: Maybe [DomainNameConfiguration]
domainNameConfigurations =
        Maybe [DomainNameConfiguration]
forall a. Maybe a
Prelude.Nothing,
      $sel:domainName:GetDomainNameResponse' :: Maybe Text
domainName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:mutualTlsAuthentication:GetDomainNameResponse' :: Maybe MutualTlsAuthentication
mutualTlsAuthentication = Maybe MutualTlsAuthentication
forall a. Maybe a
Prelude.Nothing,
      $sel:apiMappingSelectionExpression:GetDomainNameResponse' :: Maybe Text
apiMappingSelectionExpression = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:tags:GetDomainNameResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:GetDomainNameResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The domain name configurations.
getDomainNameResponse_domainNameConfigurations :: Lens.Lens' GetDomainNameResponse (Prelude.Maybe [DomainNameConfiguration])
getDomainNameResponse_domainNameConfigurations :: (Maybe [DomainNameConfiguration]
 -> f (Maybe [DomainNameConfiguration]))
-> GetDomainNameResponse -> f GetDomainNameResponse
getDomainNameResponse_domainNameConfigurations = (GetDomainNameResponse -> Maybe [DomainNameConfiguration])
-> (GetDomainNameResponse
    -> Maybe [DomainNameConfiguration] -> GetDomainNameResponse)
-> Lens
     GetDomainNameResponse
     GetDomainNameResponse
     (Maybe [DomainNameConfiguration])
     (Maybe [DomainNameConfiguration])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetDomainNameResponse' {Maybe [DomainNameConfiguration]
domainNameConfigurations :: Maybe [DomainNameConfiguration]
$sel:domainNameConfigurations:GetDomainNameResponse' :: GetDomainNameResponse -> Maybe [DomainNameConfiguration]
domainNameConfigurations} -> Maybe [DomainNameConfiguration]
domainNameConfigurations) (\s :: GetDomainNameResponse
s@GetDomainNameResponse' {} Maybe [DomainNameConfiguration]
a -> GetDomainNameResponse
s {$sel:domainNameConfigurations:GetDomainNameResponse' :: Maybe [DomainNameConfiguration]
domainNameConfigurations = Maybe [DomainNameConfiguration]
a} :: GetDomainNameResponse) ((Maybe [DomainNameConfiguration]
  -> f (Maybe [DomainNameConfiguration]))
 -> GetDomainNameResponse -> f GetDomainNameResponse)
-> ((Maybe [DomainNameConfiguration]
     -> f (Maybe [DomainNameConfiguration]))
    -> Maybe [DomainNameConfiguration]
    -> f (Maybe [DomainNameConfiguration]))
-> (Maybe [DomainNameConfiguration]
    -> f (Maybe [DomainNameConfiguration]))
-> GetDomainNameResponse
-> f GetDomainNameResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [DomainNameConfiguration]
  [DomainNameConfiguration]
  [DomainNameConfiguration]
  [DomainNameConfiguration]
-> Iso
     (Maybe [DomainNameConfiguration])
     (Maybe [DomainNameConfiguration])
     (Maybe [DomainNameConfiguration])
     (Maybe [DomainNameConfiguration])
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 AnIso
  [DomainNameConfiguration]
  [DomainNameConfiguration]
  [DomainNameConfiguration]
  [DomainNameConfiguration]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The name of the DomainName resource.
getDomainNameResponse_domainName :: Lens.Lens' GetDomainNameResponse (Prelude.Maybe Prelude.Text)
getDomainNameResponse_domainName :: (Maybe Text -> f (Maybe Text))
-> GetDomainNameResponse -> f GetDomainNameResponse
getDomainNameResponse_domainName = (GetDomainNameResponse -> Maybe Text)
-> (GetDomainNameResponse -> Maybe Text -> GetDomainNameResponse)
-> Lens
     GetDomainNameResponse
     GetDomainNameResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetDomainNameResponse' {Maybe Text
domainName :: Maybe Text
$sel:domainName:GetDomainNameResponse' :: GetDomainNameResponse -> Maybe Text
domainName} -> Maybe Text
domainName) (\s :: GetDomainNameResponse
s@GetDomainNameResponse' {} Maybe Text
a -> GetDomainNameResponse
s {$sel:domainName:GetDomainNameResponse' :: Maybe Text
domainName = Maybe Text
a} :: GetDomainNameResponse)

-- | The mutual TLS authentication configuration for a custom domain name.
getDomainNameResponse_mutualTlsAuthentication :: Lens.Lens' GetDomainNameResponse (Prelude.Maybe MutualTlsAuthentication)
getDomainNameResponse_mutualTlsAuthentication :: (Maybe MutualTlsAuthentication
 -> f (Maybe MutualTlsAuthentication))
-> GetDomainNameResponse -> f GetDomainNameResponse
getDomainNameResponse_mutualTlsAuthentication = (GetDomainNameResponse -> Maybe MutualTlsAuthentication)
-> (GetDomainNameResponse
    -> Maybe MutualTlsAuthentication -> GetDomainNameResponse)
-> Lens
     GetDomainNameResponse
     GetDomainNameResponse
     (Maybe MutualTlsAuthentication)
     (Maybe MutualTlsAuthentication)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetDomainNameResponse' {Maybe MutualTlsAuthentication
mutualTlsAuthentication :: Maybe MutualTlsAuthentication
$sel:mutualTlsAuthentication:GetDomainNameResponse' :: GetDomainNameResponse -> Maybe MutualTlsAuthentication
mutualTlsAuthentication} -> Maybe MutualTlsAuthentication
mutualTlsAuthentication) (\s :: GetDomainNameResponse
s@GetDomainNameResponse' {} Maybe MutualTlsAuthentication
a -> GetDomainNameResponse
s {$sel:mutualTlsAuthentication:GetDomainNameResponse' :: Maybe MutualTlsAuthentication
mutualTlsAuthentication = Maybe MutualTlsAuthentication
a} :: GetDomainNameResponse)

-- | The API mapping selection expression.
getDomainNameResponse_apiMappingSelectionExpression :: Lens.Lens' GetDomainNameResponse (Prelude.Maybe Prelude.Text)
getDomainNameResponse_apiMappingSelectionExpression :: (Maybe Text -> f (Maybe Text))
-> GetDomainNameResponse -> f GetDomainNameResponse
getDomainNameResponse_apiMappingSelectionExpression = (GetDomainNameResponse -> Maybe Text)
-> (GetDomainNameResponse -> Maybe Text -> GetDomainNameResponse)
-> Lens
     GetDomainNameResponse
     GetDomainNameResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetDomainNameResponse' {Maybe Text
apiMappingSelectionExpression :: Maybe Text
$sel:apiMappingSelectionExpression:GetDomainNameResponse' :: GetDomainNameResponse -> Maybe Text
apiMappingSelectionExpression} -> Maybe Text
apiMappingSelectionExpression) (\s :: GetDomainNameResponse
s@GetDomainNameResponse' {} Maybe Text
a -> GetDomainNameResponse
s {$sel:apiMappingSelectionExpression:GetDomainNameResponse' :: Maybe Text
apiMappingSelectionExpression = Maybe Text
a} :: GetDomainNameResponse)

-- | The collection of tags associated with a domain name.
getDomainNameResponse_tags :: Lens.Lens' GetDomainNameResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
getDomainNameResponse_tags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> GetDomainNameResponse -> f GetDomainNameResponse
getDomainNameResponse_tags = (GetDomainNameResponse -> Maybe (HashMap Text Text))
-> (GetDomainNameResponse
    -> Maybe (HashMap Text Text) -> GetDomainNameResponse)
-> Lens
     GetDomainNameResponse
     GetDomainNameResponse
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetDomainNameResponse' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:GetDomainNameResponse' :: GetDomainNameResponse -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: GetDomainNameResponse
s@GetDomainNameResponse' {} Maybe (HashMap Text Text)
a -> GetDomainNameResponse
s {$sel:tags:GetDomainNameResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: GetDomainNameResponse) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
 -> GetDomainNameResponse -> f GetDomainNameResponse)
-> ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
    -> Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> GetDomainNameResponse
-> f GetDomainNameResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
-> Iso
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
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 AnIso
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

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

instance Prelude.NFData GetDomainNameResponse