{-# 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.AllocateAddress
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Allocates an Elastic IP address to your Amazon Web Services account.
-- After you allocate the Elastic IP address you can associate it with an
-- instance or network interface. After you release an Elastic IP address,
-- it is released to the IP address pool and can be allocated to a
-- different Amazon Web Services account.
--
-- You can allocate an Elastic IP address from an address pool owned by
-- Amazon Web Services or from an address pool created from a public IPv4
-- address range that you have brought to Amazon Web Services for use with
-- your Amazon Web Services resources using bring your own IP addresses
-- (BYOIP). For more information, see
-- <https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-byoip.html Bring Your Own IP Addresses (BYOIP)>
-- in the /Amazon Elastic Compute Cloud User Guide/.
--
-- [EC2-VPC] If you release an Elastic IP address, you might be able to
-- recover it. You cannot recover an Elastic IP address that you released
-- after it is allocated to another Amazon Web Services account. You cannot
-- recover an Elastic IP address for EC2-Classic. To attempt to recover an
-- Elastic IP address that you released, specify it in this operation.
--
-- An Elastic IP address is for use either in the EC2-Classic platform or
-- in a VPC. By default, you can allocate 5 Elastic IP addresses for
-- EC2-Classic per Region and 5 Elastic IP addresses for EC2-VPC per
-- Region.
--
-- For more information, see
-- <https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html Elastic IP Addresses>
-- in the /Amazon Elastic Compute Cloud User Guide/.
--
-- You can allocate a carrier IP address which is a public IP address from
-- a telecommunication carrier, to a network interface which resides in a
-- subnet in a Wavelength Zone (for example an EC2 instance).
--
-- We are retiring EC2-Classic. We recommend that you migrate from
-- EC2-Classic to a VPC. For more information, see
-- <https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-migrate.html Migrate from EC2-Classic to a VPC>
-- in the /Amazon Elastic Compute Cloud User Guide/.
module Amazonka.EC2.AllocateAddress
  ( -- * Creating a Request
    AllocateAddress (..),
    newAllocateAddress,

    -- * Request Lenses
    allocateAddress_address,
    allocateAddress_customerOwnedIpv4Pool,
    allocateAddress_domain,
    allocateAddress_dryRun,
    allocateAddress_networkBorderGroup,
    allocateAddress_publicIpv4Pool,
    allocateAddress_tagSpecifications,

    -- * Destructuring the Response
    AllocateAddressResponse (..),
    newAllocateAddressResponse,

    -- * Response Lenses
    allocateAddressResponse_allocationId,
    allocateAddressResponse_carrierIp,
    allocateAddressResponse_customerOwnedIp,
    allocateAddressResponse_customerOwnedIpv4Pool,
    allocateAddressResponse_domain,
    allocateAddressResponse_networkBorderGroup,
    allocateAddressResponse_publicIp,
    allocateAddressResponse_publicIpv4Pool,
    allocateAddressResponse_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:/ 'newAllocateAddress' smart constructor.
data AllocateAddress = AllocateAddress'
  { -- | [EC2-VPC] The Elastic IP address to recover or an IPv4 address from an
    -- address pool.
    AllocateAddress -> Maybe Text
address :: Prelude.Maybe Prelude.Text,
    -- | The ID of a customer-owned address pool. Use this parameter to let
    -- Amazon EC2 select an address from the address pool. Alternatively,
    -- specify a specific address from the address pool.
    AllocateAddress -> Maybe Text
customerOwnedIpv4Pool :: Prelude.Maybe Prelude.Text,
    -- | Indicates whether the Elastic IP address is for use with instances in a
    -- VPC or instances in EC2-Classic.
    --
    -- Default: If the Region supports EC2-Classic, the default is @standard@.
    -- Otherwise, the default is @vpc@.
    AllocateAddress -> Maybe DomainType
domain :: Prelude.Maybe DomainType,
    -- | 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@.
    AllocateAddress -> Maybe Bool
dryRun :: Prelude.Maybe Prelude.Bool,
    -- | A unique set of Availability Zones, Local Zones, or Wavelength Zones
    -- from which Amazon Web Services advertises IP addresses. Use this
    -- parameter to limit the IP address to this location. IP addresses cannot
    -- move between network border groups.
    --
    -- Use
    -- <https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeAvailabilityZones.html DescribeAvailabilityZones>
    -- to view the network border groups.
    --
    -- You cannot use a network border group with EC2 Classic. If you attempt
    -- this operation on EC2 Classic, you receive an
    -- @InvalidParameterCombination@ error.
    AllocateAddress -> Maybe Text
networkBorderGroup :: Prelude.Maybe Prelude.Text,
    -- | The ID of an address pool that you own. Use this parameter to let Amazon
    -- EC2 select an address from the address pool. To specify a specific
    -- address from the address pool, use the @Address@ parameter instead.
    AllocateAddress -> Maybe Text
publicIpv4Pool :: Prelude.Maybe Prelude.Text,
    -- | The tags to assign to the Elastic IP address.
    AllocateAddress -> Maybe [TagSpecification]
tagSpecifications :: Prelude.Maybe [TagSpecification]
  }
  deriving (AllocateAddress -> AllocateAddress -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AllocateAddress -> AllocateAddress -> Bool
$c/= :: AllocateAddress -> AllocateAddress -> Bool
== :: AllocateAddress -> AllocateAddress -> Bool
$c== :: AllocateAddress -> AllocateAddress -> Bool
Prelude.Eq, ReadPrec [AllocateAddress]
ReadPrec AllocateAddress
Int -> ReadS AllocateAddress
ReadS [AllocateAddress]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [AllocateAddress]
$creadListPrec :: ReadPrec [AllocateAddress]
readPrec :: ReadPrec AllocateAddress
$creadPrec :: ReadPrec AllocateAddress
readList :: ReadS [AllocateAddress]
$creadList :: ReadS [AllocateAddress]
readsPrec :: Int -> ReadS AllocateAddress
$creadsPrec :: Int -> ReadS AllocateAddress
Prelude.Read, Int -> AllocateAddress -> ShowS
[AllocateAddress] -> ShowS
AllocateAddress -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AllocateAddress] -> ShowS
$cshowList :: [AllocateAddress] -> ShowS
show :: AllocateAddress -> String
$cshow :: AllocateAddress -> String
showsPrec :: Int -> AllocateAddress -> ShowS
$cshowsPrec :: Int -> AllocateAddress -> ShowS
Prelude.Show, forall x. Rep AllocateAddress x -> AllocateAddress
forall x. AllocateAddress -> Rep AllocateAddress x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep AllocateAddress x -> AllocateAddress
$cfrom :: forall x. AllocateAddress -> Rep AllocateAddress x
Prelude.Generic)

-- |
-- Create a value of 'AllocateAddress' 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:
--
-- 'address', 'allocateAddress_address' - [EC2-VPC] The Elastic IP address to recover or an IPv4 address from an
-- address pool.
--
-- 'customerOwnedIpv4Pool', 'allocateAddress_customerOwnedIpv4Pool' - The ID of a customer-owned address pool. Use this parameter to let
-- Amazon EC2 select an address from the address pool. Alternatively,
-- specify a specific address from the address pool.
--
-- 'domain', 'allocateAddress_domain' - Indicates whether the Elastic IP address is for use with instances in a
-- VPC or instances in EC2-Classic.
--
-- Default: If the Region supports EC2-Classic, the default is @standard@.
-- Otherwise, the default is @vpc@.
--
-- 'dryRun', 'allocateAddress_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@.
--
-- 'networkBorderGroup', 'allocateAddress_networkBorderGroup' - A unique set of Availability Zones, Local Zones, or Wavelength Zones
-- from which Amazon Web Services advertises IP addresses. Use this
-- parameter to limit the IP address to this location. IP addresses cannot
-- move between network border groups.
--
-- Use
-- <https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeAvailabilityZones.html DescribeAvailabilityZones>
-- to view the network border groups.
--
-- You cannot use a network border group with EC2 Classic. If you attempt
-- this operation on EC2 Classic, you receive an
-- @InvalidParameterCombination@ error.
--
-- 'publicIpv4Pool', 'allocateAddress_publicIpv4Pool' - The ID of an address pool that you own. Use this parameter to let Amazon
-- EC2 select an address from the address pool. To specify a specific
-- address from the address pool, use the @Address@ parameter instead.
--
-- 'tagSpecifications', 'allocateAddress_tagSpecifications' - The tags to assign to the Elastic IP address.
newAllocateAddress ::
  AllocateAddress
newAllocateAddress :: AllocateAddress
newAllocateAddress =
  AllocateAddress'
    { $sel:address:AllocateAddress' :: Maybe Text
address = forall a. Maybe a
Prelude.Nothing,
      $sel:customerOwnedIpv4Pool:AllocateAddress' :: Maybe Text
customerOwnedIpv4Pool = forall a. Maybe a
Prelude.Nothing,
      $sel:domain:AllocateAddress' :: Maybe DomainType
domain = forall a. Maybe a
Prelude.Nothing,
      $sel:dryRun:AllocateAddress' :: Maybe Bool
dryRun = forall a. Maybe a
Prelude.Nothing,
      $sel:networkBorderGroup:AllocateAddress' :: Maybe Text
networkBorderGroup = forall a. Maybe a
Prelude.Nothing,
      $sel:publicIpv4Pool:AllocateAddress' :: Maybe Text
publicIpv4Pool = forall a. Maybe a
Prelude.Nothing,
      $sel:tagSpecifications:AllocateAddress' :: Maybe [TagSpecification]
tagSpecifications = forall a. Maybe a
Prelude.Nothing
    }

-- | [EC2-VPC] The Elastic IP address to recover or an IPv4 address from an
-- address pool.
allocateAddress_address :: Lens.Lens' AllocateAddress (Prelude.Maybe Prelude.Text)
allocateAddress_address :: Lens' AllocateAddress (Maybe Text)
allocateAddress_address = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AllocateAddress' {Maybe Text
address :: Maybe Text
$sel:address:AllocateAddress' :: AllocateAddress -> Maybe Text
address} -> Maybe Text
address) (\s :: AllocateAddress
s@AllocateAddress' {} Maybe Text
a -> AllocateAddress
s {$sel:address:AllocateAddress' :: Maybe Text
address = Maybe Text
a} :: AllocateAddress)

