{-# 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.CreateCarrierGateway
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Creates a carrier gateway. For more information about carrier gateways,
-- see
-- <https://docs.aws.amazon.com/wavelength/latest/developerguide/how-wavelengths-work.html#wavelength-carrier-gateway Carrier gateways>
-- in the /Amazon Web Services Wavelength Developer Guide/.
module Amazonka.EC2.CreateCarrierGateway
  ( -- * Creating a Request
    CreateCarrierGateway (..),
    newCreateCarrierGateway,

    -- * Request Lenses
    createCarrierGateway_clientToken,
    createCarrierGateway_dryRun,
    createCarrierGateway_tagSpecifications,
    createCarrierGateway_vpcId,

    -- * Destructuring the Response
    CreateCarrierGatewayResponse (..),
    newCreateCarrierGatewayResponse,

    -- * Response Lenses
    createCarrierGatewayResponse_carrierGateway,
    createCarrierGatewayResponse_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:/ 'newCreateCarrierGateway' smart constructor.
data CreateCarrierGateway = CreateCarrierGateway'
  { -- | Unique, case-sensitive identifier that you provide to ensure the
    -- idempotency of the request. For more information, see
    -- <https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html How to ensure idempotency>.
    CreateCarrierGateway -> Maybe Text
clientToken :: Prelude.Maybe Prelude.Text,
    -- | 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@.
    CreateCarrierGateway -> Maybe Bool
dryRun :: Prelude.Maybe Prelude.Bool,
    -- | The tags to associate with the carrier gateway.
    CreateCarrierGateway -> Maybe [TagSpecification]
tagSpecifications :: Prelude.Maybe [TagSpecification],
    -- | The ID of the VPC to associate with the carrier gateway.
    CreateCarrierGateway -> Text
vpcId :: Prelude.Text
  }
  deriving (CreateCarrierGateway -> CreateCarrierGateway -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateCarrierGateway -> CreateCarrierGateway -> Bool
$c/= :: CreateCarrierGateway -> CreateCarrierGateway -> Bool
== :: CreateCarrierGateway -> CreateCarrierGateway -> Bool
$c== :: CreateCarrierGateway -> CreateCarrierGateway -> Bool
Prelude.Eq, ReadPrec [CreateCarrierGateway]
ReadPrec CreateCarrierGateway
Int -> ReadS CreateCarrierGateway
ReadS [CreateCarrierGateway]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateCarrierGateway]
$creadListPrec :: ReadPrec [CreateCarrierGateway]
readPrec :: ReadPrec CreateCarrierGateway
$creadPrec :: ReadPrec CreateCarrierGateway
readList :: ReadS [CreateCarrierGateway]
$creadList :: ReadS [CreateCarrierGateway]
readsPrec :: Int -> ReadS CreateCarrierGateway
$creadsPrec :: Int -> ReadS CreateCarrierGateway
Prelude.Read, Int -> CreateCarrierGateway -> ShowS
[CreateCarrierGateway] -> ShowS
CreateCarrierGateway -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateCarrierGateway] -> ShowS
$cshowList :: [CreateCarrierGateway] -> ShowS
show :: CreateCarrierGateway -> String
$cshow :: CreateCarrierGateway -> String
showsPrec :: Int -> CreateCarrierGateway -> ShowS
$cshowsPrec :: Int -> CreateCarrierGateway -> ShowS
Prelude.Show, forall x. Rep CreateCarrierGateway x -> CreateCarrierGateway
forall x. CreateCarrierGateway -> Rep CreateCarrierGateway x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CreateCarrierGateway x -> CreateCarrierGateway
$cfrom :: forall x. CreateCarrierGateway -> Rep CreateCarrierGateway x
Prelude.Generic)

-- |
-- Create a value of 'CreateCarrierGateway' 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:
--
-- 'clientToken', 'createCarrierGateway_clientToken' - Unique, case-sensitive identifier that you provide to ensure the
-- idempotency of the request. For more information, see
-- <https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html How to ensure idempotency>.
--
-- 'dryRun', 'createCarrierGateway_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@.
--
-- 'tagSpecifications', 'createCarrierGateway_tagSpecifications' - The tags to associate with the carrier gateway.
--
-- 'vpcId', 'createCarrierGateway_vpcId' - The ID of the VPC to associate with the carrier gateway.
newCreateCarrierGateway ::
  -- | 'vpcId'
  Prelude.Text ->
  CreateCarrierGateway
