{-# 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.Greengrass.GetGroupCertificateConfiguration
-- 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)
--
-- Retrieves the current configuration for the CA used by the group.
module Amazonka.Greengrass.GetGroupCertificateConfiguration
  ( -- * Creating a Request
    GetGroupCertificateConfiguration (..),
    newGetGroupCertificateConfiguration,

    -- * Request Lenses
    getGroupCertificateConfiguration_groupId,

    -- * Destructuring the Response
    GetGroupCertificateConfigurationResponse (..),
    newGetGroupCertificateConfigurationResponse,

    -- * Response Lenses
    getGroupCertificateConfigurationResponse_certificateAuthorityExpiryInMilliseconds,
    getGroupCertificateConfigurationResponse_groupId,
    getGroupCertificateConfigurationResponse_certificateExpiryInMilliseconds,
    getGroupCertificateConfigurationResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import Amazonka.Greengrass.Types
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:/ 'newGetGroupCertificateConfiguration' smart constructor.
data GetGroupCertificateConfiguration = GetGroupCertificateConfiguration'
  { -- | The ID of the Greengrass group.
    GetGroupCertificateConfiguration -> Text
groupId :: Prelude.Text
  }
  deriving (GetGroupCertificateConfiguration
-> GetGroupCertificateConfiguration -> Bool
(GetGroupCertificateConfiguration
 -> GetGroupCertificateConfiguration -> Bool)
-> (GetGroupCertificateConfiguration
    -> GetGroupCertificateConfiguration -> Bool)
-> Eq GetGroupCertificateConfiguration
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetGroupCertificateConfiguration
-> GetGroupCertificateConfiguration -> Bool
$c/= :: GetGroupCertificateConfiguration
-> GetGroupCertificateConfiguration -> Bool
== :: GetGroupCertificateConfiguration
-> GetGroupCertificateConfiguration -> Bool
$c== :: GetGroupCertificateConfiguration
-> GetGroupCertificateConfiguration -> Bool
Prelude.Eq, ReadPrec [GetGroupCertificateConfiguration]
ReadPrec GetGroupCertificateConfiguration
Int -> ReadS GetGroupCertificateConfiguration
ReadS [GetGroupCertificateConfiguration]
(Int -> ReadS GetGroupCertificateConfiguration)
-> ReadS [GetGroupCertificateConfiguration]
-> ReadPrec GetGroupCertificateConfiguration
-> ReadPrec [GetGroupCertificateConfiguration]
-> Read GetGroupCertificateConfiguration
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetGroupCertificateConfiguration]
$creadListPrec :: ReadPrec [GetGroupCertificateConfiguration]
readPrec :: ReadPrec GetGroupCertificateConfiguration
$creadPrec :: ReadPrec GetGroupCertificateConfiguration
readList :: ReadS [GetGroupCertificateConfiguration]
$creadList :: ReadS [GetGroupCertificateConfiguration]
readsPrec :: Int -> ReadS GetGroupCertificateConfiguration
$creadsPrec :: Int -> ReadS GetGroupCertificateConfiguration
Prelude.Read, Int -> GetGroupCertificateConfiguration -> ShowS
[GetGroupCertificateConfiguration] -> ShowS
GetGroupCertificateConfiguration -> String
(Int -> GetGroupCertificateConfiguration -> ShowS)
-> (GetGroupCertificateConfiguration -> String)
-> ([GetGroupCertificateConfiguration] -> ShowS)
-> Show GetGroupCertificateConfiguration
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetGroupCertificateConfiguration] -> ShowS
$cshowList :: [GetGroupCertificateConfiguration] -> ShowS
show :: GetGroupCertificateConfiguration -> String
$cshow :: GetGroupCertificateConfiguration -> String
showsPrec :: Int -> GetGroupCertificateConfiguration -> ShowS
$cshowsPrec :: Int -> GetGroupCertificateConfiguration -> ShowS
Prelude.Show, (forall x.
 GetGroupCertificateConfiguration
 -> Rep GetGroupCertificateConfiguration x)
-> (forall x.
    Rep GetGroupCertificateConfiguration x
    -> GetGroupCertificateConfiguration)