-- | The ID of a customer-owned address pool. Use this parameter to let
-- Amazon EC2 select an address from the address pool. Alternatively,
-- specify a specific address from the address pool.
allocateAddress_customerOwnedIpv4Pool :: Lens.Lens' AllocateAddress (Prelude.Maybe Prelude.Text)
allocateAddress_customerOwnedIpv4Pool :: Lens' AllocateAddress (Maybe Text)
allocateAddress_customerOwnedIpv4Pool = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AllocateAddress' {Maybe Text
customerOwnedIpv4Pool :: Maybe Text
$sel:customerOwnedIpv4Pool:AllocateAddress' :: AllocateAddress -> Maybe Text
customerOwnedIpv4Pool} -> Maybe Text
customerOwnedIpv4Pool) (\s :: AllocateAddress
s@AllocateAddress' {} Maybe Text
a -> AllocateAddress
s {$sel:customerOwnedIpv4Pool:AllocateAddress' :: Maybe Text
customerOwnedIpv4Pool = Maybe Text
a} :: AllocateAddress)

-- | Indicates whether the Elastic IP address is for use with instances in a
-- VPC or instances in EC2-Classic.
--
-- Default: If the Region supports EC2-Classic, the default is @standard@.
-- Otherwise, the default is @vpc@.
allocateAddress_domain :: Lens.Lens' AllocateAddress (Prelude.Maybe DomainType)
allocateAddress_domain :: Lens' AllocateAddress (Maybe DomainType)
allocateAddress_domain = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AllocateAddress' {Maybe DomainType
domain :: Maybe DomainType
$sel:domain:AllocateAddress' :: AllocateAddress -> Maybe DomainType
domain} -> Maybe DomainType
domain) (\s :: AllocateAddress
s@AllocateAddress' {} Maybe DomainType
a -> AllocateAddress
s {$sel:domain:AllocateAddress' :: Maybe DomainType
domain = Maybe DomainType
a} :: AllocateAddress)

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