newCreateCarrierGateway :: Text -> CreateCarrierGateway
newCreateCarrierGateway Text
pVpcId_ =
  CreateCarrierGateway'
    { $sel:clientToken:CreateCarrierGateway' :: Maybe Text
clientToken =
        forall a. Maybe a
Prelude.Nothing,
      $sel:dryRun:CreateCarrierGateway' :: Maybe Bool
dryRun = forall a. Maybe a
Prelude.Nothing,
      $sel:tagSpecifications:CreateCarrierGateway' :: Maybe [TagSpecification]
tagSpecifications = forall a. Maybe a
Prelude.Nothing,
      $sel:vpcId:CreateCarrierGateway' :: Text
vpcId = Text
pVpcId_
    }

-- | Unique, case-sensitive identifier that you provide to ensure the
-- idempotency of the request. For more information, see
-- <https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html How to ensure idempotency>.
createCarrierGateway_clientToken :: Lens.Lens' CreateCarrierGateway (Prelude.Maybe Prelude.Text)
createCarrierGateway_clientToken :: Lens' CreateCarrierGateway (Maybe Text)
createCarrierGateway_clientToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateCarrierGateway' {Maybe Text
clientToken :: Maybe Text
$sel:clientToken:CreateCarrierGateway' :: CreateCarrierGateway -> Maybe Text
clientToken} -> Maybe Text
clientToken) (\s :: CreateCarrierGateway
s@CreateCarrierGateway' {} Maybe Text
a -> CreateCarrierGateway
s {$sel:clientToken:CreateCarrierGateway' :: Maybe Text
clientToken = Maybe Text
a} :: CreateCarrierGateway)

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

-- | The tags to associate with the carrier gateway.
createCarrierGateway_tagSpecifications :: Lens.Lens' CreateCarrierGateway (Prelude.Maybe [TagSpecification])
createCarrierGateway_tagSpecifications :: Lens' CreateCarrierGateway (Maybe [TagSpecification])
createCarrierGateway_tagSpecifications = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateCarrierGateway' {Maybe [TagSpecification]
tagSpecifications :: Maybe [TagSpecification]
$sel:tagSpecifications:CreateCarrierGateway' :: CreateCarrierGateway -> Maybe [TagSpecification]
tagSpecifications} -> Maybe [TagSpecification]
tagSpecifications) (\s :: CreateCarrierGateway
s@CreateCarrierGateway' {} Maybe [TagSpecification]
a -> CreateCarrierGateway
s {$sel:tagSpecifications:CreateCarrierGateway' :: Maybe [TagSpecification]
tagSpecifications = Maybe [TagSpecification]
a} :: CreateCarrierGateway) 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

-- | The ID of the VPC to associate with the carrier gateway.
createCarrierGateway_vpcId :: Lens.Lens' CreateCarrierGateway Prelude.Text
createCarrierGateway_vpcId :: Lens' CreateCarrierGateway Text
createCarrierGateway_vpcId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateCarrierGateway' {Text
vpcId :: Text
$sel:vpcId:CreateCarrierGateway' :: CreateCarrierGateway -> Text
vpcId} -> Text
vpcId) (\s :: CreateCarrierGateway
s@CreateCarrierGateway' {} Text
a -> CreateCarrierGateway
s {$sel:vpcId:CreateCarrierGateway' :: Text
vpcId = Text
a} :: CreateCarrierGateway)

instance Core.AWSRequest CreateCarrierGateway where
  type
    AWSResponse CreateCarrierGateway =
      CreateCarrierGatewayResponse
  request :: (Service -> Service)
-> CreateCarrierGateway -> Request CreateCarrierGateway
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 CreateCarrierGateway
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse CreateCarrierGateway)))
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 CarrierGateway -> Int -> CreateCarrierGatewayResponse
CreateCarrierGatewayResponse'
            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
"carrierGateway")
            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 CreateCarrierGateway where
  hashWithSalt :: Int -> CreateCarrierGateway -> Int
