{-# 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.UpdateCustomRoutingAcceleratorAttributes
(
UpdateCustomRoutingAcceleratorAttributes (..),
newUpdateCustomRoutingAcceleratorAttributes,
updateCustomRoutingAcceleratorAttributes_flowLogsS3Prefix,
updateCustomRoutingAcceleratorAttributes_flowLogsEnabled,
updateCustomRoutingAcceleratorAttributes_flowLogsS3Bucket,
updateCustomRoutingAcceleratorAttributes_acceleratorArn,
UpdateCustomRoutingAcceleratorAttributesResponse (..),
newUpdateCustomRoutingAcceleratorAttributesResponse,
updateCustomRoutingAcceleratorAttributesResponse_acceleratorAttributes,
updateCustomRoutingAcceleratorAttributesResponse_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 UpdateCustomRoutingAcceleratorAttributes = UpdateCustomRoutingAcceleratorAttributes'
{
UpdateCustomRoutingAcceleratorAttributes -> Maybe Text
flowLogsS3Prefix :: Prelude.Maybe Prelude.Text,
UpdateCustomRoutingAcceleratorAttributes -> Maybe Bool
flowLogsEnabled :: Prelude.Maybe Prelude.Bool,
UpdateCustomRoutingAcceleratorAttributes -> Maybe Text
flowLogsS3Bucket :: Prelude.Maybe Prelude.Text,
UpdateCustomRoutingAcceleratorAttributes -> Text
acceleratorArn :: Prelude.Text
}
deriving (UpdateCustomRoutingAcceleratorAttributes
-> UpdateCustomRoutingAcceleratorAttributes -> Bool
(UpdateCustomRoutingAcceleratorAttributes
-> UpdateCustomRoutingAcceleratorAttributes -> Bool)
-> (UpdateCustomRoutingAcceleratorAttributes
-> UpdateCustomRoutingAcceleratorAttributes -> Bool)
-> Eq UpdateCustomRoutingAcceleratorAttributes
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateCustomRoutingAcceleratorAttributes
-> UpdateCustomRoutingAcceleratorAttributes -> Bool
$c/= :: UpdateCustomRoutingAcceleratorAttributes
-> UpdateCustomRoutingAcceleratorAttributes -> Bool
== :: UpdateCustomRoutingAcceleratorAttributes
-> UpdateCustomRoutingAcceleratorAttributes -> Bool
$c== :: UpdateCustomRoutingAcceleratorAttributes
-> UpdateCustomRoutingAcceleratorAttributes -> Bool
Prelude.Eq, ReadPrec [UpdateCustomRoutingAcceleratorAttributes]
ReadPrec UpdateCustomRoutingAcceleratorAttributes
Int -> ReadS UpdateCustomRoutingAcceleratorAttributes
ReadS [UpdateCustomRoutingAcceleratorAttributes]
(Int -> ReadS UpdateCustomRoutingAcceleratorAttributes)
-> ReadS [UpdateCustomRoutingAcceleratorAttributes]
-> ReadPrec UpdateCustomRoutingAcceleratorAttributes
-> ReadPrec [UpdateCustomRoutingAcceleratorAttributes]
-> Read UpdateCustomRoutingAcceleratorAttributes
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateCustomRoutingAcceleratorAttributes]
$creadListPrec :: ReadPrec [UpdateCustomRoutingAcceleratorAttributes]
readPrec :: ReadPrec UpdateCustomRoutingAcceleratorAttributes
$creadPrec :: ReadPrec UpdateCustomRoutingAcceleratorAttributes
readList :: ReadS [UpdateCustomRoutingAcceleratorAttributes]
$creadList :: ReadS [UpdateCustomRoutingAcceleratorAttributes]
readsPrec :: Int -> ReadS UpdateCustomRoutingAcceleratorAttributes
$creadsPrec :: Int -> ReadS UpdateCustomRoutingAcceleratorAttributes
Prelude.Read, Int -> UpdateCustomRoutingAcceleratorAttributes -> ShowS
[UpdateCustomRoutingAcceleratorAttributes] -> ShowS
UpdateCustomRoutingAcceleratorAttributes -> String
(Int -> UpdateCustomRoutingAcceleratorAttributes -> ShowS)
-> (UpdateCustomRoutingAcceleratorAttributes -> String)
-> ([UpdateCustomRoutingAcceleratorAttributes] -> ShowS)
-> Show UpdateCustomRoutingAcceleratorAttributes
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateCustomRoutingAcceleratorAttributes] -> ShowS
$cshowList :: [UpdateCustomRoutingAcceleratorAttributes] -> ShowS
show :: UpdateCustomRoutingAcceleratorAttributes -> String
$cshow :: UpdateCustomRoutingAcceleratorAttributes -> String
showsPrec :: Int -> UpdateCustomRoutingAcceleratorAttributes -> ShowS
$cshowsPrec :: Int -> UpdateCustomRoutingAcceleratorAttributes -> ShowS
Prelude.Show, (forall x.
UpdateCustomRoutingAcceleratorAttributes
-> Rep UpdateCustomRoutingAcceleratorAttributes x)
-> (forall x.
Rep UpdateCustomRoutingAcceleratorAttributes x
-> UpdateCustomRoutingAcceleratorAttributes)
-> Generic UpdateCustomRoutingAcceleratorAttributes
forall x.
Rep UpdateCustomRoutingAcceleratorAttributes x
-> UpdateCustomRoutingAcceleratorAttributes
forall x.
UpdateCustomRoutingAcceleratorAttributes
-> Rep UpdateCustomRoutingAcceleratorAttributes x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateCustomRoutingAcceleratorAttributes x
-> UpdateCustomRoutingAcceleratorAttributes
$cfrom :: forall x.
UpdateCustomRoutingAcceleratorAttributes
-> Rep UpdateCustomRoutingAcceleratorAttributes x
Prelude.Generic)
newUpdateCustomRoutingAcceleratorAttributes ::
Prelude.Text ->
UpdateCustomRoutingAcceleratorAttributes
newUpdateCustomRoutingAcceleratorAttributes :: Text -> UpdateCustomRoutingAcceleratorAttributes
newUpdateCustomRoutingAcceleratorAttributes
Text
pAcceleratorArn_ =
UpdateCustomRoutingAcceleratorAttributes' :: Maybe Text
-> Maybe Bool
-> Maybe Text
-> Text
-> UpdateCustomRoutingAcceleratorAttributes
UpdateCustomRoutingAcceleratorAttributes'
{ $sel:flowLogsS3Prefix:UpdateCustomRoutingAcceleratorAttributes' :: Maybe Text
flowLogsS3Prefix =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:flowLogsEnabled:UpdateCustomRoutingAcceleratorAttributes' :: Maybe Bool
flowLogsEnabled = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:flowLogsS3Bucket:UpdateCustomRoutingAcceleratorAttributes' :: Maybe Text
flowLogsS3Bucket =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:acceleratorArn:UpdateCustomRoutingAcceleratorAttributes' :: Text
acceleratorArn = Text
pAcceleratorArn_
}
updateCustomRoutingAcceleratorAttributes_flowLogsS3Prefix :: Lens.Lens' UpdateCustomRoutingAcceleratorAttributes (Prelude.Maybe Prelude.Text)
updateCustomRoutingAcceleratorAttributes_flowLogsS3Prefix :: (Maybe Text -> f (Maybe Text))
-> UpdateCustomRoutingAcceleratorAttributes
-> f UpdateCustomRoutingAcceleratorAttributes
updateCustomRoutingAcceleratorAttributes_flowLogsS3Prefix = (UpdateCustomRoutingAcceleratorAttributes -> Maybe Text)
-> (UpdateCustomRoutingAcceleratorAttributes
-> Maybe Text -> UpdateCustomRoutingAcceleratorAttributes)
-> Lens
UpdateCustomRoutingAcceleratorAttributes
UpdateCustomRoutingAcceleratorAttributes
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateCustomRoutingAcceleratorAttributes' {Maybe Text
flowLogsS3Prefix :: Maybe Text
$sel:flowLogsS3Prefix:UpdateCustomRoutingAcceleratorAttributes' :: UpdateCustomRoutingAcceleratorAttributes -> Maybe Text
flowLogsS3Prefix} -> Maybe Text
flowLogsS3Prefix) (\s :: UpdateCustomRoutingAcceleratorAttributes
s@UpdateCustomRoutingAcceleratorAttributes' {} Maybe Text
a -> UpdateCustomRoutingAcceleratorAttributes
s {$sel:flowLogsS3Prefix:UpdateCustomRoutingAcceleratorAttributes' :: Maybe Text
flowLogsS3Prefix = Maybe Text
a} :: UpdateCustomRoutingAcceleratorAttributes)
updateCustomRoutingAcceleratorAttributes_flowLogsEnabled :: Lens.Lens' UpdateCustomRoutingAcceleratorAttributes (Prelude.Maybe Prelude.Bool)
updateCustomRoutingAcceleratorAttributes_flowLogsEnabled :: (Maybe Bool -> f (Maybe Bool))
-> UpdateCustomRoutingAcceleratorAttributes
-> f UpdateCustomRoutingAcceleratorAttributes
updateCustomRoutingAcceleratorAttributes_flowLogsEnabled = (UpdateCustomRoutingAcceleratorAttributes -> Maybe Bool)
-> (UpdateCustomRoutingAcceleratorAttributes
-> Maybe Bool -> UpdateCustomRoutingAcceleratorAttributes)
-> Lens
UpdateCustomRoutingAcceleratorAttributes
UpdateCustomRoutingAcceleratorAttributes
(Maybe Bool)
(Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateCustomRoutingAcceleratorAttributes' {Maybe Bool
flowLogsEnabled :: Maybe Bool
$sel:flowLogsEnabled:UpdateCustomRoutingAcceleratorAttributes' :: UpdateCustomRoutingAcceleratorAttributes -> Maybe Bool
flowLogsEnabled} -> Maybe Bool
flowLogsEnabled) (\s :: UpdateCustomRoutingAcceleratorAttributes
s@UpdateCustomRoutingAcceleratorAttributes' {} Maybe Bool
a -> UpdateCustomRoutingAcceleratorAttributes
s {$sel:flowLogsEnabled:UpdateCustomRoutingAcceleratorAttributes' :: Maybe Bool
flowLogsEnabled = Maybe Bool
a} :: UpdateCustomRoutingAcceleratorAttributes)
updateCustomRoutingAcceleratorAttributes_flowLogsS3Bucket :: Lens.Lens' UpdateCustomRoutingAcceleratorAttributes (Prelude.Maybe Prelude.Text)
updateCustomRoutingAcceleratorAttributes_flowLogsS3Bucket :: (Maybe Text -> f (Maybe Text))
-> UpdateCustomRoutingAcceleratorAttributes
-> f UpdateCustomRoutingAcceleratorAttributes
updateCustomRoutingAcceleratorAttributes_flowLogsS3Bucket = (UpdateCustomRoutingAcceleratorAttributes -> Maybe Text)
-> (UpdateCustomRoutingAcceleratorAttributes
-> Maybe Text -> UpdateCustomRoutingAcceleratorAttributes)
-> Lens
UpdateCustomRoutingAcceleratorAttributes
UpdateCustomRoutingAcceleratorAttributes
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateCustomRoutingAcceleratorAttributes' {Maybe Text
flowLogsS3Bucket :: Maybe Text
$sel:flowLogsS3Bucket:UpdateCustomRoutingAcceleratorAttributes' :: UpdateCustomRoutingAcceleratorAttributes -> Maybe Text
flowLogsS3Bucket} -> Maybe Text
flowLogsS3Bucket) (\s :: UpdateCustomRoutingAcceleratorAttributes
s@UpdateCustomRoutingAcceleratorAttributes' {} Maybe Text
a -> UpdateCustomRoutingAcceleratorAttributes
s {$sel:flowLogsS3Bucket:UpdateCustomRoutingAcceleratorAttributes' :: Maybe Text
flowLogsS3Bucket = Maybe Text
a} :: UpdateCustomRoutingAcceleratorAttributes)
updateCustomRoutingAcceleratorAttributes_acceleratorArn :: Lens.Lens' UpdateCustomRoutingAcceleratorAttributes Prelude.Text
updateCustomRoutingAcceleratorAttributes_acceleratorArn :: (Text -> f Text)
-> UpdateCustomRoutingAcceleratorAttributes
-> f UpdateCustomRoutingAcceleratorAttributes
updateCustomRoutingAcceleratorAttributes_acceleratorArn = (UpdateCustomRoutingAcceleratorAttributes -> Text)
-> (UpdateCustomRoutingAcceleratorAttributes
-> Text -> UpdateCustomRoutingAcceleratorAttributes)
-> Lens
UpdateCustomRoutingAcceleratorAttributes
UpdateCustomRoutingAcceleratorAttributes
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateCustomRoutingAcceleratorAttributes' {Text
acceleratorArn :: Text
$sel:acceleratorArn:UpdateCustomRoutingAcceleratorAttributes' :: UpdateCustomRoutingAcceleratorAttributes -> Text
acceleratorArn} -> Text
acceleratorArn) (\s :: UpdateCustomRoutingAcceleratorAttributes
s@UpdateCustomRoutingAcceleratorAttributes' {} Text
a -> UpdateCustomRoutingAcceleratorAttributes
s {$sel:acceleratorArn:UpdateCustomRoutingAcceleratorAttributes' :: Text
acceleratorArn = Text
a} :: UpdateCustomRoutingAcceleratorAttributes)
instance
Core.AWSRequest
UpdateCustomRoutingAcceleratorAttributes
where
type
AWSResponse
UpdateCustomRoutingAcceleratorAttributes =
UpdateCustomRoutingAcceleratorAttributesResponse
request :: UpdateCustomRoutingAcceleratorAttributes
-> Request UpdateCustomRoutingAcceleratorAttributes
request = Service
-> UpdateCustomRoutingAcceleratorAttributes
-> Request UpdateCustomRoutingAcceleratorAttributes
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy UpdateCustomRoutingAcceleratorAttributes
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse
(AWSResponse UpdateCustomRoutingAcceleratorAttributes)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either
String (AWSResponse UpdateCustomRoutingAcceleratorAttributes))
-> Logger
-> Service
-> Proxy UpdateCustomRoutingAcceleratorAttributes
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse
(AWSResponse UpdateCustomRoutingAcceleratorAttributes)))
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 CustomRoutingAcceleratorAttributes
-> Int -> UpdateCustomRoutingAcceleratorAttributesResponse
UpdateCustomRoutingAcceleratorAttributesResponse'
(Maybe CustomRoutingAcceleratorAttributes
-> Int -> UpdateCustomRoutingAcceleratorAttributesResponse)
-> Either String (Maybe CustomRoutingAcceleratorAttributes)
-> Either
String (Int -> UpdateCustomRoutingAcceleratorAttributesResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object
-> Text -> Either String (Maybe CustomRoutingAcceleratorAttributes)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"AcceleratorAttributes")
Either
String (Int -> UpdateCustomRoutingAcceleratorAttributesResponse)
-> Either String Int
-> Either String UpdateCustomRoutingAcceleratorAttributesResponse
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
UpdateCustomRoutingAcceleratorAttributes
instance
Prelude.NFData
UpdateCustomRoutingAcceleratorAttributes
instance
Core.ToHeaders
UpdateCustomRoutingAcceleratorAttributes
where
toHeaders :: UpdateCustomRoutingAcceleratorAttributes -> ResponseHeaders
toHeaders =
ResponseHeaders
-> UpdateCustomRoutingAcceleratorAttributes -> 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.UpdateCustomRoutingAcceleratorAttributes" ::
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
UpdateCustomRoutingAcceleratorAttributes
where
toJSON :: UpdateCustomRoutingAcceleratorAttributes -> Value
toJSON UpdateCustomRoutingAcceleratorAttributes' {Maybe Bool
Maybe Text
Text
acceleratorArn :: Text
flowLogsS3Bucket :: Maybe Text
flowLogsEnabled :: Maybe Bool
flowLogsS3Prefix :: Maybe Text
$sel:acceleratorArn:UpdateCustomRoutingAcceleratorAttributes' :: UpdateCustomRoutingAcceleratorAttributes -> Text
$sel:flowLogsS3Bucket:UpdateCustomRoutingAcceleratorAttributes' :: UpdateCustomRoutingAcceleratorAttributes -> Maybe Text
$sel:flowLogsEnabled:UpdateCustomRoutingAcceleratorAttributes' :: UpdateCustomRoutingAcceleratorAttributes -> Maybe Bool
$sel:flowLogsS3Prefix:UpdateCustomRoutingAcceleratorAttributes' :: UpdateCustomRoutingAcceleratorAttributes -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"FlowLogsS3Prefix" 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
flowLogsS3Prefix,
(Text
"FlowLogsEnabled" 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
flowLogsEnabled,
(Text
"FlowLogsS3Bucket" 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
flowLogsS3Bucket,
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
UpdateCustomRoutingAcceleratorAttributes
where
toPath :: UpdateCustomRoutingAcceleratorAttributes -> ByteString
toPath = ByteString
-> UpdateCustomRoutingAcceleratorAttributes -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance
Core.ToQuery
UpdateCustomRoutingAcceleratorAttributes
where
toQuery :: UpdateCustomRoutingAcceleratorAttributes -> QueryString
toQuery = QueryString
-> UpdateCustomRoutingAcceleratorAttributes -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data UpdateCustomRoutingAcceleratorAttributesResponse = UpdateCustomRoutingAcceleratorAttributesResponse'
{
UpdateCustomRoutingAcceleratorAttributesResponse
-> Maybe CustomRoutingAcceleratorAttributes
acceleratorAttributes :: Prelude.Maybe CustomRoutingAcceleratorAttributes,
UpdateCustomRoutingAcceleratorAttributesResponse -> Int
httpStatus :: Prelude.Int
}
deriving (UpdateCustomRoutingAcceleratorAttributesResponse
-> UpdateCustomRoutingAcceleratorAttributesResponse -> Bool
(UpdateCustomRoutingAcceleratorAttributesResponse
-> UpdateCustomRoutingAcceleratorAttributesResponse -> Bool)
-> (UpdateCustomRoutingAcceleratorAttributesResponse
-> UpdateCustomRoutingAcceleratorAttributesResponse -> Bool)
-> Eq UpdateCustomRoutingAcceleratorAttributesResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateCustomRoutingAcceleratorAttributesResponse
-> UpdateCustomRoutingAcceleratorAttributesResponse -> Bool
$c/= :: UpdateCustomRoutingAcceleratorAttributesResponse
-> UpdateCustomRoutingAcceleratorAttributesResponse -> Bool
== :: UpdateCustomRoutingAcceleratorAttributesResponse
-> UpdateCustomRoutingAcceleratorAttributesResponse -> Bool
$c== :: UpdateCustomRoutingAcceleratorAttributesResponse
-> UpdateCustomRoutingAcceleratorAttributesResponse -> Bool
Prelude.Eq, ReadPrec [UpdateCustomRoutingAcceleratorAttributesResponse]
ReadPrec UpdateCustomRoutingAcceleratorAttributesResponse
Int -> ReadS UpdateCustomRoutingAcceleratorAttributesResponse
ReadS [UpdateCustomRoutingAcceleratorAttributesResponse]
(Int -> ReadS UpdateCustomRoutingAcceleratorAttributesResponse)
-> ReadS [UpdateCustomRoutingAcceleratorAttributesResponse]
-> ReadPrec UpdateCustomRoutingAcceleratorAttributesResponse
-> ReadPrec [UpdateCustomRoutingAcceleratorAttributesResponse]
-> Read UpdateCustomRoutingAcceleratorAttributesResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateCustomRoutingAcceleratorAttributesResponse]
$creadListPrec :: ReadPrec [UpdateCustomRoutingAcceleratorAttributesResponse]
readPrec :: ReadPrec UpdateCustomRoutingAcceleratorAttributesResponse
$creadPrec :: ReadPrec UpdateCustomRoutingAcceleratorAttributesResponse
readList :: ReadS [UpdateCustomRoutingAcceleratorAttributesResponse]
$creadList :: ReadS [UpdateCustomRoutingAcceleratorAttributesResponse]
readsPrec :: Int -> ReadS UpdateCustomRoutingAcceleratorAttributesResponse
$creadsPrec :: Int -> ReadS UpdateCustomRoutingAcceleratorAttributesResponse
Prelude.Read, Int -> UpdateCustomRoutingAcceleratorAttributesResponse -> ShowS
[UpdateCustomRoutingAcceleratorAttributesResponse] -> ShowS
UpdateCustomRoutingAcceleratorAttributesResponse -> String
(Int -> UpdateCustomRoutingAcceleratorAttributesResponse -> ShowS)
-> (UpdateCustomRoutingAcceleratorAttributesResponse -> String)
-> ([UpdateCustomRoutingAcceleratorAttributesResponse] -> ShowS)
-> Show UpdateCustomRoutingAcceleratorAttributesResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateCustomRoutingAcceleratorAttributesResponse] -> ShowS
$cshowList :: [UpdateCustomRoutingAcceleratorAttributesResponse] -> ShowS
show :: UpdateCustomRoutingAcceleratorAttributesResponse -> String
$cshow :: UpdateCustomRoutingAcceleratorAttributesResponse -> String
showsPrec :: Int -> UpdateCustomRoutingAcceleratorAttributesResponse -> ShowS
$cshowsPrec :: Int -> UpdateCustomRoutingAcceleratorAttributesResponse -> ShowS
Prelude.Show, (forall x.
UpdateCustomRoutingAcceleratorAttributesResponse
-> Rep UpdateCustomRoutingAcceleratorAttributesResponse x)
-> (forall x.
Rep UpdateCustomRoutingAcceleratorAttributesResponse x
-> UpdateCustomRoutingAcceleratorAttributesResponse)
-> Generic UpdateCustomRoutingAcceleratorAttributesResponse
forall x.
Rep UpdateCustomRoutingAcceleratorAttributesResponse x
-> UpdateCustomRoutingAcceleratorAttributesResponse
forall x.
UpdateCustomRoutingAcceleratorAttributesResponse
-> Rep UpdateCustomRoutingAcceleratorAttributesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateCustomRoutingAcceleratorAttributesResponse x
-> UpdateCustomRoutingAcceleratorAttributesResponse
$cfrom :: forall x.
UpdateCustomRoutingAcceleratorAttributesResponse
-> Rep UpdateCustomRoutingAcceleratorAttributesResponse x
Prelude.Generic)
newUpdateCustomRoutingAcceleratorAttributesResponse ::
Prelude.Int ->
UpdateCustomRoutingAcceleratorAttributesResponse
newUpdateCustomRoutingAcceleratorAttributesResponse :: Int -> UpdateCustomRoutingAcceleratorAttributesResponse
newUpdateCustomRoutingAcceleratorAttributesResponse
Int
pHttpStatus_ =
UpdateCustomRoutingAcceleratorAttributesResponse' :: Maybe CustomRoutingAcceleratorAttributes
-> Int -> UpdateCustomRoutingAcceleratorAttributesResponse
UpdateCustomRoutingAcceleratorAttributesResponse'
{ $sel:acceleratorAttributes:UpdateCustomRoutingAcceleratorAttributesResponse' :: Maybe CustomRoutingAcceleratorAttributes
acceleratorAttributes =
Maybe CustomRoutingAcceleratorAttributes
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:UpdateCustomRoutingAcceleratorAttributesResponse' :: Int
httpStatus = Int
pHttpStatus_
}
updateCustomRoutingAcceleratorAttributesResponse_acceleratorAttributes :: Lens.Lens' UpdateCustomRoutingAcceleratorAttributesResponse (Prelude.Maybe CustomRoutingAcceleratorAttributes)
updateCustomRoutingAcceleratorAttributesResponse_acceleratorAttributes :: (Maybe CustomRoutingAcceleratorAttributes
-> f (Maybe CustomRoutingAcceleratorAttributes))
-> UpdateCustomRoutingAcceleratorAttributesResponse
-> f UpdateCustomRoutingAcceleratorAttributesResponse
updateCustomRoutingAcceleratorAttributesResponse_acceleratorAttributes = (UpdateCustomRoutingAcceleratorAttributesResponse
-> Maybe CustomRoutingAcceleratorAttributes)
-> (UpdateCustomRoutingAcceleratorAttributesResponse
-> Maybe CustomRoutingAcceleratorAttributes
-> UpdateCustomRoutingAcceleratorAttributesResponse)
-> Lens
UpdateCustomRoutingAcceleratorAttributesResponse
UpdateCustomRoutingAcceleratorAttributesResponse
(Maybe CustomRoutingAcceleratorAttributes)
(Maybe CustomRoutingAcceleratorAttributes)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateCustomRoutingAcceleratorAttributesResponse' {Maybe CustomRoutingAcceleratorAttributes
acceleratorAttributes :: Maybe CustomRoutingAcceleratorAttributes
$sel:acceleratorAttributes:UpdateCustomRoutingAcceleratorAttributesResponse' :: UpdateCustomRoutingAcceleratorAttributesResponse
-> Maybe CustomRoutingAcceleratorAttributes
acceleratorAttributes} -> Maybe CustomRoutingAcceleratorAttributes
acceleratorAttributes) (\s :: UpdateCustomRoutingAcceleratorAttributesResponse
s@UpdateCustomRoutingAcceleratorAttributesResponse' {} Maybe CustomRoutingAcceleratorAttributes
a -> UpdateCustomRoutingAcceleratorAttributesResponse
s {$sel:acceleratorAttributes:UpdateCustomRoutingAcceleratorAttributesResponse' :: Maybe CustomRoutingAcceleratorAttributes
acceleratorAttributes = Maybe CustomRoutingAcceleratorAttributes
a} :: UpdateCustomRoutingAcceleratorAttributesResponse)
updateCustomRoutingAcceleratorAttributesResponse_httpStatus :: Lens.Lens' UpdateCustomRoutingAcceleratorAttributesResponse Prelude.Int
updateCustomRoutingAcceleratorAttributesResponse_httpStatus :: (Int -> f Int)
-> UpdateCustomRoutingAcceleratorAttributesResponse
-> f UpdateCustomRoutingAcceleratorAttributesResponse
updateCustomRoutingAcceleratorAttributesResponse_httpStatus = (UpdateCustomRoutingAcceleratorAttributesResponse -> Int)
-> (UpdateCustomRoutingAcceleratorAttributesResponse
-> Int -> UpdateCustomRoutingAcceleratorAttributesResponse)
-> Lens
UpdateCustomRoutingAcceleratorAttributesResponse
UpdateCustomRoutingAcceleratorAttributesResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateCustomRoutingAcceleratorAttributesResponse' {Int
httpStatus :: Int
$sel:httpStatus:UpdateCustomRoutingAcceleratorAttributesResponse' :: UpdateCustomRoutingAcceleratorAttributesResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: UpdateCustomRoutingAcceleratorAttributesResponse
s@UpdateCustomRoutingAcceleratorAttributesResponse' {} Int
a -> UpdateCustomRoutingAcceleratorAttributesResponse
s {$sel:httpStatus:UpdateCustomRoutingAcceleratorAttributesResponse' :: Int
httpStatus = Int
a} :: UpdateCustomRoutingAcceleratorAttributesResponse)
instance
Prelude.NFData
UpdateCustomRoutingAcceleratorAttributesResponse