-- | A unique set of Availability Zones, Local Zones, or Wavelength Zones
-- from which Amazon Web Services advertises IP addresses. Use this
-- parameter to limit the IP address to this location. IP addresses cannot
-- move between network border groups.
--
-- Use
-- <https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeAvailabilityZones.html DescribeAvailabilityZones>
-- to view the network border groups.
--
-- You cannot use a network border group with EC2 Classic. If you attempt
-- this operation on EC2 Classic, you receive an
-- @InvalidParameterCombination@ error.
allocateAddress_networkBorderGroup :: Lens.Lens' AllocateAddress (Prelude.Maybe Prelude.Text)
allocateAddress_networkBorderGroup :: Lens' AllocateAddress (Maybe Text)
allocateAddress_networkBorderGroup = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AllocateAddress' {Maybe Text
networkBorderGroup :: Maybe Text
$sel:networkBorderGroup:AllocateAddress' :: AllocateAddress -> Maybe Text
networkBorderGroup} -> Maybe Text
networkBorderGroup) (\s :: AllocateAddress
s@AllocateAddress' {} Maybe Text
a -> AllocateAddress
s {$sel:networkBorderGroup:AllocateAddress' :: Maybe Text
networkBorderGroup = Maybe Text
a} :: AllocateAddress)

-- | The ID of an address pool that you own. Use this parameter to let Amazon
-- EC2 select an address from the address pool. To specify a specific
-- address from the address pool, use the @Address@ parameter instead.
allocateAddress_publicIpv4Pool :: Lens.Lens' AllocateAddress (Prelude.Maybe Prelude.Text)
allocateAddress_publicIpv4Pool :: Lens' AllocateAddress (Maybe Text)
allocateAddress_publicIpv4Pool = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AllocateAddress' {Maybe Text
publicIpv4Pool :: Maybe Text
$sel:publicIpv4Pool:AllocateAddress' :: AllocateAddress -> Maybe Text
publicIpv4Pool} -> Maybe Text
publicIpv4Pool) (\s :: AllocateAddress
s@AllocateAddress' {} Maybe Text
a -> AllocateAddress
s {$sel:publicIpv4Pool:AllocateAddress' :: Maybe Text
publicIpv4Pool = Maybe Text
a} :: AllocateAddress)

-- | The tags to assign to the Elastic IP address.
allocateAddress_tagSpecifications :: Lens.Lens' AllocateAddress (Prelude.Maybe [TagSpecification])
allocateAddress_tagSpecifications :: Lens' AllocateAddress (Maybe [TagSpecification])
allocateAddress_tagSpecifications = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AllocateAddress' {Maybe [TagSpecification]
tagSpecifications :: Maybe [TagSpecification]
$sel:tagSpecifications:AllocateAddress' :: AllocateAddress -> Maybe [TagSpecification]
tagSpecifications} -> Maybe [TagSpecification]
tagSpecifications) (\s :: AllocateAddress
s@AllocateAddress' {} Maybe [TagSpecification]
a -> AllocateAddress
s {$sel:tagSpecifications:AllocateAddress' :: Maybe [TagSpecification]
tagSpecifications = Maybe [TagSpecification]
a} :: AllocateAddress) 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

instance Core.AWSRequest AllocateAddress where
  type
    AWSResponse AllocateAddress =
      AllocateAddressResponse
  request :: (Service -> Service) -> AllocateAddress -> Request AllocateAddress
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 AllocateAddress
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse AllocateAddress)))
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 Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe DomainType
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> AllocateAddressResponse
AllocateAddressResponse'
            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
"allocationId")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"carrierIp")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"customerOwnedIp")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"customerOwnedIpv4Pool")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"domain")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"networkBorderGroup")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"publicIp")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"publicIpv4Pool")
            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 AllocateAddress where
  hashWithSalt :: Int -> AllocateAddress -> Int
hashWithSalt Int
_salt AllocateAddress' {Maybe Bool
Maybe [TagSpecification]
Maybe Text
Maybe DomainType
tagSpecifications :: Maybe [TagSpecification]
publicIpv4Pool :: Maybe Text
networkBorderGroup :: Maybe Text
dryRun :: Maybe Bool
domain :: Maybe DomainType
customerOwnedIpv4Pool :: Maybe Text
address :: Maybe Text
$sel:tagSpecifications:AllocateAddress' :: AllocateAddress -> Maybe [TagSpecification]
$sel:publicIpv4Pool:AllocateAddress' :: AllocateAddress -> Maybe Text
$sel:networkBorderGroup:AllocateAddress' :: AllocateAddress -> Maybe Text
$sel:dryRun:AllocateAddress' :: AllocateAddress -> Maybe Bool
$sel:domain:AllocateAddress' :: AllocateAddress -> Maybe DomainType
$sel:customerOwnedIpv4Pool:AllocateAddress' :: AllocateAddress -> Maybe Text
$sel:address:AllocateAddress' :: AllocateAddress -> Maybe Text
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
address
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
customerOwnedIpv4Pool
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe DomainType
domain
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
dryRun
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
networkBorderGroup
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
publicIpv4Pool
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [TagSpecification]
tagSpecifications

instance Prelude.NFData AllocateAddress where
  rnf :: AllocateAddress -> ()
rnf AllocateAddress' {Maybe Bool
Maybe [TagSpecification]
Maybe Text
Maybe DomainType
tagSpecifications :: Maybe [TagSpecification]
publicIpv4Pool :: Maybe Text
networkBorderGroup :: Maybe Text
dryRun :: Maybe Bool
domain :: Maybe DomainType
customerOwnedIpv4Pool :: Maybe Text
address :: Maybe Text
$sel:tagSpecifications:AllocateAddress' :: AllocateAddress -> Maybe [TagSpecification]
$sel:publicIpv4Pool:AllocateAddress' :: AllocateAddress -> Maybe Text
$sel:networkBorderGroup:AllocateAddress' :: AllocateAddress -> Maybe Text
$sel:dryRun:AllocateAddress' :: AllocateAddress -> Maybe Bool
$sel:domain:AllocateAddress' :: AllocateAddress -> Maybe DomainType
$sel:customerOwnedIpv4Pool:AllocateAddress' :: AllocateAddress -> Maybe Text
$sel:address:AllocateAddress' :: AllocateAddress -> Maybe Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
address
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
customerOwnedIpv4Pool
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe DomainType
domain
      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 Text