hashWithSalt Int
_salt CreateCarrierGateway' {Maybe Bool
Maybe [TagSpecification]
Maybe Text
Text
vpcId :: Text
tagSpecifications :: Maybe [TagSpecification]
dryRun :: Maybe Bool
clientToken :: Maybe Text
$sel:vpcId:CreateCarrierGateway' :: CreateCarrierGateway -> Text
$sel:tagSpecifications:CreateCarrierGateway' :: CreateCarrierGateway -> Maybe [TagSpecification]
$sel:dryRun:CreateCarrierGateway' :: CreateCarrierGateway -> Maybe Bool
$sel:clientToken:CreateCarrierGateway' :: CreateCarrierGateway -> Maybe Text
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
clientToken
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
dryRun
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [TagSpecification]
tagSpecifications
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
vpcId

instance Prelude.NFData CreateCarrierGateway where
  rnf :: CreateCarrierGateway -> ()
rnf CreateCarrierGateway' {Maybe Bool
Maybe [TagSpecification]
Maybe Text
Text
vpcId :: Text
tagSpecifications :: Maybe [TagSpecification]
dryRun :: Maybe Bool
clientToken :: Maybe Text
$sel:vpcId:CreateCarrierGateway' :: CreateCarrierGateway -> Text
$sel:tagSpecifications:CreateCarrierGateway' :: CreateCarrierGateway -> Maybe [TagSpecification]
$sel:dryRun:CreateCarrierGateway' :: CreateCarrierGateway -> Maybe Bool
$sel:clientToken:CreateCarrierGateway' :: CreateCarrierGateway -> Maybe Text
..} =
    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 Maybe Bool
dryRun
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [TagSpecification]
tagSpecifications
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
vpcId

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

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

instance Data.ToQuery CreateCarrierGateway where
  toQuery :: CreateCarrierGateway -> QueryString
toQuery CreateCarrierGateway' {Maybe Bool
Maybe [TagSpecification]
Maybe Text
Text
vpcId :: Text
tagSpecifications :: Maybe [TagSpecification]
dryRun :: Maybe Bool
clientToken :: Maybe Text
$sel:vpcId:CreateCarrierGateway' :: CreateCarrierGateway -> Text
$sel:tagSpecifications:CreateCarrierGateway' :: CreateCarrierGateway -> Maybe [TagSpecification]
$sel:dryRun:CreateCarrierGateway' :: CreateCarrierGateway -> Maybe Bool
$sel:clientToken:CreateCarrierGateway' :: CreateCarrierGateway -> Maybe Text
..} =
    forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"Action"
          forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: (ByteString
"CreateCarrierGateway" :: Prelude.ByteString),
        ByteString
"Version"
          forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: (ByteString
"2016-11-15" :: Prelude.ByteString),
        ByteString
"ClientToken" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
clientToken,
        ByteString
"DryRun" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Bool
dryRun,
        forall a. ToQuery a => a -> QueryString
Data.toQuery
          ( forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Data.toQueryList ByteString
"TagSpecification"
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [TagSpecification]
tagSpecifications
          ),
        ByteString
"VpcId" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Text
vpcId
      ]

