{-# 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.DeviceFarm.CreateTestGridUrl
-- 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)
--
-- Creates a signed, short-term URL that can be passed to a Selenium
-- @RemoteWebDriver@ constructor.
module Amazonka.DeviceFarm.CreateTestGridUrl
  ( -- * Creating a Request
    CreateTestGridUrl (..),
    newCreateTestGridUrl,

    -- * Request Lenses
    createTestGridUrl_projectArn,
    createTestGridUrl_expiresInSeconds,

    -- * Destructuring the Response
    CreateTestGridUrlResponse (..),
    newCreateTestGridUrlResponse,

    -- * Response Lenses
    createTestGridUrlResponse_expires,
    createTestGridUrlResponse_url,
    createTestGridUrlResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import Amazonka.DeviceFarm.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:/ 'newCreateTestGridUrl' smart constructor.
data CreateTestGridUrl = CreateTestGridUrl'
  { -- | ARN (from CreateTestGridProject or ListTestGridProjects) to associate
    -- with the short-term URL.
    CreateTestGridUrl -> Text
projectArn :: Prelude.Text,
    -- | Lifetime, in seconds, of the URL.
    CreateTestGridUrl -> Natural
expiresInSeconds :: Prelude.Natural
  }
  deriving (CreateTestGridUrl -> CreateTestGridUrl -> Bool
(CreateTestGridUrl -> CreateTestGridUrl -> Bool)
-> (CreateTestGridUrl -> CreateTestGridUrl -> Bool)
-> Eq CreateTestGridUrl
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateTestGridUrl -> CreateTestGridUrl -> Bool
$c/= :: CreateTestGridUrl -> CreateTestGridUrl -> Bool
== :: CreateTestGridUrl -> CreateTestGridUrl -> Bool
$c== :: CreateTestGridUrl -> CreateTestGridUrl -> Bool
Prelude.Eq, ReadPrec [CreateTestGridUrl]
ReadPrec CreateTestGridUrl
Int -> ReadS CreateTestGridUrl
ReadS [CreateTestGridUrl]
(Int -> ReadS CreateTestGridUrl)
-> ReadS [CreateTestGridUrl]
-> ReadPrec CreateTestGridUrl
-> ReadPrec [CreateTestGridUrl]
-> Read CreateTestGridUrl
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateTestGridUrl]
$creadListPrec :: ReadPrec [CreateTestGridUrl]
readPrec :: ReadPrec CreateTestGridUrl
$creadPrec :: ReadPrec CreateTestGridUrl
readList :: ReadS [CreateTestGridUrl]
$creadList :: ReadS [CreateTestGridUrl]
readsPrec :: Int -> ReadS CreateTestGridUrl
$creadsPrec :: Int -> ReadS CreateTestGridUrl
Prelude.Read, Int -> CreateTestGridUrl -> ShowS
[CreateTestGridUrl] -> ShowS
CreateTestGridUrl -> String
(Int -> CreateTestGridUrl -> ShowS)
-> (CreateTestGridUrl -> String)
-> ([CreateTestGridUrl] -> ShowS)
-> Show CreateTestGridUrl
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateTestGridUrl] -> ShowS
$cshowList :: [CreateTestGridUrl] -> ShowS
show :: CreateTestGridUrl -> String
$cshow :: CreateTestGridUrl -> String
showsPrec :: Int -> CreateTestGridUrl -> ShowS
$cshowsPrec :: Int -> CreateTestGridUrl -> ShowS
Prelude.Show, (forall x. CreateTestGridUrl -> Rep CreateTestGridUrl x)
-> (forall x. Rep CreateTestGridUrl x -> CreateTestGridUrl)
-> Generic CreateTestGridUrl
forall x. Rep CreateTestGridUrl x -> CreateTestGridUrl
forall x. CreateTestGridUrl -> Rep CreateTestGridUrl x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CreateTestGridUrl x -> CreateTestGridUrl
$cfrom :: forall x. CreateTestGridUrl -> Rep CreateTestGridUrl x
Prelude.Generic)

-- |
-- Create a value of 'CreateTestGridUrl' 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:
--
-- 'projectArn', 'createTestGridUrl_projectArn' - ARN (from CreateTestGridProject or ListTestGridProjects) to associate
-- with the short-term URL.
--
-- 'expiresInSeconds', 'createTestGridUrl_expiresInSeconds' - Lifetime, in seconds, of the URL.
newCreateTestGridUrl ::
  -- | 'projectArn'
  Prelude.Text ->
  -- | 'expiresInSeconds'
  Prelude.Natural ->
  CreateTestGridUrl