networkBorderGroup
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
publicIpv4Pool
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [TagSpecification]
tagSpecifications

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

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

instance Data.ToQuery AllocateAddress where
  toQuery :: AllocateAddress -> QueryString
toQuery AllocateAddress' {Maybe Bool
Maybe [TagSpecification]
Maybe Text
Maybe DomainType
tagSpecifications :: Maybe [TagSpecification]
publicIpv4Pool :: Maybe Text
networkBorderGroup :: Maybe Text
dryRun :: Maybe Bool
domain :: Maybe DomainType
customerOwnedIpv4Pool :: Maybe Text
address :: Maybe Text
$sel:tagSpecifications:AllocateAddress' :: AllocateAddress -> Maybe [TagSpecification]
$sel:publicIpv4Pool:AllocateAddress' :: AllocateAddress -> Maybe Text
$sel:networkBorderGroup:AllocateAddress' :: AllocateAddress -> Maybe Text
$sel:dryRun:AllocateAddress' :: AllocateAddress -> Maybe Bool
$sel:domain:AllocateAddress' :: AllocateAddress -> Maybe DomainType
$sel:customerOwnedIpv4Pool:AllocateAddress' :: AllocateAddress -> Maybe Text
$sel:address:AllocateAddress' :: AllocateAddress -> Maybe Text
..} =
    forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"Action"
          forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: (ByteString
"AllocateAddress" :: Prelude.ByteString),
        ByteString
"Version"
          forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: (ByteString
"2016-11-15" :: Prelude.ByteString),
        ByteString
"Address" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
address,
        ByteString
"CustomerOwnedIpv4Pool"
          forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
customerOwnedIpv4Pool,
        ByteString
"Domain" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe DomainType
domain,
        ByteString
"DryRun" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Bool
dryRun,
        ByteString
"NetworkBorderGroup" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
networkBorderGroup,
        ByteString
"PublicIpv4Pool" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
publicIpv4Pool,
        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
          )
      ]