-- | /See:/ 'newCreateCarrierGatewayResponse' smart constructor.
data CreateCarrierGatewayResponse = CreateCarrierGatewayResponse'
  { -- | Information about the carrier gateway.
    CreateCarrierGatewayResponse -> Maybe CarrierGateway
carrierGateway :: Prelude.Maybe CarrierGateway,
    -- | The response's http status code.
    CreateCarrierGatewayResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (CreateCarrierGatewayResponse
-> CreateCarrierGatewayResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateCarrierGatewayResponse
-> CreateCarrierGatewayResponse -> Bool
$c/= :: CreateCarrierGatewayResponse
-> CreateCarrierGatewayResponse -> Bool
== :: CreateCarrierGatewayResponse
-> CreateCarrierGatewayResponse -> Bool
$c== :: CreateCarrierGatewayResponse
-> CreateCarrierGatewayResponse -> Bool
Prelude.Eq, ReadPrec [CreateCarrierGatewayResponse]
ReadPrec CreateCarrierGatewayResponse
Int -> ReadS CreateCarrierGatewayResponse
ReadS [CreateCarrierGatewayResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateCarrierGatewayResponse]
$creadListPrec :: ReadPrec [CreateCarrierGatewayResponse]
readPrec :: ReadPrec CreateCarrierGatewayResponse
$creadPrec :: ReadPrec CreateCarrierGatewayResponse
readList :: ReadS [CreateCarrierGatewayResponse]
$creadList :: ReadS [CreateCarrierGatewayResponse]
readsPrec :: Int -> ReadS CreateCarrierGatewayResponse
$creadsPrec :: Int -> ReadS CreateCarrierGatewayResponse
Prelude.Read, Int -> CreateCarrierGatewayResponse -> ShowS
[CreateCarrierGatewayResponse] -> ShowS
CreateCarrierGatewayResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateCarrierGatewayResponse] -> ShowS
$cshowList :: [CreateCarrierGatewayResponse] -> ShowS
show :: CreateCarrierGatewayResponse -> String
$cshow :: CreateCarrierGatewayResponse -> String
showsPrec :: Int -> CreateCarrierGatewayResponse -> ShowS
$cshowsPrec :: Int -> CreateCarrierGatewayResponse -> ShowS
Prelude.Show, forall x.
Rep CreateCarrierGatewayResponse x -> CreateCarrierGatewayResponse
forall x.
CreateCarrierGatewayResponse -> Rep CreateCarrierGatewayResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateCarrierGatewayResponse x -> CreateCarrierGatewayResponse
$cfrom :: forall x.
CreateCarrierGatewayResponse -> Rep CreateCarrierGatewayResponse x
Prelude.Generic)

-- |
-- Create a value of 'CreateCarrierGatewayResponse' 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:
--
-- 'carrierGateway', 'createCarrierGatewayResponse_carrierGateway' - Information about the carrier gateway.
--
-- 'httpStatus', 'createCarrierGatewayResponse_httpStatus' - The response's http status code.
newCreateCarrierGatewayResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  CreateCarrierGatewayResponse
newCreateCarrierGatewayResponse :: Int -> CreateCarrierGatewayResponse
newCreateCarrierGatewayResponse Int
pHttpStatus_ =
  CreateCarrierGatewayResponse'
    { $sel:carrierGateway:CreateCarrierGatewayResponse' :: Maybe CarrierGateway
carrierGateway =
        forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:CreateCarrierGatewayResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | Information about the carrier gateway.
createCarrierGatewayResponse_carrierGateway :: Lens.Lens' CreateCarrierGatewayResponse (Prelude.Maybe CarrierGateway)
createCarrierGatewayResponse_carrierGateway :: Lens' CreateCarrierGatewayResponse (Maybe CarrierGateway)
createCarrierGatewayResponse_carrierGateway = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateCarrierGatewayResponse' {Maybe CarrierGateway
carrierGateway :: Maybe CarrierGateway
$sel:carrierGateway:CreateCarrierGatewayResponse' :: CreateCarrierGatewayResponse -> Maybe CarrierGateway
carrierGateway} -> Maybe CarrierGateway
carrierGateway) (\s :: CreateCarrierGatewayResponse
s@CreateCarrierGatewayResponse' {} Maybe CarrierGateway
a -> CreateCarrierGatewayResponse
s {$sel:carrierGateway:CreateCarrierGatewayResponse' :: Maybe CarrierGateway
carrierGateway = Maybe CarrierGateway
a} :: CreateCarrierGatewayResponse)

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

instance Prelude.NFData CreateCarrierGatewayResponse where
  rnf :: CreateCarrierGatewayResponse -> ()
rnf CreateCarrierGatewayResponse' {Int
Maybe CarrierGateway
httpStatus :: Int
carrierGateway :: Maybe CarrierGateway
$sel:httpStatus:CreateCarrierGatewayResponse' :: CreateCarrierGatewayResponse -> Int
$sel:carrierGateway:CreateCarrierGatewayResponse' :: CreateCarrierGatewayResponse -> Maybe CarrierGateway
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe CarrierGateway
carrierGateway
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus