{-# 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.WorkSpacesWeb.UpdateTrustStore
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Updates the trust store.
module Amazonka.WorkSpacesWeb.UpdateTrustStore
  ( -- * Creating a Request
    UpdateTrustStore (..),
    newUpdateTrustStore,

    -- * Request Lenses
    updateTrustStore_certificatesToAdd,
    updateTrustStore_certificatesToDelete,
    updateTrustStore_clientToken,
    updateTrustStore_trustStoreArn,

    -- * Destructuring the Response
    UpdateTrustStoreResponse (..),
    newUpdateTrustStoreResponse,

    -- * Response Lenses
    updateTrustStoreResponse_httpStatus,
    updateTrustStoreResponse_trustStoreArn,
  )
where

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

-- | /See:/ 'newUpdateTrustStore' smart constructor.
data UpdateTrustStore = UpdateTrustStore'
  { -- | A list of CA certificates to add to the trust store.
    UpdateTrustStore -> Maybe [Base64]
certificatesToAdd :: Prelude.Maybe [Data.Base64],
    -- | A list of CA certificates to delete from a trust store.
    UpdateTrustStore -> Maybe [Text]
certificatesToDelete :: Prelude.Maybe [Prelude.Text],
    -- | A unique, case-sensitive identifier that you provide to ensure the
    -- idempotency of the request. Idempotency ensures that an API request
    -- completes only once. With an idempotent request, if the original request
    -- completes successfully, subsequent retries with the same client token
    -- return the result from the original successful request.
    --
    -- If you do not specify a client token, one is automatically generated by
    -- the AWS SDK.
    UpdateTrustStore -> Maybe Text
clientToken :: Prelude.Maybe Prelude.Text,
    -- | The ARN of the trust store.
    UpdateTrustStore -> Text
trustStoreArn :: Prelude.Text
  }
  deriving (UpdateTrustStore -> UpdateTrustStore -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateTrustStore -> UpdateTrustStore -> Bool
$c/= :: UpdateTrustStore -> UpdateTrustStore -> Bool
== :: UpdateTrustStore -> UpdateTrustStore -> Bool
$c== :: UpdateTrustStore -> UpdateTrustStore -> Bool
Prelude.Eq, ReadPrec [UpdateTrustStore]
ReadPrec UpdateTrustStore
Int -> ReadS UpdateTrustStore
ReadS [UpdateTrustStore]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateTrustStore]
$creadListPrec :: ReadPrec [UpdateTrustStore]
readPrec :: ReadPrec UpdateTrustStore
$creadPrec :: ReadPrec UpdateTrustStore
readList :: ReadS [UpdateTrustStore]
$creadList :: ReadS [UpdateTrustStore]
readsPrec :: Int -> ReadS UpdateTrustStore
$creadsPrec :: Int -> ReadS UpdateTrustStore
Prelude.Read, Int -> UpdateTrustStore -> ShowS
[UpdateTrustStore] -> ShowS
UpdateTrustStore -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateTrustStore] -> ShowS
$cshowList :: [UpdateTrustStore] -> ShowS
show :: UpdateTrustStore -> String
$cshow :: UpdateTrustStore -> String
showsPrec :: Int -> UpdateTrustStore -> ShowS
$cshowsPrec :: Int -> UpdateTrustStore -> ShowS
Prelude.Show, forall x. Rep UpdateTrustStore x -> UpdateTrustStore
forall x. UpdateTrustStore -> Rep UpdateTrustStore x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep UpdateTrustStore x -> UpdateTrustStore
$cfrom :: forall x. UpdateTrustStore -> Rep UpdateTrustStore x
Prelude.Generic)

-- |
-- Create a value of 'UpdateTrustStore' 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:
--
-- 'certificatesToAdd', 'updateTrustStore_certificatesToAdd' - A list of CA certificates to add to the trust store.
--
-- 'certificatesToDelete', 'updateTrustStore_certificatesToDelete' - A list of CA certificates to delete from a trust store.
--
-- 'clientToken', 'updateTrustStore_clientToken' - A unique, case-sensitive identifier that you provide to ensure the
-- idempotency of the request. Idempotency ensures that an API request
-- completes only once. With an idempotent request, if the original request
-- completes successfully, subsequent retries with the same client token
-- return the result from the original successful request.
--
-- If you do not specify a client token, one is automatically generated by
-- the AWS SDK.
--
-- 'trustStoreArn', 'updateTrustStore_trustStoreArn' - The ARN of the trust store.
newUpdateTrustStore ::
  -- | 'trustStoreArn'
  Prelude.Text ->
  UpdateTrustStore