-- | /See:/ 'newAllocateAddressResponse' smart constructor.
data AllocateAddressResponse = AllocateAddressResponse'
  { -- | [EC2-VPC] The ID that Amazon Web Services assigns to represent the
    -- allocation of the Elastic IP address for use with instances in a VPC.
    AllocateAddressResponse -> Maybe Text
allocationId :: Prelude.Maybe Prelude.Text,
    -- | The carrier IP address. This option is only available for network
    -- interfaces which reside in a subnet in a Wavelength Zone (for example an
    -- EC2 instance).
    AllocateAddressResponse -> Maybe Text
carrierIp :: Prelude.Maybe Prelude.Text,
    -- | The customer-owned IP address.
    AllocateAddressResponse -> Maybe Text
customerOwnedIp :: Prelude.Maybe Prelude.Text,
    -- | The ID of the customer-owned address pool.
    AllocateAddressResponse -> Maybe Text
customerOwnedIpv4Pool :: Prelude.Maybe Prelude.Text,
    -- | Indicates whether the Elastic IP address is for use with instances in a
    -- VPC (@vpc@) or instances in EC2-Classic (@standard@).
    AllocateAddressResponse -> Maybe DomainType
domain :: Prelude.Maybe DomainType,
    -- | The set of Availability Zones, Local Zones, or Wavelength Zones from
    -- which Amazon Web Services advertises IP addresses.
    AllocateAddressResponse -> Maybe Text
networkBorderGroup :: Prelude.Maybe Prelude.Text,
    -- | The Elastic IP address.
    AllocateAddressResponse -> Maybe Text
publicIp :: Prelude.Maybe Prelude.Text,
    -- | The ID of an address pool.
    AllocateAddressResponse -> Maybe Text
publicIpv4Pool :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    AllocateAddressResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (AllocateAddressResponse -> AllocateAddressResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AllocateAddressResponse -> AllocateAddressResponse -> Bool
$c/= :: AllocateAddressResponse -> AllocateAddressResponse -> Bool
== :: AllocateAddressResponse -> AllocateAddressResponse -> Bool
$c== :: AllocateAddressResponse -> AllocateAddressResponse -> Bool
Prelude.Eq, ReadPrec [AllocateAddressResponse]
ReadPrec AllocateAddressResponse
Int -> ReadS AllocateAddressResponse
ReadS [AllocateAddressResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [AllocateAddressResponse]
$creadListPrec :: ReadPrec [AllocateAddressResponse]
readPrec :: ReadPrec AllocateAddressResponse
$creadPrec :: ReadPrec AllocateAddressResponse
readList :: ReadS [AllocateAddressResponse]
$creadList :: ReadS [AllocateAddressResponse]
readsPrec :: Int -> ReadS AllocateAddressResponse
$creadsPrec :: Int -> ReadS AllocateAddressResponse
Prelude.Read, Int -> AllocateAddressResponse -> ShowS
[AllocateAddressResponse] -> ShowS
AllocateAddressResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AllocateAddressResponse] -> ShowS
$cshowList :: [AllocateAddressResponse] -> ShowS
show :: AllocateAddressResponse -> String
$cshow :: AllocateAddressResponse -> String
showsPrec :: Int -> AllocateAddressResponse -> ShowS
$cshowsPrec :: Int -> AllocateAddressResponse -> ShowS
Prelude.Show, forall x. Rep AllocateAddressResponse x -> AllocateAddressResponse
forall x. AllocateAddressResponse -> Rep AllocateAddressResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep AllocateAddressResponse x -> AllocateAddressResponse
$cfrom :: forall x. AllocateAddressResponse -> Rep AllocateAddressResponse x
Prelude.Generic)

-- |
-- Create a value of 'AllocateAddressResponse' 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:
--
-- 'allocationId', 'allocateAddressResponse_allocationId' - [EC2-VPC] The ID that Amazon Web Services assigns to represent the
-- allocation of the Elastic IP address for use with instances in a VPC.
--
-- 'carrierIp', 'allocateAddressResponse_carrierIp' - The carrier IP address. This option is only available for network
-- interfaces which reside in a subnet in a Wavelength Zone (for example an
-- EC2 instance).
--
-- 'customerOwnedIp', 'allocateAddressResponse_customerOwnedIp' - The customer-owned IP address.
--
-- 'customerOwnedIpv4Pool', 'allocateAddressResponse_customerOwnedIpv4Pool' - The ID of the customer-owned address pool.
--
-- 'domain', 'allocateAddressResponse_domain' - Indicates whether the Elastic IP address is for use with instances in a
-- VPC (@vpc@) or instances in EC2-Classic (@standard@).
--
-- 'networkBorderGroup', 'allocateAddressResponse_networkBorderGroup' - The set of Availability Zones, Local Zones, or Wavelength Zones from
-- which Amazon Web Services advertises IP addresses.
--
-- 'publicIp', 'allocateAddressResponse_publicIp' - The Elastic IP address.
--
-- 'publicIpv4Pool', 'allocateAddressResponse_publicIpv4Pool' - The ID of an address pool.
--
-- 'httpStatus', 'allocateAddressResponse_httpStatus' - The response's http status code.
newAllocateAddressResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  AllocateAddressResponse
newAllocateAddressResponse :: Int -> AllocateAddressResponse
newAllocateAddressResponse Int
pHttpStatus_ =
  AllocateAddressResponse'
    { $sel:allocationId:AllocateAddressResponse' :: Maybe Text
allocationId =
        forall a. Maybe a
Prelude.Nothing,
      $sel:carrierIp:AllocateAddressResponse' :: Maybe Text
carrierIp = forall a. Maybe a
Prelude.Nothing,
      $sel:customerOwnedIp:AllocateAddressResponse' :: Maybe Text
customerOwnedIp = forall a. Maybe a
Prelude.Nothing,
      $sel:customerOwnedIpv4Pool:AllocateAddressResponse' :: Maybe Text
customerOwnedIpv4Pool = forall a. Maybe a
Prelude.Nothing,
      $sel:domain:AllocateAddressResponse' :: Maybe DomainType
domain = forall a. Maybe a
Prelude.Nothing,
      $sel:networkBorderGroup:AllocateAddressResponse' :: Maybe Text
networkBorderGroup = forall a. Maybe a
Prelude.Nothing,
      $sel:publicIp:AllocateAddressResponse' :: Maybe Text
publicIp = forall a. Maybe a
Prelude.Nothing,
      $sel:publicIpv4Pool:AllocateAddressResponse' :: Maybe Text
publicIpv4Pool = forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:AllocateAddressResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | [EC2-VPC] The ID that Amazon Web Services assigns to represent the
-- allocation of the Elastic IP address for use with instances in a VPC.
allocateAddressResponse_allocationId :: Lens.Lens' AllocateAddressResponse (Prelude.Maybe Prelude.Text)
allocateAddressResponse_allocationId :: Lens' AllocateAddressResponse (Maybe Text)
allocateAddressResponse_allocationId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AllocateAddressResponse' {Maybe Text
allocationId :: Maybe Text
$sel:allocationId:AllocateAddressResponse' :: AllocateAddressResponse -> Maybe Text
allocationId} -> Maybe Text
allocationId) (\s :: AllocateAddressResponse
s@AllocateAddressResponse' {} Maybe Text
a -> AllocateAddressResponse
s {$sel:allocationId:AllocateAddressResponse' :: Maybe Text
allocationId = Maybe Text
a} :: AllocateAddressResponse)