-> Generic GetGroupCertificateConfiguration
forall x.
Rep GetGroupCertificateConfiguration x
-> GetGroupCertificateConfiguration
forall x.
GetGroupCertificateConfiguration
-> Rep GetGroupCertificateConfiguration x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetGroupCertificateConfiguration x
-> GetGroupCertificateConfiguration
$cfrom :: forall x.
GetGroupCertificateConfiguration
-> Rep GetGroupCertificateConfiguration x
Prelude.Generic)

-- |
-- Create a value of 'GetGroupCertificateConfiguration' 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:
--
-- 'groupId', 'getGroupCertificateConfiguration_groupId' - The ID of the Greengrass group.
newGetGroupCertificateConfiguration ::
  -- | 'groupId'
  Prelude.Text ->
  GetGroupCertificateConfiguration
newGetGroupCertificateConfiguration :: Text -> GetGroupCertificateConfiguration
newGetGroupCertificateConfiguration Text
pGroupId_ =
  GetGroupCertificateConfiguration' :: Text -> GetGroupCertificateConfiguration
GetGroupCertificateConfiguration'
    { $sel:groupId:GetGroupCertificateConfiguration' :: Text
groupId =
        Text
pGroupId_
    }

-- | The ID of the Greengrass group.
getGroupCertificateConfiguration_groupId :: Lens.Lens' GetGroupCertificateConfiguration Prelude.Text
getGroupCertificateConfiguration_groupId :: (Text -> f Text)
-> GetGroupCertificateConfiguration
-> f GetGroupCertificateConfiguration
getGroupCertificateConfiguration_groupId = (GetGroupCertificateConfiguration -> Text)
-> (GetGroupCertificateConfiguration
    -> Text -> GetGroupCertificateConfiguration)
-> Lens
     GetGroupCertificateConfiguration
     GetGroupCertificateConfiguration
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetGroupCertificateConfiguration' {Text
groupId :: Text
$sel:groupId:GetGroupCertificateConfiguration' :: GetGroupCertificateConfiguration -> Text
groupId} -> Text
groupId) (\s :: GetGroupCertificateConfiguration
s@GetGroupCertificateConfiguration' {} Text
a -> GetGroupCertificateConfiguration
s {$sel:groupId:GetGroupCertificateConfiguration' :: Text
groupId = Text
a} :: GetGroupCertificateConfiguration)

instance
  Core.AWSRequest
    GetGroupCertificateConfiguration
  where
  type
    AWSResponse GetGroupCertificateConfiguration =
      GetGroupCertificateConfigurationResponse
  request :: GetGroupCertificateConfiguration
-> Request GetGroupCertificateConfiguration
request = Service
-> GetGroupCertificateConfiguration
-> Request GetGroupCertificateConfiguration
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
  response :: Logger
-> Service
-> Proxy GetGroupCertificateConfiguration
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse (AWSResponse GetGroupCertificateConfiguration)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse GetGroupCertificateConfiguration))
-> Logger
-> Service
-> Proxy GetGroupCertificateConfiguration
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse (AWSResponse GetGroupCertificateConfiguration)))
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 Text
-> Maybe Text
-> Maybe Text
-> Int
-> GetGroupCertificateConfigurationResponse
GetGroupCertificateConfigurationResponse'
            (Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Int
 -> GetGroupCertificateConfigurationResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Text
      -> Maybe Text -> Int -> GetGroupCertificateConfigurationResponse)
forall (f :: * -> *) a b. Functor 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
"CertificateAuthorityExpiryInMilliseconds"
                        )
            Either
  String
  (Maybe Text
   -> Maybe Text -> Int -> GetGroupCertificateConfigurationResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Text -> Int -> GetGroupCertificateConfigurationResponse)
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
"GroupId")
            Either
  String
  (Maybe Text -> Int -> GetGroupCertificateConfigurationResponse)
-> Either String (Maybe Text)
-> Either String (Int -> GetGroupCertificateConfigurationResponse)
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
"CertificateExpiryInMilliseconds")
            Either String (Int -> GetGroupCertificateConfigurationResponse)
-> Either String Int
-> Either String GetGroupCertificateConfigurationResponse
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
    GetGroupCertificateConfiguration

instance
  Prelude.NFData
    GetGroupCertificateConfiguration

instance
  Core.ToHeaders
    GetGroupCertificateConfiguration
  where
  toHeaders :: GetGroupCertificateConfiguration -> ResponseHeaders
toHeaders =
    ResponseHeaders
-> GetGroupCertificateConfiguration -> 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 GetGroupCertificateConfiguration where
  toPath :: GetGroupCertificateConfiguration -> ByteString
toPath GetGroupCertificateConfiguration' {Text
groupId :: Text
$sel:groupId:GetGroupCertificateConfiguration' :: GetGroupCertificateConfiguration -> Text
..} =
    [ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"/greengrass/groups/",
        Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
groupId,
        ByteString
"/certificateauthorities/configuration/expiry"
      ]

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

-- | /See:/ 'newGetGroupCertificateConfigurationResponse' smart constructor.
data GetGroupCertificateConfigurationResponse = GetGroupCertificateConfigurationResponse'
  { -- | The amount of time remaining before the certificate authority expires,
    -- in milliseconds.
    GetGroupCertificateConfigurationResponse -> Maybe Text
certificateAuthorityExpiryInMilliseconds :: Prelude.Maybe Prelude.Text,
    -- | The ID of the group certificate configuration.
    GetGroupCertificateConfigurationResponse -> Maybe Text
groupId :: Prelude.Maybe Prelude.Text,
    -- | The amount of time remaining before the certificate expires, in
    -- milliseconds.
    GetGroupCertificateConfigurationResponse -> Maybe Text
certificateExpiryInMilliseconds :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    GetGroupCertificateConfigurationResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (GetGroupCertificateConfigurationResponse
-> GetGroupCertificateConfigurationResponse -> Bool
(GetGroupCertificateConfigurationResponse
 -> GetGroupCertificateConfigurationResponse -> Bool)
-> (GetGroupCertificateConfigurationResponse
    -> GetGroupCertificateConfigurationResponse -> Bool)
-> Eq GetGroupCertificateConfigurationResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetGroupCertificateConfigurationResponse
-> GetGroupCertificateConfigurationResponse -> Bool
$c/= :: GetGroupCertificateConfigurationResponse
-> GetGroupCertificateConfigurationResponse -> Bool
== :: GetGroupCertificateConfigurationResponse
-> GetGroupCertificateConfigurationResponse -> Bool
$c== :: GetGroupCertificateConfigurationResponse
-> GetGroupCertificateConfigurationResponse -> Bool
Prelude.Eq, ReadPrec [GetGroupCertificateConfigurationResponse]
ReadPrec GetGroupCertificateConfigurationResponse
Int -> ReadS GetGroupCertificateConfigurationResponse
ReadS [GetGroupCertificateConfigurationResponse]
(Int -> ReadS GetGroupCertificateConfigurationResponse)
-> ReadS [GetGroupCertificateConfigurationResponse]
-> ReadPrec GetGroupCertificateConfigurationResponse
-> ReadPrec [GetGroupCertificateConfigurationResponse]
-> Read GetGroupCertificateConfigurationResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetGroupCertificateConfigurationResponse]
$creadListPrec :: ReadPrec [GetGroupCertificateConfigurationResponse]
readPrec :: ReadPrec GetGroupCertificateConfigurationResponse
$creadPrec :: ReadPrec GetGroupCertificateConfigurationResponse
readList :: ReadS [GetGroupCertificateConfigurationResponse]
$creadList :: ReadS [GetGroupCertificateConfigurationResponse]
readsPrec :: Int -> ReadS GetGroupCertificateConfigurationResponse
$creadsPrec :: Int -> ReadS GetGroupCertificateConfigurationResponse
Prelude.Read, Int -> GetGroupCertificateConfigurationResponse -> ShowS
[GetGroupCertificateConfigurationResponse] -> ShowS
GetGroupCertificateConfigurationResponse -> String
(Int -> GetGroupCertificateConfigurationResponse -> ShowS)
-> (GetGroupCertificateConfigurationResponse -> String)
-> ([GetGroupCertificateConfigurationResponse] -> ShowS)
-> Show GetGroupCertificateConfigurationResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetGroupCertificateConfigurationResponse] -> ShowS
$cshowList :: [GetGroupCertificateConfigurationResponse] -> ShowS
show :: GetGroupCertificateConfigurationResponse -> String
$cshow :: GetGroupCertificateConfigurationResponse -> String
showsPrec :: Int -> GetGroupCertificateConfigurationResponse -> ShowS
$cshowsPrec :: Int -> GetGroupCertificateConfigurationResponse -> ShowS
Prelude.Show, (forall x.
 GetGroupCertificateConfigurationResponse
 -> Rep GetGroupCertificateConfigurationResponse x)
-> (forall x.
    Rep GetGroupCertificateConfigurationResponse x
    -> GetGroupCertificateConfigurationResponse)
-> Generic GetGroupCertificateConfigurationResponse
forall x.
Rep GetGroupCertificateConfigurationResponse x
-> GetGroupCertificateConfigurationResponse
forall x.
GetGroupCertificateConfigurationResponse
-> Rep GetGroupCertificateConfigurationResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetGroupCertificateConfigurationResponse x
-> GetGroupCertificateConfigurationResponse
$cfrom :: forall x.
GetGroupCertificateConfigurationResponse
-> Rep GetGroupCertificateConfigurationResponse x
Prelude.Generic)

-- |
-- Create a value of 'GetGroupCertificateConfigurationResponse' 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:
--
-- 'certificateAuthorityExpiryInMilliseconds', 'getGroupCertificateConfigurationResponse_certificateAuthorityExpiryInMilliseconds' - The amount of time remaining before the certificate authority expires,
-- in milliseconds.
--
-- 'groupId', 'getGroupCertificateConfigurationResponse_groupId' - The ID of the group certificate configuration.
--
-- 'certificateExpiryInMilliseconds', 'getGroupCertificateConfigurationResponse_certificateExpiryInMilliseconds' - The amount of time remaining before the certificate expires, in
-- milliseconds.
--
-- 'httpStatus', 'getGroupCertificateConfigurationResponse_httpStatus' - The response's http status code.
newGetGroupCertificateConfigurationResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  GetGroupCertificateConfigurationResponse
newGetGroupCertificateConfigurationResponse :: Int -> GetGroupCertificateConfigurationResponse
newGetGroupCertificateConfigurationResponse
  Int
pHttpStatus_ =
    GetGroupCertificateConfigurationResponse' :: Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> GetGroupCertificateConfigurationResponse
GetGroupCertificateConfigurationResponse'
      { $sel:certificateAuthorityExpiryInMilliseconds:GetGroupCertificateConfigurationResponse' :: Maybe Text
certificateAuthorityExpiryInMilliseconds =
          Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:groupId:GetGroupCertificateConfigurationResponse' :: Maybe Text
groupId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:certificateExpiryInMilliseconds:GetGroupCertificateConfigurationResponse' :: Maybe Text
certificateExpiryInMilliseconds =
          Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:GetGroupCertificateConfigurationResponse' :: Int
httpStatus = Int
pHttpStatus_
      }

-- | The amount of time remaining before the certificate authority expires,
-- in milliseconds.
getGroupCertificateConfigurationResponse_certificateAuthorityExpiryInMilliseconds :: Lens.Lens' GetGroupCertificateConfigurationResponse (Prelude.Maybe Prelude.Text)
getGroupCertificateConfigurationResponse_certificateAuthorityExpiryInMilliseconds :: (Maybe Text -> f (Maybe Text))
-> GetGroupCertificateConfigurationResponse
-> f GetGroupCertificateConfigurationResponse
getGroupCertificateConfigurationResponse_certificateAuthorityExpiryInMilliseconds = (GetGroupCertificateConfigurationResponse -> Maybe Text)
-> (GetGroupCertificateConfigurationResponse
    -> Maybe Text -> GetGroupCertificateConfigurationResponse)
-> Lens
     GetGroupCertificateConfigurationResponse
     GetGroupCertificateConfigurationResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetGroupCertificateConfigurationResponse' {Maybe Text
certificateAuthorityExpiryInMilliseconds :: Maybe Text
$sel:certificateAuthorityExpiryInMilliseconds:GetGroupCertificateConfigurationResponse' :: GetGroupCertificateConfigurationResponse -> Maybe Text
certificateAuthorityExpiryInMilliseconds} -> Maybe Text
certificateAuthorityExpiryInMilliseconds) (\s :: GetGroupCertificateConfigurationResponse
s@GetGroupCertificateConfigurationResponse' {} Maybe Text
a -> GetGroupCertificateConfigurationResponse
s {$sel:certificateAuthorityExpiryInMilliseconds:GetGroupCertificateConfigurationResponse' :: Maybe Text
certificateAuthorityExpiryInMilliseconds = Maybe Text
a} :: GetGroupCertificateConfigurationResponse)

-- | The ID of the group certificate configuration.
getGroupCertificateConfigurationResponse_groupId :: Lens.Lens' GetGroupCertificateConfigurationResponse (Prelude.Maybe Prelude.Text)
getGroupCertificateConfigurationResponse_groupId :: (Maybe Text -> f (Maybe Text))
-> GetGroupCertificateConfigurationResponse
-> f GetGroupCertificateConfigurationResponse
getGroupCertificateConfigurationResponse_groupId = (GetGroupCertificateConfigurationResponse -> Maybe Text)
-> (GetGroupCertificateConfigurationResponse
    -> Maybe Text -> GetGroupCertificateConfigurationResponse)
-> Lens
     GetGroupCertificateConfigurationResponse
     GetGroupCertificateConfigurationResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetGroupCertificateConfigurationResponse' {Maybe Text
groupId :: Maybe Text
$sel:groupId:GetGroupCertificateConfigurationResponse' :: GetGroupCertificateConfigurationResponse -> Maybe Text
groupId} -> Maybe Text
groupId) (\s :: GetGroupCertificateConfigurationResponse
s@GetGroupCertificateConfigurationResponse' {} Maybe Text
a -> GetGroupCertificateConfigurationResponse
s {$sel:groupId:GetGroupCertificateConfigurationResponse' :: Maybe Text
groupId = Maybe Text
a} :: GetGroupCertificateConfigurationResponse)

-- | The amount of time remaining before the certificate expires, in
-- milliseconds.
getGroupCertificateConfigurationResponse_certificateExpiryInMilliseconds :: Lens.Lens' GetGroupCertificateConfigurationResponse (Prelude.Maybe Prelude.Text)
getGroupCertificateConfigurationResponse_certificateExpiryInMilliseconds :: (Maybe Text -> f (Maybe Text))
-> GetGroupCertificateConfigurationResponse
-> f GetGroupCertificateConfigurationResponse
getGroupCertificateConfigurationResponse_certificateExpiryInMilliseconds = (GetGroupCertificateConfigurationResponse -> Maybe Text)
-> (GetGroupCertificateConfigurationResponse
    -> Maybe Text -> GetGroupCertificateConfigurationResponse)
-> Lens
     GetGroupCertificateConfigurationResponse
     GetGroupCertificateConfigurationResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetGroupCertificateConfigurationResponse' {Maybe Text
certificateExpiryInMilliseconds :: Maybe Text
$sel:certificateExpiryInMilliseconds:GetGroupCertificateConfigurationResponse' :: GetGroupCertificateConfigurationResponse -> Maybe Text
certificateExpiryInMilliseconds} -> Maybe Text
certificateExpiryInMilliseconds) (\s :: GetGroupCertificateConfigurationResponse
s@GetGroupCertificateConfigurationResponse' {} Maybe Text
a -> GetGroupCertificateConfigurationResponse
s {$sel:certificateExpiryInMilliseconds:GetGroupCertificateConfigurationResponse' :: Maybe Text
certificateExpiryInMilliseconds = Maybe Text
a} :: GetGroupCertificateConfigurationResponse)

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

instance
  Prelude.NFData
    GetGroupCertificateConfigurationResponse