newCreateTestGridUrl :: Text -> Natural -> CreateTestGridUrl
newCreateTestGridUrl Text
pProjectArn_ Natural
pExpiresInSeconds_ =
  CreateTestGridUrl' :: Text -> Natural -> CreateTestGridUrl
CreateTestGridUrl'
    { $sel:projectArn:CreateTestGridUrl' :: Text
projectArn = Text
pProjectArn_,
      $sel:expiresInSeconds:CreateTestGridUrl' :: Natural
expiresInSeconds = Natural
pExpiresInSeconds_
    }

-- | ARN (from CreateTestGridProject or ListTestGridProjects) to associate
-- with the short-term URL.
createTestGridUrl_projectArn :: Lens.Lens' CreateTestGridUrl Prelude.Text
createTestGridUrl_projectArn :: (Text -> f Text) -> CreateTestGridUrl -> f CreateTestGridUrl
createTestGridUrl_projectArn = (CreateTestGridUrl -> Text)
-> (CreateTestGridUrl -> Text -> CreateTestGridUrl)
-> Lens CreateTestGridUrl CreateTestGridUrl Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateTestGridUrl' {Text
projectArn :: Text
$sel:projectArn:CreateTestGridUrl' :: CreateTestGridUrl -> Text
projectArn} -> Text
projectArn) (\s :: CreateTestGridUrl
s@CreateTestGridUrl' {} Text
a -> CreateTestGridUrl
s {$sel:projectArn:CreateTestGridUrl' :: Text
projectArn = Text
a} :: CreateTestGridUrl)

-- | Lifetime, in seconds, of the URL.
createTestGridUrl_expiresInSeconds :: Lens.Lens' CreateTestGridUrl Prelude.Natural
createTestGridUrl_expiresInSeconds :: (Natural -> f Natural) -> CreateTestGridUrl -> f CreateTestGridUrl
createTestGridUrl_expiresInSeconds = (CreateTestGridUrl -> Natural)
-> (CreateTestGridUrl -> Natural -> CreateTestGridUrl)
-> Lens CreateTestGridUrl CreateTestGridUrl Natural Natural
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateTestGridUrl' {Natural
expiresInSeconds :: Natural
$sel:expiresInSeconds:CreateTestGridUrl' :: CreateTestGridUrl -> Natural
expiresInSeconds} -> Natural
expiresInSeconds) (\s :: CreateTestGridUrl
s@CreateTestGridUrl' {} Natural
a -> CreateTestGridUrl
s {$sel:expiresInSeconds:CreateTestGridUrl' :: Natural
expiresInSeconds = Natural
a} :: CreateTestGridUrl)

instance Core.AWSRequest CreateTestGridUrl where
  type
    AWSResponse CreateTestGridUrl =
      CreateTestGridUrlResponse
  request :: CreateTestGridUrl -> Request CreateTestGridUrl
request = Service -> CreateTestGridUrl -> Request CreateTestGridUrl
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy CreateTestGridUrl
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse CreateTestGridUrl)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse CreateTestGridUrl))
-> Logger
-> Service
-> Proxy CreateTestGridUrl
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse CreateTestGridUrl)))
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 POSIX
-> Maybe (Sensitive Text) -> Int -> CreateTestGridUrlResponse
CreateTestGridUrlResponse'
            (Maybe POSIX
 -> Maybe (Sensitive Text) -> Int -> CreateTestGridUrlResponse)
-> Either String (Maybe POSIX)
-> Either
     String (Maybe (Sensitive Text) -> Int -> CreateTestGridUrlResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"expires")
            Either
  String (Maybe (Sensitive Text) -> Int -> CreateTestGridUrlResponse)
-> Either String (Maybe (Sensitive Text))
-> Either String (Int -> CreateTestGridUrlResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Sensitive Text))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"url")
            Either String (Int -> CreateTestGridUrlResponse)
-> Either String Int -> Either String CreateTestGridUrlResponse
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 CreateTestGridUrl

instance Prelude.NFData CreateTestGridUrl

instance Core.ToHeaders CreateTestGridUrl where
  toHeaders :: CreateTestGridUrl -> ResponseHeaders
toHeaders =
    ResponseHeaders -> CreateTestGridUrl -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
      ( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"X-Amz-Target"
              HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"DeviceFarm_20150623.CreateTestGridUrl" ::
                          Prelude.ByteString
                      ),
            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.ToJSON CreateTestGridUrl where
  toJSON :: CreateTestGridUrl -> Value
toJSON CreateTestGridUrl' {Natural
Text
expiresInSeconds :: Natural
projectArn :: Text
$sel:expiresInSeconds:CreateTestGridUrl' :: CreateTestGridUrl -> Natural
$sel:projectArn:CreateTestGridUrl' :: CreateTestGridUrl -> Text
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"projectArn" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
projectArn),
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
              (Text
"expiresInSeconds" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Natural
expiresInSeconds)
          ]
      )

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

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

-- | /See:/ 'newCreateTestGridUrlResponse' smart constructor.
data CreateTestGridUrlResponse = CreateTestGridUrlResponse'
  { -- | The number of seconds the URL from CreateTestGridUrlResult$url stays
    -- active.
    CreateTestGridUrlResponse -> Maybe POSIX
expires :: Prelude.Maybe Core.POSIX,
    -- | A signed URL, expiring in CreateTestGridUrlRequest$expiresInSeconds
    -- seconds, to be passed to a @RemoteWebDriver@.
    CreateTestGridUrlResponse -> Maybe (Sensitive Text)
url :: Prelude.Maybe (Core.Sensitive Prelude.Text),
    -- | The response's http status code.
    CreateTestGridUrlResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (CreateTestGridUrlResponse -> CreateTestGridUrlResponse -> Bool
(CreateTestGridUrlResponse -> CreateTestGridUrlResponse -> Bool)
-> (CreateTestGridUrlResponse -> CreateTestGridUrlResponse -> Bool)
-> Eq CreateTestGridUrlResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateTestGridUrlResponse -> CreateTestGridUrlResponse -> Bool
$c/= :: CreateTestGridUrlResponse -> CreateTestGridUrlResponse -> Bool
== :: CreateTestGridUrlResponse -> CreateTestGridUrlResponse -> Bool
$c== :: CreateTestGridUrlResponse -> CreateTestGridUrlResponse -> Bool
Prelude.Eq, Int -> CreateTestGridUrlResponse -> ShowS
[CreateTestGridUrlResponse] -> ShowS
CreateTestGridUrlResponse -> String
(Int -> CreateTestGridUrlResponse -> ShowS)
-> (CreateTestGridUrlResponse -> String)
-> ([CreateTestGridUrlResponse] -> ShowS)
-> Show CreateTestGridUrlResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateTestGridUrlResponse] -> ShowS
$cshowList :: [CreateTestGridUrlResponse] -> ShowS
show :: CreateTestGridUrlResponse -> String
$cshow :: CreateTestGridUrlResponse -> String
showsPrec :: Int -> CreateTestGridUrlResponse -> ShowS
$cshowsPrec :: Int -> CreateTestGridUrlResponse -> ShowS
Prelude.Show, (forall x.
 CreateTestGridUrlResponse -> Rep CreateTestGridUrlResponse x)
-> (forall x.
    Rep CreateTestGridUrlResponse x -> CreateTestGridUrlResponse)
-> Generic CreateTestGridUrlResponse
forall x.
Rep CreateTestGridUrlResponse x -> CreateTestGridUrlResponse
forall x.
CreateTestGridUrlResponse -> Rep CreateTestGridUrlResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateTestGridUrlResponse x -> CreateTestGridUrlResponse
$cfrom :: forall x.
CreateTestGridUrlResponse -> Rep CreateTestGridUrlResponse x
Prelude.Generic)

-- |
-- Create a value of 'CreateTestGridUrlResponse' 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:
--
-- 'expires', 'createTestGridUrlResponse_expires' - The number of seconds the URL from CreateTestGridUrlResult$url stays
-- active.
--
-- 'url', 'createTestGridUrlResponse_url' - A signed URL, expiring in CreateTestGridUrlRequest$expiresInSeconds
-- seconds, to be passed to a @RemoteWebDriver@.
--
-- 'httpStatus', 'createTestGridUrlResponse_httpStatus' - The response's http status code.
newCreateTestGridUrlResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  CreateTestGridUrlResponse
newCreateTestGridUrlResponse :: Int -> CreateTestGridUrlResponse
newCreateTestGridUrlResponse Int
pHttpStatus_ =
  CreateTestGridUrlResponse' :: Maybe POSIX
-> Maybe (Sensitive Text) -> Int -> CreateTestGridUrlResponse
CreateTestGridUrlResponse'
    { $sel:expires:CreateTestGridUrlResponse' :: Maybe POSIX
expires =
        Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:url:CreateTestGridUrlResponse' :: Maybe (Sensitive Text)
url = Maybe (Sensitive Text)
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:CreateTestGridUrlResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The number of seconds the URL from CreateTestGridUrlResult$url stays
-- active.
createTestGridUrlResponse_expires :: Lens.Lens' CreateTestGridUrlResponse (Prelude.Maybe Prelude.UTCTime)
createTestGridUrlResponse_expires :: (Maybe UTCTime -> f (Maybe UTCTime))
-> CreateTestGridUrlResponse -> f CreateTestGridUrlResponse
createTestGridUrlResponse_expires = (CreateTestGridUrlResponse -> Maybe POSIX)
-> (CreateTestGridUrlResponse
    -> Maybe POSIX -> CreateTestGridUrlResponse)
-> Lens
     CreateTestGridUrlResponse
     CreateTestGridUrlResponse
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateTestGridUrlResponse' {Maybe POSIX
expires :: Maybe POSIX
$sel:expires:CreateTestGridUrlResponse' :: CreateTestGridUrlResponse -> Maybe POSIX
expires} -> Maybe POSIX
expires) (\s :: CreateTestGridUrlResponse
s@CreateTestGridUrlResponse' {} Maybe POSIX
a -> CreateTestGridUrlResponse
s {$sel:expires:CreateTestGridUrlResponse' :: Maybe POSIX
expires = Maybe POSIX
a} :: CreateTestGridUrlResponse) ((Maybe POSIX -> f (Maybe POSIX))
 -> CreateTestGridUrlResponse -> f CreateTestGridUrlResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> CreateTestGridUrlResponse
-> f CreateTestGridUrlResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time

-- | A signed URL, expiring in CreateTestGridUrlRequest$expiresInSeconds
-- seconds, to be passed to a @RemoteWebDriver@.
createTestGridUrlResponse_url :: Lens.Lens' CreateTestGridUrlResponse (Prelude.Maybe Prelude.Text)
createTestGridUrlResponse_url :: (Maybe Text -> f (Maybe Text))
-> CreateTestGridUrlResponse -> f CreateTestGridUrlResponse
createTestGridUrlResponse_url = (CreateTestGridUrlResponse -> Maybe (Sensitive Text))
-> (CreateTestGridUrlResponse
    -> Maybe (Sensitive Text) -> CreateTestGridUrlResponse)
-> Lens
     CreateTestGridUrlResponse
     CreateTestGridUrlResponse
     (Maybe (Sensitive Text))
     (Maybe (Sensitive Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateTestGridUrlResponse' {Maybe (Sensitive Text)
url :: Maybe (Sensitive Text)
$sel:url:CreateTestGridUrlResponse' :: CreateTestGridUrlResponse -> Maybe (Sensitive Text)
url} -> Maybe (Sensitive Text)
url) (\s :: CreateTestGridUrlResponse
s@CreateTestGridUrlResponse' {} Maybe (Sensitive Text)
a -> CreateTestGridUrlResponse
s {$sel:url:CreateTestGridUrlResponse' :: Maybe (Sensitive Text)
url = Maybe (Sensitive Text)
a} :: CreateTestGridUrlResponse) ((Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
 -> CreateTestGridUrlResponse -> f CreateTestGridUrlResponse)
-> ((Maybe Text -> f (Maybe Text))
    -> Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> (Maybe Text -> f (Maybe Text))
-> CreateTestGridUrlResponse
-> f CreateTestGridUrlResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso (Sensitive Text) (Sensitive Text) Text Text
-> Iso
     (Maybe (Sensitive Text))
     (Maybe (Sensitive Text))
     (Maybe Text)
     (Maybe 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 (Sensitive Text) (Sensitive Text) Text Text
forall a. Iso' (Sensitive a) a
Core._Sensitive

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

instance Prelude.NFData CreateTestGridUrlResponse