-- | The carrier IP address. This option is only available for network
-- interfaces which reside in a subnet in a Wavelength Zone (for example an
-- EC2 instance).
allocateAddressResponse_carrierIp :: Lens.Lens' AllocateAddressResponse (Prelude.Maybe Prelude.Text)
allocateAddressResponse_carrierIp :: Lens' AllocateAddressResponse (Maybe Text)
allocateAddressResponse_carrierIp = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AllocateAddressResponse' {Maybe Text
carrierIp :: Maybe Text
$sel:carrierIp:AllocateAddressResponse' :: AllocateAddressResponse -> Maybe Text
carrierIp} -> Maybe Text
carrierIp) (\s :: AllocateAddressResponse
s@AllocateAddressResponse' {} Maybe Text
a -> AllocateAddressResponse
s {$sel:carrierIp:AllocateAddressResponse' :: Maybe Text
carrierIp = Maybe Text
a} :: AllocateAddressResponse)

-- | The customer-owned IP address.
allocateAddressResponse_customerOwnedIp :: Lens.Lens' AllocateAddressResponse (Prelude.Maybe Prelude.Text)
allocateAddressResponse_customerOwnedIp :: Lens' AllocateAddressResponse (Maybe Text)
allocateAddressResponse_customerOwnedIp = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AllocateAddressResponse' {Maybe Text
customerOwnedIp :: Maybe Text
$sel:customerOwnedIp:AllocateAddressResponse' :: AllocateAddressResponse -> Maybe Text
customerOwnedIp} -> Maybe Text
customerOwnedIp) (\s :: AllocateAddressResponse
s@AllocateAddressResponse' {} Maybe Text
a -> AllocateAddressResponse
s {$sel:customerOwnedIp:AllocateAddressResponse' :: Maybe Text
customerOwnedIp = Maybe Text
a} :: AllocateAddressResponse)

-- | The ID of the customer-owned address pool.
allocateAddressResponse_customerOwnedIpv4Pool :: Lens.Lens' AllocateAddressResponse (Prelude.Maybe Prelude.Text)
allocateAddressResponse_customerOwnedIpv4Pool :: Lens' AllocateAddressResponse (Maybe Text)
allocateAddressResponse_customerOwnedIpv4Pool = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AllocateAddressResponse' {Maybe Text
customerOwnedIpv4Pool :: Maybe Text
$sel:customerOwnedIpv4Pool:AllocateAddressResponse' :: AllocateAddressResponse -> Maybe Text
customerOwnedIpv4Pool} -> Maybe Text
customerOwnedIpv4Pool) (\s :: AllocateAddressResponse
s@AllocateAddressResponse' {} Maybe Text
a -> AllocateAddressResponse
s {$sel:customerOwnedIpv4Pool:AllocateAddressResponse' :: Maybe Text
customerOwnedIpv4Pool = Maybe Text
a} :: AllocateAddressResponse)

-- | Indicates whether the Elastic IP address is for use with instances in a
-- VPC (@vpc@) or instances in EC2-Classic (@standard@).
allocateAddressResponse_domain :: Lens.Lens' AllocateAddressResponse (Prelude.Maybe DomainType)
allocateAddressResponse_domain :: Lens' AllocateAddressResponse (Maybe DomainType)
allocateAddressResponse_domain = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AllocateAddressResponse' {Maybe DomainType
domain :: Maybe DomainType
$sel:domain:AllocateAddressResponse' :: AllocateAddressResponse -> Maybe DomainType
domain} -> Maybe DomainType
domain) (\s :: AllocateAddressResponse
s@AllocateAddressResponse' {} Maybe DomainType
a -> AllocateAddressResponse
s {$sel:domain:AllocateAddressResponse' :: Maybe DomainType
domain = Maybe DomainType
a} :: AllocateAddressResponse)

-- | The set of Availability Zones, Local Zones, or Wavelength Zones from
-- which Amazon Web Services advertises IP addresses.
allocateAddressResponse_networkBorderGroup :: Lens.Lens' AllocateAddressResponse (Prelude.Maybe Prelude.Text)
allocateAddressResponse_networkBorderGroup :: Lens' AllocateAddressResponse (Maybe Text)
allocateAddressResponse_networkBorderGroup = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AllocateAddressResponse' {Maybe Text
networkBorderGroup :: Maybe Text
$sel:networkBorderGroup:AllocateAddressResponse' :: AllocateAddressResponse -> Maybe Text
networkBorderGroup} -> Maybe Text
networkBorderGroup) (\s :: AllocateAddressResponse
s@AllocateAddressResponse' {} Maybe Text
a -> AllocateAddressResponse
s {$sel:networkBorderGroup:AllocateAddressResponse' :: Maybe Text
networkBorderGroup = Maybe Text
a} :: AllocateAddressResponse)

-- | The Elastic IP address.
allocateAddressResponse_publicIp :: Lens.Lens' AllocateAddressResponse (Prelude.Maybe Prelude.Text)
allocateAddressResponse_publicIp :: Lens' AllocateAddressResponse (Maybe Text)
allocateAddressResponse_publicIp = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AllocateAddressResponse' {Maybe Text
publicIp :: Maybe Text
$sel:publicIp:AllocateAddressResponse' :: AllocateAddressResponse -> Maybe Text
publicIp} -> Maybe Text
publicIp) (\s :: AllocateAddressResponse
s@AllocateAddressResponse' {} Maybe Text
a -> AllocateAddressResponse
s {$sel:publicIp:AllocateAddressResponse' :: Maybe Text
publicIp = Maybe Text
a} :: AllocateAddressResponse)

-- | The ID of an address pool.
allocateAddressResponse_publicIpv4Pool :: Lens.Lens' AllocateAddressResponse (Prelude.Maybe Prelude.Text)
allocateAddressResponse_publicIpv4Pool :: Lens' AllocateAddressResponse (Maybe Text)
allocateAddressResponse_publicIpv4Pool = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AllocateAddressResponse' {Maybe Text
publicIpv4Pool :: Maybe Text
$sel:publicIpv4Pool:AllocateAddressResponse' :: AllocateAddressResponse -> Maybe Text
publicIpv4Pool} -> Maybe Text
publicIpv4Pool) (\s :: AllocateAddressResponse
s@AllocateAddressResponse' {} Maybe Text
a -> AllocateAddressResponse
s {$sel:publicIpv4Pool:AllocateAddressResponse' :: Maybe Text
publicIpv4Pool = Maybe Text
a} :: AllocateAddressResponse)

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

instance Prelude.NFData AllocateAddressResponse where
  rnf :: AllocateAddressResponse -> ()
rnf AllocateAddressResponse' {Int
Maybe Text
Maybe DomainType
httpStatus :: Int
publicIpv4Pool :: Maybe Text
publicIp :: Maybe Text
networkBorderGroup :: Maybe Text
domain :: Maybe DomainType
customerOwnedIpv4Pool :: Maybe Text
customerOwnedIp :: Maybe Text
carrierIp :: Maybe Text
allocationId :: Maybe Text
$sel:httpStatus:AllocateAddressResponse' :: AllocateAddressResponse -> Int
$sel:publicIpv4Pool:AllocateAddressResponse' :: AllocateAddressResponse -> Maybe Text
$sel:publicIp:AllocateAddressResponse' :: AllocateAddressResponse -> Maybe Text
$sel:networkBorderGroup:AllocateAddressResponse' :: AllocateAddressResponse -> Maybe Text
$sel:domain:AllocateAddressResponse' :: AllocateAddressResponse -> Maybe DomainType
$sel:customerOwnedIpv4Pool:AllocateAddressResponse' :: AllocateAddressResponse -> Maybe Text
$sel:customerOwnedIp:AllocateAddressResponse' :: AllocateAddressResponse -> Maybe Text
$sel:carrierIp:AllocateAddressResponse' :: AllocateAddressResponse -> Maybe Text
$sel:allocationId:AllocateAddressResponse' :: AllocateAddressResponse -> Maybe Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
allocationId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
carrierIp
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
customerOwnedIp
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
customerOwnedIpv4Pool
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe DomainType
domain
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
networkBorderGroup
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
publicIp
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
publicIpv4Pool
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus