{-# 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 #-}
module Amazonka.GlobalAccelerator.UpdateCustomRoutingAccelerator
(
UpdateCustomRoutingAccelerator (..),
newUpdateCustomRoutingAccelerator,
updateCustomRoutingAccelerator_enabled,
updateCustomRoutingAccelerator_ipAddressType,
updateCustomRoutingAccelerator_name,
updateCustomRoutingAccelerator_acceleratorArn,
UpdateCustomRoutingAcceleratorResponse (..),
newUpdateCustomRoutingAcceleratorResponse,
updateCustomRoutingAcceleratorResponse_accelerator,
updateCustomRoutingAcceleratorResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.GlobalAccelerator.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
data UpdateCustomRoutingAccelerator = UpdateCustomRoutingAccelerator'
{
UpdateCustomRoutingAccelerator -> Maybe Bool
enabled :: Prelude.Maybe Prelude.Bool,
UpdateCustomRoutingAccelerator -> Maybe IpAddressType
ipAddressType :: Prelude.Maybe IpAddressType,
UpdateCustomRoutingAccelerator -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
UpdateCustomRoutingAccelerator -> Text
acceleratorArn :: Prelude.Text
}
deriving (UpdateCustomRoutingAccelerator
-> UpdateCustomRoutingAccelerator -> Bool
(UpdateCustomRoutingAccelerator
-> UpdateCustomRoutingAccelerator -> Bool)
-> (UpdateCustomRoutingAccelerator
-> UpdateCustomRoutingAccelerator -> Bool)
-> Eq UpdateCustomRoutingAccelerator
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateCustomRoutingAccelerator
-> UpdateCustomRoutingAccelerator -> Bool
$c/= :: UpdateCustomRoutingAccelerator
-> UpdateCustomRoutingAccelerator -> Bool
== :: UpdateCustomRoutingAccelerator
-> UpdateCustomRoutingAccelerator -> Bool
$c== :: UpdateCustomRoutingAccelerator
-> UpdateCustomRoutingAccelerator -> Bool
Prelude.Eq, ReadPrec [UpdateCustomRoutingAccelerator]
ReadPrec UpdateCustomRoutingAccelerator
Int -> ReadS UpdateCustomRoutingAccelerator
ReadS [UpdateCustomRoutingAccelerator]
(Int -> ReadS UpdateCustomRoutingAccelerator)
-> ReadS [UpdateCustomRoutingAccelerator]
-> ReadPrec UpdateCustomRoutingAccelerator
-> ReadPrec [UpdateCustomRoutingAccelerator]
-> Read UpdateCustomRoutingAccelerator
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateCustomRoutingAccelerator]
$creadListPrec :: ReadPrec [UpdateCustomRoutingAccelerator]
readPrec :: ReadPrec UpdateCustomRoutingAccelerator
$creadPrec :: ReadPrec UpdateCustomRoutingAccelerator
readList :: ReadS [UpdateCustomRoutingAccelerator]
$creadList :: ReadS [UpdateCustomRoutingAccelerator]
readsPrec :: Int -> ReadS UpdateCustomRoutingAccelerator
$creadsPrec :: Int -> ReadS UpdateCustomRoutingAccelerator
Prelude.Read, Int -> UpdateCustomRoutingAccelerator -> ShowS
[UpdateCustomRoutingAccelerator] -> ShowS
UpdateCustomRoutingAccelerator -> String
(Int -> UpdateCustomRoutingAccelerator -> ShowS)
-> (UpdateCustomRoutingAccelerator -> String)
-> ([UpdateCustomRoutingAccelerator] -> ShowS)
-> Show UpdateCustomRoutingAccelerator
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateCustomRoutingAccelerator] -> ShowS
$cshowList :: [UpdateCustomRoutingAccelerator] -> ShowS
show :: UpdateCustomRoutingAccelerator -> String
$cshow :: UpdateCustomRoutingAccelerator -> String
showsPrec :: Int -> UpdateCustomRoutingAccelerator -> ShowS
$cshowsPrec :: Int -> UpdateCustomRoutingAccelerator -> ShowS
Prelude.Show, (forall x.
UpdateCustomRoutingAccelerator
-> Rep UpdateCustomRoutingAccelerator x)
-> (forall x.
Rep UpdateCustomRoutingAccelerator x
-> UpdateCustomRoutingAccelerator)
-> Generic UpdateCustomRoutingAccelerator
forall x.
Rep UpdateCustomRoutingAccelerator x
-> UpdateCustomRoutingAccelerator
forall x.
UpdateCustomRoutingAccelerator
-> Rep UpdateCustomRoutingAccelerator x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateCustomRoutingAccelerator x
-> UpdateCustomRoutingAccelerator
$cfrom :: forall x.
UpdateCustomRoutingAccelerator
-> Rep UpdateCustomRoutingAccelerator x
Prelude.Generic)
newUpdateCustomRoutingAccelerator ::
Prelude.Text ->
UpdateCustomRoutingAccelerator
newUpdateCustomRoutingAccelerator :: Text -> UpdateCustomRoutingAccelerator
newUpdateCustomRoutingAccelerator Text
pAcceleratorArn_ =
UpdateCustomRoutingAccelerator' :: Maybe Bool
-> Maybe IpAddressType
-> Maybe Text
-> Text
-> UpdateCustomRoutingAccelerator
UpdateCustomRoutingAccelerator'
{ $sel:enabled:UpdateCustomRoutingAccelerator' :: Maybe Bool
enabled =
Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:ipAddressType:UpdateCustomRoutingAccelerator' :: Maybe IpAddressType
ipAddressType = Maybe IpAddressType
forall a. Maybe a
Prelude.Nothing,
$sel:name:UpdateCustomRoutingAccelerator' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:acceleratorArn:UpdateCustomRoutingAccelerator' :: Text
acceleratorArn = Text
pAcceleratorArn_
}
updateCustomRoutingAccelerator_enabled :: Lens.Lens' UpdateCustomRoutingAccelerator (Prelude.Maybe Prelude.Bool)
updateCustomRoutingAccelerator_enabled :: (Maybe Bool -> f (Maybe Bool))
-> UpdateCustomRoutingAccelerator
-> f UpdateCustomRoutingAccelerator
updateCustomRoutingAccelerator_enabled = (UpdateCustomRoutingAccelerator -> Maybe Bool)
-> (UpdateCustomRoutingAccelerator
-> Maybe Bool -> UpdateCustomRoutingAccelerator)
-> Lens
UpdateCustomRoutingAccelerator
UpdateCustomRoutingAccelerator
(Maybe Bool)
(Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateCustomRoutingAccelerator' {Maybe Bool
enabled :: Maybe Bool
$sel:enabled:UpdateCustomRoutingAccelerator' :: UpdateCustomRoutingAccelerator -> Maybe Bool
enabled} -> Maybe Bool
enabled) (\s :: UpdateCustomRoutingAccelerator
s@UpdateCustomRoutingAccelerator' {} Maybe Bool
a -> UpdateCustomRoutingAccelerator
s {$sel:enabled:UpdateCustomRoutingAccelerator' :: Maybe Bool
enabled = Maybe Bool
a} :: UpdateCustomRoutingAccelerator)
updateCustomRoutingAccelerator_ipAddressType :: Lens.Lens' UpdateCustomRoutingAccelerator (Prelude.Maybe IpAddressType)
updateCustomRoutingAccelerator_ipAddressType :: (Maybe IpAddressType -> f (Maybe IpAddressType))
-> UpdateCustomRoutingAccelerator
-> f UpdateCustomRoutingAccelerator
updateCustomRoutingAccelerator_ipAddressType = (UpdateCustomRoutingAccelerator -> Maybe IpAddressType)
-> (UpdateCustomRoutingAccelerator
-> Maybe IpAddressType -> UpdateCustomRoutingAccelerator)
-> Lens
UpdateCustomRoutingAccelerator
UpdateCustomRoutingAccelerator
(Maybe IpAddressType)
(Maybe IpAddressType)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateCustomRoutingAccelerator' {Maybe IpAddressType
ipAddressType :: Maybe IpAddressType
$sel:ipAddressType:UpdateCustomRoutingAccelerator' :: UpdateCustomRoutingAccelerator -> Maybe IpAddressType
ipAddressType} -> Maybe IpAddressType
ipAddressType) (\s :: UpdateCustomRoutingAccelerator
s@UpdateCustomRoutingAccelerator' {} Maybe IpAddressType
a -> UpdateCustomRoutingAccelerator
s {$sel:ipAddressType:UpdateCustomRoutingAccelerator' :: Maybe IpAddressType
ipAddressType = Maybe IpAddressType
a} :: UpdateCustomRoutingAccelerator)
updateCustomRoutingAccelerator_name :: Lens.Lens' UpdateCustomRoutingAccelerator (Prelude.Maybe Prelude.Text)
updateCustomRoutingAccelerator_name :: (Maybe Text -> f (Maybe Text))
-> UpdateCustomRoutingAccelerator
-> f UpdateCustomRoutingAccelerator
updateCustomRoutingAccelerator_name = (UpdateCustomRoutingAccelerator -> Maybe Text)
-> (UpdateCustomRoutingAccelerator
-> Maybe Text -> UpdateCustomRoutingAccelerator)
-> Lens
UpdateCustomRoutingAccelerator
UpdateCustomRoutingAccelerator
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateCustomRoutingAccelerator' {Maybe Text
name :: Maybe Text
$sel:name:UpdateCustomRoutingAccelerator' :: UpdateCustomRoutingAccelerator -> Maybe Text
name} -> Maybe Text
name) (\s :: UpdateCustomRoutingAccelerator
s@UpdateCustomRoutingAccelerator' {} Maybe Text
a -> UpdateCustomRoutingAccelerator
s {$sel:name:UpdateCustomRoutingAccelerator' :: Maybe Text
name = Maybe Text
a} :: UpdateCustomRoutingAccelerator)
updateCustomRoutingAccelerator_acceleratorArn :: Lens.Lens' UpdateCustomRoutingAccelerator Prelude.Text
updateCustomRoutingAccelerator_acceleratorArn :: (Text -> f Text)
-> UpdateCustomRoutingAccelerator
-> f UpdateCustomRoutingAccelerator
updateCustomRoutingAccelerator_acceleratorArn = (UpdateCustomRoutingAccelerator -> Text)
-> (UpdateCustomRoutingAccelerator
-> Text -> UpdateCustomRoutingAccelerator)
-> Lens
UpdateCustomRoutingAccelerator
UpdateCustomRoutingAccelerator
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateCustomRoutingAccelerator' {Text
acceleratorArn :: Text
$sel:acceleratorArn:UpdateCustomRoutingAccelerator' :: UpdateCustomRoutingAccelerator -> Text
acceleratorArn} -> Text
acceleratorArn) (\s :: UpdateCustomRoutingAccelerator
s@UpdateCustomRoutingAccelerator' {} Text
a -> UpdateCustomRoutingAccelerator
s {$sel:acceleratorArn:UpdateCustomRoutingAccelerator' :: Text
acceleratorArn = Text
a} :: UpdateCustomRoutingAccelerator)
instance
Core.AWSRequest
UpdateCustomRoutingAccelerator
where
type
AWSResponse UpdateCustomRoutingAccelerator =
UpdateCustomRoutingAcceleratorResponse
request :: UpdateCustomRoutingAccelerator
-> Request UpdateCustomRoutingAccelerator
request = Service
-> UpdateCustomRoutingAccelerator
-> Request UpdateCustomRoutingAccelerator
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy UpdateCustomRoutingAccelerator
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse UpdateCustomRoutingAccelerator)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse UpdateCustomRoutingAccelerator))
-> Logger
-> Service
-> Proxy UpdateCustomRoutingAccelerator
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse UpdateCustomRoutingAccelerator)))
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 CustomRoutingAccelerator
-> Int -> UpdateCustomRoutingAcceleratorResponse
UpdateCustomRoutingAcceleratorResponse'
(Maybe CustomRoutingAccelerator
-> Int -> UpdateCustomRoutingAcceleratorResponse)
-> Either String (Maybe CustomRoutingAccelerator)
-> Either String (Int -> UpdateCustomRoutingAcceleratorResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe CustomRoutingAccelerator)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Accelerator")
Either String (Int -> UpdateCustomRoutingAcceleratorResponse)
-> Either String Int
-> Either String UpdateCustomRoutingAcceleratorResponse
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
UpdateCustomRoutingAccelerator
instance
Prelude.NFData
UpdateCustomRoutingAccelerator
instance
Core.ToHeaders
UpdateCustomRoutingAccelerator
where
toHeaders :: UpdateCustomRoutingAccelerator -> ResponseHeaders
toHeaders =
ResponseHeaders
-> UpdateCustomRoutingAccelerator -> 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
"GlobalAccelerator_V20180706.UpdateCustomRoutingAccelerator" ::
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 UpdateCustomRoutingAccelerator where
toJSON :: UpdateCustomRoutingAccelerator -> Value
toJSON UpdateCustomRoutingAccelerator' {Maybe Bool
Maybe Text
Maybe IpAddressType
Text
acceleratorArn :: Text
name :: Maybe Text
ipAddressType :: Maybe IpAddressType
enabled :: Maybe Bool
$sel:acceleratorArn:UpdateCustomRoutingAccelerator' :: UpdateCustomRoutingAccelerator -> Text
$sel:name:UpdateCustomRoutingAccelerator' :: UpdateCustomRoutingAccelerator -> Maybe Text
$sel:ipAddressType:UpdateCustomRoutingAccelerator' :: UpdateCustomRoutingAccelerator -> Maybe IpAddressType
$sel:enabled:UpdateCustomRoutingAccelerator' :: UpdateCustomRoutingAccelerator -> Maybe Bool
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"Enabled" Text -> Bool -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Bool -> Pair) -> Maybe Bool -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
enabled,
(Text
"IpAddressType" Text -> IpAddressType -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (IpAddressType -> Pair) -> Maybe IpAddressType -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe IpAddressType
ipAddressType,
(Text
"Name" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
name,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
(Text
"AcceleratorArn" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
acceleratorArn)
]
)
instance Core.ToPath UpdateCustomRoutingAccelerator where
toPath :: UpdateCustomRoutingAccelerator -> ByteString
toPath = ByteString -> UpdateCustomRoutingAccelerator -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery UpdateCustomRoutingAccelerator where
toQuery :: UpdateCustomRoutingAccelerator -> QueryString
toQuery = QueryString -> UpdateCustomRoutingAccelerator -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data UpdateCustomRoutingAcceleratorResponse = UpdateCustomRoutingAcceleratorResponse'
{
UpdateCustomRoutingAcceleratorResponse
-> Maybe CustomRoutingAccelerator
accelerator :: Prelude.Maybe CustomRoutingAccelerator,
UpdateCustomRoutingAcceleratorResponse -> Int
httpStatus :: Prelude.Int
}
deriving (UpdateCustomRoutingAcceleratorResponse
-> UpdateCustomRoutingAcceleratorResponse -> Bool
(UpdateCustomRoutingAcceleratorResponse
-> UpdateCustomRoutingAcceleratorResponse -> Bool)
-> (UpdateCustomRoutingAcceleratorResponse
-> UpdateCustomRoutingAcceleratorResponse -> Bool)
-> Eq UpdateCustomRoutingAcceleratorResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateCustomRoutingAcceleratorResponse
-> UpdateCustomRoutingAcceleratorResponse -> Bool
$c/= :: UpdateCustomRoutingAcceleratorResponse
-> UpdateCustomRoutingAcceleratorResponse -> Bool
== :: UpdateCustomRoutingAcceleratorResponse
-> UpdateCustomRoutingAcceleratorResponse -> Bool
$c== :: UpdateCustomRoutingAcceleratorResponse
-> UpdateCustomRoutingAcceleratorResponse -> Bool
Prelude.Eq, ReadPrec [UpdateCustomRoutingAcceleratorResponse]
ReadPrec UpdateCustomRoutingAcceleratorResponse
Int -> ReadS UpdateCustomRoutingAcceleratorResponse
ReadS [UpdateCustomRoutingAcceleratorResponse]
(Int -> ReadS UpdateCustomRoutingAcceleratorResponse)
-> ReadS [UpdateCustomRoutingAcceleratorResponse]
-> ReadPrec UpdateCustomRoutingAcceleratorResponse
-> ReadPrec [UpdateCustomRoutingAcceleratorResponse]
-> Read UpdateCustomRoutingAcceleratorResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateCustomRoutingAcceleratorResponse]
$creadListPrec :: ReadPrec [UpdateCustomRoutingAcceleratorResponse]
readPrec :: ReadPrec UpdateCustomRoutingAcceleratorResponse
$creadPrec :: ReadPrec UpdateCustomRoutingAcceleratorResponse
readList :: ReadS [UpdateCustomRoutingAcceleratorResponse]
$creadList :: ReadS [UpdateCustomRoutingAcceleratorResponse]
readsPrec :: Int -> ReadS UpdateCustomRoutingAcceleratorResponse
$creadsPrec :: Int -> ReadS UpdateCustomRoutingAcceleratorResponse
Prelude.Read, Int -> UpdateCustomRoutingAcceleratorResponse -> ShowS
[UpdateCustomRoutingAcceleratorResponse] -> ShowS
UpdateCustomRoutingAcceleratorResponse -> String
(Int -> UpdateCustomRoutingAcceleratorResponse -> ShowS)
-> (UpdateCustomRoutingAcceleratorResponse -> String)
-> ([UpdateCustomRoutingAcceleratorResponse] -> ShowS)
-> Show UpdateCustomRoutingAcceleratorResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateCustomRoutingAcceleratorResponse] -> ShowS
$cshowList :: [UpdateCustomRoutingAcceleratorResponse] -> ShowS
show :: UpdateCustomRoutingAcceleratorResponse -> String
$cshow :: UpdateCustomRoutingAcceleratorResponse -> String
showsPrec :: Int -> UpdateCustomRoutingAcceleratorResponse -> ShowS
$cshowsPrec :: Int -> UpdateCustomRoutingAcceleratorResponse -> ShowS
Prelude.Show, (forall x.
UpdateCustomRoutingAcceleratorResponse
-> Rep UpdateCustomRoutingAcceleratorResponse x)
-> (forall x.
Rep UpdateCustomRoutingAcceleratorResponse x
-> UpdateCustomRoutingAcceleratorResponse)
-> Generic UpdateCustomRoutingAcceleratorResponse
forall x.
Rep UpdateCustomRoutingAcceleratorResponse x
-> UpdateCustomRoutingAcceleratorResponse
forall x.
UpdateCustomRoutingAcceleratorResponse
-> Rep UpdateCustomRoutingAcceleratorResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateCustomRoutingAcceleratorResponse x
-> UpdateCustomRoutingAcceleratorResponse
$cfrom :: forall x.
UpdateCustomRoutingAcceleratorResponse
-> Rep UpdateCustomRoutingAcceleratorResponse x
Prelude.Generic)
newUpdateCustomRoutingAcceleratorResponse ::
Prelude.Int ->
UpdateCustomRoutingAcceleratorResponse
newUpdateCustomRoutingAcceleratorResponse :: Int -> UpdateCustomRoutingAcceleratorResponse
newUpdateCustomRoutingAcceleratorResponse
Int
pHttpStatus_ =
UpdateCustomRoutingAcceleratorResponse' :: Maybe CustomRoutingAccelerator
-> Int -> UpdateCustomRoutingAcceleratorResponse
UpdateCustomRoutingAcceleratorResponse'
{ $sel:accelerator:UpdateCustomRoutingAcceleratorResponse' :: Maybe CustomRoutingAccelerator
accelerator =
Maybe CustomRoutingAccelerator
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:UpdateCustomRoutingAcceleratorResponse' :: Int
httpStatus = Int
pHttpStatus_
}
updateCustomRoutingAcceleratorResponse_accelerator :: Lens.Lens' UpdateCustomRoutingAcceleratorResponse (Prelude.Maybe CustomRoutingAccelerator)
updateCustomRoutingAcceleratorResponse_accelerator :: (Maybe CustomRoutingAccelerator
-> f (Maybe CustomRoutingAccelerator))
-> UpdateCustomRoutingAcceleratorResponse
-> f UpdateCustomRoutingAcceleratorResponse
updateCustomRoutingAcceleratorResponse_accelerator = (UpdateCustomRoutingAcceleratorResponse
-> Maybe CustomRoutingAccelerator)
-> (UpdateCustomRoutingAcceleratorResponse
-> Maybe CustomRoutingAccelerator
-> UpdateCustomRoutingAcceleratorResponse)
-> Lens
UpdateCustomRoutingAcceleratorResponse
UpdateCustomRoutingAcceleratorResponse
(Maybe CustomRoutingAccelerator)
(Maybe CustomRoutingAccelerator)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateCustomRoutingAcceleratorResponse' {Maybe CustomRoutingAccelerator
accelerator :: Maybe CustomRoutingAccelerator
$sel:accelerator:UpdateCustomRoutingAcceleratorResponse' :: UpdateCustomRoutingAcceleratorResponse
-> Maybe CustomRoutingAccelerator
accelerator} -> Maybe CustomRoutingAccelerator
accelerator) (\s :: UpdateCustomRoutingAcceleratorResponse
s@UpdateCustomRoutingAcceleratorResponse' {} Maybe CustomRoutingAccelerator
a -> UpdateCustomRoutingAcceleratorResponse
s {$sel:accelerator:UpdateCustomRoutingAcceleratorResponse' :: Maybe CustomRoutingAccelerator
accelerator = Maybe CustomRoutingAccelerator
a} :: UpdateCustomRoutingAcceleratorResponse)
updateCustomRoutingAcceleratorResponse_httpStatus :: Lens.Lens' UpdateCustomRoutingAcceleratorResponse Prelude.Int
updateCustomRoutingAcceleratorResponse_httpStatus :: (Int -> f Int)
-> UpdateCustomRoutingAcceleratorResponse
-> f UpdateCustomRoutingAcceleratorResponse
updateCustomRoutingAcceleratorResponse_httpStatus = (UpdateCustomRoutingAcceleratorResponse -> Int)
-> (UpdateCustomRoutingAcceleratorResponse
-> Int -> UpdateCustomRoutingAcceleratorResponse)
-> Lens
UpdateCustomRoutingAcceleratorResponse
UpdateCustomRoutingAcceleratorResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateCustomRoutingAcceleratorResponse' {Int
httpStatus :: Int
$sel:httpStatus:UpdateCustomRoutingAcceleratorResponse' :: UpdateCustomRoutingAcceleratorResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: UpdateCustomRoutingAcceleratorResponse
s@UpdateCustomRoutingAcceleratorResponse' {} Int
a -> UpdateCustomRoutingAcceleratorResponse
s {$sel:httpStatus:UpdateCustomRoutingAcceleratorResponse' :: Int
httpStatus = Int
a} :: UpdateCustomRoutingAcceleratorResponse)
instance
Prelude.NFData
UpdateCustomRoutingAcceleratorResponse