newUpdateTrustStore :: Text -> UpdateTrustStore
newUpdateTrustStore Text
pTrustStoreArn_ =
  UpdateTrustStore'
    { $sel:certificatesToAdd:UpdateTrustStore' :: Maybe [Base64]
certificatesToAdd =
        forall a. Maybe a
Prelude.Nothing,
      $sel:certificatesToDelete:UpdateTrustStore' :: Maybe [Text]
certificatesToDelete = forall a. Maybe a
Prelude.Nothing,
      $sel:clientToken:UpdateTrustStore' :: Maybe Text
clientToken = forall a. Maybe a
Prelude.Nothing,
      $sel:trustStoreArn:UpdateTrustStore' :: Text
trustStoreArn = Text
pTrustStoreArn_
    }

-- | A list of CA certificates to add to the trust store.
updateTrustStore_certificatesToAdd :: Lens.Lens' UpdateTrustStore (Prelude.Maybe [Prelude.ByteString])
updateTrustStore_certificatesToAdd :: Lens' UpdateTrustStore (Maybe [ByteString])
updateTrustStore_certificatesToAdd = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateTrustStore' {Maybe [Base64]
certificatesToAdd :: Maybe [Base64]
$sel:certificatesToAdd:UpdateTrustStore' :: UpdateTrustStore -> Maybe [Base64]
certificatesToAdd} -> Maybe [Base64]
certificatesToAdd) (\s :: UpdateTrustStore
s@UpdateTrustStore' {} Maybe [Base64]
a -> UpdateTrustStore
s {$sel:certificatesToAdd:UpdateTrustStore' :: Maybe [Base64]
certificatesToAdd = Maybe [Base64]
a} :: UpdateTrustStore) 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

-- | A list of CA certificates to delete from a trust store.
updateTrustStore_certificatesToDelete :: Lens.Lens' UpdateTrustStore (Prelude.Maybe [Prelude.Text])
updateTrustStore_certificatesToDelete :: Lens' UpdateTrustStore (Maybe [Text])
updateTrustStore_certificatesToDelete = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateTrustStore' {Maybe [Text]
certificatesToDelete :: Maybe [Text]
$sel:certificatesToDelete:UpdateTrustStore' :: UpdateTrustStore -> Maybe [Text]
certificatesToDelete} -> Maybe [Text]
certificatesToDelete) (\s :: UpdateTrustStore
s@UpdateTrustStore' {} Maybe [Text]
a -> UpdateTrustStore
s {$sel:certificatesToDelete:UpdateTrustStore' :: Maybe [Text]
certificatesToDelete = Maybe [Text]
a} :: UpdateTrustStore) 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

-- | A unique, case-sensitive identifier that you provide to ensure the
-- idempotency of the request. Idempotency ensures that an API request
-- completes only once. With an idempotent request, if the original request
-- completes successfully, subsequent retries with the same client token
-- return the result from the original successful request.
--
-- If you do not specify a client token, one is automatically generated by
-- the AWS SDK.
updateTrustStore_clientToken :: Lens.Lens' UpdateTrustStore (Prelude.Maybe Prelude.Text)
updateTrustStore_clientToken :: Lens' UpdateTrustStore (Maybe Text)
updateTrustStore_clientToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateTrustStore' {Maybe Text
clientToken :: Maybe Text
$sel:clientToken:UpdateTrustStore' :: UpdateTrustStore -> Maybe Text
clientToken} -> Maybe Text
clientToken) (\s :: UpdateTrustStore
s@UpdateTrustStore' {} Maybe Text
a -> UpdateTrustStore
s {$sel:clientToken:UpdateTrustStore' :: Maybe Text
clientToken = Maybe Text
a} :: UpdateTrustStore)

-- | The ARN of the trust store.
updateTrustStore_trustStoreArn :: Lens.Lens' UpdateTrustStore Prelude.Text
updateTrustStore_trustStoreArn :: Lens' UpdateTrustStore Text
updateTrustStore_trustStoreArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateTrustStore' {Text
trustStoreArn :: Text
$sel:trustStoreArn:UpdateTrustStore' :: UpdateTrustStore -> Text
trustStoreArn} -> Text
trustStoreArn) (\s :: UpdateTrustStore
s@UpdateTrustStore' {} Text
a -> UpdateTrustStore
s {$sel:trustStoreArn:UpdateTrustStore' :: Text
trustStoreArn = Text
a} :: UpdateTrustStore)

instance Core.AWSRequest UpdateTrustStore where
  type
    AWSResponse UpdateTrustStore =
      UpdateTrustStoreResponse
  request :: (Service -> Service)
-> UpdateTrustStore -> Request UpdateTrustStore
request Service -> Service
overrides =
    forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.patchJSON (Service -> Service
overrides Service
defaultService)
  response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy UpdateTrustStore
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse UpdateTrustStore)))
response =
    forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
      ( \Int
s ResponseHeaders
h Object
x ->
          Int -> Text -> UpdateTrustStoreResponse
UpdateTrustStoreResponse'
            forall (f :: * -> *) a b. Functor 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))
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String a
Data..:> Key
"trustStoreArn")
      )

instance Prelude.Hashable UpdateTrustStore where
  hashWithSalt :: Int -> UpdateTrustStore -> Int
hashWithSalt Int
_salt UpdateTrustStore' {Maybe [Text]
Maybe [Base64]
Maybe Text
Text
trustStoreArn :: Text
clientToken :: Maybe Text
certificatesToDelete :: Maybe [Text]
certificatesToAdd :: Maybe [Base64]
$sel:trustStoreArn:UpdateTrustStore' :: UpdateTrustStore -> Text
$sel:clientToken:UpdateTrustStore' :: UpdateTrustStore -> Maybe Text
$sel:certificatesToDelete:UpdateTrustStore' :: UpdateTrustStore -> Maybe [Text]
$sel:certificatesToAdd:UpdateTrustStore' :: UpdateTrustStore -> Maybe [Base64]
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Base64]
certificatesToAdd
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Text]
certificatesToDelete
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
clientToken
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
trustStoreArn

instance Prelude.NFData UpdateTrustStore where
  rnf :: UpdateTrustStore -> ()
rnf UpdateTrustStore' {Maybe [Text]
Maybe [Base64]
Maybe Text
Text
trustStoreArn :: Text
clientToken :: Maybe Text
certificatesToDelete :: Maybe [Text]
certificatesToAdd :: Maybe [Base64]
$sel:trustStoreArn:UpdateTrustStore' :: UpdateTrustStore -> Text
$sel:clientToken:UpdateTrustStore' :: UpdateTrustStore -> Maybe Text
$sel:certificatesToDelete:UpdateTrustStore' :: UpdateTrustStore -> Maybe [Text]
$sel:certificatesToAdd:UpdateTrustStore' :: UpdateTrustStore -> Maybe [Base64]
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe [Base64]
certificatesToAdd
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Text]
certificatesToDelete
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
clientToken
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
trustStoreArn

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

instance Data.ToJSON UpdateTrustStore where
  toJSON :: UpdateTrustStore -> Value
toJSON UpdateTrustStore' {Maybe [Text]
Maybe [Base64]
Maybe Text
Text
trustStoreArn :: Text
clientToken :: Maybe Text
certificatesToDelete :: Maybe [Text]
certificatesToAdd :: Maybe [Base64]
$sel:trustStoreArn:UpdateTrustStore' :: UpdateTrustStore -> Text
$sel:clientToken:UpdateTrustStore' :: UpdateTrustStore -> Maybe Text
$sel:certificatesToDelete:UpdateTrustStore' :: UpdateTrustStore -> Maybe [Text]
$sel:certificatesToAdd:UpdateTrustStore' :: UpdateTrustStore -> Maybe [Base64]
..} =
    [Pair] -> Value
Data.object
      ( forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Key
"certificatesToAdd" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Base64]
certificatesToAdd,
            (Key
"certificatesToDelete" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Text]
certificatesToDelete,
            (Key
"clientToken" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
clientToken
          ]
      )

instance Data.ToPath UpdateTrustStore where
  toPath :: UpdateTrustStore -> ByteString
toPath UpdateTrustStore' {Maybe [Text]
Maybe [Base64]
Maybe Text
Text
trustStoreArn :: Text
clientToken :: Maybe Text
certificatesToDelete :: Maybe [Text]
certificatesToAdd :: Maybe [Base64]
$sel:trustStoreArn:UpdateTrustStore' :: UpdateTrustStore -> Text
$sel:clientToken:UpdateTrustStore' :: UpdateTrustStore -> Maybe Text
$sel:certificatesToDelete:UpdateTrustStore' :: UpdateTrustStore -> Maybe [Text]
$sel:certificatesToAdd:UpdateTrustStore' :: UpdateTrustStore -> Maybe [Base64]
..} =
    forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ByteString
"/trustStores/", forall a. ToByteString a => a -> ByteString
Data.toBS Text
trustStoreArn]

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

-- | /See:/ 'newUpdateTrustStoreResponse' smart constructor.
data UpdateTrustStoreResponse = UpdateTrustStoreResponse'
  { -- | The response's http status code.
    UpdateTrustStoreResponse -> Int
httpStatus :: Prelude.Int,
    -- | The ARN of the trust store.
    UpdateTrustStoreResponse -> Text
trustStoreArn :: Prelude.Text
  }
  deriving (UpdateTrustStoreResponse -> UpdateTrustStoreResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateTrustStoreResponse -> UpdateTrustStoreResponse -> Bool
$c/= :: UpdateTrustStoreResponse -> UpdateTrustStoreResponse -> Bool
== :: UpdateTrustStoreResponse -> UpdateTrustStoreResponse -> Bool
$c== :: UpdateTrustStoreResponse -> UpdateTrustStoreResponse -> Bool
Prelude.Eq, ReadPrec [UpdateTrustStoreResponse]
ReadPrec UpdateTrustStoreResponse
Int -> ReadS UpdateTrustStoreResponse
ReadS [UpdateTrustStoreResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateTrustStoreResponse]
$creadListPrec :: ReadPrec [UpdateTrustStoreResponse]
readPrec :: ReadPrec UpdateTrustStoreResponse
$creadPrec :: ReadPrec UpdateTrustStoreResponse
readList :: ReadS [UpdateTrustStoreResponse]
$creadList :: ReadS [UpdateTrustStoreResponse]
readsPrec :: Int -> ReadS UpdateTrustStoreResponse
$creadsPrec :: Int -> ReadS UpdateTrustStoreResponse
Prelude.Read, Int -> UpdateTrustStoreResponse -> ShowS
[UpdateTrustStoreResponse] -> ShowS
UpdateTrustStoreResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateTrustStoreResponse] -> ShowS
$cshowList :: [UpdateTrustStoreResponse] -> ShowS
show :: UpdateTrustStoreResponse -> String
$cshow :: UpdateTrustStoreResponse -> String
showsPrec :: Int -> UpdateTrustStoreResponse -> ShowS
$cshowsPrec :: Int -> UpdateTrustStoreResponse -> ShowS
Prelude.Show, forall x.
Rep UpdateTrustStoreResponse x -> UpdateTrustStoreResponse
forall x.
UpdateTrustStoreResponse -> Rep UpdateTrustStoreResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateTrustStoreResponse x -> UpdateTrustStoreResponse
$cfrom :: forall x.
UpdateTrustStoreResponse -> Rep UpdateTrustStoreResponse x
Prelude.Generic)

-- |
-- Create a value of 'UpdateTrustStoreResponse' 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:
--
-- 'httpStatus', 'updateTrustStoreResponse_httpStatus' - The response's http status code.
--
-- 'trustStoreArn', 'updateTrustStoreResponse_trustStoreArn' - The ARN of the trust store.
newUpdateTrustStoreResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  -- | 'trustStoreArn'
  Prelude.Text ->
  UpdateTrustStoreResponse
newUpdateTrustStoreResponse :: Int -> Text -> UpdateTrustStoreResponse
newUpdateTrustStoreResponse
  Int
pHttpStatus_
  Text
pTrustStoreArn_ =
    UpdateTrustStoreResponse'
      { $sel:httpStatus:UpdateTrustStoreResponse' :: Int
httpStatus =
          Int
pHttpStatus_,
        $sel:trustStoreArn:UpdateTrustStoreResponse' :: Text
trustStoreArn = Text
pTrustStoreArn_
      }

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

-- | The ARN of the trust store.
updateTrustStoreResponse_trustStoreArn :: Lens.Lens' UpdateTrustStoreResponse Prelude.Text
updateTrustStoreResponse_trustStoreArn :: Lens' UpdateTrustStoreResponse Text
updateTrustStoreResponse_trustStoreArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateTrustStoreResponse' {Text
trustStoreArn :: Text
$sel:trustStoreArn:UpdateTrustStoreResponse' :: UpdateTrustStoreResponse -> Text
trustStoreArn} -> Text
trustStoreArn) (\s :: UpdateTrustStoreResponse
s@UpdateTrustStoreResponse' {} Text
a -> UpdateTrustStoreResponse
s {$sel:trustStoreArn:UpdateTrustStoreResponse' :: Text
trustStoreArn = Text
a} :: UpdateTrustStoreResponse)

instance Prelude.NFData UpdateTrustStoreResponse where
  rnf :: UpdateTrustStoreResponse -> ()
rnf UpdateTrustStoreResponse' {Int
Text
trustStoreArn :: Text
httpStatus :: Int
$sel:trustStoreArn:UpdateTrustStoreResponse' :: UpdateTrustStoreResponse -> Text
$sel:httpStatus:UpdateTrustStoreResponse' :: UpdateTrustStoreResponse -> Int
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
trustStoreArn